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#include "GroupsSorting.hrc"
24#include "RptResId.hrc"
25#include "helpids.hrc"
26#ifndef _GLOBLMN_HRC
27#include <svx/globlmn.hrc>
28#endif
29#ifndef _SBASLTID_HRC
30#include <svx/svxids.hrc>
31#endif
32
33
34FloatingWindow RID_GROUPS_SORTING
35{
36	OutputSize = TRUE ;
37	SVLook = TRUE ;
38    Size = MAP_APPFONT ( PAGE_WIDTH , PAGE_HEIGHT ) ;
39	Text [ en-US ] = "Sorting and Grouping" ;
40	HelpId = HID_RPT_GROUPSSORTING_DLG;
41	Moveable = TRUE ;
42	Closeable = TRUE ;
43	Sizeable = TRUE;
44
45	FixedLine FL_SEPARATOR2
46	{
47		Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
48		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
49		Text [ en-US ] = "Groups";
50	};
51
52	Control WND_CONTROL
53	{
54		Pos = MAP_APPFONT( UNRELATED_CONTROLS, 2*UNRELATED_CONTROLS );
55		Size = MAP_APPFONT( PAGE_WIDTH - 2*UNRELATED_CONTROLS, BROWSER_HEIGHT );
56		HelpId = HID_RPT_GROUPSBRW ;
57		Border = TRUE;
58		TabStop = TRUE;
59	};
60
61	FixedText FT_MOVELABEL
62	{
63		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 3*UNRELATED_CONTROLS + BROWSER_HEIGHT ) ;
64        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
65//		Text [ en-US ] = "Move group" ;
66		Text [ en-US ] = "Group actions" ;
67	};
68
69//     /*
70//       |                                  PAGE_WIDTH                                            |
71//       |                         /-----\            {-------\            /---------\            |
72//       | unreleated FT_MOVELABEL |PB_UP| unreleated |PB_DOWN| unreleated |PD_DELETE| unreleated |
73//       |                         \_____/            \_______/            \_________/            |
74//
75//       Don't set any position here, it will be done in OGroupsSortingDialog::Resize()
76//
77//       Find possible IMAGEBUTTON_* in rscicpx.cxx
78//       Symbol is vclrsc.hxx
79//      */
80// 	ImageButton PB_UP
81// 	{
82// 		Pos = MAP_APPFONT ( PAGE_WIDTH - 3*UNRELATED_CONTROLS - 3*14 - 2*RELATED_CONTROLS, 3*UNRELATED_CONTROLS + BROWSER_HEIGHT -1 ) ;
83// 		Size = MAP_APPFONT ( 14 , 14 ) ;
84// 		TabStop = TRUE;
85// //        Symbol = IMAGEBUTTON_ARROW_UP ; // arrow up
86//         Symbol = IMAGEBUTTON_SPIN_UP ; // triangle up
87// //        Symbol = IMAGEBUTTON_FLOAT;
88// 	};
89//
90// 	ImageButton PB_DOWN
91// 	{
92// 		Pos = MAP_APPFONT ( PAGE_WIDTH - 2*UNRELATED_CONTROLS - 2*14 - 2*RELATED_CONTROLS, 3*UNRELATED_CONTROLS + BROWSER_HEIGHT - 1 ) ;
93// 		Size                = MAP_APPFONT ( 14 , 14 ) ;
94// 		TabStop = TRUE;
95// //        Symbol = IMAGEBUTTON_ARROW_DOWN ; // arrow down
96// //        Symbol = IMAGEBUTTON_FIRST ;
97//         Symbol = IMAGEBUTTON_SPIN_DOWN;
98//
99// 	};
100//
101// 	ImageButton PB_DELETE
102// 	{
103// 		Pos = MAP_APPFONT ( PAGE_WIDTH - UNRELATED_CONTROLS - 14, 3*UNRELATED_CONTROLS + BROWSER_HEIGHT - 1 ) ;
104// 		Size                = MAP_APPFONT ( 14 , 14 ) ;
105// 		TabStop = TRUE;
106//         Symbol = IMAGEBUTTON_CLOSE ;
107// 	};
108
109
110	ToolBox TB_TOOLBOX
111	{
112		Pos = MAP_APPFONT ( PAGE_WIDTH - 4*14 - UNRELATED_CONTROLS, 3*UNRELATED_CONTROLS + BROWSER_HEIGHT - 1 ) ;
113		ButtonType = BUTTON_SYMBOL;
114// 		Align = BOXALIGN_TOP;
115// 		HelpId = HID_RPT_CONDFORMAT_TB;
116		Customize = FALSE;
117		ItemList =
118		{
119			ToolBoxItem
120			{
121				Identifier = SID_RPT_GROUPSORT_MOVE_UP ;
122				// Command = ".uno:ReportGroupMoveUp" ; // default_images/res/commandimages/sc_reportgroupmoveup.png
123				HelpID = HID_RPT_GROUPSORT_MOVE_UP ;
124				Text [ en-US ] = "Move up" ;
125				Checkable = TRUE;
126//                Disable              = TRUE;
127			};
128			ToolBoxItem
129			{
130				Identifier = SID_RPT_GROUPSORT_MOVE_DOWN ;
131				// Command = ".uno:ReportGroupMoveDown" ;
132				HelpID = HID_RPT_GROUPSORT_MOVE_DOWN ;
133				Text [ en-US ] = "Move down" ;
134				Checkable = TRUE;
135//                Disable              = TRUE;
136			};
137			ToolBoxItem
138			{
139				Identifier = SID_RPT_GROUPSORT_DELETE ;
140				// Command = ".uno:ReportGroupDelete" ;
141				HelpID = HID_RPT_GROUPSORT_DELETE ;
142				Text [ en-US ] = "~Delete" ;
143				Checkable = TRUE;
144//                Disable              = TRUE;
145			};
146		};
147	};
148
149	FixedLine FL_SEPARATOR3
150	{
151		Pos = MAP_APPFONT ( RELATED_CONTROLS , 3*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT) ;
152		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
153		Text [ en-US ] = "Properties";
154	};
155
156	FixedText FT_ORDER
157	{
158		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 4*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + FIXEDTEXT_HEIGHT ) ;
159        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
160        Hide = TRUE;
161        Text [ en-US ] = "Sorting" ;
162	};
163	ListBox LST_ORDER
164	{
165	    HelpID = "reportdesign:ListBox:RID_GROUPS_SORTING:LST_ORDER";
166		Border = TRUE;
167		Pos = MAP_APPFONT(2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH, 4*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + FIXEDTEXT_HEIGHT - 1 );
168		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
169		DropDown = TRUE;
170		TabStop = TRUE;
171		Hide = TRUE;
172		CurPos = 0 ;
173		StringList [ en-US ] =
174		{
175			< "Ascending" ; 0 ; > ;
176			< "Descending" ; 1 ; > ;
177		};
178
179	};
180	FixedText FT_HEADER
181	{
182		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 5*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 2*FIXEDTEXT_HEIGHT) ;
183        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
184        Hide = TRUE;
185		Text [ en-US ] = "Group Header" ;
186
187	};
188	ListBox LST_HEADERLST
189	{
190	    HelpID = "reportdesign:ListBox:RID_GROUPS_SORTING:LST_HEADERLST";
191		Border = TRUE;
192		Hide = TRUE;
193		Pos = MAP_APPFONT( 2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH, 5*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 2*FIXEDTEXT_HEIGHT -1);
194		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
195		DropDown = TRUE;
196		TabStop = TRUE;
197		CurPos = 1 ;
198		StringList [ en-US ] =
199		{
200			< "Present" ; Default ; > ;
201			< "Not present" ; Default ; > ;
202		};
203	};
204	FixedText FT_FOOTER
205	{
206		Pos = MAP_APPFONT (  UNRELATED_CONTROLS, 6*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 3*FIXEDTEXT_HEIGHT) ;
207        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
208        Hide = TRUE;
209        Text [ en-US ] = "Group Footer" ;
210
211	};
212	ListBox LST_FOOTERLST
213	{
214	    HelpID = "reportdesign:ListBox:RID_GROUPS_SORTING:LST_FOOTERLST";
215		Border = TRUE;
216		Hide = TRUE;
217		Pos = MAP_APPFONT( 2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH, 6*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 3*FIXEDTEXT_HEIGHT -1);
218		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
219		DropDown = TRUE;
220		TabStop = TRUE;
221		CurPos = 1 ;
222		StringList [ en-US ] =
223		{
224			< "Present" ; Default ; > ;
225			< "Not present" ; Default ; > ;
226		};
227	};
228	FixedText FT_GROUPON
229	{
230		Pos = MAP_APPFONT (  UNRELATED_CONTROLS, 7*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 4*FIXEDTEXT_HEIGHT) ;
231        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
232        Hide = TRUE;
233		Text [ en-US ] = "Group On" ;
234
235	};
236	ListBox LST_GROUPONLST
237	{
238	    HelpID = "reportdesign:ListBox:RID_GROUPS_SORTING:LST_GROUPONLST";
239		Border = TRUE;
240		Hide = TRUE;
241		Pos = MAP_APPFONT( 2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH, 7*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 4*FIXEDTEXT_HEIGHT -1);
242		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
243		DropDown = TRUE;
244		TabStop = TRUE;
245		CurPos = 0 ;
246		StringList [ en-US ] =
247		{
248			< "Each Value" ; Default ; > ;
249		};
250	};
251	FixedText FT_GROUPINTERVAL
252	{
253		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 8*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 5*FIXEDTEXT_HEIGHT) ;
254        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
255        Hide = TRUE;
256        Text [ en-US ] = "Group Interval" ;
257	};
258	NumericField ED_GROUPINTERVALLST
259	{
260	    HelpID = "reportdesign:NumericField:RID_GROUPS_SORTING:ED_GROUPINTERVALLST";
261		Border = TRUE;
262		Hide = TRUE;
263		Pos = MAP_APPFONT(2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH , 8*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 5*FIXEDTEXT_HEIGHT -1);
264		Size = MAP_APPFONT( LISTBOX_WIDTH, EDIT_HEIGHT );
265		TabStop = TRUE;
266	};
267
268	FixedText FT_KEEPTOGETHER
269	{
270		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 9*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 6*FIXEDTEXT_HEIGHT) ;
271        Size = MAP_APPFONT ( FIXEDTEXT_WIDTH , FIXEDTEXT_HEIGHT ) ;
272        Hide = TRUE;
273		Text [ en-US ] = "Keep Together" ;
274	};
275	ListBox LST_KEEPTOGETHERLST
276	{
277	    HelpID = "reportdesign:ListBox:RID_GROUPS_SORTING:LST_KEEPTOGETHERLST";
278		Border = TRUE;
279		Hide = TRUE;
280		Pos = MAP_APPFONT(2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH , 9*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 6*FIXEDTEXT_HEIGHT -1);
281		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
282		DropDown = TRUE;
283		TabStop = TRUE;
284		CurPos = 0 ;
285		StringList [ en-US ] =
286		{
287			< "No" ; 0 ; > ;
288			< "Whole Group" ; 1 ; > ;
289			< "With First Detail" ; 2 ; > ;
290		};
291	};
292
293	FixedLine FL_SEPARATOR1
294	{
295		Pos = MAP_APPFONT ( RELATED_CONTROLS , 10*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 7*FIXEDTEXT_HEIGHT) ;
296		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
297		Text [ en-US ] = "Help";
298	};
299
300	FixedText HELP_FIELD
301	{
302		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 12*UNRELATED_CONTROLS + BROWSER_HEIGHT + BUTTON_HEIGHT + 7*FIXEDTEXT_HEIGHT) ;
303		Size = MAP_APPFONT( PAGE_WIDTH - 2*UNRELATED_CONTROLS, 4*FIXEDTEXT_HEIGHT);
304		WordBreak = TRUE;
305	};
306
307//BTN 	Image IMG_UP_H
308//BTN 	{
309//BTN 		ImageBitmap = Bitmap { File = "arrow_move_up_hc" ; };
310//BTN 	};
311//BTN 	Image IMG_DOWN_H
312//BTN 	{
313//BTN 		ImageBitmap = Bitmap { File = "arrow_move_down_hc" ; };
314//BTN 	};
315
316
317};
318
319String STR_RPT_EXPRESSION
320{
321	Text [ en-US ] = "Field/Expression" ;
322};
323String STR_RPT_SORTING
324{
325	Text [ en-US ] = "Sort Order" ;
326};
327String STR_RPT_PREFIXCHARS
328{
329	Text [ en-US ] = "Prefix Characters" ;
330};
331String STR_RPT_YEAR
332{
333	Text [ en-US ] = "Year" ;
334};
335String STR_RPT_QUARTER
336{
337	Text [ en-US ] = "Quarter" ;
338};
339String STR_RPT_MONTH
340{
341	Text [ en-US ] = "Month" ;
342};
343String STR_RPT_WEEK
344{
345	Text [ en-US ] = "Week" ;
346};
347String STR_RPT_DAY
348{
349	Text [ en-US ] = "Day" ;
350};
351String STR_RPT_HOUR
352{
353	Text [ en-US ] = "Hour" ;
354};
355String STR_RPT_MINUTE
356{
357	Text [ en-US ] = "Minute" ;
358};
359String STR_RPT_INTERVAL
360{
361	Text [ en-US ] = "Interval" ;
362};
363
364String STR_RPT_HELP_FIELD
365{
366	Text [ en-US ] = "Select a field or type an expression to sort or group on." ;
367};
368
369String STR_RPT_HELP_HEADER
370{
371	Text [ en-US ] = "Display a header for this group?" ;
372};
373
374String STR_RPT_HELP_FOOTER
375{
376	Text [ en-US ] = "Display a footer for this group?" ;
377};
378String STR_RPT_HELP_GROUPON
379{
380	Text [ en-US ] = "Select the value or range of values that starts a new group." ;
381};
382String STR_RPT_HELP_INTERVAL
383{
384	Text [ en-US ] = "Interval or number of characters to group on." ;
385};
386String STR_RPT_HELP_KEEP
387{
388	Text [ en-US ] = "Keep group together on one page?" ;
389};
390String STR_RPT_HELP_SORT
391{
392	Text [ en-US ] = "Select ascending or descending sort order. Ascending means from A to Z or 0 to 9" ;
393};
394
395
396Menu RID_GROUPSROWPOPUPMENU
397{
398	ItemList =
399	{
400/*
401		MenuItem
402		{
403			ITEM_EDIT_CUT
404		};
405		MenuItem
406		{
407			ITEM_EDIT_COPY
408		};
409		MenuItem
410		{
411			ITEM_EDIT_PASTE
412		};
413*/
414		MenuItem
415		{
416			ITEM_EDIT_DELETE
417		};
418	};
419};
420
421
422#define DEF_MASKCOLOR MaskColor = Color { Red = 0xFFFF; Green = 0x0000; Blue = 0xFFFF; }
423
424#define DEF_IL_GROUPSORT \
425\
426    IdList = {\
427		SID_RPT_GROUPSORT_MOVE_UP;\
428		SID_RPT_GROUPSORT_MOVE_DOWN;\
429		SID_RPT_GROUPSORT_DELETE;\
430		};\
431	IdCount = {\
432	3;\
433	}
434
435ImageList IMGLST_GROUPSORT_DLG_SC
436{
437    DEF_MASKCOLOR;
438	prefix = "sc";
439	DEF_IL_GROUPSORT ;
440};
441
442ImageList IMGLST_GROUPSORT_DLG_SCH
443{
444    DEF_MASKCOLOR;
445	prefix = "sch";
446	DEF_IL_GROUPSORT ;
447};
448
449
450// Image IMG_GROUPSORT_MOVEUP
451// {
452//     ImageBitmap = Bitmap
453//     {
454//         File = "reportgroupmoveup"; // reportdesign/res/...
455//     };
456//     DEF_MASKCOLOR;
457// };
458// Image IMG_GROUPSORT_MOVEDOWN
459// {
460//     ImageBitmap = Bitmap
461//     {
462//         File = "reportgroupmovedown";
463//     };
464//     DEF_MASKCOLOR;
465// };
466// Image IMG_GROUPSORT_DELETE
467// {
468//     ImageBitmap = Bitmap
469//     {
470//         File = "reportgroupdelete";
471//     };
472//     DEF_MASKCOLOR;
473// };
474//
475// Image IMG_GROUPSORT_MOVEUP_H
476// {
477//     ImageBitmap = Bitmap
478//     {
479//         File = "reportgroupmoveup_h"; // reportdesign/res/...
480//     };
481//     DEF_MASKCOLOR;
482// };
483// Image IMG_GROUPSORT_MOVEDOWN_H
484// {
485//     ImageBitmap = Bitmap
486//     {
487//         File = "reportgroupmovedown_h";
488//     };
489//     DEF_MASKCOLOR;
490// };
491// Image IMG_GROUPSORT_DELETE_H
492// {
493//     ImageBitmap = Bitmap
494//     {
495//         File = "reportgroupdelete_h";
496//     };
497//     DEF_MASKCOLOR;
498// };
499