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 "misc.hrc" 25#include "srtdlg.hrc" 26#include "cmdid.h" 27#include "helpid.h" 28 29ModalDialog DLG_SORTING 30{ 31 HelpID = CMD_FN_SORTING_DLG ; 32 OutputSize = TRUE ; 33 SVLook = TRUE ; 34 Size = MAP_APPFONT ( 268, 193 ) ; 35 Text [ en-US ] = "Sort" ; 36 Moveable = TRUE ; 37 OKButton BT_OK 38 { 39 Pos = MAP_APPFONT ( 212, 6 ) ; 40 Size = MAP_APPFONT ( 50, 14 ) ; 41 TabStop = TRUE ; 42 DefButton = TRUE ; 43 }; 44 CancelButton BT_CANCEL 45 { 46 Pos = MAP_APPFONT ( 212, 23 ) ; 47 Size = MAP_APPFONT ( 50, 14 ) ; 48 TabStop = TRUE ; 49 }; 50 HelpButton BT_HELP 51 { 52 Pos = MAP_APPFONT ( 212, 43 ) ; 53 Size = MAP_APPFONT ( 50, 14 ) ; 54 TabStop = TRUE ; 55 }; 56 FixedText FT_COL 57 { 58 Pos = MAP_APPFONT ( 68, 12 ) ; 59 Size = MAP_APPFONT ( 25, 8 ) ; 60 Text [ en-US ] = "Column" ; 61 Left = TRUE ; 62 }; 63 FixedText FT_KEYTYP 64 { 65 Pos = MAP_APPFONT ( 101, 12 ) ; 66 Size = MAP_APPFONT ( 48, 8 ) ; 67 Text [ en-US ] = "Key type" ; 68 Left = TRUE ; 69 }; 70 FixedText FT_DIR 71 { 72 Pos = MAP_APPFONT ( 155, 12 ) ; 73 Size = MAP_APPFONT ( 49, 10 ) ; 74 Text [ en-US ] = "Order" ; 75 }; 76 CheckBox CB_KEY1 77 { 78 HelpID = "sw:CheckBox:DLG_SORTING:CB_KEY1" ; 79 Pos = MAP_APPFONT ( 12, 25 ) ; 80 Size = MAP_APPFONT ( 49, 8 ) ; 81 Text [ en-US ] = "Key ~1" ; 82 Check = TRUE ; 83 }; 84 NumericField ED_KEY1 85 { 86 HelpID = "sw:NumericField:DLG_SORTING:ED_KEY1" ; 87 Border = TRUE ; 88 Pos = MAP_APPFONT ( 66, 23 ) ; 89 Size = MAP_APPFONT ( 25, 12 ) ; 90 Text = "10" ; 91 TabStop = TRUE ; 92 Left = TRUE ; 93 Repeat = TRUE ; 94 Spin = TRUE ; 95 Minimum = 1 ; 96 Maximum = 99 ; 97 Value = 1 ; 98 First = 1 ; 99 Last = 99 ; 100 SpinSize = 1 ; 101 }; 102 String STR_NUMERIC 103 { 104 Text [ en-US ] = "Numeric" ; 105 }; 106 ListBox DLB_KEY1 107 { 108 HelpID = "sw:ListBox:DLG_SORTING:DLB_KEY1" ; 109 Pos = MAP_APPFONT ( 96, 23 ) ; 110 Size = MAP_APPFONT ( 55, 45 ) ; 111 TabStop = TRUE ; 112 DropDown = TRUE ; 113 CurPos = 0 ; 114 Sort = TRUE ; 115 }; 116 RadioButton RB_UP 117 { 118 HelpID = "sw:RadioButton:DLG_SORTING:RB_UP" ; 119 Pos = MAP_APPFONT ( 155, 23 ) ; 120 Size = MAP_APPFONT ( 50, 10 ) ; 121 Text [ en-US ] = "~Ascending" ; 122 TabStop = TRUE ; 123 Check = TRUE ; 124 }; 125 RadioButton RB_DN 126 { 127 HelpID = "sw:RadioButton:DLG_SORTING:RB_DN" ; 128 Pos = MAP_APPFONT ( 155, 35 ) ; 129 Size = MAP_APPFONT ( 50, 10 ) ; 130 Text [ en-US ] = "~Descending" ; 131 TabStop = TRUE ; 132 }; 133 CheckBox CB_KEY2 134 { 135 HelpID = "sw:CheckBox:DLG_SORTING:CB_KEY2" ; 136 Pos = MAP_APPFONT ( 12, 52 ) ; 137 Size = MAP_APPFONT ( 49, 8 ) ; 138 Text [ en-US ] = "Key ~2" ; 139 }; 140 NumericField ED_KEY2 141 { 142 HelpID = "sw:NumericField:DLG_SORTING:ED_KEY2" ; 143 Border = TRUE ; 144 Pos = MAP_APPFONT ( 66, 50 ) ; 145 Size = MAP_APPFONT ( 25, 12 ) ; 146 TabStop = TRUE ; 147 Left = TRUE ; 148 Repeat = TRUE ; 149 Spin = TRUE ; 150 Minimum = 1 ; 151 Maximum = 99 ; 152 Value = 1 ; 153 First = 1 ; 154 Last = 99 ; 155 SpinSize = 1 ; 156 }; 157 ListBox DLB_KEY2 158 { 159 HelpID = "sw:ListBox:DLG_SORTING:DLB_KEY2" ; 160 Pos = MAP_APPFONT ( 96, 50 ) ; 161 Size = MAP_APPFONT ( 55, 45 ) ; 162 TabStop = TRUE ; 163 DropDown = TRUE ; 164 CurPos = 0 ; 165 Sort = TRUE ; 166 }; 167 RadioButton RB_UP2 168 { 169 HelpID = "sw:RadioButton:DLG_SORTING:RB_UP2" ; 170 Pos = MAP_APPFONT ( 155, 50 ) ; 171 Size = MAP_APPFONT ( 50, 10 ) ; 172 Text [ en-US ] = "Ascending" ; 173 TabStop = TRUE ; 174 Check = TRUE ; 175 }; 176 RadioButton RB_DN2 177 { 178 HelpID = "sw:RadioButton:DLG_SORTING:RB_DN2" ; 179 Pos = MAP_APPFONT ( 155, 62 ) ; 180 Size = MAP_APPFONT ( 50, 10 ) ; 181 Text [ en-US ] = "Descending" ; 182 TabStop = TRUE ; 183 }; 184 CheckBox CB_KEY3 185 { 186 HelpID = "sw:CheckBox:DLG_SORTING:CB_KEY3" ; 187 Pos = MAP_APPFONT ( 12, 81 ) ; 188 Size = MAP_APPFONT ( 49, 8 ) ; 189 Text [ en-US ] = "Key ~3" ; 190 }; 191 NumericField ED_KEY3 192 { 193 HelpID = "sw:NumericField:DLG_SORTING:ED_KEY3" ; 194 Border = TRUE ; 195 Pos = MAP_APPFONT ( 66, 79 ) ; 196 Size = MAP_APPFONT ( 25, 12 ) ; 197 TabStop = TRUE ; 198 Left = TRUE ; 199 Repeat = TRUE ; 200 Spin = TRUE ; 201 Minimum = 1 ; 202 Maximum = 99 ; 203 Value = 1 ; 204 First = 1 ; 205 Last = 99 ; 206 SpinSize = 1 ; 207 }; 208 ListBox DLB_KEY3 209 { 210 HelpID = "sw:ListBox:DLG_SORTING:DLB_KEY3" ; 211 Pos = MAP_APPFONT ( 96, 79 ) ; 212 Size = MAP_APPFONT ( 55, 45 ) ; 213 TabStop = TRUE ; 214 DropDown = TRUE ; 215 CurPos = 0 ; 216 Sort = TRUE ; 217 }; 218 RadioButton RB_UP3 219 { 220 HelpID = "sw:RadioButton:DLG_SORTING:RB_UP3" ; 221 Pos = MAP_APPFONT ( 155, 79 ) ; 222 Size = MAP_APPFONT ( 50, 10 ) ; 223 Text [ en-US ] = "Ascending" ; 224 TabStop = TRUE ; 225 Check = TRUE ; 226 }; 227 RadioButton RB_DN3 228 { 229 HelpID = "sw:RadioButton:DLG_SORTING:RB_DN3" ; 230 Pos = MAP_APPFONT ( 155, 91 ) ; 231 Size = MAP_APPFONT ( 50, 10 ) ; 232 Text [ en-US ] = "Descending" ; 233 TabStop = TRUE ; 234 }; 235 FixedLine FL_SORT_2 236 { 237 Pos = MAP_APPFONT ( 6, 3 ) ; 238 Size = MAP_APPFONT ( 200, 8 ) ; 239 Text [ en-US ] = "Sort criteria" ; 240 }; 241 RadioButton RB_COL 242 { 243 HelpID = "sw:RadioButton:DLG_SORTING:RB_COL" ; 244 Pos = MAP_APPFONT ( 12, 120 ) ; 245 Size = MAP_APPFONT ( 38, 10 ) ; 246 Text [ en-US ] = "Col~umns" ; 247 TabStop = TRUE ; 248 }; 249 RadioButton RB_ROW 250 { 251 HelpID = "sw:RadioButton:DLG_SORTING:RB_ROW" ; 252 Pos = MAP_APPFONT ( 12, 133 ) ; 253 Size = MAP_APPFONT ( 34, 10 ) ; 254 Text [ en-US ] = "~Rows" ; 255 TabStop = TRUE ; 256 Check = TRUE ; 257 }; 258 FixedLine FL_DIR 259 { 260 Pos = MAP_APPFONT ( 6, 108 ) ; 261 Size = MAP_APPFONT ( 95, 8 ) ; 262 Text [ en-US ] = "Direction" ; 263 }; 264 RadioButton RB_TAB 265 { 266 HelpID = "sw:RadioButton:DLG_SORTING:RB_TAB" ; 267 Pos = MAP_APPFONT ( 113, 120 ) ; 268 Size = MAP_APPFONT ( 44, 9 ) ; 269 Text [ en-US ] = "~Tabs" ; 270 TabStop = TRUE ; 271 Check = TRUE ; 272 }; 273 RadioButton RB_TABCH 274 { 275 HelpID = "sw:RadioButton:DLG_SORTING:RB_TABCH" ; 276 Pos = MAP_APPFONT ( 113, 133 ) ; 277 Size = MAP_APPFONT ( 38, 10 ) ; 278 Text [ en-US ] = "~Character" ; 279 TabStop = TRUE ; 280 }; 281 Edit ED_TABCH 282 { 283 HelpID = "sw:Edit:DLG_SORTING:ED_TABCH" ; 284 Border = TRUE ; 285 Pos = MAP_APPFONT ( 180, 133 ) ; 286 Size = MAP_APPFONT ( 12, 12 ) ; 287 TabStop = TRUE ; 288 Left = TRUE ; 289 }; 290 FixedLine FL_DELIM 291 { 292 Pos = MAP_APPFONT ( 107, 108 ) ; 293 Size = MAP_APPFONT ( 99, 8 ) ; 294 Text [ en-US ] = "Separator" ; 295 }; 296 String STR_ROW 297 { 298 Text [ en-US ] = "Rows" ; 299 }; 300 String STR_COL 301 { 302 Text [ en-US ] = "Column" ; 303 }; 304 PushButton PB_DELIM 305 { 306 HelpID = "sw:PushButton:DLG_SORTING:PB_DELIM" ; 307 Pos = MAP_APPFONT ( 195, 133 ) ; 308 Size = MAP_APPFONT ( 12, 12 ) ; 309 TabStop = TRUE ; 310 Text = "..." ; 311 }; 312 FixedLine FL_LANG 313 { 314 Pos = MAP_APPFONT ( 6, 147 ) ; 315 Size = MAP_APPFONT ( 95, 8 ) ; 316 Text [ en-US ] = "Language" ; 317 }; 318 ListBox LB_LANG 319 { 320 HelpID = "sw:ListBox:DLG_SORTING:LB_LANG" ; 321 Pos = MAP_APPFONT ( 12, 158 ) ; 322 Size = MAP_APPFONT ( 83, 61 ) ; 323 TabStop = TRUE ; 324 DropDown = TRUE ; 325 Sort = TRUE ; 326 }; 327 FixedLine FL_SORT 328 { 329 Pos = MAP_APPFONT ( 107, 147 ) ; 330 Size = MAP_APPFONT ( 99, 8 ) ; 331 Text [ en-US ] = "Setting" ; 332 }; 333 CheckBox CB_CASE 334 { 335 HelpID = "sw:CheckBox:DLG_SORTING:CB_CASE" ; 336 Pos = MAP_APPFONT ( 113, 159 ) ; 337 Size = MAP_APPFONT ( 147, 10 ) ; 338 TabStop = TRUE ; 339 Text [ en-US ] = "Match case" ; 340 }; 341 342}; 343InfoBox MSG_SRTERR 344{ 345 BUTTONS = WB_OK ; 346 DEFBUTTON = WB_DEF_OK ; 347 Message [ en-US ] = "Cannot sort selection" ; 348}; 349 350// ********************************************************************** EOF 351