1 /* AbiWord
2  * Copyright (C) 1998-2000 AbiSource, Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301 USA.
18  */
19 
20 /*****************************************************************
21 ******************************************************************
22 ** IT IS IMPORTANT THAT THIS FILE ALLOW ITSELF TO BE INCLUDED
23 ** MORE THAN ONE TIME.
24 ******************************************************************
25 *****************************************************************/
26 
27 #ifndef AP_PREFS_SCHEMEIDS_H
28 #define AP_PREFS_SCHEMEIDS_H
29 
30 #ifdef HAVE_CONFIG_H
31 #include "config.h"
32 #endif
33 
34 #include "ap_Features.h"
35 
36 //////////////////////////////////////////////////////////////////////////////
37 // The following are the set of application-dependent preference keys and the
38 // set of default values for them.  Each item must have the AP_PREF_KEY_ prefix
39 // and each value must have the XAP_PREF_DEFAULT_ prefix.  Default values *must* obey
40 // XML encoding rules if they contain any double quote ("), ampersand (&),
41 // or angle bracket (< and >) characters.
42 //
43 // ***FOR EACH PAIR DEFINED, ADD A 'dcl(basename)' TO THE BOTTOM HALF OF THIS FILE***
44 //
45 // Note: These are in addition to the application-independent ones defined in
46 // abi/src/xap/xp/xap_Prefs_SchemeIds.h.
47 //////////////////////////////////////////////////////////////////////////////
48 
49 #define AP_PREF_KEY_CursorBlink						"CursorBlink"				/* enable cursor blink {0,1} */
50 #define AP_PREF_DEFAULT_CursorBlink					"1"
51 
52 #define AP_PREF_KEY_AutoSpellCheck					"AutoSpellCheck"			/* enable automatic spell check {0,1} */
53 #define AP_PREF_DEFAULT_AutoSpellCheck				"1"
54 
55 #define AP_PREF_KEY_AutoGrammarCheck		    "AutoGrammarCheck"			/* enable automatic grammar check {0,1} */
56 #define AP_PREF_DEFAULT_AutoGrammarCheck  		"0"
57 
58 #define AP_PREF_KEY_DisplayAnnotations		    "DisplayAnnotations"			/* enable display of annotations (0,1) */
59 #define AP_PREF_DEFAULT_DisplayAnnotations  		"0"
60 
61 #define AP_PREF_KEY_DisplayRDFAnchors		    "DisplayRDFAnchors"			/* enable display of RDF anchors (0,1) */
62 #define AP_PREF_DEFAULT_DisplayRDFAnchors  		"0"
63 
64 #define AP_PREF_KEY_SpellCheckCaps					"SpellCheckCaps"			/* enable checking CAPITALIZED words {0,1} */
65 #define AP_PREF_DEFAULT_SpellCheckCaps				"1"
66 
67 #define AP_PREF_KEY_SpellCheckNumbers				"SpellCheckNumbers"			/* enable spell checking numbers {0,1} */
68 #define AP_PREF_DEFAULT_SpellCheckNumbers			"1"
69 
70 #define AP_PREF_KEY_SpellCheckInternet				"SpellCheckInternet"		/* enable spell checking internet names {0,1} */
71 #define AP_PREF_DEFAULT_SpellCheckInternet			"1"
72 
73 #define AP_PREF_KEY_SpellAutoReplace                "SpellAutoReplace" /* automatically substitute "incorrect" words with replacements */
74 #define AP_PREF_DEFAULT_SpellAutoReplace            "0"
75 
76 #define AP_PREF_KEY_OptionsTabNumber				"OptionsTabNumber"			/* the page number of the currently shown page in the */
77 #define AP_PREF_DEFAULT_OptionsTabNumber			"0"							/* options dialog */
78 
79 #define AP_PREF_KEY_RulerUnits						"RulerUnits"				/* value in UT_dimensionName() */
80 #define AP_PREF_DEFAULT_RulerUnits					"in"
81 
82 
83 #define AP_PREF_KEY_RulerVisible					"RulerVisible"				/* are the rulers visible? {0,1} */
84 #ifdef EMBEDDED_TARGET
85 #define AP_PREF_DEFAULT_RulerVisible				"0"
86 #else
87 #define AP_PREF_DEFAULT_RulerVisible				"1"
88 #endif
89 
90 #	define AP_PREF_KEY_SimpleBarVisible					"SimpleBarVisible"			/* is the extra toolbar visible? {0,1} */
91 #	define AP_PREF_KEY_StandardBarVisible				"StandardBarVisible"		/* is the standard toolbar visible? {0,1} */
92 #	define AP_PREF_KEY_FormatBarVisible				"FormatBarVisible"			/* is the format toolbar visible? {0,1} */
93 #	define AP_PREF_KEY_ExtraBarVisible					"ExtraBarVisible"			/* is the extra toolbar visible? {0,1} */
94 #	define AP_PREF_KEY_TableBarVisible					"TableBarVisible"			/* is the table toolbar visible? {0,1} */
95 #	define AP_PREF_DEFAULT_SimpleBarVisible				"0"
96 #if XAP_SIMPLE_TOOLBAR
97 #	define AP_PREF_DEFAULT_StandardBarVisible			"0"
98 #	define AP_PREF_DEFAULT_FormatBarVisible			"0"
99 #else
100 #	define AP_PREF_DEFAULT_StandardBarVisible			"1"
101 #	define AP_PREF_DEFAULT_FormatBarVisible			"1"
102 #endif
103 #	define AP_PREF_DEFAULT_ExtraBarVisible				"0"
104 #	define AP_PREF_DEFAULT_TableBarVisible				"0"
105 
106 
107 #define AP_PREF_KEY_StatusBarVisible				"StatusBarVisible"			/* is the status bar visible? {0,1} */
108 #ifdef EMBEDDED_TARGET
109 #define AP_PREF_DEFAULT_StatusBarVisible			"0"
110 #else
111 #define AP_PREF_DEFAULT_StatusBarVisible			"1"
112 #endif
113 
114 
115 #define AP_PREF_KEY_ParaVisible                     "ParaVisible"               /* are the paragraphs/spaces/tats/etc. visible? {0,1} */
116 #define AP_PREF_DEFAULT_ParaVisible                 "0"
117 
118 
119 #define AP_PREF_KEY_StringSet						"StringSet"					/* name of dialog/msgbox strings */
120 #define AP_PREF_DEFAULT_StringSet					"en-US"
121 
122 #define AP_PREF_KEY_KeyBindings						"KeyBindings"
123 #define AP_PREF_DEFAULT_KeyBindings					"default"					/* value in ap_LoadBindings.cpp */
124 
125 #define AP_PREF_KEY_KeyBindingsCycle				"KeyBindingsCycle"			/* does F12 cycle keybindings? {0,1} */
126 #define AP_PREF_DEFAULT_KeyBindingsCycle			"0"
127 
128 #define AP_PREF_KEY_InsertMode						"InsertMode"
129 #define AP_PREF_DEFAULT_InsertMode					"1"							/* overwrite or insert? {0,1} */
130 
131 #define AP_PREF_KEY_InsertModeToggle				"InsertModeToggle"			/* does INS key toggle modes? {0,1} */
132 #define AP_PREF_DEFAULT_InsertModeToggle			"0"
133 
134 #define AP_PREF_KEY_MenuLayout						"MenuLayouts"
135 #define AP_PREF_DEFAULT_MenuLayout					"Main"						/* value in BeginLayout() */
136 
137 
138 #define AP_PREF_KEY_ToolbarLayouts					"ToolbarLayouts"
139 #if defined (EMBEDDED_TARGET) && EMBEDDED_TARGET != EMBEDDED_TARGET_HILDON
140 #	define AP_PREF_DEFAULT_ToolbarLayouts				"Embedded"		/* values in BeginLayout() */
141 #elif XAP_SIMPLE_TOOLBAR
142 #	define AP_PREF_DEFAULT_ToolbarLayouts				"SimpleOps"		/* values in BeginLayout() */
143 #else
144 #	define AP_PREF_DEFAULT_ToolbarLayouts				"FileEditOps FormatOps TableOps ExtraOps"		/* values in BeginLayout() */
145 #endif
146 
147 #define AP_PREF_KEY_SpellDirectory					"SpellCheckDirectory"		/* where we find hash files */
148 #define AP_PREF_DEFAULT_SpellDirectory				"dictionary" 				/* if relative, use prefix "getAbiSuiteLibDir()" */
149 
150 #define AP_PREF_KEY_StringSetDirectory				"StringSetDirectory"		/* where we find StringSets */
151 #define AP_PREF_DEFAULT_StringSetDirectory			"strings"					/* if relative, use prefix "getAbiSuiteAppDir()" */
152 
153 #define AP_PREF_KEY_LayoutMode                     "layoutMode"
154 #ifdef EMBEDDED_TARGET
155 #define AP_PREF_DEFAULT_LayoutMode                 "2" /* 1=print, 2=normal, 3=web */
156 #else
157 #define AP_PREF_DEFAULT_LayoutMode                 "1" /* 1=print, 2=normal, 3=web */
158 #endif
159 
160 #define AP_PREF_KEY_AlwaysPromptEncoding			"AlwaysPromptEncoding"		/* if true, always show encoding dialog when importing/exporting text */
161 #define AP_PREF_DEFAULT_AlwaysPromptEncoding		"0"
162 
163 #define AP_PREF_KEY_DefaultDirectionRtl             "DefaultDirectionRtl"       /* the deafault direction of text is rtl */
164 #ifndef BIDI_RTL_DOMINANT
165 #define AP_PREF_DEFAULT_DefaultDirectionRtl         "0"
166 #else
167 #define AP_PREF_DEFAULT_DefaultDirectionRtl         "1"
168 #endif
169 
170 #define AP_PREF_KEY_DefaultSaveFormat "DefaultSaveFormat"
171 #define AP_PREF_DEFAULT_DefaultSaveFormat ".abw"
172 #define AP_PREF_KEY_CloseOnLastDoc "CloseOnLastDoc"
173 #define AP_PREF_DEFAULT_CloseOnLastDoc "0"
174 
175 #define AP_PREF_KEY_LockStyles "LockStyles"
176 #define AP_PREF_DEFAULT_LockStyles "0"
177 
178 #define AP_PREF_KEY_ColorForAnnotation1				"ColorAnnotation1"
179 #define AP_PREF_DEFAULT_ColorForAnnotation1			"ab04fe"
180 #define AP_PREF_KEY_ColorForAnnotation2				"ColorAnnotation2"
181 #define AP_PREF_DEFAULT_ColorForAnnotation2			"ab1477"
182 #define AP_PREF_KEY_ColorForAnnotation3				"ColorAnnotation3"
183 #define AP_PREF_DEFAULT_ColorForAnnotation3			"ff9708"
184 #define AP_PREF_KEY_ColorForAnnotation4				"ColorAnnotation4"
185 #define AP_PREF_DEFAULT_ColorForAnnotation4			"9eb345"
186 #define AP_PREF_KEY_ColorForAnnotation5				"ColorAnnotation5"
187 #define AP_PREF_DEFAULT_ColorForAnnotation5			"0fb305"
188 #define AP_PREF_KEY_ColorForAnnotation6				"ColorAnnotation6"
189 #define AP_PREF_DEFAULT_ColorForAnnotation6			"08b3f8"
190 #define AP_PREF_KEY_ColorForAnnotation7				"ColorAnnotation7"
191 #define AP_PREF_DEFAULT_ColorForAnnotation7			"04cec3"
192 #define AP_PREF_KEY_ColorForAnnotation8				"ColorAnnotation8"
193 #define AP_PREF_DEFAULT_ColorForAnnotation8			"0485c3"
194 #define AP_PREF_KEY_ColorForAnnotation9				"ColorAnnotation9"
195 #define AP_PREF_DEFAULT_ColorForAnnotation9			"0712c3"
196 #define AP_PREF_KEY_ColorForAnnotation10				"ColorAnnotation10"
197 #define AP_PREF_DEFAULT_ColorForAnnotation10			"ff0000"
198 
199 #define AP_PREF_KEY_ColorForRDFAnchor1				"ColorRDFAnchor1"
200 #define AP_PREF_DEFAULT_ColorForRDFAnchor1			"ab04fe"
201 #define AP_PREF_KEY_ColorForRDFAnchor2				"ColorRDFAnchor2"
202 #define AP_PREF_DEFAULT_ColorForRDFAnchor2			"ab1477"
203 #define AP_PREF_KEY_ColorForRDFAnchor3				"ColorRDFAnchor3"
204 #define AP_PREF_DEFAULT_ColorForRDFAnchor3			"ff9708"
205 #define AP_PREF_KEY_ColorForRDFAnchor4				"ColorRDFAnchor4"
206 #define AP_PREF_DEFAULT_ColorForRDFAnchor4			"9eb345"
207 #define AP_PREF_KEY_ColorForRDFAnchor5				"ColorRDFAnchor5"
208 #define AP_PREF_DEFAULT_ColorForRDFAnchor5			"0fb305"
209 #define AP_PREF_KEY_ColorForRDFAnchor6				"ColorRDFAnchor6"
210 #define AP_PREF_DEFAULT_ColorForRDFAnchor6			"08b3f8"
211 #define AP_PREF_KEY_ColorForRDFAnchor7				"ColorRDFAnchor7"
212 #define AP_PREF_DEFAULT_ColorForRDFAnchor7			"04cec3"
213 #define AP_PREF_KEY_ColorForRDFAnchor8				"ColorRDFAnchor8"
214 #define AP_PREF_DEFAULT_ColorForRDFAnchor8			"0485c3"
215 #define AP_PREF_KEY_ColorForRDFAnchor9				"ColorRDFAnchor9"
216 #define AP_PREF_DEFAULT_ColorForRDFAnchor9			"0712c3"
217 #define AP_PREF_KEY_ColorForRDFAnchor10				"ColorRDFAnchor10"
218 #define AP_PREF_DEFAULT_ColorForRDFAnchor10			"ff0000"
219 
220 #else /* AP_PREFS_SCHEMEIDS_H */
221 #ifdef dcl
222 
223 dcl(CloseOnLastDoc)
224 dcl(DefaultSaveFormat)
225 dcl(CursorBlink)
226 dcl(AutoSpellCheck)
227 dcl(AutoGrammarCheck)
228 dcl(SpellCheckCaps)
229 dcl(SpellCheckNumbers)
230 dcl(SpellCheckInternet)
231 dcl(SpellAutoReplace)
232 dcl(OptionsTabNumber)
233 dcl(RulerUnits)
234 dcl(RulerVisible)
235 dcl(SimpleBarVisible)
236 dcl(StandardBarVisible)
237 dcl(FormatBarVisible)
238 dcl(ExtraBarVisible)
239 dcl(TableBarVisible)
240 dcl(StatusBarVisible)
241 dcl(ParaVisible)
242 dcl(StringSet)
243 dcl(KeyBindings)
244 dcl(KeyBindingsCycle)
245 dcl(InsertMode)
246 dcl(InsertModeToggle)
247 dcl(MenuLayout)
248 dcl(ToolbarLayouts)
249 dcl(LayoutMode)
250 dcl(AlwaysPromptEncoding)
251 
252 dcl(SpellDirectory)
253 dcl(StringSetDirectory)
254 
255 dcl(DefaultDirectionRtl)
256 dcl(LockStyles)
257 
258 #endif /* dcl */
259 #endif /* AP_PREFS_SCHEMEIDS_H */
260