7 #ifndef SCRIBUSSTRUCTS_H
8 #define SCRIBUSSTRUCTS_H
17 #include <QKeySequence>
27 #include "scribusapi.h"
29 #include "annotation.h"
30 #include "fpointarray.h"
34 #include "scimagestructs.h"
35 #include "sctextstruct.h"
36 #include "vgradient.h"
37 #include "colormgmt/sccolormgmtstructs.h"
39 extern bool SCRIBUS_API compareDouble(
double,
double);
46 void getValues(
int& vr,
int& vg,
int& vb) {vr = r; vg = g; vb = b;}
55 void getValues(
int& vc,
int& vm,
int& vy,
int& vk) {vc = c; vm = m; vy = y; vk = k;}
61 QString contentsFileName;
69 ScImageEffectList effects;
72 eRenderIntent renderingIntent;
77 DocPagesSetup() : pageArrangement(0), firstPageLocation(0), firstPageNumber(0), orientation(0), autoTextFrames(
false), columnDistance(0), columnCount(1) {}
78 DocPagesSetup(
int pa,
int fpl,
int fpn,
int o,
bool atf,
double cd,
double cc) :
79 pageArrangement(pa), firstPageLocation(fpl), firstPageNumber(fpn), orientation(o), autoTextFrames(atf),
80 columnDistance(cd), columnCount(cc) {}
82 int firstPageLocation;
86 double columnDistance;
99 QStringList pageNames;
104 QString DefaultMonitorProfile;
105 QString DefaultPrinterProfile;
106 QString DefaultImageRGBProfile;
107 QString DefaultImageCMYKProfile;
108 QString DefaultSolidColorRGBProfile;
109 QString DefaultSolidColorCMYKProfile;
110 int ComponentsInput2;
111 eRenderIntent DefaultIntentImages;
112 eRenderIntent DefaultIntentColors;
115 bool SoftProofFullOn;
129 void setLineWidth(
double value) { Width = value; }
130 void setDash(
int value) { Dash = value; }
131 void setLineEnd(
int value) { LineEnd = value; }
132 void setLineJoin(
int value) { LineJoin = value; }
133 void setColor(
const QString& name) { Color = name; }
134 void setShade(
int value) { Shade = value; }
135 bool operator==(
const SingleLine& other)
const
137 if (!compareDouble(Width, other.Width) )
139 if ((Dash != other.Dash) || (LineEnd != other.LineEnd) || (LineJoin != other.LineJoin) ||
140 (Color != other.Color)|| (Shade != other.Shade))
144 bool operator!=(
const SingleLine& other)
const
146 return !(*
this == other);
155 double firstLineIndent;
158 Bullet() : name(
""), charStr(
""), indent(0.0), firstLineIndent(0.0), tabPosition(0.0), style(NULL) {}
159 Bullet(QString n, QString ch) : name(n), charStr(ch), indent(0.0), firstLineIndent(0.0), tabPosition(0.0), style(NULL) {}
160 Bullet(QString n, QString ch,
double first,
double ind,
double tab,
CharStyle* chStyle)
161 { name = n; charStr = ch, firstLineIndent = first; indent = ind; tabPosition = tab; style = chStyle; }
174 pageEffectDuration = 1;
175 pageViewDuration = 1;
179 int pageEffectDuration;
180 int pageViewDuration;
197 QString cleanMenuText;
198 QKeySequence keySequence;
211 typedef QMap<QString, PrintEngine> PrintEngineMap;
217 bool useAltPrintCommand;
218 bool outputSeparations;
229 bool registrationMarks;
231 bool includePDFMarks;
233 PrintEngine prnEngine;
237 std::vector<int> pageNumbers;
238 QString printerOptions;
241 QString separationName;
242 QStringList allSeparations;
243 QString printerCommand;
247 typedef QMap<QString,QString> ProfilesL;
253 bool operator!=(
const multiLine& other)
const
255 return !(this->operator ==(other));
271 WrongFontInAnnotation = 12,
273 DeviceColorsAndOutputIntent = 14,
274 FontNotEmbedded = 15,
275 EmbeddedFontIsOpenType = 16,
276 OffConflictLayers = 17,
277 PartFilledImageFrame = 18,
279 AppliedMasterDifferentSide = 20,
283 typedef QMap<PreflightError, int> errorCodes;
296 QList<PageItem*> Objects;
310 reqCharStylesUpdate = 2,
311 reqParaStylesUpdate = 4,
312 reqTextStylesUpdate = 6,
313 reqArrowStylesUpdate = 8,
314 reqLineStylesUpdate = 16,
315 reqSymbolsUpdate = 32,
316 reqDefFontListUpdate = 64,
317 reqDocFontListUpdate = 128,
318 reqStyleComboDocUpdate = 256,
319 reqCmsOptionsUpdate = 512,
320 reqCustomShapeUpdate = 1024,
321 reqInlinePalUpdate = 2048,
322 reqMarksUpdate = 4096,
328 typedef QList<double> Guides;
357 if (val.isEmpty() || (val ==
""))
378 QString extractfiles;
393 QString downloadLocation;
394 QString destinationLocation;
395 QString destinationName;
396 typedef enum {New, Started, Paused, Finished, Successful, Failed} DownloadState;
Definition: scribusstructs.h:171
Definition: charstyle.h:78
Definition: scribusstructs.h:194
Pagemargins and bleeds.
Definition: margins.h:25
Definition: scribusstructs.h:49
Definition: scribusstructs.h:120
Definition: scribusstructs.h:90
Definition: scribusstructs.h:75
Definition: scribusstructs.h:41
Definition: scribusstructs.h:213
Definition: scribusstructs.h:373
from ols scribusXml
Definition: scribusstructs.h:331
Definition: scribusstructs.h:286
Definition: scribusstructs.h:187
Definition: scribusstructs.h:164
ItemType
Item Type.
Definition: pageitem.h:174
Definition: fpointarray.h:42
Definition: scribusstructs.h:58
Definition: scribusstructs.h:250
Definition: scribusstructs.h:349
Definition: scribusstructs.h:150
Definition: scribusstructs.h:338
Definition: scribusstructs.h:102
Definition: scribusstructs.h:388