1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CondFormat.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #include "CondFormat.hrc"
31 #include "RptResId.hrc"
32 #include "helpids.hrc"
34 #include <svx/globlmn.hrc>
36 #include "rptui_slotid.hrc"
40 Size = MAP_APPFONT ( CONDITION_WIDTH , CONDITION_HEIGHT ) ;
41 HelpId = HID_RPT_COND_DLG;
45 FixedLine FL_CONDITION_HEADER
47 Pos = MAP_APPFONT ( RELATED_CONTROLS, ROW_0_POS ) ;
48 Size = MAP_APPFONT ( CONDITION_WIDTH - 2 * RELATED_CONTROLS, ROW_0_HEIGTH ) ;
53 Pos = MAP_APPFONT ( UNRELATED_CONTROLS, ROW_1_POS ) ;
54 Size = MAP_APPFONT( COND_TYPE_WIDTH, 60 );
59 StringList [ en-US ] =
61 < "Field Value Is" ; Default ; > ;
62 < "Expression Is" ; Default ; > ;
68 Pos = MAP_APPFONT ( UNRELATED_CONTROLS + COND_TYPE_WIDTH + UNRELATED_CONTROLS, ROW_1_POS ) ;
69 Size = MAP_APPFONT( COND_OP_WIDTH, 60 );
74 StringList [ en-US ] =
77 < "not between" ; 1; > ;
79 < "not equal to" ; 3; > ;
80 < "greater than" ; 4; > ;
81 < "less than" ; 5; > ;
82 < "greater than or equal to" ; 6; > ;
83 < "less than or equal to" ; 7; > ;
89 Pos = MAP_APPFONT ( 3*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH, ROW_1_POS ) ;
90 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT );
97 Pos = MAP_APPFONT ( 4*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + EDIT_WIDTH,
98 ROW_1_POS + ( FIXEDTEXT_HEIGHT - EDIT_HEIGHT ) / 2 );
99 Size = MAP_APPFONT( OPERATOR_SEP_WIDTH , FIXEDTEXT_HEIGHT );
100 Text [ en-US ] = "and";
103 Edit ED_CONDITION_RHS
105 Pos = MAP_APPFONT ( 5*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + EDIT_WIDTH + OPERATOR_SEP_WIDTH,
107 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT );
112 ImageButton BTN_MOVE_UP
114 Pos = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS - IMAGE_BUTTON_WIDTH, ROW_1_POS ) ;
115 Size = MAP_APPFONT ( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ) ;
117 Symbol = IMAGEBUTTON_ARROW_UP ;
120 ImageButton BTN_MOVE_DOWN
122 Pos = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS - IMAGE_BUTTON_WIDTH, ROW_1_POS + IMAGE_BUTTON_HEIGHT + RELATED_CONTROLS ) ;
123 Size = MAP_APPFONT ( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ) ;
125 Symbol = IMAGEBUTTON_ARROW_DOWN ;
130 Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, ROW_2_POS ) ;
131 ButtonType = BUTTON_SYMBOL;
132 Align = BOXALIGN_TOP;
133 HelpId = HID_RPT_CONDFORMAT_TB;
139 ITEM_FORMAT_ATTR_CHAR_WEIGHT
144 ITEM_FORMAT_ATTR_CHAR_POSTURE
149 ITEM_FORMAT_ATTR_CHAR_UNDERLINE
154 Type = TOOLBOXITEM_SEPARATOR;
158 ITEM_TOOLBAR_BACKGROUND_COLOR
163 ITEM_TOOLBAR_ATTR_CHAR_COLOR
164 Identifier = SID_ATTR_CHAR_COLOR2;
165 Command = ".uno:FontColor";
174 Window CRTL_FORMAT_PREVIEW
176 Pos = MAP_APPFONT ( 2*UNRELATED_CONTROLS, ROW_2_POS ) ;
177 Size = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS, ROW_2_HEIGHT ) ;
179 HelpId = HID_RPT_CRTL_FORMAT_PREVIEW;
180 Text [ en-US ] = "Example";
183 PushButton BTN_ADD_CONDITION
185 Pos = MAP_APPFONT( CONDITION_WIDTH - 2*UNRELATED_CONTROLS - 2*IMAGE_BUTTON_WIDTH - RELATED_CONTROLS, ROW_3_POS );
186 Size = MAP_APPFONT( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT );
190 PushButton BTN_REMOVE_CONDITION
192 Pos = MAP_APPFONT( CONDITION_WIDTH - 2*UNRELATED_CONTROLS - 2*IMAGE_BUTTON_WIDTH - RELATED_CONTROLS, ROW_3_POS );
193 Size = MAP_APPFONT( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT );
199 ImageBitmap = Bitmap { File = "arrow_move_up_hc" ; };
202 Image IMG_MOVE_DOWN_HC
204 ImageBitmap = Bitmap { File = "arrow_move_down_hc" ; };
208 ModalDialog RID_CONDFORMAT
212 Size = MAP_APPFONT ( COND_DLG_WIDTH, COND_DLG_HEIGHT ) ;
213 Text [ en-US ] = "Conditional Formatting" ;
214 HelpId = HID_RPT_CONDFORMAT_DLG;
218 Window WND_COND_PLAYGROUND
220 Pos = MAP_APPFONT ( 0, 0 ) ;
221 Size = MAP_APPFONT ( CONDITION_WIDTH, CONDITION_HEIGHT ) ;
222 DialogControl = TRUE;
226 FixedLine FL_SEPARATOR1
228 Pos = MAP_APPFONT ( RELATED_CONTROLS, CONDITION_HEIGHT + RELATED_CONTROLS ) ;
229 Size = MAP_APPFONT ( CONDITION_WIDTH - 2*RELATED_CONTROLS , 1 ) ;
234 Pos = MAP_APPFONT ( CONDITION_WIDTH - 3*BUTTON_WIDTH - 2*UNRELATED_CONTROLS - RELATED_CONTROLS, CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ;
235 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
240 CancelButton PB_CANCEL
242 Pos = MAP_APPFONT ( CONDITION_WIDTH - 2*BUTTON_WIDTH - 2*UNRELATED_CONTROLS , CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ;
243 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
250 Pos = MAP_APPFONT ( CONDITION_WIDTH - BUTTON_WIDTH - UNRELATED_CONTROLS, CONDITION_HEIGHT + 2*RELATED_CONTROLS + 1) ;
251 Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
252 Text [ en-US ] = "~Help";
255 ScrollBar SB_ALL_CONDITIONS
257 Pos = MAP_APPFONT ( CONDITION_WIDTH, RELATED_CONTROLS ) ;
258 Size = MAP_APPFONT ( SCROLLBAR_WIDTH, CONDITION_HEIGHT + RELATED_CONTROLS ) ;
262 String STR_NUMBERED_CONDITION
264 Text [ en-US ] = "Condition $number$";
267 String STR_COLOR_WHITE
269 Text [ en-US ] = "White" ;
273 Text [ en-US ] = "Font color" ;
275 String STR_CHARBACKGROUND
277 Text [ en-US ] = "Background";
279 String STR_TRANSPARENT
281 Text [ en-US ] = "No Fill" ;
284 #define MASKCOLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; }
286 //-------------------------------------------------------------------------
287 ImageList IMG_CONDFORMAT_DLG_SC
292 < "res/commandimagelist/sc_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ;
293 < "res/commandimagelist/sc_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ;
294 < "res/commandimagelist/sc_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ;
295 < "res/commandimagelist/sc_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ;
296 < "res/commandimagelist/sc_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ;
297 < "res/commandimagelist/sc_fontdialog.png" ; SID_CHAR_DLG ; > ;
301 ImageList IMG_CONDFORMAT_DLG_SCH
306 < "res/commandimagelist/sch_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ;
307 < "res/commandimagelist/sch_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ;
308 < "res/commandimagelist/sch_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ;
309 < "res/commandimagelist/sch_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ;
310 < "res/commandimagelist/sch_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ;
311 < "res/commandimagelist/sch_fontdialog.png" ; SID_CHAR_DLG ; > ;
314 ImageList IMG_CONDFORMAT_DLG_LC
319 < "res/commandimagelist/lc_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ;
320 < "res/commandimagelist/lc_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ;
321 < "res/commandimagelist/lc_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ;
322 < "res/commandimagelist/lc_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ;
323 < "res/commandimagelist/lc_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ;
324 < "res/commandimagelist/lc_fontdialog.png" ; SID_CHAR_DLG ; > ;
327 ImageList IMG_CONDFORMAT_DLG_LCH
332 < "res/commandimagelist/lch_bold.png" ; SID_ATTR_CHAR_WEIGHT ; > ;
333 < "res/commandimagelist/lch_italic.png" ; SID_ATTR_CHAR_POSTURE ; > ;
334 < "res/commandimagelist/lch_underline.png" ; SID_ATTR_CHAR_UNDERLINE ; > ;
335 < "res/commandimagelist/lch_backgroundcolor.png" ; SID_BACKGROUND_COLOR ; > ;
336 < "res/commandimagelist/lch_fontcolor.png" ; SID_ATTR_CHAR_COLOR2 ; > ;
337 < "res/commandimagelist/lch_fontdialog.png" ; SID_CHAR_DLG ; > ;
352 ToolBox RID_TB_SORTING
354 Pos = MAP_APPFONT ( 0,0 ) ;
355 ButtonType = BUTTON_SYMBOL;
356 Align = BOXALIGN_TOP;
362 Identifier = SID_FM_SORTUP;
363 Text [ en-US ] = "Sort Ascending" ;
368 Identifier = SID_FM_SORTDOWN;
369 Text [ en-US ] = "Sort Descending" ;
374 Identifier = SID_FM_REMOVE_FILTER_SORT;
375 Text [ en-US ] = "Remove sorting" ;
379 Type = TOOLBOXITEM_SEPARATOR;
383 Identifier = SID_ADD_CONTROL_PAIR;
384 Text [ en-US ] = "Insert" ;
389 ImageList IMG_ADDFIELD_DLG_SC
394 < "res/commandimagelist/sc_sortup.png" ; SID_FM_SORTUP ; > ;
395 < "res/commandimagelist/sc_sortdown.png" ; SID_FM_SORTDOWN ; > ;
396 < "res/commandimagelist/sc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
400 ImageList IMG_ADDFIELD_DLG_SCH
405 < "res/commandimagelist/sch_sortup.png" ; SID_FM_SORTUP ; > ;
406 < "res/commandimagelist/sch_sortdown.png" ; SID_FM_SORTDOWN ; > ;
407 < "res/commandimagelist/sch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
411 ImageList IMG_ADDFIELD_DLG_LC
416 < "res/commandimagelist/lc_sortup.png" ; SID_FM_SORTUP ; > ;
417 < "res/commandimagelist/lc_sortdown.png" ; SID_FM_SORTDOWN ; > ;
418 < "res/commandimagelist/lc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
422 ImageList IMG_ADDFIELD_DLG_LCH
427 < "res/commandimagelist/lch_sortup.png" ; SID_FM_SORTUP ; > ;
428 < "res/commandimagelist/lch_sortdown.png" ; SID_FM_SORTDOWN ; > ;
429 < "res/commandimagelist/lch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
433 FixedLine ADDFIELD_FL_HELP_SEPARATOR
436 Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
437 Size = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
438 Text [ en-US ] = "Help";
441 FixedText ADDFIELD_HELP_FIELD
444 Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
445 Size = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
447 Text [ en-US ] = "Highlight the fields to insert into the selected section of the template, then click Insert or press Enter.";