sync master with lastest vba changes
[ooovba.git] / reportdesign / source / ui / dlg / CondFormat.src
blobba17b774c2804637be84918a83f021779a496414
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: CondFormat.src,v $
10  * $Revision: 1.6 $
11  *
12  * This file is part of OpenOffice.org.
13  *
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.
17  *
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).
23  *
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.
28  *
29  ************************************************************************/
30 #include "CondFormat.hrc"
31 #include "RptResId.hrc"
32 #include "helpids.hrc"
33 #ifndef _GLOBLMN_HRC
34 #include <svx/globlmn.hrc>
35 #endif
36 #include "rptui_slotid.hrc"
38 Control WIN_CONDITION
40         Size = MAP_APPFONT ( CONDITION_WIDTH , CONDITION_HEIGHT ) ;
41         HelpId = HID_RPT_COND_DLG;
42         DialogControl = TRUE;
43     Hide = TRUE;
45     FixedLine FL_CONDITION_HEADER
46         {
47                 Pos = MAP_APPFONT ( RELATED_CONTROLS, ROW_0_POS ) ;
48                 Size = MAP_APPFONT ( CONDITION_WIDTH - 2 * RELATED_CONTROLS, ROW_0_HEIGTH ) ;
49         };
51         ListBox LB_COND_TYPE
52         {
53                 Pos = MAP_APPFONT ( UNRELATED_CONTROLS, ROW_1_POS ) ;
54                 Size = MAP_APPFONT( COND_TYPE_WIDTH, 60 );
55                 Border = TRUE;
56                 DropDown = TRUE;
57                 TabStop = TRUE;
58         Sort = FALSE;
59                 StringList [ en-US ] =
60                 {
61                         < "Field Value Is" ; Default ; > ;
62                         < "Expression Is" ; Default ; > ;
63                 };
64         };
66         ListBox LB_OP
67         {
68                 Pos = MAP_APPFONT ( UNRELATED_CONTROLS + COND_TYPE_WIDTH + UNRELATED_CONTROLS, ROW_1_POS ) ;
69                 Size = MAP_APPFONT( COND_OP_WIDTH, 60 );
70                 Border = TRUE;
71                 DropDown = TRUE;
72                 TabStop = TRUE;
73         Sort = FALSE;
74                 StringList [ en-US ] =
75                 {
76                         < "between" ; 0; > ;
77                         < "not between" ; 1; > ;
78                         < "equal to" ; 2; > ;
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; > ;
84                 };
85         };
87         Edit ED_CONDITION_LHS
88         {
89                 Pos = MAP_APPFONT ( 3*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH, ROW_1_POS ) ;
90                 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT );
91                 Border = TRUE;
92                 TabStop = TRUE;
93         };
95         FixedText FT_AND
96         {
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";
101         };
103         Edit ED_CONDITION_RHS
104         {
105                 Pos = MAP_APPFONT ( 5*UNRELATED_CONTROLS + COND_TYPE_WIDTH + COND_OP_WIDTH + EDIT_WIDTH + OPERATOR_SEP_WIDTH,
106             ROW_1_POS );
107                 Size = MAP_APPFONT( EDIT_WIDTH, EDIT_HEIGHT );
108                 Border = TRUE;
109                 TabStop = TRUE;
110         };
112         ImageButton BTN_MOVE_UP
113         {
114                 Pos = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS - IMAGE_BUTTON_WIDTH, ROW_1_POS ) ;
115                 Size = MAP_APPFONT ( IMAGE_BUTTON_WIDTH, IMAGE_BUTTON_HEIGHT ) ;
116                 TabStop                         = TRUE ;
117         Symbol = IMAGEBUTTON_ARROW_UP ;
118         };
120         ImageButton BTN_MOVE_DOWN
121         {
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 ) ;
124                 TabStop                         = TRUE ;
125         Symbol = IMAGEBUTTON_ARROW_DOWN ;
126         };
128         ToolBox TB_FORMAT
129         {
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;
134                 Customize = FALSE;
135                 ItemList =
136                 {
137                         ToolBoxItem
138                         {
139                                 ITEM_FORMAT_ATTR_CHAR_WEIGHT
140                                 Checkable = TRUE;
141                         };
142                         ToolBoxItem
143                         {
144                                 ITEM_FORMAT_ATTR_CHAR_POSTURE
145                                 Checkable = TRUE;
146                         };
147                         ToolBoxItem
148                         {
149                                 ITEM_FORMAT_ATTR_CHAR_UNDERLINE
150                                 Checkable = TRUE;
151                         };
152                         ToolBoxItem
153                         {
154                                 Type = TOOLBOXITEM_SEPARATOR;
155                         };
156                         ToolBoxItem
157                         {
158                                 ITEM_TOOLBAR_BACKGROUND_COLOR
159                                 DropDown = TRUE;
160                         };
161                         ToolBoxItem
162                         {
163                                 ITEM_TOOLBAR_ATTR_CHAR_COLOR
164                                 Identifier = SID_ATTR_CHAR_COLOR2;
165                                 Command = ".uno:FontColor";
166                         };
167                         ToolBoxItem
168                         {
169                                 ITEM_FORMAT_CHAR_DLG
170                         };
171                 };
172         };
174         Window CRTL_FORMAT_PREVIEW
175         {
176                 Pos = MAP_APPFONT ( 2*UNRELATED_CONTROLS, ROW_2_POS ) ;
177                 Size = MAP_APPFONT ( CONDITION_WIDTH - UNRELATED_CONTROLS, ROW_2_HEIGHT ) ;
178                 Border = TRUE ;
179                 HelpId = HID_RPT_CRTL_FORMAT_PREVIEW;
180                 Text [ en-US ] = "Example";
181         };
183     PushButton BTN_ADD_CONDITION
184     {
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 );
187         Text = "+";
188     };
190     PushButton BTN_REMOVE_CONDITION
191     {
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 );
194         Text = "-";
195     };
197         Image IMG_MOVE_UP_HC
198         {
199                 ImageBitmap = Bitmap { File = "arrow_move_up_hc" ; };
200         };
202     Image IMG_MOVE_DOWN_HC
203         {
204                 ImageBitmap = Bitmap { File = "arrow_move_down_hc" ; };
205         };
208 ModalDialog RID_CONDFORMAT
210         OutputSize = TRUE ;
211         SVLook = TRUE ;
212     Size = MAP_APPFONT ( COND_DLG_WIDTH, COND_DLG_HEIGHT ) ;
213         Text [ en-US ] = "Conditional Formatting" ;
214         HelpId = HID_RPT_CONDFORMAT_DLG;
215         Moveable = TRUE ;
216         Closeable = TRUE ;
218     Window WND_COND_PLAYGROUND
219     {
220                 Pos = MAP_APPFONT ( 0, 0 ) ;
221                 Size = MAP_APPFONT ( CONDITION_WIDTH, CONDITION_HEIGHT ) ;
222         DialogControl = TRUE;
223         Hide = FALSE;
224     };
226         FixedLine FL_SEPARATOR1
227         {
228                 Pos = MAP_APPFONT ( RELATED_CONTROLS, CONDITION_HEIGHT + RELATED_CONTROLS ) ;
229                 Size = MAP_APPFONT ( CONDITION_WIDTH - 2*RELATED_CONTROLS , 1 ) ;
230         };
232         OKButton PB_OK
233         {
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 ) ;
236                 TabStop = TRUE ;
237                 DefButton = TRUE ;
238         };
240     CancelButton PB_CANCEL
241         {
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 ) ;
244                 TabStop = TRUE ;
245         };
247         HelpButton PB_HELP
248         {
249                 TabStop = TRUE ;
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";
253         };
255     ScrollBar SB_ALL_CONDITIONS
256     {
257                 Pos = MAP_APPFONT ( CONDITION_WIDTH, RELATED_CONTROLS ) ;
258         Size = MAP_APPFONT ( SCROLLBAR_WIDTH, CONDITION_HEIGHT + RELATED_CONTROLS ) ;
259     };
262 String STR_NUMBERED_CONDITION
264         Text [ en-US ] = "Condition $number$";
267 String STR_COLOR_WHITE
269         Text [ en-US ] = "White" ;
271 String STR_CHARCOLOR
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
289         MASKCOLOR;
290         FileList =
291     {
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 ; > ;
298     };
301 ImageList IMG_CONDFORMAT_DLG_SCH
303         MASKCOLOR;
304         FileList =
305     {
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 ; > ;
312     };
314 ImageList IMG_CONDFORMAT_DLG_LC
316         MASKCOLOR;
317         FileList =
318     {
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 ; > ;
325     };
327 ImageList IMG_CONDFORMAT_DLG_LCH
329         MASKCOLOR;
330         FileList =
331     {
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 ; > ;
338     };
340 ImageList 31000
342         MASKCOLOR;
343         prefix = "sc";
344         IdList = {05500;};
345         IdCount = 1;
348 ToolBox RID_TB_SORTING
350     Pos = MAP_APPFONT ( 0,0 ) ;
351         ButtonType = BUTTON_SYMBOL;
352         Align = BOXALIGN_TOP;
353         Customize = FALSE;
354         ItemList =
355         {
356         ToolBoxItem
357                 {
358                         Identifier = SID_FM_SORTUP;
359             Text [ en-US ] = "Sort Ascending" ;
360             Checkable = TRUE;
361                 };
362                 ToolBoxItem
363                 {
364                         Identifier = SID_FM_SORTDOWN;
365             Text [ en-US ] = "Sort Descending" ;
366             Checkable = TRUE;
367                 };
368         ToolBoxItem
369                 {
370                         Identifier = SID_FM_REMOVE_FILTER_SORT;
371             Text [ en-US ] = "Remove sorting" ;
372                 };
373         ToolBoxItem
374                 {
375             Type = TOOLBOXITEM_SEPARATOR;
376                 };
377         ToolBoxItem
378                 {
379             Identifier = SID_ADD_CONTROL_PAIR;
380             Text [ en-US ] = "Insert" ;
381                 };
382         };
384 ImageList IMG_ADDFIELD_DLG_SC
386         MASKCOLOR;
387         FileList =
388     {
389         < "res/commandimagelist/sc_sortup.png" ; SID_FM_SORTUP ; > ;
390         < "res/commandimagelist/sc_sortdown.png" ; SID_FM_SORTDOWN ; > ;
391         < "res/commandimagelist/sc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
392     };
394 ImageList IMG_ADDFIELD_DLG_SCH
396         MASKCOLOR;
397         FileList =
398     {
399         < "res/commandimagelist/sch_sortup.png" ; SID_FM_SORTUP ; > ;
400         < "res/commandimagelist/sch_sortdown.png" ; SID_FM_SORTDOWN ; > ;
401         < "res/commandimagelist/sch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
402     };
404 ImageList IMG_ADDFIELD_DLG_LC
406         MASKCOLOR;
407         FileList =
408     {
409         < "res/commandimagelist/lc_sortup.png" ; SID_FM_SORTUP ; > ;
410         < "res/commandimagelist/lc_sortdown.png" ; SID_FM_SORTDOWN ; > ;
411         < "res/commandimagelist/lc_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
412     };
414 ImageList IMG_ADDFIELD_DLG_LCH
416         MASKCOLOR;
417         FileList =
418     {
419         < "res/commandimagelist/lch_sortup.png" ; SID_FM_SORTUP ; > ;
420         < "res/commandimagelist/lch_sortdown.png" ; SID_FM_SORTDOWN ; > ;
421         < "res/commandimagelist/lch_removefiltersort.png" ; SID_FM_REMOVE_FILTER_SORT ; > ;
422     };