xref: /aoo41x/main/sc/source/ui/src/sortdlg.src (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
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.
14 *
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).
20 *
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.
25 *
26 ************************************************************************/
27#include "sortdlg.hrc"
28TabPage RID_SCPAGE_SORT_FIELDS
29{
30	Hide = TRUE ;
31	SVLook = TRUE ;
32	HelpId = HID_SCPAGE_SORT_FIELDS ;
33    Size = MAP_APPFONT ( 260 , 185 ) ;
34	ListBox LB_SORT1
35	{
36	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT1";
37		Border = TRUE ;
38		Pos = MAP_APPFONT ( 12 , 19 ) ;
39        Size = MAP_APPFONT ( 154 , 90 ) ;
40		TabStop = TRUE ;
41		DropDown = TRUE ;
42	};
43	RadioButton BTN_UP1
44	{
45	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP1";
46        Pos = MAP_APPFONT ( 172 , 14 ) ;
47        Size = MAP_APPFONT ( 79 , 10 ) ;
48		Text [ en-US ] = "~Ascending" ;
49		TabStop = TRUE ;
50	};
51	RadioButton BTN_DOWN1
52	{
53	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN1";
54        Pos = MAP_APPFONT ( 172 , 28 ) ;
55        Size = MAP_APPFONT ( 79 , 10 ) ;
56		Text [ en-US ] = "~Descending" ;
57		TabStop = TRUE ;
58	};
59    FixedLine FL_SORT1
60	{
61		Pos = MAP_APPFONT ( 6 , 3 ) ;
62        Size = MAP_APPFONT ( 248 , 8 ) ;
63		Text [ en-US ] = "Sort ~by" ;
64	};
65	ListBox LB_SORT2
66	{
67	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT2";
68		Border = TRUE ;
69        Pos = MAP_APPFONT ( 12 , 60 ) ;
70        Size = MAP_APPFONT ( 154 , 90 ) ;
71		TabStop = TRUE ;
72		DropDown = TRUE ;
73	};
74	RadioButton BTN_UP2
75	{
76	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP2";
77        Pos = MAP_APPFONT ( 172 , 55 ) ;
78        Size = MAP_APPFONT ( 79 , 10 ) ;
79		Text [ en-US ] = "A~scending" ;
80		TabStop = TRUE ;
81	};
82	RadioButton BTN_DOWN2
83	{
84	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN2";
85        Pos = MAP_APPFONT ( 172 , 69 ) ;
86        Size = MAP_APPFONT ( 79 , 10 ) ;
87		Text [ en-US ] = "D~escending" ;
88		TabStop = TRUE ;
89	};
90    FixedLine FL_SORT2
91	{
92        Pos = MAP_APPFONT ( 6 , 44 ) ;
93        Size = MAP_APPFONT ( 248 , 8 ) ;
94		Text [ en-US ] = "Then b~y" ;
95	};
96	ListBox LB_SORT3
97	{
98	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_FIELDS:LB_SORT3";
99		Border = TRUE ;
100        Pos = MAP_APPFONT ( 12 , 101 ) ;
101        Size = MAP_APPFONT ( 154 , 90 ) ;
102		TabStop = TRUE ;
103		DropDown = TRUE ;
104	};
105	RadioButton BTN_UP3
106	{
107	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_UP3";
108        Pos = MAP_APPFONT ( 172 , 96 ) ;
109        Size = MAP_APPFONT ( 79 , 10 ) ;
110		Text [ en-US ] = "As~cending" ;
111		TabStop = TRUE ;
112	};
113	RadioButton BTN_DOWN3
114	{
115	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_FIELDS:BTN_DOWN3";
116        Pos = MAP_APPFONT ( 172 , 110 ) ;
117        Size = MAP_APPFONT ( 79 , 10 ) ;
118		Text [ en-US ] = "Desce~nding" ;
119		TabStop = TRUE ;
120	};
121    FixedLine FL_SORT3
122	{
123        Pos = MAP_APPFONT ( 6 , 85 ) ;
124        Size = MAP_APPFONT ( 248 , 8 ) ;
125		Text [ en-US ] = "T~hen by" ;
126	};
127};
128TabPage RID_SCPAGE_SORT_OPTIONS
129{
130	Hide = TRUE ;
131	SVLook = TRUE ;
132	HelpId = HID_SCPAGE_SORT_OPTIONS ;
133	Pos = MAP_APPFONT ( 0 , 0 ) ;
134    Size = MAP_APPFONT ( 260 , 185 ) ;
135	CheckBox BTN_CASESENSITIVE
136	{
137	    HelpID = "sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_CASESENSITIVE";
138        Pos = MAP_APPFONT ( 12 , 6 ) ;
139        Size = MAP_APPFONT ( 242 , 10 ) ;
140		Text [ en-US ] = "Case ~sensitive" ;
141		TabStop = TRUE ;
142	};
143	CheckBox BTN_LABEL
144	{
145	    HelpID = "sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_LABEL";
146        Pos = MAP_APPFONT ( 12 , 20 ) ;
147        Size = MAP_APPFONT ( 242 , 10 ) ;
148		TabStop = TRUE ;
149	};
150	String STR_COL_LABEL
151	{
152		Text [ en-US ] = "Range contains column la~bels" ;
153	};
154	String STR_ROW_LABEL
155	{
156		Text [ en-US ] = "Range contains ~row labels" ;
157	};
158	CheckBox BTN_FORMATS
159	{
160	    HelpID = "sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_FORMATS";
161        Pos = MAP_APPFONT ( 12 , 34 ) ;
162        Size = MAP_APPFONT ( 242 , 10 ) ;
163		Text [ en-US ] = "Include ~formats" ;
164		TabStop = TRUE ;
165	};
166	CheckBox BTN_COPYRESULT
167	{
168	    HelpID = "sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_COPYRESULT";
169        Pos = MAP_APPFONT ( 12 , 48 ) ;
170        Size = MAP_APPFONT ( 242 , 10 ) ;
171		Text [ en-US ] = "~Copy sort results to:" ;
172		TabStop = TRUE ;
173	};
174	ListBox LB_OUTAREA
175	{
176	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_OUTAREA";
177		Border = TRUE ;
178        Pos = MAP_APPFONT ( 20 , 59 ) ;
179        Size = MAP_APPFONT ( 93 , 90 ) ;
180		TabStop = TRUE ;
181		DropDown = TRUE ;
182	};
183	Edit ED_OUTAREA
184	{
185	    HelpID = "sc:Edit:RID_SCPAGE_SORT_OPTIONS:ED_OUTAREA";
186		Disable = TRUE ;
187		Border = TRUE ;
188        Pos = MAP_APPFONT ( 119 , 59 ) ;
189        Size = MAP_APPFONT ( 132 , 12 ) ;
190		TabStop = TRUE ;
191	};
192	CheckBox BTN_SORT_USER
193	{
194	    HelpID = "sc:CheckBox:RID_SCPAGE_SORT_OPTIONS:BTN_SORT_USER";
195        Pos = MAP_APPFONT ( 12 , 75 ) ;
196        Size = MAP_APPFONT ( 242 , 10 ) ;
197		Text [ en-US ] = "Custom sort ~order" ;
198		TabStop = TRUE ;
199	};
200	ListBox LB_SORT_USER
201	{
202	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_SORT_USER";
203		Disable = TRUE ;
204		Border = TRUE ;
205        Pos = MAP_APPFONT ( 20 , 86 ) ;
206        Size = MAP_APPFONT ( 231 , 90 ) ;
207		TabStop = TRUE ;
208		DropDown = TRUE ;
209	};
210    FixedText FT_LANGUAGE
211	{
212        Pos = MAP_APPFONT ( 12 , 104 ) ;
213        Size = MAP_APPFONT ( 101 , 8 ) ;
214		Text [ en-US ] = "~Language";
215	};
216	ListBox LB_LANGUAGE
217	{
218	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_LANGUAGE";
219		Border = TRUE ;
220        Pos = MAP_APPFONT ( 12 , 115 ) ;
221        Size = MAP_APPFONT ( 101 , 90 ) ;
222		TabStop = TRUE ;
223		DropDown = TRUE ;
224		Sort = TRUE ;
225	};
226    FixedText FT_ALGORITHM
227	{
228        Pos = MAP_APPFONT ( 119 , 104 ) ;
229        Size = MAP_APPFONT ( 132 , 8 ) ;
230		Text [ en-US ] = "O~ptions";
231	};
232	ListBox LB_ALGORITHM
233	{
234	    HelpID = "sc:ListBox:RID_SCPAGE_SORT_OPTIONS:LB_ALGORITHM";
235		Border = TRUE ;
236        Pos = MAP_APPFONT ( 119 , 115 ) ;
237        Size = MAP_APPFONT ( 132 , 90 ) ;
238		TabStop = TRUE ;
239		DropDown = TRUE ;
240	};
241	FixedLine FL_DIRECTION
242	{
243        Pos = MAP_APPFONT ( 6 , 133 ) ;
244        Size = MAP_APPFONT ( 248 , 8 ) ;
245		Text [ en-US ] = "Direction" ;
246	};
247	RadioButton BTN_TOP_DOWN
248	{
249	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_OPTIONS:BTN_TOP_DOWN";
250        Pos = MAP_APPFONT ( 12 , 144 ) ;
251        Size = MAP_APPFONT ( 242 , 10 ) ;
252		Text [ en-US ] = "~Top to bottom (sort rows)" ;
253		TabStop = TRUE ;
254	};
255	RadioButton BTN_LEFT_RIGHT
256	{
257	    HelpID = "sc:RadioButton:RID_SCPAGE_SORT_OPTIONS:BTN_LEFT_RIGHT";
258        Pos = MAP_APPFONT ( 12 , 158 ) ;
259        Size = MAP_APPFONT ( 242 , 10 ) ;
260		Text [ en-US ] = "L~eft to right (sort columns)" ;
261		TabStop = TRUE ;
262	};
263	FixedText FT_AREA_LABEL
264	{
265        Pos = MAP_APPFONT ( 6 , 171 ) ;
266        Size = MAP_APPFONT ( 248 , 8 ) ;
267		Text [ en-US ] = "Data area:" ;
268	};
269};
270TabDialog RID_SCDLG_SORT
271{
272	OutputSize = TRUE ;
273	SVLook = TRUE ;
274	Size = MAP_APPFONT ( 220 , 175 ) ;
275	Text [ en-US ] = "Sort" ;
276	Moveable = TRUE ;
277	Closeable = FALSE ;
278	TabControl 1
279	{
280		OutputSize = TRUE ;
281		Pos = MAP_APPFONT ( 0 , 0 ) ;
282		Size = MAP_APPFONT ( 210 , 170 ) ;
283		PageList =
284		{
285			PageItem
286			{
287				Identifier = TP_FIELDS ;
288				PageResID = TP_FIELDS ;
289				Text [ en-US ] = "Sort Criteria" ;
290			};
291			PageItem
292			{
293				Identifier = TP_OPTIONS ;
294				PageResID = TP_OPTIONS ;
295				Text [ en-US ] = "Options" ;
296			};
297		};
298	};
299	OKButton 1
300	{
301		Pos = MAP_APPFONT ( 3 , 157 ) ;
302		Size = MAP_APPFONT ( 40 , 12 ) ;
303		TabStop = TRUE ;
304	};
305	CancelButton 1
306	{
307		Pos = MAP_APPFONT ( 49 , 157 ) ;
308		Size = MAP_APPFONT ( 40 , 12 ) ;
309		TabStop = TRUE ;
310	};
311	PushButton 1
312	{
313		Pos = MAP_APPFONT ( 137 , 157 ) ;
314		Size = MAP_APPFONT ( 40 , 12 ) ;
315		TabStop = TRUE ;
316	};
317	HelpButton 1
318	{
319		Pos = MAP_APPFONT ( 94 , 157 ) ;
320		Size = MAP_APPFONT ( 40 , 12 ) ;
321		TabStop = TRUE ;
322	};
323};
324
325ModalDialog RID_SCDLG_SORT_WARNING
326{
327    HelpID = "sc:ModalDialog:RID_SCDLG_SORT_WARNING";
328    OutputSize = TRUE ;
329    SVLook = TRUE ;
330    Size = MAP_APPFONT ( 180 , 91 ) ;
331    Text [ en-US ] = "Sort Range" ;
332    Moveable = TRUE ;
333    Closeable = FALSE ;
334    FixedText FT_TEXT
335    {
336        Pos = MAP_APPFONT ( 8 , 3 ) ;
337        Size = MAP_APPFONT ( 170 , 33 ) ;
338        WordBreak = TRUE;
339        Text [ en-US ] = "The cells next to the current selection also contain data. Do you want to extend the sort range to %1, or sort the currently selected range, %2?";
340    };
341    FixedText FT_TIP
342    {
343        Pos = MAP_APPFONT ( 8 , 55 ) ;
344        Size = MAP_APPFONT ( 170 , 33 ) ;
345        WordBreak = TRUE ;
346        Text [ en-US ] = "Tip: The sort range can be detected automatically. Place the cell cursor inside a list and execute sort. The whole range of neighboring non-empty cells will then be sorted.";
347    };
348    PushButton BTN_EXTSORT
349    {
350        HelpID = "sc:PushButton:RID_SCDLG_SORT_WARNING:BTN_EXTSORT";
351        Pos = MAP_APPFONT ( 6 , 39 ) ;
352        Size = MAP_APPFONT ( 60 , 14 ) ;
353        TabStop = TRUE ;
354        DefButton = TRUE ;
355        Text [ en-US ] = "Extend selection";
356    };
357    PushButton BTN_CURSORT
358    {
359        HelpID = "sc:PushButton:RID_SCDLG_SORT_WARNING:BTN_CURSORT";
360        Pos = MAP_APPFONT ( 70 , 39 ) ;
361        Size = MAP_APPFONT ( 60 , 14 ) ;
362        TabStop = TRUE ;
363        Text [ en-US ] = "Current selection";
364    };
365    CancelButton BTN_CANCEL
366    {
367        Pos = MAP_APPFONT ( 134 , 39 ) ;
368        Size = MAP_APPFONT ( 40 , 14 ) ;
369        TabStop = TRUE ;
370    };
371};
372
373