KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
KDReportsTextDocument_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 KDREPORTSTEXTDOCUMENT_H
12#define KDREPORTSTEXTDOCUMENT_H
13
14//
15// W A R N I N G
16// -------------
17//
18// This file is not part of the KD Reports API. It exists purely as an
19// implementation detail. This header file may change from version to
20// version without notice, or even be removed.
21//
22// We mean it.
23//
24//
25
27#include "KDReportsGlobal.h"
28#include "KDReportsReport.h"
30#include <QFont>
31#include <QMap>
32#include <QTextCursor>
33#include <QTextDocument>
34#include <QTextFormat>
35
36QT_BEGIN_NAMESPACE
38class QTextTable;
39QT_END_NAMESPACE
40
41namespace KDReports {
42enum
43{
45};
46
53{
54public:
55 explicit TextDocument();
57
58 // like QTextDocument::setTextWidth but also takes care of objects with % sizes
59 void layoutWithTextWidth(qreal w);
60
61 // like QTextDocument::setPageSize but also takes care of objects with % sizes
62 void setPageSize(QSizeF size);
63
64#if 0
65 // add user property to char format
66 void setMarker( int pos, int propertyId, const QVariant& value );
67#endif
68
71
72 void updateTextValue(const QString &id, const QString &newValue);
73
74 void scaleFontsBy(qreal factor);
75
76 QFont defaultFont() const;
77 QTextDocument &contentDocument();
78 TextDocumentData &contentDocumentData();
79
81
82 QString asHtml() const;
83 void preciseDump();
84
85private:
86 TextDocumentData m_contentDocument;
87};
88
89}
90
91#endif /* KDREPORTSTEXTDOCUMENT_H */
#define KDREPORTS_EXPORT
QString asHtml() const
QList< KDReports::AutoTableElement * > autoTableElements()
void regenerateAutoTableForModel(QAbstractItemModel *model)

© 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:15 for KD Reports API Documentation by doxygen 1.9.8