1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2 
3 /* AbiSource Application Framework
4  * Copyright (C) 1998-2000 AbiSource, Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA.
20  */
21 
22 /*****************************************************************
23 ******************************************************************
24 ** IT IS IMPORTANT THAT THIS FILE ALLOW ITSELF TO BE INCLUDED
25 ** MORE THAN ONE TIME.
26 ******************************************************************
27 *****************************************************************/
28 
29 #ifndef XAP_PREFS_SCHEMEIDS_H
30 #define XAP_PREFS_SCHEMEIDS_H
31 #include "xap_Features.h"
32 
33 //////////////////////////////////////////////////////////////////////////////////////
34 // The following are the set of scheme-based application-independent preference keys
35 // and the set of default values for them.	Each item must have the XAP_PREF_KEY_ prefix
36 // and each value must have the XAP_PREF_DEFAULT_ prefix.  Default values *must* obey
37 // XML encoding rules if they contain any double quote ("), ampersand (&),
38 // or angle bracket (< and >) characters.
39 //
40 // ***FOR EACH PAIR DEFINED, ADD A 'dcl(basename)' TO THE BOTTOM HALF OF THIS FILE***
41 //
42 // Note: Additional keys may be defined by the application.
43 //////////////////////////////////////////////////////////////////////////////////////
44 
45 #define XAP_PREF_KEY_ToolbarAppearance		"ToolbarAppearance"
46 #define XAP_PREF_DEFAULT_ToolbarAppearance	"icon"						/* {icon,text,both} */
47 
48 #define XAP_PREF_KEY_RemapGlyphsDefault 			"RemapGlyphsDefault"
49  /* default replacement glyph for originals not mentioned in the table */
50 #define XAP_PREF_DEFAULT_RemapGlyphsDefault 		"°"
51 /* degree symbol */
52 
53 /* smart quotes */
54 #define XAP_PREF_KEY_SmartQuotesEnable				"SmartQuotesEnable"
55 /* substitute curly smart quotes on the fly */
56 #define XAP_PREF_DEFAULT_SmartQuotesEnable			"1"
57 
58 #define XAP_PREF_KEY_CustomSmartQuotes		"CustomSmartQuotes"
59 #define XAP_PREF_DEFAULT_CustomSmartQuotes	"0"
60 
61 #define XAP_PREF_KEY_OuterQuoteStyle			"OuterQuoteStyle"
62 #define XAP_PREF_DEFAULT_OuterQuoteStyle			"0"
63 
64 #define XAP_PREF_KEY_InnerQuoteStyle			"InnerQuoteStyle"
65 #define XAP_PREF_DEFAULT_InnerQuoteStyle			"1"
66 
67 #define XAP_PREF_KEY_UseSuffix						"UseSuffix"
68 /* append suffixes to saved files */
69 #define XAP_PREF_DEFAULT_UseSuffix					"1"
70 
71 #define XAP_PREF_KEY_SaveContextGlyphs				 "SaveContextGlyphs"
72 #define XAP_PREF_DEFAULT_SaveContextGlyphs			 "0"
73 #define XAP_PREF_KEY_UseHebrewContextGlyphs 		 "UseGlyphShapingForHebrew"
74 #define XAP_PREF_DEFAULT_UseHebrewContextGlyphs 	 "0"
75 
76 #define XAP_PREF_KEY_LatinLigatures 		         "LatinLigatures"
77 #define XAP_PREF_DEFAULT_LatinLigatures 	         "0"
78 
79 #define XAP_PREF_KEY_AutoSaveFile					"AutoSaveFile"
80 #define XAP_PREF_DEFAULT_AutoSaveFile				"0" 						/* Auto save files by default */
81 
82 #define XAP_PREF_KEY_AutoSaveFilePeriod 				"AutoSaveFilePeriod"
83 #define XAP_PREF_DEFAULT_AutoSaveFilePeriod 			"5" 						/* Auto save files by default */
84 
85 #define XAP_PREF_KEY_AutoSaveFileExt					"AutoSaveFileExt"
86 #ifdef WIN32
87 #define XAP_PREF_DEFAULT_AutoSaveFileExt			".bak"
88 #else
89 #define XAP_PREF_DEFAULT_AutoSaveFileExt			".bak~"
90 #endif
91 
92 #define XAP_PREF_KEY_ColorForTransparent			"TransparentColor"
93 #define XAP_PREF_DEFAULT_ColorForTransparent		"ffffff"
94 
95 #define XAP_PREF_KEY_ColorForShowPara				"ColorShowPara"
96 #define XAP_PREF_DEFAULT_ColorForShowPara			"7f7f7f"
97 #define XAP_PREF_KEY_ColorForSquiggle				"ColorSquiggle"
98 #define XAP_PREF_DEFAULT_ColorForSquiggle			"ff0000"
99 #define XAP_PREF_KEY_ColorForGrammarSquiggle		"ColorGrammarSquiggle"
100 #define XAP_PREF_DEFAULT_ColorForGrammarSquiggle	"00bb00"
101 #define XAP_PREF_KEY_ColorForMargin					"ColorMargin"
102 #define XAP_PREF_DEFAULT_ColorForMargin				"7f7f7f"
103 #define XAP_PREF_KEY_ColorForSelBackground			"ColorSelBackground"
104 #define XAP_PREF_DEFAULT_ColorForSelBackground		"c0c0c0"
105 #define XAP_PREF_KEY_ColorForFieldOffset			"ColorFieldOffset"
106 #define XAP_PREF_DEFAULT_ColorForFieldOffset		"0c0c0c"
107 #define XAP_PREF_KEY_ColorForImage					"ColorImage"
108 #define XAP_PREF_DEFAULT_ColorForImage				"0000ff"
109 #define XAP_PREF_KEY_ColorForHyperLink				"ColorHyperLink"
110 #define XAP_PREF_DEFAULT_ColorForHyperLink			"0000ff"
111 #define XAP_PREF_KEY_ColorForHdrFtr					"ColorHdrFtr"
112 #define XAP_PREF_DEFAULT_ColorForHdrFtr				"000000"
113 #define XAP_PREF_KEY_ColorForColumnLine				"ColorColumnLine"
114 #define XAP_PREF_DEFAULT_ColorForColumnLine			"000000"
115 
116 #define XAP_PREF_KEY_ColorForRevision1				"ColorRevision1"
117 #define XAP_PREF_DEFAULT_ColorForRevision1			"ab04fe"
118 #define XAP_PREF_KEY_ColorForRevision2				"ColorRevision2"
119 #define XAP_PREF_DEFAULT_ColorForRevision2			"ab1477"
120 #define XAP_PREF_KEY_ColorForRevision3				"ColorRevision3"
121 #define XAP_PREF_DEFAULT_ColorForRevision3			"ff9708"
122 #define XAP_PREF_KEY_ColorForRevision4				"ColorRevision4"
123 #define XAP_PREF_DEFAULT_ColorForRevision4			"9eb345"
124 #define XAP_PREF_KEY_ColorForRevision5				"ColorRevision5"
125 #define XAP_PREF_DEFAULT_ColorForRevision5			"0fb305"
126 #define XAP_PREF_KEY_ColorForRevision6				"ColorRevision6"
127 #define XAP_PREF_DEFAULT_ColorForRevision6			"08b3f8"
128 #define XAP_PREF_KEY_ColorForRevision7				"ColorRevision7"
129 #define XAP_PREF_DEFAULT_ColorForRevision7			"04cec3"
130 #define XAP_PREF_KEY_ColorForRevision8				"ColorRevision8"
131 #define XAP_PREF_DEFAULT_ColorForRevision8			"0485c3"
132 #define XAP_PREF_KEY_ColorForRevision9				"ColorRevision9"
133 #define XAP_PREF_DEFAULT_ColorForRevision9			"0712c3"
134 #define XAP_PREF_KEY_ColorForRevision10				"ColorRevision10"
135 #define XAP_PREF_DEFAULT_ColorForRevision10			"ff0000"
136 
137 #define XAP_PREF_KEY_DefaultSaveDirectory "DefaultSaveDirectory"
138 #define XAP_PREF_DEFAULT_DefaultSaveDirectory "" /* empty for $PWD basically */
139 
140 #define XAP_PREF_KEY_ZoomType		"ZoomType"
141 #define XAP_PREF_DEFAULT_ZoomType	"Width" /* 100, Width, Page */
142 
143 
144 #define XAP_PREF_KEY_ZoomPercentage		"ZoomPercentage"
145 #define XAP_PREF_DEFAULT_ZoomPercentage	"100"
146 
147 #define XAP_PREF_KEY_EnableSmoothScrolling  "EnableSmoothScrolling"
148 #define XAP_PREF_DEFAULT_EnableSmoothScrolling		 "1"
149 
150 #define XAP_PREF_KEY_AutoLoadPlugins				 "AutoLoadPlugins"
151 #define XAP_PREF_DEFAULT_AutoLoadPlugins			 "1"
152 
153 #define XAP_PREF_KEY_ToolbarNumEntries "Toolbar_NumEntries_"
154 #define XAP_PREF_KEY_ToolbarID "Toolbar_ID_"
155 #define XAP_PREF_KEY_ToolbarFlag "Toolbar_Flag_"
156 
157 #define XAP_PREF_KEY_HTMLExportOptions  "HTML_Export_Options"
158 #define XAP_PREF_DEFAULT_HTMLExportOptions "?xml,xmlns:awml,+CSS"
159 
160 #define XAP_PREF_KEY_ChangeLanguageWithKeyboard "ChangeLangWithKeyboard"
161 #define XAP_PREF_DEFAULT_ChangeLanguageWithKeyboard "0"
162 
163 #define XAP_PREF_KEY_DirMarkerAfterClosingParenthesis "DirMarkerAfterClosingParenthesis"
164 #define XAP_PREF_DEFAULT_DirMarkerAfterClosingParenthesis "0"
165 
166 #define XAP_PREF_KEY_NoMACinUUID "NoMACinUUID"
167 #define XAP_PREF_DEFAULT_NoMACinUUID "0"
168 
169 #define XAP_PREF_KEY_DefaultGraphics "DefaultGraphics"
170 #define XAP_PREF_DEFAULT_DefaultGraphics "0"
171 
172 #define XAP_PREF_KEY_ToolPaletteVisible "ToolPaletteVisible"
173 #define XAP_PREF_DEFAULT_ToolPaletteVisible "1"
174 
175 #else /* XAP_PREFS_SCHEMEID_H */
176 #ifdef dcl
177 
178 dcl(ToolbarAppearance)
179 dcl(RemapGlyphsDefault)
180 dcl(SmartQuotesEnable)
181 dcl(CustomSmartQuotes)
182 dcl(OuterQuoteStyle)
183 dcl(InnerQuoteStyle)
184 dcl(UseSuffix)
185 dcl(SaveContextGlyphs)
186 dcl(UseHebrewContextGlyphs)
187 dcl(LatinLigatures)
188 dcl(AutoSaveFile)
189 dcl(AutoSaveFilePeriod)
190 dcl(AutoSaveFileExt)
191 dcl(ColorForTransparent)
192 dcl(ColorForShowPara)
193 dcl(ColorForSquiggle)
194 dcl(ColorForGrammarSquiggle)
195 dcl(ColorForMargin)
196 dcl(ColorForSelBackground)
197 dcl(ColorForFieldOffset)
198 dcl(ColorForImage)
199 dcl(ColorForHyperLink)
200 dcl(ColorForHdrFtr)
201 dcl(ColorForColumnLine)
202 dcl(ColorForRevision1)
203 dcl(ColorForRevision2)
204 dcl(ColorForRevision3)
205 dcl(ColorForRevision4)
206 dcl(ColorForRevision5)
207 dcl(ColorForRevision6)
208 dcl(ColorForRevision7)
209 dcl(ColorForRevision8)
210 dcl(ColorForRevision9)
211 dcl(ColorForRevision10)
212 dcl(EnableSmoothScrolling)
213 dcl(AutoLoadPlugins)
214 dcl(ZoomType)
215 dcl(ZoomPercentage)
216 dcl(DefaultSaveDirectory)
217 dcl(HTMLExportOptions)
218 dcl(ChangeLanguageWithKeyboard)
219 dcl(DirMarkerAfterClosingParenthesis)
220 dcl(NoMACinUUID)
221 dcl(DefaultGraphics)
222 dcl(ToolPaletteVisible)
223 #endif /* dcl */
224 #endif /* XAP_PREFS_SCHEMEID_H */
225