81 Q_PROPERTY(
QString documentName READ documentName WRITE setDocumentName)
119 void setReportMode(ReportMode reportMode);
125 ReportMode reportMode()
const;
131 void setDefaultFont(
const QFont &font);
137 QFont defaultFont()
const;
151 void addInlineElement(
const Element &element);
174 void addVerticalSpacing(qreal space);
240 void setParagraphMargins(qreal left, qreal top, qreal right, qreal bottom);
242#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
266#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
284#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
319 void setWidthForEndlessPrinter(qreal widthMM);
324 void setMargins(qreal top, qreal left, qreal bottom, qreal right);
329 void getMargins(qreal *top, qreal *left, qreal *bottom, qreal *right)
const;
335 void setTopPageMargin(qreal top);
341 qreal topPageMargins()
const;
347 void setLeftPageMargin(qreal left);
353 qreal leftPageMargins()
const;
359 void setRightPageMargin(qreal right);
365 qreal rightPageMargins()
const;
371 void setBottomPageMargin(qreal bottom);
377 qreal bottomPageMargins()
const;
384 void setHeaderBodySpacing(qreal spacing);
390 qreal headerBodySpacing()
const;
397 void setFooterBodySpacing(qreal spacing);
403 qreal footerBodySpacing()
const;
421 Header &header(HeaderLocations hl =
AllPages);
430 Footer &footer(HeaderLocations hl =
AllPages);
461 void associateImageValue(
const QString &
id,
const QPixmap &value);
476 void associateImageValue(
const QString &
id,
const QImage &value);
527 void setDocumentName(
const QString &name);
545 void setProgressDialogEnabled(
bool enable);
553 bool printWithDialog(
QWidget *parent);
578 bool exportToFile(
const QString &fileName,
QWidget *parent =
nullptr);
586 bool exportToImage(
QSize size,
const QString &fileName,
const char *format);
595 bool exportToHtml(
const QString &fileName);
604 void paintPage(
int pageNumber,
QPainter &painter);
611 void setFirstPageNumber(
int num);
616 int firstPageNumber()
const;
621 int numberOfPages()
const;
626 bool isTableBreakingEnabled()
const;
641 void setTableBreakingPageOrder(TableBreakingPageOrder pageOrder);
647 TableBreakingPageOrder tableBreakingPageOrder()
const;
658 void setFontScalingFactor(qreal factor);
664 qreal fontScalingFactor()
const;
686 void scaleTo(
int numPagesHorizontally,
int numPagesVertically);
692 int maximumNumberOfPagesForHorizontalScaling()
const;
697 int maximumNumberOfPagesForVerticalScaling()
const;
704 void setFixedRowHeight(qreal mm);
721 void regenerateAutoTables();
739 void setWatermarkText(
const QString &text,
int rotation = 0,
const QColor &color =
QColor(204, 204, 204),
const QFont &font =
QFont(QStringLiteral(
"Helvetica"), 48));
749 int watermarkRotation()
const;
754 QColor watermarkColor()
const;
759 QFont watermarkFont()
const;
771 void setWatermarkPixmap(
const QPixmap &pixmap,
bool autoGrayOut =
true);
778 QPixmap watermarkPixmap()
const;
784 void setWatermarkImage(
const QImage &image);
790 QImage watermarkImage()
const;
812 KDReports::HeaderLocations headerLocation(Header *header)
const;
818 KDReports::HeaderLocations footerLocation(KDReports::Footer *footer)
const;
824 void setHeaderLocation(HeaderLocations hl, Header *header);
830 void setFooterLocation(HeaderLocations hl, Footer *footer);
853 int currentPosition()
const;
910 friend class ::ReportData;
911 friend class ::EditorData;
916 void setupPrinter(
QPrinter *printer);
925 friend class PreviewDialogPrivate;
926 friend class PreviewWidgetPrivate;