Subversion Repositories Scribus

Rev

Rev 4649 | Rev 5387 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
1307 fschmid 7
#ifndef TABPDF_OPTS_H
8
#define TABPDF_OPTS_H
2969 craig 9
 
1307 fschmid 10
#include <qtabwidget.h>
11
#include <qwidget.h>
12
#include <qlayout.h>
13
#include <qtooltip.h>
14
#include <qlistbox.h>
15
#include <qmap.h>
16
#include <qvaluelist.h>
17
#include <qbuttongroup.h>
18
#include <qgroupbox.h>
19
#include <qcheckbox.h>
20
#include <qcombobox.h>
21
#include <qradiobutton.h>
22
#include <qspinbox.h>
23
#include <qtabwidget.h>
24
#include <qwidget.h>
25
#include <qpushbutton.h>
26
#include <qtoolbutton.h>
27
#include <qlineedit.h>
28
#include <qlabel.h>
2969 craig 29
 
30
#include "scribusapi.h"
1307 fschmid 31
#include "bookmwin.h"
32
#include "mspinbox.h"
33
 
1972 craig 34
class PDFOptions;
4259 craig 35
class PDFExportDialog;
1972 craig 36
 
2969 craig 37
class SCRIBUS_API TabPDFOptions : public QTabWidget
1307 fschmid 38
{
39
        Q_OBJECT
40
 
41
public:
4260 craig 42
        TabPDFOptions(  QWidget* parent, PDFOptions & Optionen,
43
                        const SCFonts &AllFonts,
44
                        const ProfilesL & PDFXProfiles,
45
                        const QMap<QString,int> & DocFonts,
46
                        const QValueList<PDFPresentationData> & Eff,
47
                        int unitIndex, double PageH, double PageB,
48
                        ScribusView *vie = 0 );
1307 fschmid 49
        ~TabPDFOptions() {};
1828 fschmid 50
        void restoreDefaults();
1307 fschmid 51
 
4256 craig 52
        void unitChange(int newUnitIndex);
53
 
4253 craig 54
        // GUI member pointers
55
        // Remember to initialize these in the initializer list of the ctor when
56
        // you add new ones. Add them in the same order here and in the initalizer
57
        // list. To help out, the members are sorted alphabetically by name.
58
        QCheckBox* AddSec;
1307 fschmid 59
        QCheckBox* Article;
4253 craig 60
        MSpinBox* BleedBottom;
61
        MSpinBox* BleedLeft;
62
        MSpinBox* BleedRight;
63
        MSpinBox* BleedTop;
64
        QCheckBox* CheckBM;
65
        QCheckBox* CheckBox1;
1307 fschmid 66
        QComboBox* CMethod;
4649 fschmid 67
        QCheckBox* ClipMarg;
1307 fschmid 68
        QComboBox* ComboBind;
4253 craig 69
        QCheckBox* Compression;
70
        QRadioButton* continuousPages;
71
        QCheckBox* CopySec;
72
        QComboBox* CQuality;
73
        QRadioButton* doublePageLeft;
74
        QRadioButton* doublePageRight;
75
        QCheckBox* DSColor;
76
        QCheckBox* EmbedProfs;
77
        QCheckBox* EmbedProfs2;
78
        QCheckBox* Encry;
1307 fschmid 79
        QComboBox* ImageP;
4253 craig 80
        QComboBox* IntendI;
81
        QComboBox* IntendS;
82
        QToolButton* MirrorH;
83
        QToolButton* MirrorV;
84
        QCheckBox* ModifySec;
1307 fschmid 85
        QCheckBox* NoEmbedded;
4253 craig 86
        QComboBox* OutCombo;
87
        QListBox* Pages;
1307 fschmid 88
        QLineEdit* PassOwner;
89
        QLineEdit* PassUser;
4253 craig 90
        QComboBox* PDFVersionCombo;
91
        QComboBox* PrintProfC;
1307 fschmid 92
        QCheckBox* PrintSec;
4253 craig 93
        QSpinBox* Resolution;
94
        QComboBox* RotateDeg;
95
        QRadioButton* singlePage;
96
        QComboBox* SolidPr;
97
        QRadioButton* useBookmarks;
4197 fschmid 98
        QRadioButton* useFullScreen;
4253 craig 99
        QCheckBox* useLayers;
100
        QRadioButton* useLayers2;
101
        QCheckBox* UseLPI;
102
        QCheckBox* useSpot;
5320 fschmid 103
        QCheckBox* overprintMode;
4197 fschmid 104
        QRadioButton* useThumbnails;
4253 craig 105
        QSpinBox* ValC;
106
        // End GUI member pointers
107
 
3388 fschmid 108
signals:
109
        void noInfo();
110
        void hasInfo();
111
 
1307 fschmid 112
public slots:
113
        void ToggleEncr();
114
        void BleedChanged();
115
        void EnablePDFX(int a);
116
        void DoDownsample();
117
        void RemoveEmbed();
118
        void PutToEmbed();
119
        void RemoveSubset();
120
        void PutToSubset();
121
        void SelAFont(QListBoxItem*);
122
        void SelEFont(QListBoxItem*);
123
        void SelSFont(QListBoxItem*);
124
        void EmbedAll();
125
        void SubsetAll();
126
        void PagePr();
127
        void SetPgEff(int nr);
128
        void SetEffOpts(int nr);
129
        void ValidDI(int nr);
130
        void PDFMirror();
131
        void Rotation(int value);
132
        void DoEffects();
133
        void EffectOnAll();
134
        void SelRange(bool e);
135
        void EnablePr(int a);
136
        void EnablePG();
137
        void EnablePGI();
138
        void EnablePGI2();
139
        void EnableLPI(int a);
140
        void EnableLPI2();
141
        void SelLPIcol(int);
142
        void enableCMS(bool enable);
3388 fschmid 143
        void checkInfo();
1307 fschmid 144
 
145
protected:
4259 craig 146
        // PDFExportDialog should really privately inherit from us, but it can't
147
        // since it needs to be a dialog not a tab widget. Allow it access to
148
        // protected and private members instead. If we ever clean up the direct
149
        // widget access in this class, it might be able to privately inheirit and
150
        // be added to a very thin dialog class instead.
151
        friend class PDFExportDialog;
152
        int PgSel;
153
        QValueList<PDFPresentationData> EffVal;
154
        QString SelLPIcolor;
155
        QValueList<QString> FontsToEmbed;
156
        QValueList<QString> FontsToSubset;
4258 craig 157
 
4259 craig 158
        // PDFExportDialog needs access to these GUI members
159
        // but they don't need to be exposed to the rest of Scribus.
160
        QComboBox* actionCombo;
161
        QRadioButton* AllPages;
162
        QCheckBox* CheckBox10;
163
        QComboBox* EDirection;
164
        QComboBox* EDirection_2;
165
        QComboBox* EDirection_2_2;
166
        QSpinBox* EffectTime;
167
        QComboBox* EffectType;
168
        QCheckBox* fitWindow;
169
        QCheckBox* hideMenuBar;
170
        QCheckBox* hideToolBar;
171
        QLineEdit* InfoString;
172
        QSpinBox* LPIangle;
173
        QSpinBox* LPIfreq;
174
        QComboBox* LPIfunc;
175
        QLineEdit* PageNr;
176
        QSpinBox* PageTime;
177
 
178
private:
179
        // Private GUI member pointers, should not be used outside the class its
180
        // self.  Please ry to keep members here genuinely private, ie don't use
181
        // them even from friends. If you need to access it from a friend like
182
        // PDFExportDialog please move it to the protected section.
183
 
4255 craig 184
        QLabel* actionLabel;
185
        QListBox* AvailFlist;
186
        QGroupBox* BleedGroup;
187
        QGridLayout* BleedGroupLayout;
188
        QLabel* BleedIcon;
189
        QGroupBox* CBox;
1307 fschmid 190
        QGridLayout* CBoxLayout;
4255 craig 191
        QGroupBox* ColorGroup;
192
        QHBoxLayout* ColorGroupLayout;
193
        QLabel* ColorText1;
194
        QGroupBox* Effects;
195
        QGridLayout* EffectsLayout;
196
        QCheckBox* EmbedFonts;
197
        QListBox* EmbedList;
198
        QPushButton* EonAllPg;
199
        QPushButton* FromEmbed;
200
        QPushButton* FromSubset;
201
        QGroupBox* GroupBox1;
202
        QGridLayout* GroupBox1Layout;
203
        QGridLayout* GroupBox2Layout;
204
        QGroupBox* GroupBox9;
205
        QGridLayout* GroupBox9Layout;
206
        QGroupBox* groupDisplay;
207
        QVBoxLayout* groupDisplayLayout;
208
        QGroupBox* GroupFont;
209
        QHBoxLayout* GroupFontLayout;
210
        QGroupBox* groupJava;
211
        QHBoxLayout* groupJavaLayout;
212
        QButtonGroup* groupNavigation;
213
        QVBoxLayout* groupNavigationLayout;
214
        QGroupBox* GroupPass;
215
        QGridLayout* GroupPassLayout;
216
        QGroupBox* GroupSecSet;
217
        QVBoxLayout* GroupSecSetLayout;
218
        QGridLayout* Layout11;
219
        QGridLayout* Layout11a;
220
        QHBoxLayout* Layout13;
221
        QHBoxLayout* Layout2;
1307 fschmid 222
        QVBoxLayout* Layout3;
223
        QVBoxLayout* Layout4_2;
224
        QVBoxLayout* Layout5_2;
225
        QHBoxLayout* Layout5_2a;
226
        QVBoxLayout* Layout6;
4255 craig 227
        QHBoxLayout* LayoutSpecial;
228
        QComboBox* LPIcolor;
229
        QGroupBox* LPIgroup;
230
        QGridLayout* LPIgroupLayout;
231
        QRadioButton* OnlySome;
232
        QButtonGroup* pageLayout;
233
        QVBoxLayout* pageLayoutLayout;
234
        QCheckBox* PagePrev;
235
        QLabel* PDFX1;
236
        QLabel* PDFX2;
237
        QCheckBox* PrintSec2;
238
        QGroupBox* ProfsGroup;
239
        QGridLayout* ProfsGroupLayout;
240
        QLabel* ProfsTxt1;
241
        QLabel* ProfsTxt2;
242
        QLabel* ProfsTxt3;
243
        QLabel* ProfsTxt4;
244
        QButtonGroup* RangeGroup;
245
        QVBoxLayout* RangeGroupLayout;
246
        QCheckBox* SubsetFonts;
247
        QListBox* SubsetList;
248
        QWidget* tabColor;
249
        QVBoxLayout* tabColorLayout;
250
        QWidget* tabFonts;
251
        QWidget* tabGeneral;
252
        QVBoxLayout* tabLayout;
253
        QVBoxLayout* tabLayout_3;
1307 fschmid 254
        QGridLayout* tabLayout_5;
255
        QGridLayout* tabOptionsGridLayout;
4255 craig 256
        QWidget* tabPDFX;
1307 fschmid 257
        QVBoxLayout* tabPDFXLayout;
4255 craig 258
        QWidget* tabPresentation;
259
        QWidget* tabSecurity;
1307 fschmid 260
        QVBoxLayout* tabSecurityLayout;
4255 craig 261
        QWidget* tabSpecial;
4197 fschmid 262
        QVBoxLayout* tabSpecialLayout;
4255 craig 263
        QLabel* TextCom1;
264
        QLabel* TextCom2;
265
        QLabel* TextFont1;
266
        QLabel* TextFont1_2;
267
        QLabel* TextFont1_2a;
268
        QLabel* TextLabel1;
269
        QLabel* TextLabel1e;
270
        QLabel* TextLabel1x;
271
        QLabel* TextLabel2;
272
        QLabel* TextLabel2e;
273
        QLabel* TextLabel3;
274
        QLabel* TextLabel3e;
275
        QLabel* TextLabel4e;
276
        QLabel* TextLabel5e;
277
        QLabel* TextLabel6e;
278
        QLabel* textLPI1;
279
        QLabel* textLPI2;
280
        QLabel* textLPI3;
281
        QLabel* TextSec1;
282
        QLabel* TextSec2;
283
        QPushButton* ToEmbed;
284
        QPushButton* ToSubset;
285
        QRadioButton* useViewDefault;
286
        QGroupBox* X3Group;
287
        QGridLayout* X3GroupLayout;
288
        // end protected GUI member pointers
4197 fschmid 289
 
4259 craig 290
        // Non-GUI protected members
291
        QString unit;
292
        int precision;
293
        double unitRatio;
294
        ScribusView * const view;
4260 craig 295
        const SCFonts & AllFonts;
296
        PDFOptions & Opts;
4259 craig 297
        double pageH;
298
        double pageB;
299
        bool cms;
300
 
1307 fschmid 301
};
302
#endif