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