17 #ifndef KDREPORTSPREVIEWDIALOG_H
18 #define KDREPORTSPREVIEWDIALOG_H
27 class PreviewDialogPrivate;
43 ~PreviewDialog()
override;
52 void setQuickPrinterName(
const QString &printerName);
60 void setDefaultSaveDirectory(
const QString &path);
70 void setDirectoryBrowsingEnabled(
bool allowed);
75 bool isSelected(
int pageNumber)
const;
84 void setPageSizeChangeAllowed(
bool b);
91 void setShowTableSettingsDialog(
bool b);
97 void setWidthForEndlessPrinter(qreal widthMM);
120 enum Result { Printed = 10,
128 QString savedFileName()
const;
131 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
132 void pageSizeChanged(QPrinter::PageSize pageSize);
135 void orientationChanged(QPrinter::Orientation orientation);
137 void pageSizeChanged(
const QPageSize &pageSize);
140 void orientationChanged(QPageLayout::Orientation orientation);
146 void linkActivated(
const QUrl &url);
150 void accept()
override;
152 void reject()
override;
155 PreviewDialogPrivate *
const d;