17 #ifndef KDREPORTSPREVIEWWIDGET_H
18 #define KDREPORTSPREVIEWWIDGET_H
26 class PreviewWidgetPrivate;
42 explicit PreviewWidget(QWidget *parent =
nullptr);
44 ~PreviewWidget()
override;
54 bool isSelected(
int pageNumber)
const;
63 void setPageSizeChangeAllowed(
bool b);
70 void setShowTableSettingsDialog(
bool b);
76 void setWidthForEndlessPrinter(qreal widthMM);
89 bool printWithDialog();
94 void setShowPageListWidget(
bool show);
104 QSize sizeHint()
const override;
107 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
108 void pageSizeChanged(QPrinter::PageSize pageSize);
111 void orientationChanged(QPrinter::Orientation orientation);
113 void pageSizeChanged(
const QPageSize &pageSize);
116 void orientationChanged(QPageLayout::Orientation orientation);
120 void tableSettingsClicked();
125 void linkActivated(
const QUrl &url);
129 void resizeEvent(QResizeEvent *)
override;
131 bool eventFilter(QObject *, QEvent *)
override;
134 friend class PreviewWidgetPrivate;
135 PreviewWidgetPrivate *
const d;