• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_Prefs_SchemeIds.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 1998-2000 AbiSource, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 /*****************************************************************
00021 ******************************************************************
00022 ** IT IS IMPORTANT THAT THIS FILE ALLOW ITSELF TO BE INCLUDED
00023 ** MORE THAN ONE TIME.
00024 ******************************************************************
00025 *****************************************************************/
00026 
00027 #ifndef AP_PREFS_SCHEMEIDS_H
00028 #define AP_PREFS_SCHEMEIDS_H
00029 
00030 #ifdef HAVE_CONFIG_H
00031 #include "config.h"
00032 #endif
00033 
00034 #include "ap_Features.h"
00035 
00037 // The following are the set of application-dependent preference keys and the
00038 // set of default values for them.  Each item must have the AP_PREF_KEY_ prefix
00039 // and each value must have the XAP_PREF_DEFAULT_ prefix.  Default values *must* obey
00040 // XML encoding rules if they contain any double quote ("), ampersand (&),
00041 // or angle bracket (< and >) characters.
00042 //
00043 // ***FOR EACH PAIR DEFINED, ADD A 'dcl(basename)' TO THE BOTTOM HALF OF THIS FILE***
00044 //
00045 // Note: These are in addition to the application-independent ones defined in
00046 // abi/src/xap/xp/xap_Prefs_SchemeIds.h.
00048 
00049 #define AP_PREF_KEY_CursorBlink                     "CursorBlink"               /* enable cursor blink {0,1} */
00050 #define AP_PREF_DEFAULT_CursorBlink                 "1"
00051 
00052 #define AP_PREF_KEY_AutoSpellCheck                  "AutoSpellCheck"            /* enable automatic spell check {0,1} */
00053 #define AP_PREF_DEFAULT_AutoSpellCheck              "1"
00054 
00055 #define AP_PREF_KEY_AutoGrammarCheck            "AutoGrammarCheck"          /* enable automatic grammar check {0,1} */
00056 #define AP_PREF_DEFAULT_AutoGrammarCheck        "0"
00057 
00058 #define AP_PREF_KEY_DisplayAnnotations          "DisplayAnnotations"            /* enable display of annotations (0,1) */
00059 #define AP_PREF_DEFAULT_DisplayAnnotations          "0"
00060 
00061 #define AP_PREF_KEY_DisplayRDFAnchors           "DisplayRDFAnchors"         /* enable display of RDF anchors (0,1) */
00062 #define AP_PREF_DEFAULT_DisplayRDFAnchors       "0"
00063 
00064 #define AP_PREF_KEY_SpellCheckCaps                  "SpellCheckCaps"            /* enable checking CAPITALIZED words {0,1} */
00065 #define AP_PREF_DEFAULT_SpellCheckCaps              "1"
00066 
00067 #define AP_PREF_KEY_SpellCheckNumbers               "SpellCheckNumbers"         /* enable spell checking numbers {0,1} */
00068 #define AP_PREF_DEFAULT_SpellCheckNumbers           "1"
00069 
00070 #define AP_PREF_KEY_SpellCheckInternet              "SpellCheckInternet"        /* enable spell checking internet names {0,1} */
00071 #define AP_PREF_DEFAULT_SpellCheckInternet          "1"
00072 
00073 #define AP_PREF_KEY_SpellAutoReplace                "SpellAutoReplace" /* automatically substitute "incorrect" words with replacements */
00074 #define AP_PREF_DEFAULT_SpellAutoReplace            "0"
00075 
00076 #define AP_PREF_KEY_OptionsTabNumber                "OptionsTabNumber"          /* the page number of the currently shown page in the */
00077 #define AP_PREF_DEFAULT_OptionsTabNumber            "0"                         /* options dialog */
00078 
00079 #define AP_PREF_KEY_RulerUnits                      "RulerUnits"                /* value in UT_dimensionName() */
00080 #define AP_PREF_DEFAULT_RulerUnits                  "in"
00081 
00082 
00083 #define AP_PREF_KEY_RulerVisible                    "RulerVisible"              /* are the rulers visible? {0,1} */
00084 #ifdef EMBEDDED_TARGET
00085 #define AP_PREF_DEFAULT_RulerVisible                "0"
00086 #else
00087 #define AP_PREF_DEFAULT_RulerVisible                "1"
00088 #endif
00089 
00090 #   define AP_PREF_KEY_SimpleBarVisible                 "SimpleBarVisible"          /* is the extra toolbar visible? {0,1} */
00091 #   define AP_PREF_KEY_StandardBarVisible               "StandardBarVisible"        /* is the standard toolbar visible? {0,1} */
00092 #   define AP_PREF_KEY_FormatBarVisible             "FormatBarVisible"          /* is the format toolbar visible? {0,1} */
00093 #   define AP_PREF_KEY_ExtraBarVisible                  "ExtraBarVisible"           /* is the extra toolbar visible? {0,1} */
00094 #   define AP_PREF_KEY_TableBarVisible                  "TableBarVisible"           /* is the table toolbar visible? {0,1} */
00095 #   define AP_PREF_DEFAULT_SimpleBarVisible             "0"
00096 #if XAP_SIMPLE_TOOLBAR
00097 #   define AP_PREF_DEFAULT_StandardBarVisible           "0"
00098 #   define AP_PREF_DEFAULT_FormatBarVisible         "0"
00099 #else
00100 #   define AP_PREF_DEFAULT_StandardBarVisible           "1"
00101 #   define AP_PREF_DEFAULT_FormatBarVisible         "1"
00102 #endif
00103 #   define AP_PREF_DEFAULT_ExtraBarVisible              "0"
00104 #   define AP_PREF_DEFAULT_TableBarVisible              "0"
00105 
00106 
00107 #define AP_PREF_KEY_StatusBarVisible                "StatusBarVisible"          /* is the status bar visible? {0,1} */
00108 #ifdef EMBEDDED_TARGET
00109 #define AP_PREF_DEFAULT_StatusBarVisible            "0"
00110 #else
00111 #define AP_PREF_DEFAULT_StatusBarVisible            "1"
00112 #endif
00113 
00114 
00115 #define AP_PREF_KEY_ParaVisible                     "ParaVisible"               /* are the paragraphs/spaces/tats/etc. visible? {0,1} */
00116 #define AP_PREF_DEFAULT_ParaVisible                 "0"
00117 
00118 
00119 #define AP_PREF_KEY_StringSet                       "StringSet"                 /* name of dialog/msgbox strings */
00120 #define AP_PREF_DEFAULT_StringSet                   "en-US"
00121 
00122 #define AP_PREF_KEY_KeyBindings                     "KeyBindings"
00123 #define AP_PREF_DEFAULT_KeyBindings                 "default"                   /* value in ap_LoadBindings.cpp */
00124 
00125 #define AP_PREF_KEY_KeyBindingsCycle                "KeyBindingsCycle"          /* does F12 cycle keybindings? {0,1} */
00126 #define AP_PREF_DEFAULT_KeyBindingsCycle            "0"
00127 
00128 #define AP_PREF_KEY_InsertMode                      "InsertMode"
00129 #define AP_PREF_DEFAULT_InsertMode                  "1"                         /* overwrite or insert? {0,1} */
00130 
00131 #define AP_PREF_KEY_InsertModeToggle                "InsertModeToggle"          /* does INS key toggle modes? {0,1} */
00132 #define AP_PREF_DEFAULT_InsertModeToggle            "0"
00133 
00134 #define AP_PREF_KEY_MenuLayout                      "MenuLayouts"
00135 #define AP_PREF_DEFAULT_MenuLayout                  "Main"                      /* value in BeginLayout() */
00136 
00137 
00138 #define AP_PREF_KEY_ToolbarLayouts                  "ToolbarLayouts"
00139 #if defined (EMBEDDED_TARGET) && EMBEDDED_TARGET != EMBEDDED_TARGET_HILDON
00140 #   define AP_PREF_DEFAULT_ToolbarLayouts               "Embedded"      /* values in BeginLayout() */
00141 #elif XAP_SIMPLE_TOOLBAR
00142 #   define AP_PREF_DEFAULT_ToolbarLayouts               "SimpleOps"     /* values in BeginLayout() */
00143 #else
00144 #   define AP_PREF_DEFAULT_ToolbarLayouts               "FileEditOps FormatOps TableOps ExtraOps"       /* values in BeginLayout() */
00145 #endif
00146 
00147 #define AP_PREF_KEY_SpellDirectory                  "SpellCheckDirectory"       /* where we find hash files */
00148 #define AP_PREF_DEFAULT_SpellDirectory              "dictionary"                /* if relative, use prefix "getAbiSuiteLibDir()" */
00149 
00150 #define AP_PREF_KEY_StringSetDirectory              "StringSetDirectory"        /* where we find StringSets */
00151 #define AP_PREF_DEFAULT_StringSetDirectory          "strings"                   /* if relative, use prefix "getAbiSuiteAppDir()" */
00152 
00153 #define AP_PREF_KEY_LayoutMode                     "layoutMode"
00154 #ifdef EMBEDDED_TARGET
00155 #define AP_PREF_DEFAULT_LayoutMode                 "2" /* 1=print, 2=normal, 3=web */
00156 #else
00157 #define AP_PREF_DEFAULT_LayoutMode                 "1" /* 1=print, 2=normal, 3=web */
00158 #endif
00159 
00160 #define AP_PREF_KEY_AlwaysPromptEncoding            "AlwaysPromptEncoding"      /* if true, always show encoding dialog when importing/exporting text */
00161 #define AP_PREF_DEFAULT_AlwaysPromptEncoding        "0"
00162 
00163 #define AP_PREF_KEY_DefaultDirectionRtl             "DefaultDirectionRtl"       /* the deafault direction of text is rtl */
00164 #ifndef BIDI_RTL_DOMINANT
00165 #define AP_PREF_DEFAULT_DefaultDirectionRtl         "0"
00166 #else
00167 #define AP_PREF_DEFAULT_DefaultDirectionRtl         "1"
00168 #endif
00169 
00170 #define AP_PREF_KEY_DefaultSaveFormat "DefaultSaveFormat"
00171 #define AP_PREF_DEFAULT_DefaultSaveFormat ".abw"
00172 #define AP_PREF_KEY_CloseOnLastDoc "CloseOnLastDoc"
00173 #define AP_PREF_DEFAULT_CloseOnLastDoc "0"
00174 
00175 #define AP_PREF_KEY_LockStyles "LockStyles"
00176 #define AP_PREF_DEFAULT_LockStyles "0"
00177 
00178 #define AP_PREF_KEY_ColorForAnnotation1             "ColorAnnotation1"
00179 #define AP_PREF_DEFAULT_ColorForAnnotation1         "ab04fe"
00180 #define AP_PREF_KEY_ColorForAnnotation2             "ColorAnnotation2"
00181 #define AP_PREF_DEFAULT_ColorForAnnotation2         "ab1477"
00182 #define AP_PREF_KEY_ColorForAnnotation3             "ColorAnnotation3"
00183 #define AP_PREF_DEFAULT_ColorForAnnotation3         "ff9708"
00184 #define AP_PREF_KEY_ColorForAnnotation4             "ColorAnnotation4"
00185 #define AP_PREF_DEFAULT_ColorForAnnotation4         "9eb345"
00186 #define AP_PREF_KEY_ColorForAnnotation5             "ColorAnnotation5"
00187 #define AP_PREF_DEFAULT_ColorForAnnotation5         "0fb305"
00188 #define AP_PREF_KEY_ColorForAnnotation6             "ColorAnnotation6"
00189 #define AP_PREF_DEFAULT_ColorForAnnotation6         "08b3f8"
00190 #define AP_PREF_KEY_ColorForAnnotation7             "ColorAnnotation7"
00191 #define AP_PREF_DEFAULT_ColorForAnnotation7         "04cec3"
00192 #define AP_PREF_KEY_ColorForAnnotation8             "ColorAnnotation8"
00193 #define AP_PREF_DEFAULT_ColorForAnnotation8         "0485c3"
00194 #define AP_PREF_KEY_ColorForAnnotation9             "ColorAnnotation9"
00195 #define AP_PREF_DEFAULT_ColorForAnnotation9         "0712c3"
00196 #define AP_PREF_KEY_ColorForAnnotation10                "ColorAnnotation10"
00197 #define AP_PREF_DEFAULT_ColorForAnnotation10            "ff0000"
00198 
00199 #define AP_PREF_KEY_ColorForRDFAnchor1              "ColorRDFAnchor1"
00200 #define AP_PREF_DEFAULT_ColorForRDFAnchor1          "ab04fe"
00201 #define AP_PREF_KEY_ColorForRDFAnchor2              "ColorRDFAnchor2"
00202 #define AP_PREF_DEFAULT_ColorForRDFAnchor2          "ab1477"
00203 #define AP_PREF_KEY_ColorForRDFAnchor3              "ColorRDFAnchor3"
00204 #define AP_PREF_DEFAULT_ColorForRDFAnchor3          "ff9708"
00205 #define AP_PREF_KEY_ColorForRDFAnchor4              "ColorRDFAnchor4"
00206 #define AP_PREF_DEFAULT_ColorForRDFAnchor4          "9eb345"
00207 #define AP_PREF_KEY_ColorForRDFAnchor5              "ColorRDFAnchor5"
00208 #define AP_PREF_DEFAULT_ColorForRDFAnchor5          "0fb305"
00209 #define AP_PREF_KEY_ColorForRDFAnchor6              "ColorRDFAnchor6"
00210 #define AP_PREF_DEFAULT_ColorForRDFAnchor6          "08b3f8"
00211 #define AP_PREF_KEY_ColorForRDFAnchor7              "ColorRDFAnchor7"
00212 #define AP_PREF_DEFAULT_ColorForRDFAnchor7          "04cec3"
00213 #define AP_PREF_KEY_ColorForRDFAnchor8              "ColorRDFAnchor8"
00214 #define AP_PREF_DEFAULT_ColorForRDFAnchor8          "0485c3"
00215 #define AP_PREF_KEY_ColorForRDFAnchor9              "ColorRDFAnchor9"
00216 #define AP_PREF_DEFAULT_ColorForRDFAnchor9          "0712c3"
00217 #define AP_PREF_KEY_ColorForRDFAnchor10             "ColorRDFAnchor10"
00218 #define AP_PREF_DEFAULT_ColorForRDFAnchor10         "ff0000"
00219 
00220 #else /* AP_PREFS_SCHEMEIDS_H */
00221 #ifdef dcl
00222 
00223 dcl(CloseOnLastDoc)
00224 dcl(DefaultSaveFormat)
00225 dcl(CursorBlink)
00226 dcl(AutoSpellCheck)
00227 dcl(AutoGrammarCheck)
00228 dcl(SpellCheckCaps)
00229 dcl(SpellCheckNumbers)
00230 dcl(SpellCheckInternet)
00231 dcl(SpellAutoReplace)
00232 dcl(OptionsTabNumber)
00233 dcl(RulerUnits)
00234 dcl(RulerVisible)
00235 dcl(SimpleBarVisible)
00236 dcl(StandardBarVisible)
00237 dcl(FormatBarVisible)
00238 dcl(ExtraBarVisible)
00239 dcl(TableBarVisible)
00240 dcl(StatusBarVisible)
00241 dcl(ParaVisible)
00242 dcl(StringSet)
00243 dcl(KeyBindings)
00244 dcl(KeyBindingsCycle)
00245 dcl(InsertMode)
00246 dcl(InsertModeToggle)
00247 dcl(MenuLayout)
00248 dcl(ToolbarLayouts)
00249 dcl(LayoutMode)
00250 dcl(AlwaysPromptEncoding)
00251 
00252 dcl(SpellDirectory)
00253 dcl(StringSetDirectory)
00254 
00255 dcl(DefaultDirectionRtl)
00256 dcl(LockStyles)
00257 
00258 #endif /* dcl */
00259 #endif /* AP_PREFS_SCHEMEIDS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1