KD Reports  1.5
 All Classes Namespaces Functions Enumerations Enumerator Pages
KDReportsPreviewDialog.h
1 /****************************************************************************
2 ** Copyright (C) 2007-2014 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Reports library.
5 **
6 ** Licensees holding valid commercial KD Reports licenses may use this file in
7 ** accordance with the KD Reports Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef KDREPORTSPREVIEWDIALOG_H
24 #define KDREPORTSPREVIEWDIALOG_H
25 
26 #include "KDReportsGlobal.h"
27 #include <QDialog>
28 #include <QPrinter>
29 
30 namespace KDReports {
31 class Report;
32 class PreviewWidget;
33 
38 class KDREPORTS_EXPORT PreviewDialog : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
46  explicit PreviewDialog( KDReports::Report* report, QWidget *parent = 0 );
47 
48  ~PreviewDialog();
49 
53  bool isSelected( int pageNumber ) const;
54 
62  void setPageSizeChangeAllowed( bool b );
63 
69  void setShowTableSettingsDialog( bool b );
70 
75  void setWidthForEndlessPrinter( qreal widthMM );
76 
77  // maybe setZoomFactor() to set the initial value?
78 
86  virtual bool showTableSettingsDialog( KDReports::Report* report );
87 
93  KDReports::PreviewWidget* previewWidget();
94 
95 Q_SIGNALS:
97  void pageSizeChanged( QPrinter::PageSize pageSize );
99  void orientationChanged( QPrinter::Orientation orientation );
100 
101 private Q_SLOTS:
103  void accept();
105  void reject();
106 
107 private:
108  Q_PRIVATE_SLOT( d, void _kd_slotTableBreakingDialog() )
109  class Private;
110  friend class Private;
111  Private* const d;
112 };
113 
114 }
115 
116 #endif
Definition: KDReportsReport.h:108
Definition: KDReportsPreviewDialog.h:38
Definition: KDReportsPreviewWidget.h:39

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/