KD Reports API Documentation  2.0
KDReportsAbstractReportLayout_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-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDREPORTSABSTRACTREPORTLAYOUT_H
18 #define KDREPORTSABSTRACTREPORTLAYOUT_H
19 
20 #include <QString>
21 
22 QT_BEGIN_NAMESPACE
23 class QFont;
24 class QPainter;
25 class QPoint;
26 class QSizeF;
27 class QWidget;
28 QT_END_NAMESPACE
29 
30 namespace KDReports {
31 
33 {
34 public:
36  virtual ~AbstractReportLayout();
37  AbstractReportLayout(const AbstractReportLayout& other) = delete;
38  AbstractReportLayout& operator=(const AbstractReportLayout& other) = delete;
39 
40  virtual void setLayoutDirty() = 0;
41  virtual void setDefaultFont(const QFont &font) = 0;
42  virtual QFont defaultFont() const = 0;
43  virtual void paintPageContent(int pageNumber, QPainter &painter) = 0;
44  virtual int numberOfPages() = 0; // not const, since it can trigger a layout
50  virtual void setPageContentSize(QSizeF size) = 0;
51  virtual qreal layoutAsOnePage(qreal width) = 0;
52  virtual bool scaleTo(int numPagesHorizontally, int numPagesVertically) = 0;
53  virtual void setFixedRowHeight(qreal height) = 0;
54  virtual int maximumNumberOfPagesForHorizontalScaling() const = 0;
55  virtual int maximumNumberOfPagesForVerticalScaling() const = 0;
56  virtual void ensureLayouted() = 0;
57  virtual void updateTextValue(const QString &id, const QString &newValue) = 0;
63  virtual qreal idealWidth() = 0;
64  virtual void setUserRequestedFontScalingFactor(qreal factor) = 0;
65  virtual qreal userRequestedFontScalingFactor() const = 0;
66 
67  virtual QString anchorAt(int pageNumber, QPoint pos) = 0;
68 
69  virtual QString toHtml() const = 0;
70  virtual void finishHtmlExport() = 0;
71 };
72 
73 }
74 
75 #endif // KDREPORTSABSTRACTREPORTLAYOUT_H
KDReports::AbstractReportLayout::ensureLayouted
virtual void ensureLayouted()=0
KDReports::AbstractReportLayout::scaleTo
virtual bool scaleTo(int numPagesHorizontally, int numPagesVertically)=0
KDReports::AbstractReportLayout::defaultFont
virtual QFont defaultFont() const =0
KDReports::AbstractReportLayout::setFixedRowHeight
virtual void setFixedRowHeight(qreal height)=0
KDReports::AbstractReportLayout::paintPageContent
virtual void paintPageContent(int pageNumber, QPainter &painter)=0
KDReports::AbstractReportLayout::AbstractReportLayout
AbstractReportLayout()
Definition: KDReportsAbstractReportLayout.cpp:19
KDReports::AbstractReportLayout::~AbstractReportLayout
virtual ~AbstractReportLayout()
Definition: KDReportsAbstractReportLayout.cpp:21
KDReports::AbstractReportLayout::maximumNumberOfPagesForHorizontalScaling
virtual int maximumNumberOfPagesForHorizontalScaling() const =0
KDReports::AbstractReportLayout::updateTextValue
virtual void updateTextValue(const QString &id, const QString &newValue)=0
KDReports::AbstractReportLayout::anchorAt
virtual QString anchorAt(int pageNumber, QPoint pos)=0
KDReports::AbstractReportLayout::setDefaultFont
virtual void setDefaultFont(const QFont &font)=0
KDReports::AbstractReportLayout::setUserRequestedFontScalingFactor
virtual void setUserRequestedFontScalingFactor(qreal factor)=0
KDReports::AbstractReportLayout
Definition: KDReportsAbstractReportLayout_p.h:32
KDReports::AbstractReportLayout::setPageContentSize
virtual void setPageContentSize(QSizeF size)=0
KDReports::AbstractReportLayout::userRequestedFontScalingFactor
virtual qreal userRequestedFontScalingFactor() const =0
KDReports::AbstractReportLayout::finishHtmlExport
virtual void finishHtmlExport()=0
KDReports::AbstractReportLayout::layoutAsOnePage
virtual qreal layoutAsOnePage(qreal width)=0
KDReports::AbstractReportLayout::setLayoutDirty
virtual void setLayoutDirty()=0
KDReports::AbstractReportLayout::toHtml
virtual QString toHtml() const =0
KDReports::AbstractReportLayout::maximumNumberOfPagesForVerticalScaling
virtual int maximumNumberOfPagesForVerticalScaling() const =0
KDReports::AbstractReportLayout::operator=
AbstractReportLayout & operator=(const AbstractReportLayout &other)=delete
KDReports::AbstractReportLayout::idealWidth
virtual qreal idealWidth()=0
KDReports
Definition: KDReportsAbstractReportLayout_p.h:30
KDReports::AbstractReportLayout::numberOfPages
virtual int numberOfPages()=0

© 2007-2021 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 Sat Jan 8 2022 02:38:32 for KD Reports API Documentation by doxygen 1.8.17