26
27
#include "annotation.h"
27
28
#include "pageitem.h"
30
extern bool SCRIBUS_API compareDouble(double, double);
37
void getValues(int& vr, int& vg, int& vb) {vr = r; vg = g; vb = b;}
46
void getValues(int& vc, int& vm, int& vy, int& vk) {vc = c; vm = m; vy = y; vk = k;}
29
49
struct CopyPasteBuffer
31
51
PageItem::ItemType PType;
155
183
int renderingIntent;
161
MarginStruct() : Top(0), Left(0), Bottom(0), Right(0) {}
162
MarginStruct(double top, double left, double bottom, double right) :
163
Top(top), Left(left), Bottom(bottom), Right(right) {}
186
/** \brief Pagemargins and bleeds*/
190
MarginStruct() : Top(0), Left(0), Bottom(0), Right(0) {}
191
MarginStruct(double top, double left, double bottom, double right) :
192
Top(top), Left(left), Bottom(bottom), Right(right) {}
193
MarginStruct(const MarginStruct& rhs) {Top=rhs.Top;Bottom=rhs.Bottom;Left=rhs.Left;Right=rhs.Right;}
202
DocPagesSetup() : pageArrangement(0), firstPageLocation(0), firstPageNumber(0), orientation(0), autoTextFrames(false), columnDistance(0), columnCount(1) {}
203
DocPagesSetup(int pa, int fpl, int fpn, int o, bool atf, double cd, double cc) :
204
pageArrangement(pa), firstPageLocation(fpl), firstPageNumber(fpn), orientation(o), autoTextFrames(atf),
205
columnDistance(cd), columnCount(cc) {}
207
int firstPageLocation;
211
double columnDistance;
179
224
QStringList pageNames;
182
struct ParagraphStyle
185
int LineSpaMode; // 0 = fixed; 1 = Automatic; 2 = Adjust to Baseline Grid
194
QValueList<PageItem::TabRecord> TabValues;
219
229
QString DefaultMonitorProfile;
220
230
QString DefaultPrinterProfile;
221
231
QString DefaultImageRGBProfile;
222
232
QString DefaultImageCMYKProfile;
223
QString DefaultSolidColorProfile;
233
QString DefaultSolidColorRGBProfile;
234
QString DefaultSolidColorCMYKProfile;
224
235
int ComponentsInput2;
236
int ComponentsInput3;
225
237
int ComponentsPrinter;
226
int DefaultIntentMonitor;
227
238
int DefaultIntentImages;
228
int DefaultIntentPrinter;
239
int DefaultIntentColors;
230
241
bool SoftProofOn;
242
bool SoftProofFullOn;
255
// setter necessary for use with serializer/digester
256
void setLineWidth(double value) { Width = value; }
257
void setDash(int value) { Dash = value; }
258
void setLineEnd(int value) { LineEnd = value; }
259
void setLineJoin(int value) { LineJoin = value; }
260
void setColor(const QString& name) { Color = name; }
261
void setShade(int value) { Shade = value; }
262
bool operator==(const SingleLine& other) const
264
if (!compareDouble(Width, other.Width) )
266
if ((Dash != other.Dash) || (LineEnd != other.LineEnd) || (LineJoin != other.LineJoin) ||
267
(Color != other.Color)|| (Shade != other.Shade))
271
bool operator!=(const SingleLine& other) const
273
return !(*this == other);
305
339
bool setDevParam;
343
bool registrationMarks;
307
349
std::vector<int> pageNumbers;
308
350
QString printerOptions;
353
QString separationName;
354
QStringList allSeparations;
355
QString printerCommand;
311
358
typedef QMap<QString,QString> ProfilesL;
312
typedef QValueVector<SingleLine> multiLine;
359
// typedef QValueVector<SingleLine> multiLine;
361
class multiLine : public QValueVector<SingleLine> {
364
bool operator!=(const multiLine& other) const
366
return !(this->operator ==(other));