KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
KDReportsTextDocReportLayout_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 KDREPORTSTEXTDOCREPORTLAYOUT_H
12#define KDREPORTSTEXTDOCREPORTLAYOUT_H
13
17
18namespace KDReports {
19
21{
22public:
23 explicit TextDocReportLayout(KDReports::Report *report);
24
26 void setLayoutDirty() override;
28 void setDefaultFont(const QFont &font) override;
30 QFont defaultFont() const override;
32 void paintPageContent(int pageNumber, QPainter &painter) override;
34 int numberOfPages() override; // not const, since it can trigger a layout
36 qreal idealWidth() override;
38 void setPageContentSize(QSizeF size) override;
40 void ensureLayouted() override;
42 void updateTextValue(const QString &id, const QString &newValue) override;
44 qreal layoutAsOnePage(qreal width) override;
46 bool scaleTo(int numPagesHorizontally, int numPagesVertically) override;
48 void setFixedRowHeight(qreal height) override;
54 void setUserRequestedFontScalingFactor(qreal factor) override;
56 qreal userRequestedFontScalingFactor() const override;
58 QString anchorAt(int pageNumber, QPoint pos) override;
60 QString toHtml() const override;
62 void finishHtmlExport() override;
63
65 {
66 return m_textDocument;
67 }
68
70 {
71 return &m_builder;
72 }
73
74private:
75 TextDocument m_textDocument;
76 ReportBuilder m_builder;
77};
78
79}
80
81#endif // KDREPORTSTEXTDOCREPORTLAYOUT_H
int maximumNumberOfPagesForHorizontalScaling() const override
Reimplemented for internal purposes. .
void ensureLayouted() override
Reimplemented for internal purposes. .
void finishHtmlExport() override
Reimplemented for internal purposes. .
void setFixedRowHeight(qreal height) override
Reimplemented for internal purposes. .
void setPageContentSize(QSizeF size) override
Reimplemented for internal purposes. .
bool scaleTo(int numPagesHorizontally, int numPagesVertically) override
Reimplemented for internal purposes. .
qreal userRequestedFontScalingFactor() const override
Reimplemented for internal purposes. .
QFont defaultFont() const override
Reimplemented for internal purposes. .
void setLayoutDirty() override
Reimplemented for internal purposes. .
void setDefaultFont(const QFont &font) override
Reimplemented for internal purposes. .
qreal layoutAsOnePage(qreal width) override
Reimplemented for internal purposes. .
qreal idealWidth() override
Reimplemented for internal purposes. .
int numberOfPages() override
Reimplemented for internal purposes. .
QString anchorAt(int pageNumber, QPoint pos) override
Reimplemented for internal purposes. .
void setUserRequestedFontScalingFactor(qreal factor) override
Reimplemented for internal purposes. .
void updateTextValue(const QString &id, const QString &newValue) override
Reimplemented for internal purposes. .
void paintPageContent(int pageNumber, QPainter &painter) override
Reimplemented for internal purposes. .
int maximumNumberOfPagesForVerticalScaling() const override
Reimplemented for internal purposes. .
QString toHtml() const override
Reimplemented for internal purposes. .

© 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 Tue Jul 9 2024 00:04:17 for KD Reports API Documentation by doxygen 1.9.8