00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDREPORTSPREVIEWDIALOG_H
00024 #define KDREPORTSPREVIEWDIALOG_H
00025
00026 #include "KDReportsGlobal.h"
00027 #include <QtGui/QDialog>
00028 #include <QtGui/QPrinter>
00029
00030 namespace KDReports {
00031 class Report;
00032
00037 class KDREPORTS_EXPORT PreviewDialog : public QDialog
00038 {
00039 Q_OBJECT
00040
00041 public:
00045 explicit PreviewDialog( KDReports::Report* report, QWidget *parent = 0 );
00046
00047 ~PreviewDialog();
00048
00052 bool isSelected( int pageNumber ) const;
00053
00061 void setPageSizeChangeAllowed( bool b );
00062
00068 void setShowTableSettingsDialog( bool b );
00069
00074 void setWidthForEndlessPrinter( qreal widthMM );
00075
00076
00077
00085 virtual bool showTableSettingsDialog( KDReports::Report* report );
00086
00087 Q_SIGNALS:
00089 void pageSizeChanged( QPrinter::PageSize pageSize );
00091 void orientationChanged( QPrinter::Orientation orientation );
00092
00093 private Q_SLOTS:
00095 void accept();
00097 void reject();
00098
00099 private:
00100 Q_PRIVATE_SLOT( d, void _kd_slotTableBreakingDialog() )
00101 class Private;
00102 friend class Private;
00103 Private* const d;
00104 };
00105
00106 }
00107
00108 #endif