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 "globals.hrc" 25#include "column.hrc" 26#include "frmui.hrc" 27#include "cmdid.h" 28#include "helpid.h" 29#include "access.hrc" 30 31 // #define TP_COLUMN 256 32TabPage TP_COLUMN 33{ 34 HelpID = HID_COLUMN ; 35 Hide = TRUE; 36 Size = MAP_APPFONT ( 260 , 185 ) ; 37 Text [ en-US ] = "Columns" ; 38 FixedText FT_NUMBER 39 { 40 Pos = MAP_APPFONT ( 12 , 19 ) ; 41 Size = MAP_APPFONT ( 28 , 8 ) ; 42 Left = TRUE ; 43 Text [ en-US ] = "Columns"; 44 }; 45 NumericField ED_NUMBER 46 { 47 HelpID = "sw:NumericField:TP_COLUMN:ED_NUMBER"; 48 Border = TRUE ; 49 Pos = MAP_APPFONT ( 12 , 30 ) ; 50 Size = MAP_APPFONT ( 24 , 12 ) ; 51 TabStop = TRUE ; 52 Left = TRUE ; 53 Repeat = TRUE ; 54 Spin = TRUE ; 55 Minimum = 1 ; 56 Maximum = 20 ; 57 Value = 1 ; 58 First = 1 ; 59 Last = 20 ; 60 SpinSize = 1 ; 61 }; 62 Control VS_DEFAULTS 63 { 64 Pos = MAP_APPFONT ( 50 , 14 ) ; 65 Size = MAP_APPFONT ( 110 , 28 ) ; 66 TabStop = TRUE ; 67 }; 68 CheckBox CB_BALANCECOLS 69 { 70 HelpID = "sw:CheckBox:TP_COLUMN:CB_BALANCECOLS"; 71 Pos = MAP_APPFONT ( 7 , 46 ) ; 72 Size = MAP_APPFONT ( 163 , 10 ) ; 73 Hide = TRUE; 74 Text [ en-US ] = "Evenly distribute contents ~to all columns"; 75 }; 76 FixedLine FL_COLUMNS 77 { 78 Pos = MAP_APPFONT ( 6 , 3 ) ; 79 Size = MAP_APPFONT ( 164 , 8 ) ; 80 Text [ en-US ] = "Settings"; 81 }; 82 FixedText FT_COLUMN 83 { 84 Pos = MAP_APPFONT ( 12 , 70 ) ; 85 Size = MAP_APPFONT ( 50 , 8 ) ; 86 Left = TRUE ; 87 Text [ en-US ] = "Column"; 88 }; 89 Window WN_BSP 90 { 91 Pos = MAP_APPFONT ( 176 , 6 ) ; 92 Size = MAP_APPFONT ( 75 , 46 ) ; 93 }; 94 ImageButton BTN_DOWN 95 { 96 HelpID = "sw:ImageButton:TP_COLUMN:BTN_DOWN"; 97 Disable = TRUE ; 98 Pos = MAP_APPFONT ( 62 , 69 ) ; 99 Size = MAP_APPFONT ( 10 , 10 ) ; 100 TabStop = TRUE ; 101 SYMBOL = IMAGEBUTTON_ARROW_LEFT ; 102 }; 103 FixedText FT_1 104 { 105 Pos = MAP_APPFONT ( 100 , 71 ) ; 106 Size = MAP_APPFONT ( 10 , 8 ) ; 107 Text = "~1" ; 108 Center = TRUE ; 109 }; 110 FixedText FT_2 111 { 112 Pos = MAP_APPFONT ( 150 , 71 ) ; 113 Size = MAP_APPFONT ( 10 , 8 ) ; 114 Text = "~2" ; 115 Center = TRUE ; 116 }; 117 FixedText FT_3 118 { 119 Pos = MAP_APPFONT ( 200 , 71 ) ; 120 Size = MAP_APPFONT ( 10 , 8 ) ; 121 Text = "~3" ; 122 Center = TRUE ; 123 }; 124 ImageButton BTN_UP 125 { 126 HelpID = "sw:ImageButton:TP_COLUMN:BTN_UP"; 127 Disable = TRUE ; 128 Pos = MAP_APPFONT ( 238 , 69 ) ; 129 Size = MAP_APPFONT ( 10 , 10 ) ; 130 TabStop = TRUE ; 131 SYMBOL = IMAGEBUTTON_ARROW_RIGHT ; 132 }; 133 FixedText FT_WIDTH 134 { 135 Pos = MAP_APPFONT ( 12 , 85 ) ; 136 Size = MAP_APPFONT ( 50 , 8 ) ; 137 Left = TRUE ; 138 Text [ en-US ] = "Width" ; 139 }; 140 MetricField ED_1 141 { 142 HelpID = "sw:MetricField:TP_COLUMN:ED_1"; 143 Disable = TRUE ; 144 Border = TRUE ; 145 Pos = MAP_APPFONT ( 87 , 83 ) ; 146 Size = MAP_APPFONT ( 36 , 12 ) ; 147 TabStop = TRUE ; 148 Left = TRUE ; 149 Repeat = TRUE ; 150 Spin = TRUE ; 151 Minimum = 1 ; 152 Maximum = 5600 ; 153 DecimalDigits = 2 ; 154 Unit = FUNIT_CM ; 155 First = 10 ; 156 Last = 5600 ; 157 SpinSize = 10 ; 158 }; 159 MetricField ED_2 160 { 161 HelpID = "sw:MetricField:TP_COLUMN:ED_2"; 162 Disable = TRUE ; 163 Border = TRUE ; 164 Pos = MAP_APPFONT ( 137 , 83 ) ; 165 Size = MAP_APPFONT ( 36 , 12 ) ; 166 TabStop = TRUE ; 167 Left = TRUE ; 168 Repeat = TRUE ; 169 Spin = TRUE ; 170 Minimum = 1 ; 171 Maximum = 5600 ; 172 DecimalDigits = 2 ; 173 Unit = FUNIT_CM ; 174 First = 10 ; 175 Last = 5600 ; 176 SpinSize = 10 ; 177 }; 178 MetricField ED_3 179 { 180 HelpID = "sw:MetricField:TP_COLUMN:ED_3"; 181 Disable = TRUE ; 182 Border = TRUE ; 183 Pos = MAP_APPFONT ( 187 , 83 ) ; 184 Size = MAP_APPFONT ( 36 , 12 ) ; 185 TabStop = TRUE ; 186 Left = TRUE ; 187 Repeat = TRUE ; 188 Spin = TRUE ; 189 Minimum = 1 ; 190 Maximum = 5600 ; 191 DecimalDigits = 2 ; 192 Unit = FUNIT_CM ; 193 First = 10 ; 194 Last = 5600 ; 195 SpinSize = 10 ; 196 }; 197 FixedText FT_DIST 198 { 199 Pos = MAP_APPFONT ( 12 , 101 ) ; 200 Size = MAP_APPFONT ( 50 , 8 ) ; 201 Left = TRUE ; 202 Text [ en-US ] = "Spacing" ; 203 }; 204 MetricField ED_DIST1 205 { 206 HelpID = "sw:MetricField:TP_COLUMN:ED_DIST1"; 207 Disable = TRUE ; 208 Border = TRUE ; 209 Pos = MAP_APPFONT ( 112 , 99 ) ; 210 Size = MAP_APPFONT ( 36 , 12 ) ; 211 TabStop = TRUE ; 212 Left = TRUE ; 213 Repeat = TRUE ; 214 Spin = TRUE ; 215 Minimum = 0 ; 216 Maximum = 5600 ; 217 DecimalDigits = 2 ; 218 Unit = FUNIT_CM ; 219 First = 10 ; 220 Last = 5600 ; 221 SpinSize = 10 ; 222 }; 223 MetricField ED_DIST2 224 { 225 HelpID = "sw:MetricField:TP_COLUMN:ED_DIST2"; 226 Disable = TRUE ; 227 Border = TRUE ; 228 Pos = MAP_APPFONT ( 162 , 99 ) ; 229 Size = MAP_APPFONT ( 36 , 12 ) ; 230 TabStop = TRUE ; 231 Left = TRUE ; 232 Repeat = TRUE ; 233 Spin = TRUE ; 234 Minimum = 0 ; 235 Maximum = 5600 ; 236 DecimalDigits = 2 ; 237 Unit = FUNIT_CM ; 238 First = 10 ; 239 Last = 5600 ; 240 SpinSize = 10 ; 241 }; 242 CheckBox CB_AUTO_WIDTH 243 { 244 HelpID = "sw:CheckBox:TP_COLUMN:CB_AUTO_WIDTH"; 245 Pos = MAP_APPFONT ( 87 , 115 ) ; 246 Size = MAP_APPFONT ( 100 , 10 ) ; 247 Text [ en-US ] = "Auto~Width" ; 248 TabStop = TRUE ; 249 }; 250 FixedLine FL_LAYOUT 251 { 252 Pos = MAP_APPFONT ( 6 , 58 ) ; 253 Size = MAP_APPFONT ( 248 , 8 ) ; 254 Text [ en-US ] = "Width and spacing"; 255 }; 256 257 FixedText FT_STYLE 258 { 259 Pos = MAP_APPFONT ( 12 , 140 ) ; 260 Size = MAP_APPFONT ( 35 , 8 ) ; 261 Text [ en-US ] = "~Line" ; 262 Left = TRUE ; 263 }; 264 ListBox LB_STYLE 265 { 266 HelpID = "sw:ListBox:TP_COLUMN:LB_STYLE"; 267 Pos = MAP_APPFONT ( 50 , 138 ) ; 268 Size = MAP_APPFONT ( 60 , 66 ) ; 269 TabStop = TRUE ; 270 DropDown = TRUE ; 271 StringList [ en-US ] = 272 { 273 < "None" ; Default ; > ; 274 }; 275 }; 276 FixedText FT_HEIGHT 277 { 278 Pos = MAP_APPFONT ( 12 , 156 ) ; 279 Size = MAP_APPFONT ( 35 , 8 ) ; 280 Text [ en-US ] = "H~eight" ; 281 Left = TRUE ; 282 }; 283 MetricField ED_HEIGHT 284 { 285 HelpID = "sw:MetricField:TP_COLUMN:ED_HEIGHT"; 286 Border = TRUE ; 287 Pos = MAP_APPFONT ( 50 , 154 ) ; 288 Size = MAP_APPFONT ( 60 , 12 ) ; 289 TabStop = TRUE ; 290 Left = TRUE ; 291 Repeat = TRUE ; 292 Spin = TRUE ; 293 Minimum = 25 ; 294 Maximum = 100 ; 295 Value = 100 ; 296 Unit = FUNIT_PERCENT ; 297 First = 25 ; 298 Last = 100 ; 299 }; 300 FixedText FT_POSITION 301 { 302 Pos = MAP_APPFONT ( 12 , 172 ) ; 303 Size = MAP_APPFONT ( 35 , 8 ) ; 304 Left = TRUE ; 305 Text [ en-US ] = "~Position" ; 306 }; 307 ListBox LB_POSITION 308 { 309 HelpID = "sw:ListBox:TP_COLUMN:LB_POSITION"; 310 Pos = MAP_APPFONT ( 50 , 170 ) ; 311 Size = MAP_APPFONT ( 60 , 40 ) ; 312 TabStop = TRUE ; 313 DropDown = TRUE ; 314 StringList [ en-US ] = 315 { 316 < "Top" ; Default ; > ; 317 < "Centered" ; Default ; > ; 318 < "Bottom" ; Default ; > ; 319 }; 320 }; 321 FixedLine FL_LINETYPE 322 { 323 Pos = MAP_APPFONT ( 6 , 127 ) ; 324 Size = MAP_APPFONT ( 248 , 8 ) ; 325 Text [ en-US ] = "Separator line" ; 326 }; 327 FixedLine FL_VERT 328 { 329 Pos = MAP_APPFONT ( 116 , 138 ) ; 330 Size = MAP_APPFONT ( 4 , 43 ) ; 331 Hide = TRUE ; 332 Vert = TRUE; 333 }; 334 FixedLine FL_PROPERTIES 335 { 336 Pos = MAP_APPFONT ( 121 , 127 ) ; 337 Size = MAP_APPFONT ( 133 , 8 ) ; 338 Hide = TRUE ; 339 Text [ en-US ] = "Properties"; 340 }; 341 FixedText FT_TEXTDIRECTION 342 { 343 Pos = MAP_APPFONT ( 127 , 138 ) ; 344 Size = MAP_APPFONT ( 127 , 8 ) ; 345 Hide = TRUE ; 346 Text [ en-US ] = "Text ~direction"; 347 }; 348 ListBox LB_TEXTDIRECTION 349 { 350 HelpID = "sw:ListBox:TP_COLUMN:LB_TEXTDIRECTION"; 351 Border = TRUE ; 352 Pos = MAP_APPFONT ( 127 , 149 ) ; 353 Size = MAP_APPFONT ( 127 , 50 ) ; 354 DropDown = TRUE ; 355 Hide = TRUE ; 356 StringList [ en-US ] = 357 { 358 < "Left-to-right" ; 0; > ; 359 < "Right-to-left" ; 1; > ; 360 < "Use superordinate object settings" ; 4; > ; 361 }; 362 }; 363}; 364 365ModalDialog DLG_COLUMN 366{ 367 HelpID = HID_FORMAT_COLUMN; 368 Hide = TRUE; 369 Moveable = TRUE; 370 Size = MAP_APPFONT ( 316 , 135 ) ; 371 OKButton PB_OK 372 { 373 DefButton = TRUE ; 374 Pos = MAP_APPFONT ( 260 , 6 ) ; 375 Size = MAP_APPFONT ( 50 , 14 ) ; 376 TabStop = TRUE ; 377 }; 378 CancelButton PB_CANCEL 379 { 380 Pos = MAP_APPFONT ( 260 , 23 ) ; 381 Size = MAP_APPFONT ( 50 , 14 ) ; 382 TabStop = TRUE ; 383 }; 384 HelpButton PB_HELP 385 { 386 Pos = MAP_APPFONT ( 260 , 43 ) ; 387 Size = MAP_APPFONT ( 50 , 14 ) ; 388 TabStop = TRUE ; 389 }; 390 FixedText FT_APPLY_TO 391 { 392 Pos = MAP_APPFONT ( 260 , 63 ) ; 393 Size = MAP_APPFONT ( 50 , 8 ) ; 394 Left = TRUE ; 395 Text [ en-US ] = "~Apply to"; 396 }; 397 ListBox LB_APPLY_TO 398 { 399 HelpID = "sw:ListBox:DLG_COLUMN:LB_APPLY_TO"; 400 Pos = MAP_APPFONT ( 260 , 74 ) ; 401 Size = MAP_APPFONT ( 50 , 66 ) ; 402 TabStop = TRUE ; 403 DropDown = TRUE ; 404 StringList [ en-US ] = 405 { 406 < "Selection" ; LISTBOX_SELECTION; > ; 407 < "Current Section" ; LISTBOX_SECTION ; > ; 408 < "Selected section" ; LISTBOX_SECTIONS ; > ; 409 < "Frame" ; LISTBOX_FRAME ; > ; 410 < "Page Style: " ; LISTBOX_PAGE ; > ; 411 }; 412 }; 413 Text [ en-US ] = "Columns"; 414}; 415 416String STR_ACCESS_PAGESETUP_SPACING 417{ 418 Text [ en-US ] = "Spacing between %1 and %2"; 419}; 420 421String STR_ACCESS_COLUMN_WIDTH 422{ 423 Text [ en-US ] = "Column %1 Width"; 424}; 425