Scribus
Open source desktop publishing at your fingertips
pdfimportoptions.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef PDFIMPORTOPTIONS_H
8 #define PDFIMPORTOPTIONS_H
9 
10 #include <QDialog>
11 
12 namespace Ui {
13 class PdfImportOptions;
14 }
15 class PdfPlug;
16 
17 class PdfImportOptions : public QDialog
18 {
19  Q_OBJECT
20 
21 public:
22  explicit PdfImportOptions(QWidget *parent = 0);
24  void setUpOptions(QString fileName, int actPage, int numPages, bool interact, bool cropPossible, PdfPlug* plug);
25  QString getPagesString();
26  int getCropBox();
27  bool croppingEnabled();
28  void paintEvent(QPaintEvent *e);
29 
30 protected:
31  void resizeEvent(QResizeEvent *e);
32 
33 public slots:
34  void updateFromCrop();
35  void updateFromSpinBox(int pg);
36  void updatePreview(int pg);
37  void createPageNumberRange();
38 
39 private:
40  Ui::PdfImportOptions *ui;
41  PdfPlug* m_plugin;
42  int m_maxPage;
43  bool m_resized;
44 };
45 
46 #endif // PDFIMPORTOPTIONS_H
Definition: pdfimportoptions.h:12
PDF importer plugin.
Definition: importpdf.h:42
Definition: pdfimportoptions.h:17