diff --git a/libs/flake/text/KoSvgTextChunkShape_p.h b/libs/flake/text/KoSvgTextChunkShape_p.h index 2def473fbf..906a06c571 100644 --- a/libs/flake/text/KoSvgTextChunkShape_p.h +++ b/libs/flake/text/KoSvgTextChunkShape_p.h @@ -1,57 +1,59 @@ /* * Copyright (c) 2017 Dmitry Kazakov * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "KoSvgTextChunkShape.h" #include "KoSvgText.h" #include "KoSvgTextProperties.h" #include #include class SvgGraphicsContext; -struct KoSvgTextChunkShapePrivate : public KoShapeContainerPrivate +class KoSvgTextChunkShapePrivate : public KoShapeContainerPrivate { +public: + KoSvgTextChunkShapePrivate(KoSvgTextChunkShape *_q); KoSvgTextChunkShapePrivate(const KoSvgTextChunkShapePrivate &rhs, KoSvgTextChunkShape *q); ~KoSvgTextChunkShapePrivate(); KoSvgTextProperties properties; QFont font; QStringList fontFamiliesList; QVector localTransformations; KoSvgText::AutoValue textLength; KoSvgText::LengthAdjust lengthAdjust = KoSvgText::LengthAdjustSpacing; QString text; struct LayoutInterface; QScopedPointer layoutInterface; QPainterPath associatedOutline; KoSvgText::KoSvgCharChunkFormat fetchCharFormat() const; void applyParentCharTransformations(const QVector transformations); void loadContextBasedProperties(SvgGraphicsContext *gc); Q_DECLARE_PUBLIC(KoSvgTextChunkShape) };