KD Reports

           | Home |            | Namespaces |            | Classes |            | Files |            | Directories |

KDReportsPreviewDialog.h

00001 #ifndef KDREPORTSPREVIEWDIALOG_H
00002 #define KDREPORTSPREVIEWDIALOG_H
00003 
00004 #include "KDReportsGlobal.h"
00005 #include <QtGui/QDialog>
00006 
00007 namespace KDReports {
00008 class Report;
00009 
00014 class KDREPORTS_EXPORT PreviewDialog : public QDialog
00015 {
00016     Q_OBJECT
00017 
00018 public:
00022     explicit PreviewDialog( KDReports::Report* report, QWidget *parent = 0 );
00023 
00024     ~PreviewDialog();
00025 
00029     bool isSelected( int pageNumber ) const;
00030 
00038     void setPageSizeChangeAllowed( bool b );
00039 
00045     void setShowTableSettingsDialog( bool b );
00046 
00051     void setWidthForEndlessPrinter( qreal widthMM );
00052 
00053     // maybe setZoomFactor() to set the initial value?
00054 
00062     virtual bool showTableSettingsDialog( KDReports::Report* report );
00063 
00064 Q_SIGNALS:
00066     void pageSizeChanged( QPrinter::PageSize pageSize );
00068     void orientationChanged( QPrinter::Orientation orientation );
00069 
00070 private Q_SLOTS:
00072     void accept();
00074     void reject();
00075 
00076 private:
00077     Q_PRIVATE_SLOT( d, void _kd_slotTableBreakingDialog() )
00078     class Private;
00079     friend class Private;
00080     Private* const d;
00081 };
00082 
00083 }
00084 
00085 #endif

Copyright © 2008, Klarälvdalens Datakonsult AB KD Reports