Krita Source Code Documentation
Loading...
Searching...
No Matches
KoTextShapeDataBase.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006-2010 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOTEXTSHAPEDATABASE_H
8#define KOTEXTSHAPEDATABASE_H
9
10#include "kritaflake_export.h"
11
12#include "KoShapeUserData.h"
13
15#include <QDomDocument>
18struct KoInsets;
19
20class QTextDocument;
21
25class KRITAFLAKE_EXPORT KoTextShapeDataBase : public KoShapeUserData
26{
27 Q_OBJECT
28public:
31 ~KoTextShapeDataBase() override;
32
34 QTextDocument *document() const;
35
42 void setShapeMargins(const KoInsets &margins);
46 KoInsets shapeMargins() const;
47
49 void setVerticalAlignment(Qt::Alignment alignment);
50
52 Qt::Alignment verticalAlignment() const;
53
78
86 void setResizeMethod(ResizeMethod method);
87
93 ResizeMethod resizeMethod() const;
94
95protected:
98
100
101private:
102 Q_DECLARE_PRIVATE(KoTextShapeDataBase)
103};
104
105#endif
106
KoTextShapeDataBase()
constructor
KoTextShapeDataBasePrivate * d_ptr