~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/tabpdfoptions.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
class PDFOptions;
35
35
class PDFExportDialog;
 
36
class ScribusDoc;
36
37
 
37
38
class SCRIBUS_API TabPDFOptions : public QTabWidget
38
39
{
42
43
        TabPDFOptions(  QWidget* parent, PDFOptions & Optionen,
43
44
                        const SCFonts &AllFonts,
44
45
                        const ProfilesL & PDFXProfiles,
45
 
                        const QMap<QString,int> & DocFonts,
 
46
                        const QMap<QString, int> & DocFonts,
46
47
                        const QValueList<PDFPresentationData> & Eff,
47
48
                        int unitIndex, double PageH, double PageB,
48
 
                        ScribusView *vie = 0 );
 
49
                        ScribusDoc *mdoc = 0, bool exporting = false);
49
50
        ~TabPDFOptions() {};
50
 
        void restoreDefaults();
 
51
        void restoreDefaults(PDFOptions & Optionen,
 
52
                                                 const SCFonts &AllFonts,
 
53
                                                 const ProfilesL & PDFXProfiles,
 
54
                                                 const QMap<QString, int> & DocFonts,
 
55
                                                 const QValueList<PDFPresentationData> & Eff,
 
56
                                                 int unitIndex, double PageH, double PageB,
 
57
                                                 ScribusDoc *mdoc, bool exporting);
51
58
 
52
 
        void unitChange(int newUnitIndex);
 
59
        void unitChange(QString unit, int docUnitIndex, int decimals, double invUnitConversion);
53
60
 
54
61
        // GUI member pointers
55
62
        // Remember to initialize these in the initializer list of the ctor when
100
107
        QRadioButton* useLayers2;
101
108
        QCheckBox* UseLPI;
102
109
        QCheckBox* useSpot;
 
110
        QCheckBox* overprintMode;
103
111
        QRadioButton* useThumbnails;
104
112
        QSpinBox* ValC;
105
113
        // End GUI member pointers
109
117
        void hasInfo();
110
118
 
111
119
public slots:
 
120
        void doDocBleeds();
112
121
        void ToggleEncr();
113
 
        void BleedChanged();
114
122
        void EnablePDFX(int a);
115
123
        void DoDownsample();
116
124
        void RemoveEmbed();
117
125
        void PutToEmbed();
118
 
        void RemoveSubset();
119
 
        void PutToSubset();
 
126
        void RemoveOutline();
 
127
        void PutToOutline();
120
128
        void SelAFont(QListBoxItem*);
121
129
        void SelEFont(QListBoxItem*);
122
130
        void SelSFont(QListBoxItem*);
123
131
        void EmbedAll();
124
 
        void SubsetAll();
 
132
        void OutlineAll();
125
133
        void PagePr();
126
134
        void SetPgEff(int nr);
127
135
        void SetEffOpts(int nr);
141
149
        void enableCMS(bool enable);
142
150
        void checkInfo();
143
151
 
 
152
protected slots:
 
153
        void createPageNumberRange();
 
154
 
144
155
protected:
145
156
        // PDFExportDialog should really privately inherit from us, but it can't
146
157
        // since it needs to be a dialog not a tab widget. Allow it access to
152
163
        QValueList<PDFPresentationData> EffVal;
153
164
        QString SelLPIcolor;
154
165
        QValueList<QString> FontsToEmbed;
155
 
        QValueList<QString> FontsToSubset;
 
166
        QValueList<QString> FontsToOutline;
156
167
 
157
168
        // PDFExportDialog needs access to these GUI members
158
169
        // but they don't need to be exposed to the rest of Scribus.
184
195
        QListBox* AvailFlist;
185
196
        QGroupBox* BleedGroup;
186
197
        QGridLayout* BleedGroupLayout;
187
 
        QLabel* BleedIcon;
 
198
        QGroupBox* MarkGroup;
 
199
        QGridLayout* MarkGroupLayout;
 
200
        QCheckBox* cropMarks;
 
201
        QCheckBox* bleedMarks;
 
202
        QCheckBox* registrationMarks;
 
203
        QCheckBox* colorMarks;
 
204
        QCheckBox* docInfoMarks;
 
205
        MSpinBox* markOffset;
188
206
        QGroupBox* CBox;
189
207
        QGridLayout* CBoxLayout;
190
208
        QGroupBox* ColorGroup;
196
214
        QListBox* EmbedList;
197
215
        QPushButton* EonAllPg;
198
216
        QPushButton* FromEmbed;
199
 
        QPushButton* FromSubset;
 
217
        QPushButton* FromOutline;
200
218
        QGroupBox* GroupBox1;
201
219
        QGridLayout* GroupBox1Layout;
202
220
        QGridLayout* GroupBox2Layout;
215
233
        QGroupBox* GroupSecSet;
216
234
        QVBoxLayout* GroupSecSetLayout;
217
235
        QGridLayout* Layout11;
 
236
        QHBoxLayout *pageNumberSelectorLayout;
218
237
        QGridLayout* Layout11a;
219
238
        QHBoxLayout* Layout13;
220
239
        QHBoxLayout* Layout2;
240
259
        QLabel* ProfsTxt2;
241
260
        QLabel* ProfsTxt3;
242
261
        QLabel* ProfsTxt4;
 
262
        QLabel* BleedTxt1;
 
263
        QLabel* BleedTxt2;
 
264
        QLabel* BleedTxt3;
 
265
        QLabel* BleedTxt4;
 
266
        QLabel* MarkTxt1;
 
267
        QCheckBox *docBleeds;
243
268
        QButtonGroup* RangeGroup;
244
269
        QVBoxLayout* RangeGroupLayout;
245
 
        QPushButton* SubsetFonts;
246
 
        QListBox* SubsetList;
 
270
        QHBoxLayout* RotationLayout;
 
271
        QPushButton* OutlineFonts;
 
272
        QListBox* OutlineList;
247
273
        QWidget* tabColor;
248
274
        QVBoxLayout* tabColorLayout;
249
275
        QWidget* tabFonts;
279
305
        QLabel* textLPI3;
280
306
        QLabel* TextSec1;
281
307
        QLabel* TextSec2;
 
308
        QPushButton* pageNrButton;
282
309
        QPushButton* ToEmbed;
283
 
        QPushButton* ToSubset;
 
310
        QPushButton* ToOutline;
284
311
        QRadioButton* useViewDefault;
285
312
        QGroupBox* X3Group;
286
313
        QGridLayout* X3GroupLayout;
290
317
        QString unit;
291
318
        int precision;
292
319
        double unitRatio;
293
 
        ScribusView * const view;
 
320
        bool pdfExport;
 
321
        ScribusDoc* const doc;
294
322
        const SCFonts & AllFonts;
295
323
        PDFOptions & Opts;
296
324
        double pageH;
297
325
        double pageB;
298
326
        bool cms;
 
327
        QMap<QString, QString> AnnotationFonts;
299
328
 
300
329
};
301
330
#endif