|
KD Reports API Documentation
2.0
|
Go to the documentation of this file.
17 #ifndef KDREPORTSREPORT_P_H
18 #define KDREPORTSREPORT_P_H
39 class XmlElementHandler;
41 class AbstractReportLayout;
46 QAbstractItemModel *
modelForKey(
const QString &key);
55 HeaderMap() =
default;
58 for (iterator it = begin(); it != end(); ++it) {
62 HeaderMap(
const HeaderMap &) =
delete;
63 HeaderMap &operator=(
const HeaderMap &) =
delete;
65 void layoutWithTextWidth(qreal w)
67 for (const_iterator it = constBegin(); it != constEnd(); ++it) {
68 it.value()->doc().layoutWithTextWidth(w);
72 void updateTextValue(
const QString &
id,
const QString &newValue)
74 for (const_iterator it = constBegin(); it != constEnd(); ++it) {
75 it.value()->doc().updateTextValue(
id, newValue);
82 for (const_iterator it = begin(); it != end(); ++it) {
83 Header *header = it.value();
84 maxHeight = qMax(maxHeight, header->doc().
contentDocument().size().height());
89 Header *headerForPage(
int pageNumber,
int pageCount)
const;
90 KDReports::HeaderLocations headerLocation(
Header *header)
const;
102 void paintPage(
int pageNumber, QPainter &painter);
103 bool doPrint(QPrinter *printer, QWidget *parent);
bool hasNonLayoutedTextDocument() const
const QAbstractItemModel * m_currentModel
void paintPage(int pageNumber, QPainter &painter)
QAbstractItemModel * modelForKey(const QString &key)
QTextDocument & contentDocument()
ReportBuilder * builder() const
QHash< QString, QImage > m_imageValues
void debugLayoutToPdf(const char *fileName)
QPageLayout::Orientation m_orientation
ReportPrivate & operator=(const ReportPrivate &)=delete
bool doPrint(QPrinter *printer, QWidget *parent)
qreal mainTextDocHeight() const
qreal m_endlessPrinterWidth
QRect mainTextDocRect() const
bool skipHeadersFooters() const
KDReports::AbstractReportLayout * m_layout
ReportPrivate(Report *report)
qreal textDocumentWidth() const
QSizeF layoutAsOnePage(qreal docWidth)
bool m_pageContentSizeDirty
KDReports::Report::ReportMode m_reportMode
void setPaperSizeFromPrinter(QSizeF paperSize)
qreal m_headerBodySpacing
QHash< QString, QString > m_textValues
qreal m_footerBodySpacing
qreal rawMainTextDocHeight() const
bool wantEndlessPrinting() const
XmlElementHandler * m_xmlElementHandler