Back to index

scribus-ng  1.3.4.dfsg+svn20071115
prefsstructs.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef PREFSSTRUCTS_H
00008 #define PREFSSTRUCTS_H
00009 
00010 #ifdef HAVE_CONFIG_H
00011 #include "scconfig.h"
00012 #endif
00013 
00014 #include <qcolor.h>
00015 #include <qstring.h>
00016 #include "scribusstructs.h"
00017 #include "pdfoptions.h"
00018 #include "scfonts.h"
00019 
00020 struct checkerPrefs
00021 {
00022        bool ignoreErrors;
00023        bool autoCheck;
00024        bool checkGlyphs;
00025        bool checkOverflow;
00026        bool checkOrphans;
00027        bool checkPictures;
00028        bool checkResolution;
00029        double minResolution;
00030        double maxResolution;
00031        bool checkTransparency;
00032        bool checkAnnotations;
00033        bool checkRasterPDF;
00034        bool checkForGIF;
00035        bool ignoreOffLayers;
00036 };
00037 
00038 typedef QMap<QString, checkerPrefs> CheckerPrefsList;
00039 
00040 struct typoPrefs
00041 {
00042        int valueSuperScript;
00043        int scalingSuperScript;
00044        int valueSubScript;
00045        int scalingSubScript;
00046        int valueSmallCaps;
00047        int autoLineSpacing;
00048        int valueUnderlinePos;
00049        int valueUnderlineWidth;
00050        int valueStrikeThruPos;
00051        int valueStrikeThruWidth;
00052        double valueBaseGrid;
00053        double offsetBaseGrid;
00054 };
00055 
00056 struct windowPrefs
00057 {
00058        int xPosition;
00059        int yPosition;
00060        int width;
00061        int height;
00062        bool visible;
00063        bool docked;
00064        bool maximized;
00065 };
00066 
00067 struct guidesPrefs
00068 {
00069        bool gridShown;
00070        QColor majorColor;
00071        double majorGrid;
00072        double minorGrid;
00073        QColor minorColor;
00074        double guideRad;
00075        int grabRad;
00076        bool framesShown;
00077        bool guidesShown;
00078        bool colBordersShown;
00079        bool marginsShown;
00080        bool baseShown;
00081        bool linkShown;
00082        bool showPic;
00083        bool showControls;
00084        bool showBleed;
00085        bool rulerMode;
00086        bool rulersShown;
00087        bool layerMarkersShown;
00088        bool before;
00089        QColor guideColor;
00090        QColor baseColor;
00091        QColor margColor;
00092 };
00093 
00094 struct toolPrefs
00095 {
00096        /* Texttool */
00097        QString defFont;
00098        int defSize;
00099        QString dPenText;
00100        int dTextPenShade;
00101        QString dStrokeText;
00102        int dTextStrokeShade;
00103        QString dTextBackGround;
00104        QString dTextLineColor;
00105        int dTextBackGroundShade;
00106        int dTextLineShade;
00107        int dCols;
00108        double dGap;
00109        QString tabFillChar;
00110        double dTabWidth;
00111        /* ShapeTool */
00112        QString dPen;
00113        QString dBrush;
00114        int dShade;
00115        int dShade2;
00116        int dLineArt;
00117        double dWidth;
00118        /* Line Tool */
00119        QString dPenLine;
00120        int dShadeLine;
00121        double dWidthLine;
00122        int dLstyleLine;
00123        int dStartArrow;
00124        int dEndArrow;
00125        /* Regular Polygon Tool */
00126        int polyC;
00127        int polyFd;
00128        double polyF;
00129        bool polyS;
00130        double polyR;
00131        /* Picture Tool */
00132        QString dBrushPict;
00133        int shadePict;
00134        double scaleX;
00135        double scaleY;
00136        bool scaleType;
00137        bool aspectRatio;
00138        int lowResType;
00139        bool useEmbeddedPath;
00140        /* Magnifier Tool */
00141        int magMin;
00142        int magMax;
00143        int magStep;
00144        /* Item Duplicate Offset */
00145        double dispX;
00146        double dispY;
00147        /* Rotation Tool constrain value */
00148        double constrain;
00149 };
00150 
00151 struct ApplicationPrefs
00152 {
00153        SCFonts AvailFonts;
00154        QValueList<ArrowDesc> arrowStyles;
00155        QValueList<PageSet> pageSets;
00156        ColorList DColors;
00157        int moveTimeout;
00158        int Wheelval;
00159        int AppFontSize;
00160        int PaletteFontSize;
00161        QColor DpapColor;
00162        QColor DFrameColor;
00163        QColor DFrameNormColor;
00164        QColor DFrameGroupColor;
00165        QColor DFrameLinkColor;
00166        QColor DFrameLockColor;
00167        QColor DFrameAnnotationColor;
00168        QColor DPageBorderColor;
00169        QColor DControlCharColor;
00170        QString GUI;
00171        guidesPrefs guidesSettings;
00172        typoPrefs typographicSettings;
00173        toolPrefs toolSettings;
00174        CheckerPrefsList checkerProfiles;
00175        QString curCheckProfile;
00176        int docUnitIndex;
00177        windowPrefs mainWinSettings;
00178        
00179        MarginStruct bleeds;
00180 
00181        PDFOptions PDF_Options;
00182        ObjAttrVector defaultItemAttributes;
00183        ToCSetupVector defaultToCSetups;
00184        bool SepalT;
00185        bool SepalN;
00186 //     int PSize;
00187        bool marginColored;
00188        QStringList RecentDocs;
00189        QStringList RecentScrapbooks;
00190        int numScrapbookCopies;
00191        bool doCopyToScrapbook;
00192        bool persistentScrapbook;
00193        uint RecentDCount;
00194        CMSData DCMSset;
00195        QMap<QString,Keys> KeyActions;
00196        QString PrinterName;
00197        QString PrinterFile;
00198        QString PrinterCommand;
00199        QString pageSize;
00200        int pageOrientation;
00201        double PageWidth;
00202        double PageHeight;
00203        MarginStruct margins;
00204        int FacingPages;
00205        int MinWordLen;
00206        int HyCount;
00207        QString Language;
00208        QString guiLanguage;
00209        bool Automatic;
00210        bool AutoCheck;
00211        QString DocDir;
00212        QString ProfileDir;
00213        QString ScriptDir;
00214        QString documentTemplatesDir;
00215        QMap<QString,QString> GFontSub;
00216        bool AutoSave;
00217        int AutoSaveTime;
00218        double DisScale;
00219        QString DColorSet;
00220        QStringList CustomColorSets;
00221        bool PrPr_Mode;
00222        bool Gcr_Mode;
00223        bool doOverprint;
00224        bool PrPr_AntiAliasing;
00225        bool PrPr_Transparency;
00226        bool PrPr_C;
00227        bool PrPr_M;
00228        bool PrPr_Y;
00229        bool PrPr_K;
00230        QString gs_exe;
00231        bool gs_AntiAliasText;
00232        bool gs_AntiAliasGraphics;
00233        int gs_Resolution;
00234        QString imageEditorExecutable;
00235        QString extBrowserExecutable;
00236        bool ClipMargin;
00237        bool GCRMode;
00238        QColor STEcolor;
00239        QString STEfont;
00240        MarginStruct scratch;
00241 /*     double ScratchLeft;
00242        double ScratchRight;
00243        double ScratchTop;
00244        double ScratchBottom;*/
00245        bool askBeforeSubstituite;
00246        bool haveStylePreview;
00247        bool showToolTips;
00248        // lorem ipsum
00249        bool useStandardLI;
00250        int paragraphsLI;
00251        bool showStartupDialog;
00252        bool stickyTools;
00253 };
00254 
00255 #endif