KD Reports API Documentation  2.2
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 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #ifndef KDREPORTSABSTRACTREPORTLAYOUT_H
12 #define KDREPORTSABSTRACTREPORTLAYOUT_H
13 
14 #include <QString>
15 
16 QT_BEGIN_NAMESPACE
17 class QFont;
18 class QPainter;
19 class QPoint;
20 class QSizeF;
21 class QWidget;
22 QT_END_NAMESPACE
23 
24 namespace KDReports {
25 
27 {
28 public:
30  virtual ~AbstractReportLayout();
33 
34  virtual void setLayoutDirty() = 0;
35  virtual void setDefaultFont(const QFont &font) = 0;
36  virtual QFont defaultFont() const = 0;
37  virtual void paintPageContent(int pageNumber, QPainter &painter) = 0;
38  virtual int numberOfPages() = 0; // not const, since it can trigger a layout
44  virtual void setPageContentSize(QSizeF size) = 0;
45  virtual qreal layoutAsOnePage(qreal width) = 0;
46  virtual bool scaleTo(int numPagesHorizontally, int numPagesVertically) = 0;
47  virtual void setFixedRowHeight(qreal height) = 0;
49  virtual int maximumNumberOfPagesForVerticalScaling() const = 0;
50  virtual void ensureLayouted() = 0;
51  virtual void updateTextValue(const QString &id, const QString &newValue) = 0;
57  virtual qreal idealWidth() = 0;
58  virtual void setUserRequestedFontScalingFactor(qreal factor) = 0;
59  virtual qreal userRequestedFontScalingFactor() const = 0;
60 
61  virtual QString anchorAt(int pageNumber, QPoint pos) = 0;
62 
63  virtual QString toHtml() const = 0;
64  virtual void finishHtmlExport() = 0;
65 };
66 
67 }
68 
69 #endif // KDREPORTSABSTRACTREPORTLAYOUT_H
virtual QString anchorAt(int pageNumber, QPoint pos)=0
virtual int maximumNumberOfPagesForHorizontalScaling() const =0
virtual void paintPageContent(int pageNumber, QPainter &painter)=0
virtual QString toHtml() const =0
virtual void setPageContentSize(QSizeF size)=0
virtual void setFixedRowHeight(qreal height)=0
virtual int maximumNumberOfPagesForVerticalScaling() const =0
AbstractReportLayout(const AbstractReportLayout &other)=delete
virtual void finishHtmlExport()=0
virtual void setUserRequestedFontScalingFactor(qreal factor)=0
virtual qreal layoutAsOnePage(qreal width)=0
virtual void setDefaultFont(const QFont &font)=0
virtual qreal userRequestedFontScalingFactor() const =0
AbstractReportLayout & operator=(const AbstractReportLayout &other)=delete
virtual QFont defaultFont() const =0
virtual bool scaleTo(int numPagesHorizontally, int numPagesVertically)=0
virtual void updateTextValue(const QString &id, const QString &newValue)=0

© 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 by doxygen 1.9.1