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