1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 // include ---------------------------------------------------------------
28 #include <sfx2/sfx.hrc>
31 #include "optcolor.hrc"
32 // pragma ----------------------------------------------------------------
34 TabPage RID_SVXPAGE_COLORCONFIG
36 HelpId = HID_OPTIONS_COLORCONFIG ;
40 Size = MAP_APPFONT ( 260 , 185 ) ;
41 FixedLine FL_COLORSCHEME
43 Pos = MAP_APPFONT ( 6 , 3 ) ;
44 Size = MAP_APPFONT ( 248 , 8 ) ;
45 Text [ en-US ] = "Color scheme";
47 FixedText FT_COLORSCHEME
49 Pos = MAP_APPFONT ( 12 , 16 ) ;
50 Size = MAP_APPFONT ( 50 , 8 ) ;
51 Text [ en-US ] = "Scheme";
53 ListBox LB_COLORSCHEME
55 HelpID = "cui:ListBox:RID_SVXPAGE_COLORCONFIG:LB_COLORSCHEME";
56 Pos = MAP_APPFONT ( 65 , 14 ) ;
57 Size = MAP_APPFONT ( 77 , 58 ) ;
62 PushButton PB_SAVESCHEME
64 HelpID = "cui:PushButton:RID_SVXPAGE_COLORCONFIG:PB_SAVESCHEME";
65 Pos = MAP_APPFONT ( 145, 13 ) ;
66 Size = MAP_APPFONT ( 50 , 14 ) ;
67 Text [ en-US ] = "Save...";
69 PushButton PB_DELETESCHEME
71 HelpID = "cui:PushButton:RID_SVXPAGE_COLORCONFIG:PB_DELETESCHEME";
72 Pos = MAP_APPFONT ( 198 , 13 ) ;
73 Size = MAP_APPFONT ( 50 , 14 ) ;
74 Text [ en-US ] = "Delete";
76 FixedLine FL_CUSTOMCOLORS
78 Pos = MAP_APPFONT ( 6 , 34 ) ;
79 Size = MAP_APPFONT ( 248 , 8 ) ;
81 Text [ en-US ] = "Custom colors";
83 Control CT_COLORCONFIG
85 Pos = MAP_APPFONT ( 12 , 45 ) ;
86 Size = MAP_APPFONT ( 236 , 134 ) ;
92 Pos = MAP_APPFONT ( 228 , 10 ) ;
93 Size = MAP_APPFONT ( 8 , 124 ) ;
98 Text [ en-US ] = "On";
102 Text [ en-US ] = "User interface elements";
106 Text [ en-US ] = "Color setting";
110 Text [ en-US ] = "Preview";
115 // misc defines to shorten defining of standard elements
117 #define FT_SEP_SIZE Size = MAP_APPFONT ( _FT_WIDTH , 8 )
118 #define FT_SIZE Size = MAP_APPFONT ( _FT_WIDTH , _FT_HEIGHT )
119 #define LB_SIZE Size = MAP_APPFONT ( _LB_WIDTH , _LB_HEIGHT )
120 #define WN_SIZE Size = MAP_APPFONT ( _WN_WIDTH , _WN_HEIGHT )
121 #define CB_SIZE Size = MAP_APPFONT ( _CB_WIDTH , _FT_HEIGHT )
123 // combination of position and size
124 #define POS_SIZE( POSX, LINENUM, CONTRL_SIZE ) Pos = MAP_APPFONT ( POSX , LINENUM * _LINE_HEIGHT ) ; CONTRL_SIZE
126 // ... for special types
127 #define FT_SEP_POS_SIZE( LINENUM ) POS_SIZE( 14, LINENUM, FT_SEP_SIZE )
128 #define FT_POS_SIZE( LINENUM ) POS_SIZE( _FT_XPOS, LINENUM, FT_SIZE )
129 #define LB_POS_SIZE( LINENUM ) POS_SIZE( _LB_XPOS, LINENUM, LB_SIZE )
130 #define WN_POS_SIZE( LINENUM ) POS_SIZE( _WN_XPOS, LINENUM, WN_SIZE )
131 #define CB_POS_SIZE( LINENUM ) POS_SIZE( _CB_XPOS, LINENUM, CB_SIZE )
133 // combination of a listbox (color chooser) and window (color preview)
134 #define LB_WN( ID_POST, LINENUM ) ListBox LB_#ID_POST{LB_POS_SIZE(LINENUM);DropDown=TRUE;};Window WN_#ID_POST{WN_POS_SIZE(LINENUM);Border=TRUE;};
137 Pos = MAP_APPFONT ( 0 , 10 ) ;
138 Size = MAP_APPFONT ( 228 , 124 ) ;
139 DialogControl = TRUE;
143 FT_SEP_POS_SIZE( 0 );
144 Text [ en-US ] = "General";
147 FixedText FT_DOCCOLOR
150 Text [ en-US ] = "Document background";
156 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_DOCBOUND";
158 Text [ en-US ] = "Text boundaries";
162 FixedText FT_APPBACKGROUND
165 Text [ en-US ] = "Application background";
167 LB_WN( APPBACKGROUND, 3 )
169 CheckBox CB_OBJECTBOUNDARIES
171 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_OBJECTBOUNDARIES";
173 Text [ en-US ] = "Object boundaries";
175 LB_WN( OBJECTBOUNDARIES, 4 )
177 CheckBox CB_TABLEBOUNDARIES
179 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_TABLEBOUNDARIES";
181 Text [ en-US ] = "Table boundaries";
183 LB_WN( TABLEBOUNDARIES, 5 )
185 FixedText FT_FONTCOLOR
188 Text [ en-US ] = "Font color";
190 LB_WN( FONTCOLOR, 6 )
194 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_LINKS";
196 Text [ en-US ] = "Unvisited links";
200 CheckBox CB_LINKSVISITED
202 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_LINKSVISITED";
204 Text [ en-US ] = "Visited links";
206 LB_WN( LINKSVISITED, 8 )
211 Text [ en-US ] = "AutoSpellcheck";
215 FixedText FT_SMARTTAGS
218 Text [ en-US ] = "Smart Tags";
220 LB_WN( SMARTTAGS, 10 )
224 FT_SEP_POS_SIZE( 11 );
225 Text [ en-US ] = "Text Document";
228 FixedText FT_WRITERTEXTGRID
231 Text [ en-US ] = "Grid";
233 LB_WN( WRITERTEXTGRID, 12 )
235 CheckBox CB_WRITERFIELDSHADINGS
237 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERFIELDSHADINGS";
239 Text [ en-US ] = "Field shadings";
241 LB_WN( WRITERFIELDSHADINGS, 13 )
243 CheckBox CB_WRITERIDXSHADINGS
245 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERIDXSHADINGS";
247 Text [ en-US ] = "Index and table shadings";
249 LB_WN( WRITERIDXSHADINGS, 14 )
252 FixedText FT_WRITERSCRIPTINDICATOR
255 Text [ en-US ] = "Script indicator";
257 LB_WN( WRITERSCRIPTINDICATOR, 15 )
259 CheckBox CB_WRITERSECTIONBOUNDARIES
261 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERSECTIONBOUNDARIES";
263 Text [ en-US ] = "Section boundaries";
265 LB_WN( WRITERSECTIONBOUNDARIES, 16 )
267 FixedText FT_WRITERPAGEBREAKS
270 Text [ en-US ] = "Page and column breaks";
272 LB_WN( WRITERPAGEBREAKS, 17 )
274 FixedText FT_WRITERDIRECTCURSOR
277 Text [ en-US ] = "Direct cursor";
279 LB_WN( WRITERDIRECTCURSOR, 18 )
283 FT_SEP_POS_SIZE( 19 );
284 Text [ en-US ] = "HTML Document";
287 FixedText FT_HTMLSGML
290 Text [ en-US ] = "SGML syntax highlighting";
292 LB_WN( HTMLSGML, 20 )
294 FixedText FT_HTMLCOMMENT
297 Text [ en-US ] = "Comment highlighting";
299 LB_WN( HTMLCOMMENT, 21 )
301 FixedText FT_HTMLKEYWORD
304 Text [ en-US ] = "Keyword highlighting";
306 LB_WN( HTMLKEYWORD, 22 )
308 FixedText FT_HTMLUNKNOWN
311 Text [ en-US ] = "Text";
313 LB_WN( HTMLUNKNOWN, 23 )
317 FT_SEP_POS_SIZE( 24 );
318 Text [ en-US ] = "Spreadsheet";
321 FixedText FT_CALCGRID
324 Text [ en-US ] = "Grid lines";
326 LB_WN( CALCGRID, 25 )
328 FixedText FT_CALCPAGEBREAK
331 Text [ en-US ] = "Page breaks";
333 LB_WN( CALCPAGEBREAK, 26 )
335 FixedText FT_CALCPAGEBREAKMANUAL
338 Text [ en-US ] = "Manual page breaks";
340 LB_WN( CALCPAGEBREAKMANUAL, 27 )
342 FixedText FT_CALCPAGEBREAKAUTO
345 Text [ en-US ] = "Automatic page breaks";
347 LB_WN( CALCPAGEBREAKAUTO, 28)
349 FixedText FT_CALCDETECTIVE
352 Text [ en-US ] = "Detective";
354 LB_WN( CALCDETECTIVE, 29 )
356 FixedText FT_CALCDETECTIVEERROR
359 Text [ en-US ] = "Detective error";
361 LB_WN( CALCDETECTIVEERROR, 30 )
363 FixedText FT_CALCREFERENCE
366 Text [ en-US ] = "References";
368 LB_WN( CALCREFERENCE, 31 )
370 FixedText FT_CALCNOTESBACKGROUND
373 Text [ en-US ] = "Notes background";
375 LB_WN( CALCNOTESBACKGROUND, 32 )
379 FT_SEP_POS_SIZE( 33 );
380 Text [ en-US ] = "Drawing / Presentation";
383 FixedText FT_DRAWGRID
386 Text [ en-US ] = "Grid";
388 LB_WN( DRAWGRID, 34 )
392 FT_SEP_POS_SIZE( 35 );
393 Text [ en-US ] = "Basic Syntax Highlighting";
396 FixedText FT_BASICIDENTIFIER
399 Text [ en-US ] = "Identifier";
401 LB_WN( BASICIDENTIFIER, 36 )
403 FixedText FT_BASICCOMMENT
406 Text [ en-US ] = "Comment";
408 LB_WN( BASICCOMMENT, 37 )
410 FixedText FT_BASICNUMBER
413 Text [ en-US ] = "Number";
415 LB_WN( BASICNUMBER, 38)
417 FixedText FT_BASICSTRING
420 Text [ en-US ] = "String";
422 LB_WN( BASICSTRING, 39 )
424 FixedText FT_BASICOPERATOR
427 Text [ en-US ] = "Operator";
429 LB_WN( BASICOPERATOR, 40 )
431 FixedText FT_BASICKEYWORD
434 Text [ en-US ] = "Reserved expression";
436 LB_WN( BASICKEYWORD, 41 )
438 FixedText FT_BASICERROR
441 Text [ en-US ] = "Error";
443 LB_WN( BASICERROR, 42 )
445 FixedText FT_SQL_COMMAND
447 FT_SEP_POS_SIZE( 43 );
448 Text [ en-US ] = "SQL Syntax Highlighting";
451 FixedText FT_SQLIDENTIFIER
454 Text [ en-US ] = "Identifier";
456 LB_WN( SQLIDENTIFIER, 44 )
458 FixedText FT_SQLNUMBER
461 Text [ en-US ] = "Number";
463 LB_WN( SQLNUMBER, 45 )
465 FixedText FT_SQLSTRING
468 Text [ en-US ] = "String";
470 LB_WN( SQLSTRING, 46 )
472 FixedText FT_SQLOPERATOR
475 Text [ en-US ] = "Operator";
477 LB_WN( SQLOPERATOR, 47 )
479 FixedText FT_SQLKEYWORD
482 Text [ en-US ] = "Keyword";
484 LB_WN( SQLKEYWORD, 48 )
486 FixedText FT_SQLPARAMETER
489 Text [ en-US ] = "Parameter";
491 LB_WN( SQLPARAMETER, 49 )
493 FixedText FT_SQLCOMMENT
496 Text [ en-US ] = "Comment";
498 LB_WN( SQLCOMMENT, 50 )
502 Text [ en-US ] = "Colorsettings of the Extensions";
504 String ST_SPELL_CHECK_HIGHLIGHTING
506 Text [ en-US ] = "Spell check highlighting";
508 String ST_GRAMMAR_CHECK_HIGHLIGHTING
510 Text [ en-US ] = "Grammar check highlighting";
515 QueryBox RID_SVXQB_DELETE_COLOR_CONFIG
517 Buttons = WB_YES_NO ;
518 DefButton = WB_DEF_NO ;
519 Message [ en-US ] = "Do you really want to delete the color scheme?" ;
521 String RID_SVXSTR_COLOR_CONFIG_DELETE
523 Text [ en-US ] = "Color Scheme Deletion" ;
525 String RID_SVXSTR_COLOR_CONFIG_SAVE1
527 Text [ en-US ] = "Save scheme" ;
529 String RID_SVXSTR_COLOR_CONFIG_SAVE2
531 Text [ en-US ] = "Name of color scheme" ;