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