1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24// include --------------------------------------------------------------- 25#include <sfx2/sfx.hrc> 26#include "helpid.hrc" 27#include <cuires.hrc> 28#include "optcolor.hrc" 29// pragma ---------------------------------------------------------------- 30 31TabPage RID_SVXPAGE_COLORCONFIG 32{ 33 HelpId = HID_OPTIONS_COLORCONFIG ; 34 OutputSize = TRUE ; 35 SVLook = TRUE ; 36 Hide = TRUE ; 37 Size = MAP_APPFONT ( 260 , 185 ) ; 38 FixedLine FL_COLORSCHEME 39 { 40 Pos = MAP_APPFONT ( 6 , 3 ) ; 41 Size = MAP_APPFONT ( 248 , 8 ) ; 42 Text [ en-US ] = "Color scheme"; 43 }; 44 FixedText FT_COLORSCHEME 45 { 46 Pos = MAP_APPFONT ( 12 , 16 ) ; 47 Size = MAP_APPFONT ( 50 , 8 ) ; 48 Text [ en-US ] = "Scheme"; 49 }; 50 ListBox LB_COLORSCHEME 51 { 52 HelpID = "cui:ListBox:RID_SVXPAGE_COLORCONFIG:LB_COLORSCHEME"; 53 Pos = MAP_APPFONT ( 65 , 14 ) ; 54 Size = MAP_APPFONT ( 77 , 58 ) ; 55 Border = TRUE; 56 Sort = TRUE; 57 DropDown = TRUE; 58 }; 59 PushButton PB_SAVESCHEME 60 { 61 HelpID = "cui:PushButton:RID_SVXPAGE_COLORCONFIG:PB_SAVESCHEME"; 62 Pos = MAP_APPFONT ( 145, 13 ) ; 63 Size = MAP_APPFONT ( 50 , 14 ) ; 64 Text [ en-US ] = "Save..."; 65 }; 66 PushButton PB_DELETESCHEME 67 { 68 HelpID = "cui:PushButton:RID_SVXPAGE_COLORCONFIG:PB_DELETESCHEME"; 69 Pos = MAP_APPFONT ( 198 , 13 ) ; 70 Size = MAP_APPFONT ( 50 , 14 ) ; 71 Text [ en-US ] = "Delete"; 72 }; 73 FixedLine FL_CUSTOMCOLORS 74 { 75 Pos = MAP_APPFONT ( 6 , 34 ) ; 76 Size = MAP_APPFONT ( 248 , 8 ) ; 77 78 Text [ en-US ] = "Custom colors"; 79 }; 80 Control CT_COLORCONFIG 81 { 82 Pos = MAP_APPFONT ( 12 , 45 ) ; 83 Size = MAP_APPFONT ( 236 , 134 ) ; 84 Border = TRUE; 85 DialogControl = TRUE; 86 OutputSize = TRUE ; 87 ScrollBar VB_VSCROLL 88 { 89 Pos = MAP_APPFONT ( 228 , 10 ) ; 90 Size = MAP_APPFONT ( 8 , 124 ) ; 91 VScroll = TRUE; 92 }; 93 String ST_ON 94 { 95 Text [ en-US ] = "On"; 96 }; 97 String ST_UIELEM 98 { 99 Text [ en-US ] = "User interface elements"; 100 }; 101 String ST_COLSET 102 { 103 Text [ en-US ] = "Color setting"; 104 }; 105 String ST_PREVIEW 106 { 107 Text [ en-US ] = "Preview"; 108 }; 109 Window WN_SCROLL 110 { 111 112// misc defines to shorten defining of standard elements 113// standard sizes 114#define FT_SEP_SIZE Size = MAP_APPFONT ( _FT_WIDTH , 8 ) 115#define FT_SIZE Size = MAP_APPFONT ( _FT_WIDTH , _FT_HEIGHT ) 116#define LB_SIZE Size = MAP_APPFONT ( _LB_WIDTH , _LB_HEIGHT ) 117#define WN_SIZE Size = MAP_APPFONT ( _WN_WIDTH , _WN_HEIGHT ) 118#define CB_SIZE Size = MAP_APPFONT ( _CB_WIDTH , _FT_HEIGHT ) 119 120// combination of position and size 121#define POS_SIZE( POSX, LINENUM, CONTRL_SIZE ) Pos = MAP_APPFONT ( POSX , LINENUM * _LINE_HEIGHT ) ; CONTRL_SIZE 122 123// ... for special types 124#define FT_SEP_POS_SIZE( LINENUM ) POS_SIZE( 14, LINENUM, FT_SEP_SIZE ) 125#define FT_POS_SIZE( LINENUM ) POS_SIZE( _FT_XPOS, LINENUM, FT_SIZE ) 126#define LB_POS_SIZE( LINENUM ) POS_SIZE( _LB_XPOS, LINENUM, LB_SIZE ) 127#define WN_POS_SIZE( LINENUM ) POS_SIZE( _WN_XPOS, LINENUM, WN_SIZE ) 128#define CB_POS_SIZE( LINENUM ) POS_SIZE( _CB_XPOS, LINENUM, CB_SIZE ) 129 130// combination of a listbox (color chooser) and window (color preview) 131#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;}; 132 133 OutputSize = TRUE ; 134 Pos = MAP_APPFONT ( 0 , 10 ) ; 135 Size = MAP_APPFONT ( 228 , 124 ) ; 136 DialogControl = TRUE; 137 138 FixedText FT_GENERAL 139 { 140 FT_SEP_POS_SIZE( 0 ); 141 Text [ en-US ] = "General"; 142 }; 143 144 FixedText FT_DOCCOLOR 145 { 146 FT_POS_SIZE( 1 ); 147 Text [ en-US ] = "Document background"; 148 }; 149 LB_WN( DOCCOLOR, 1 ) 150 151 CheckBox CB_DOCBOUND 152 { 153 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_DOCBOUND"; 154 CB_POS_SIZE( 2 ); 155 Text [ en-US ] = "Text boundaries"; 156 }; 157 LB_WN( DOCBOUND, 2 ) 158 159 FixedText FT_APPBACKGROUND 160 { 161 FT_POS_SIZE( 3 ); 162 Text [ en-US ] = "Application background"; 163 }; 164 LB_WN( APPBACKGROUND, 3 ) 165 166 CheckBox CB_OBJECTBOUNDARIES 167 { 168 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_OBJECTBOUNDARIES"; 169 CB_POS_SIZE( 4 ); 170 Text [ en-US ] = "Object boundaries"; 171 }; 172 LB_WN( OBJECTBOUNDARIES, 4 ) 173 174 CheckBox CB_TABLEBOUNDARIES 175 { 176 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_TABLEBOUNDARIES"; 177 CB_POS_SIZE( 5 ); 178 Text [ en-US ] = "Table boundaries"; 179 }; 180 LB_WN( TABLEBOUNDARIES, 5 ) 181 182 FixedText FT_FONTCOLOR 183 { 184 FT_POS_SIZE( 6 ); 185 Text [ en-US ] = "Font color"; 186 }; 187 LB_WN( FONTCOLOR, 6 ) 188 189 CheckBox CB_LINKS 190 { 191 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_LINKS"; 192 CB_POS_SIZE( 7 ); 193 Text [ en-US ] = "Unvisited links"; 194 }; 195 LB_WN( LINKS, 7 ) 196 197 CheckBox CB_LINKSVISITED 198 { 199 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_LINKSVISITED"; 200 CB_POS_SIZE( 8 ); 201 Text [ en-US ] = "Visited links"; 202 }; 203 LB_WN( LINKSVISITED, 8 ) 204 205 FixedText FT_SPELL 206 { 207 FT_POS_SIZE( 9 ); 208 Text [ en-US ] = "AutoSpellcheck"; 209 }; 210 LB_WN( SPELL, 9 ) 211 212 FixedText FT_SMARTTAGS 213 { 214 FT_POS_SIZE( 10 ); 215 Text [ en-US ] = "Smart Tags"; 216 }; 217 LB_WN( SMARTTAGS, 10 ) 218 219 FixedText FT_WRITER 220 { 221 FT_SEP_POS_SIZE( 11 ); 222 Text [ en-US ] = "Text Document"; 223 }; 224 225 FixedText FT_WRITERTEXTGRID 226 { 227 FT_POS_SIZE( 12 ); 228 Text [ en-US ] = "Grid"; 229 }; 230 LB_WN( WRITERTEXTGRID, 12 ) 231 232 CheckBox CB_WRITERFIELDSHADINGS 233 { 234 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERFIELDSHADINGS"; 235 CB_POS_SIZE( 13 ); 236 Text [ en-US ] = "Field shadings"; 237 }; 238 LB_WN( WRITERFIELDSHADINGS, 13 ) 239 240 CheckBox CB_WRITERIDXSHADINGS 241 { 242 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERIDXSHADINGS"; 243 CB_POS_SIZE( 14 ); 244 Text [ en-US ] = "Index and table shadings"; 245 }; 246 LB_WN( WRITERIDXSHADINGS, 14 ) 247 248 249 FixedText FT_WRITERSCRIPTINDICATOR 250 { 251 FT_POS_SIZE( 15 ); 252 Text [ en-US ] = "Script indicator"; 253 }; 254 LB_WN( WRITERSCRIPTINDICATOR, 15 ) 255 256 CheckBox CB_WRITERSECTIONBOUNDARIES 257 { 258 HelpID = "cui:CheckBox:RID_SVXPAGE_COLORCONFIG:CB_WRITERSECTIONBOUNDARIES"; 259 CB_POS_SIZE( 16 ); 260 Text [ en-US ] = "Section boundaries"; 261 }; 262 LB_WN( WRITERSECTIONBOUNDARIES, 16 ) 263 264 FixedText FT_WRITERPAGEBREAKS 265 { 266 FT_POS_SIZE( 17 ); 267 Text [ en-US ] = "Page and column breaks"; 268 }; 269 LB_WN( WRITERPAGEBREAKS, 17 ) 270 271 FixedText FT_WRITERDIRECTCURSOR 272 { 273 FT_POS_SIZE( 18 ); 274 Text [ en-US ] = "Direct cursor"; 275 }; 276 LB_WN( WRITERDIRECTCURSOR, 18 ) 277 278 FixedText FT_HTML 279 { 280 FT_SEP_POS_SIZE( 19 ); 281 Text [ en-US ] = "HTML Document"; 282 }; 283 284 FixedText FT_HTMLSGML 285 { 286 FT_POS_SIZE( 20 ); 287 Text [ en-US ] = "SGML syntax highlighting"; 288 }; 289 LB_WN( HTMLSGML, 20 ) 290 291 FixedText FT_HTMLCOMMENT 292 { 293 FT_POS_SIZE( 21 ); 294 Text [ en-US ] = "Comment highlighting"; 295 }; 296 LB_WN( HTMLCOMMENT, 21 ) 297 298 FixedText FT_HTMLKEYWORD 299 { 300 FT_POS_SIZE( 22 ); 301 Text [ en-US ] = "Keyword highlighting"; 302 }; 303 LB_WN( HTMLKEYWORD, 22 ) 304 305 FixedText FT_HTMLUNKNOWN 306 { 307 FT_POS_SIZE( 23 ); 308 Text [ en-US ] = "Text"; 309 }; 310 LB_WN( HTMLUNKNOWN, 23 ) 311 312 FixedText FT_CALC 313 { 314 FT_SEP_POS_SIZE( 24 ); 315 Text [ en-US ] = "Spreadsheet"; 316 }; 317 318 FixedText FT_CALCGRID 319 { 320 FT_POS_SIZE( 25 ); 321 Text [ en-US ] = "Grid lines"; 322 }; 323 LB_WN( CALCGRID, 25 ) 324 325 FixedText FT_CALCPAGEBREAK 326 { 327 FT_POS_SIZE( 26 ); 328 Text [ en-US ] = "Page breaks"; 329 }; 330 LB_WN( CALCPAGEBREAK, 26 ) 331 332 FixedText FT_CALCPAGEBREAKMANUAL 333 { 334 FT_POS_SIZE( 27 ); 335 Text [ en-US ] = "Manual page breaks"; 336 }; 337 LB_WN( CALCPAGEBREAKMANUAL, 27 ) 338 339 FixedText FT_CALCPAGEBREAKAUTO 340 { 341 FT_POS_SIZE( 28 ); 342 Text [ en-US ] = "Automatic page breaks"; 343 }; 344 LB_WN( CALCPAGEBREAKAUTO, 28) 345 346 FixedText FT_CALCDETECTIVE 347 { 348 FT_POS_SIZE( 29 ); 349 Text [ en-US ] = "Detective"; 350 }; 351 LB_WN( CALCDETECTIVE, 29 ) 352 353 FixedText FT_CALCDETECTIVEERROR 354 { 355 FT_POS_SIZE( 30 ); 356 Text [ en-US ] = "Detective error"; 357 }; 358 LB_WN( CALCDETECTIVEERROR, 30 ) 359 360 FixedText FT_CALCREFERENCE 361 { 362 FT_POS_SIZE( 31 ); 363 Text [ en-US ] = "References"; 364 }; 365 LB_WN( CALCREFERENCE, 31 ) 366 367 FixedText FT_CALCNOTESBACKGROUND 368 { 369 FT_POS_SIZE( 32 ); 370 Text [ en-US ] = "Comment background"; 371 }; 372 LB_WN( CALCNOTESBACKGROUND, 32 ) 373 374 FixedText FT_DRAW 375 { 376 FT_SEP_POS_SIZE( 33 ); 377 Text [ en-US ] = "Drawing / Presentation"; 378 }; 379 380 FixedText FT_DRAWGRID 381 { 382 FT_POS_SIZE( 34 ); 383 Text [ en-US ] = "Grid"; 384 }; 385 LB_WN( DRAWGRID, 34 ) 386 387 FixedText FT_BASIC 388 { 389 FT_SEP_POS_SIZE( 35 ); 390 Text [ en-US ] = "Basic Syntax Highlighting"; 391 }; 392 393 FixedText FT_BASICIDENTIFIER 394 { 395 FT_POS_SIZE( 36 ); 396 Text [ en-US ] = "Identifier"; 397 }; 398 LB_WN( BASICIDENTIFIER, 36 ) 399 400 FixedText FT_BASICCOMMENT 401 { 402 FT_POS_SIZE( 37 ); 403 Text [ en-US ] = "Comment"; 404 }; 405 LB_WN( BASICCOMMENT, 37 ) 406 407 FixedText FT_BASICNUMBER 408 { 409 FT_POS_SIZE( 38 ); 410 Text [ en-US ] = "Number"; 411 }; 412 LB_WN( BASICNUMBER, 38) 413 414 FixedText FT_BASICSTRING 415 { 416 FT_POS_SIZE( 39 ); 417 Text [ en-US ] = "String"; 418 }; 419 LB_WN( BASICSTRING, 39 ) 420 421 FixedText FT_BASICOPERATOR 422 { 423 FT_POS_SIZE( 40 ); 424 Text [ en-US ] = "Operator"; 425 }; 426 LB_WN( BASICOPERATOR, 40 ) 427 428 FixedText FT_BASICKEYWORD 429 { 430 FT_POS_SIZE( 41 ); 431 Text [ en-US ] = "Reserved expression"; 432 }; 433 LB_WN( BASICKEYWORD, 41 ) 434 435 FixedText FT_BASICERROR 436 { 437 FT_POS_SIZE( 42 ); 438 Text [ en-US ] = "Error"; 439 }; 440 LB_WN( BASICERROR, 42 ) 441 442 FixedText FT_SQL_COMMAND 443 { 444 FT_SEP_POS_SIZE( 43 ); 445 Text [ en-US ] = "SQL Syntax Highlighting"; 446 }; 447 448 FixedText FT_SQLIDENTIFIER 449 { 450 FT_POS_SIZE( 44 ); 451 Text [ en-US ] = "Identifier"; 452 }; 453 LB_WN( SQLIDENTIFIER, 44 ) 454 455 FixedText FT_SQLNUMBER 456 { 457 FT_POS_SIZE( 45 ); 458 Text [ en-US ] = "Number"; 459 }; 460 LB_WN( SQLNUMBER, 45 ) 461 462 FixedText FT_SQLSTRING 463 { 464 FT_POS_SIZE( 46 ); 465 Text [ en-US ] = "String"; 466 }; 467 LB_WN( SQLSTRING, 46 ) 468 469 FixedText FT_SQLOPERATOR 470 { 471 FT_POS_SIZE( 47 ); 472 Text [ en-US ] = "Operator"; 473 }; 474 LB_WN( SQLOPERATOR, 47 ) 475 476 FixedText FT_SQLKEYWORD 477 { 478 FT_POS_SIZE( 48 ); 479 Text [ en-US ] = "Keyword"; 480 }; 481 LB_WN( SQLKEYWORD, 48 ) 482 483 FixedText FT_SQLPARAMETER 484 { 485 FT_POS_SIZE( 49 ); 486 Text [ en-US ] = "Parameter"; 487 }; 488 LB_WN( SQLPARAMETER, 49 ) 489 490 FixedText FT_SQLCOMMENT 491 { 492 FT_POS_SIZE( 50 ); 493 Text [ en-US ] = "Comment"; 494 }; 495 LB_WN( SQLCOMMENT, 50 ) 496 497 String ST_EXTENSION 498 { 499 Text [ en-US ] = "Colorsettings of the Extensions"; 500 }; 501 String ST_SPELL_CHECK_HIGHLIGHTING 502 { 503 Text [ en-US ] = "Spell check highlighting"; 504 }; 505 String ST_GRAMMAR_CHECK_HIGHLIGHTING 506 { 507 Text [ en-US ] = "Grammar check highlighting"; 508 }; 509 }; 510 }; 511}; 512QueryBox RID_SVXQB_DELETE_COLOR_CONFIG 513{ 514 Buttons = WB_YES_NO ; 515 DefButton = WB_DEF_NO ; 516 Message [ en-US ] = "Do you really want to delete the color scheme?" ; 517}; 518String RID_SVXSTR_COLOR_CONFIG_DELETE 519{ 520 Text [ en-US ] = "Color Scheme Deletion" ; 521}; 522String RID_SVXSTR_COLOR_CONFIG_SAVE1 523{ 524 Text [ en-US ] = "Save scheme" ; 525}; 526String RID_SVXSTR_COLOR_CONFIG_SAVE2 527{ 528 Text [ en-US ] = "Name of color scheme" ; 529}; 530