KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
KDReportsChartTextObject_p.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Reports library.
4**
5** SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
11#ifndef CHARTTEXTOBJECT_H
12#define CHARTTEXTOBJECT_H
13
14#ifdef HAVE_KDCHART
15
16#include <QTextObjectInterface>
17
18namespace KDReports {
19
20class ChartTextObject : public QObject, public QTextObjectInterface
21{
22 Q_OBJECT
23 Q_INTERFACES(QTextObjectInterface)
24
25public:
26 enum
27 {
28 ChartObjectTextFormat = QTextFormat::UserObject + 2
29 };
30 enum
31 {
32 ChartObject = 1,
33 Size = 2,
34 Unit = 3
35 };
36
37 static void registerChartTextObjectHandler(QTextDocument *doc);
38
39 QSizeF intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format) override;
40
41 void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format) override;
42};
43
44} // namespace
45
46#endif
47
48#endif /* CHARTTEXTOBJECT_H */

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated on Wed Apr 24 2024 04:08:14 for KD Reports API Documentation by doxygen 1.9.8