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