11 #ifndef KDREPORTSREPORT_P_H
12 #define KDREPORTSREPORT_P_H
33 class XmlElementHandler;
35 class AbstractReportLayout;
40 QAbstractItemModel *
modelForKey(
const QString &key);
52 for (iterator it = begin(); it != end(); ++it) {
61 for (const_iterator it = constBegin(); it != constEnd(); ++it) {
62 it.value()->doc().layoutWithTextWidth(w);
68 for (const_iterator it = constBegin(); it != constEnd(); ++it) {
69 it.value()->doc().updateTextValue(
id, newValue);
76 for (const_iterator it = begin(); it != end(); ++it) {
77 Header *header = it.value();
78 maxHeight = qMax(maxHeight, header->doc().
contentDocument().size().height());
83 Header *headerForPage(
int pageNumber,
int pageCount)
const;
97 bool doPrint(QPrinter *printer, QWidget *parent);
qreal textDocumentWidth() const
void paintPage(int pageNumber, QPainter &painter)
KDReports::AbstractReportLayout * m_layout
bool m_pageContentSizeDirty
void debugLayoutToPdf(const char *fileName)
QPageLayout::Orientation m_orientation
bool m_progressDialogEnabled
KDReports::Report::ReportMode m_reportMode
ReportPrivate & operator=(const ReportPrivate &)=delete
QHash< QString, QString > m_textValues
qreal rawMainTextDocHeight() const
void setPaperSizeFromPrinter(QSizeF paperSize)
QHash< QString, QImage > m_imageValues
bool doPrint(QPrinter *printer, QWidget *parent)
QSizeF layoutAsOnePage(qreal docWidth)
qreal m_footerBodySpacing
qreal mainTextDocHeight() const
bool skipHeadersFooters() const
QRect mainTextDocRect() const
ReportBuilder * builder() const
const QAbstractItemModel * m_currentModel
XmlElementHandler * m_xmlElementHandler
qreal m_endlessPrinterWidth
bool hasNonLayoutedTextDocument() const
ReportPrivate(const ReportPrivate &)=delete
bool wantEndlessPrinting() const
qreal m_headerBodySpacing
ReportPrivate(Report *report)
Report::WatermarkFunction m_watermarkFunction
std::function< void(QPainter &, int)> WatermarkFunction
QTextDocument & contentDocument()
QAbstractItemModel * modelForKey(const QString &key)