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
14
class
KoTextShapeDataBasePrivate
;
15
#include <QDomDocument>
16
class
KoShapeLoadingContext
;
17
class
KoShapeSavingContext
;
18
struct
KoInsets
;
19
20
class
QTextDocument;
21
25
class
KRITAFLAKE_EXPORT
KoTextShapeDataBase
:
public
KoShapeUserData
26
{
27
Q_OBJECT
28
public
:
30
KoTextShapeDataBase
();
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
57
enum
ResizeMethod
{
60
AutoResize
,
65
AutoGrowWidth
,
68
AutoGrowHeight
,
71
AutoGrowWidthAndHeight
,
74
ShrinkToFitResize
,
76
NoResize
77
};
78
86
void
setResizeMethod(ResizeMethod method);
87
93
ResizeMethod resizeMethod()
const
;
94
95
protected
:
97
KoTextShapeDataBase
(
KoTextShapeDataBasePrivate
*);
98
99
KoTextShapeDataBasePrivate
*
d_ptr
;
100
101
private
:
102
Q_DECLARE_PRIVATE(
KoTextShapeDataBase
)
103
};
104
105
#endif
106
KoShapeUserData.h
KoShapeLoadingContext
Definition
KoShapeLoadingContext.cpp:30
KoShapeSavingContext
Definition
KoShapeSavingContext.h:32
KoShapeUserData
Definition
KoShapeUserData.h:33
KoTextShapeDataBasePrivate
Definition
KoTextShapeDataBase_p.h:16
KoTextShapeDataBase
Definition
KoTextShapeDataBase.h:26
KoTextShapeDataBase::KoTextShapeDataBase
KoTextShapeDataBase()
constructor
KoTextShapeDataBase::ResizeMethod
ResizeMethod
Definition
KoTextShapeDataBase.h:57
KoTextShapeDataBase::AutoGrowHeight
@ AutoGrowHeight
Definition
KoTextShapeDataBase.h:68
KoTextShapeDataBase::AutoGrowWidthAndHeight
@ AutoGrowWidthAndHeight
Definition
KoTextShapeDataBase.h:71
KoTextShapeDataBase::ShrinkToFitResize
@ ShrinkToFitResize
Definition
KoTextShapeDataBase.h:74
KoTextShapeDataBase::AutoResize
@ AutoResize
Definition
KoTextShapeDataBase.h:60
KoTextShapeDataBase::AutoGrowWidth
@ AutoGrowWidth
Definition
KoTextShapeDataBase.h:65
KoTextShapeDataBase::d_ptr
KoTextShapeDataBasePrivate * d_ptr
Definition
KoTextShapeDataBase.h:99
KoInsets
Definition
KoInsets.h:18
libs
flake
KoTextShapeDataBase.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52