Scribus
Open source desktop publishing at your fingertips
imposition.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 /***************************************************************************
8  begin : Jun 2007
9  copyright : (C) 2007 by Mateusz Haligowski
10  email : halish@kofeina.org
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 #ifndef IMPOSITION_UI_H
22 #define IMPOSITION_UI_H
23 
24 #include "ui_impositionbase.h"
25 #include <qtabwidget.h>
26 #include <qgroupbox.h>
27 #include <qframe.h>
28 #include <qlabel.h>
29 #include <qspinbox.h>
30 
31 #include "scribusstructs.h"
32 #include "scribuscore.h"
33 #include "scribuswin.h"
34 #include "scribusapi.h"
35 
36 
37 class ScribusDoc;
38 
39 class Imposition : public QDialog,Ui::ImpositionBase
40 {
41  Q_OBJECT
42 
43  public:
44  Imposition(QWidget* parent = 0, ScribusDoc* doc = 0);
45  virtual ~Imposition();
46 
47  double unitRatio;
48  QString unitSuffix;
49  int unitIndex;
50 
51  private:
52  QWidget* parent;
53  ScribusDoc* srcDoc;
54  ScribusDoc* targetDoc;
55  ScribusWin* w;
56  ScribusView* view;
57  bool isEdited;
58  bool isOK;
59 
60  bool verifyGrid();
61  bool verifyBooklet();
62  bool verifyFold();
63  QList<int>* parsePages(QString);
64 
65  void booklet4p(QList<int>*);
66  void booklet8p(QList<int>*);
67  void booklet16p(QList<int>*);
68 
69  protected slots:
70  virtual void languageChange();
71  void setPageSize(const QString &);
72  void customizeSize();
73  void change2SidesBox(int);
74  void changeFoldBackPage(int);
75  virtual void accepted();
76 
77  void changePage();
78  void changeDocGrid();
79  void changeDocBooklet();
80  void changeDocFold();
81  void changeTab(int);
82 
83  bool verifyPage();
84 };
85 
86 #endif //IMPOSITION_UI_H
the Document Class
Definition: scribusdoc.h:90
Definition: scribuswin.h:40
Definition: imposition.h:39
Definition: scribusview.h:87