1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 // include ------------------------------------------------------------------ 28#include <svtools/controldims.hrc> 29#include "helpid.hrc" 30#include <cuires.hrc> 31#include "transfrm.hrc" 32#include <svx/dialogs.hrc> 33 34#define MA_TABPAGE_HEIGHT 185 35 36 // RID_SVXPAGE_POSITION_SIZE ------------------------------------------------ 37TabPage RID_SVXPAGE_POSITION_SIZE 38{ 39 HelpId = HID_TRANS_POSITION_SIZE ; 40 Hide = TRUE ; 41 Text [ en-US ] = "Position and Size" ; 42 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ; 43 44 FixedLine FL_POSITION 45 { 46 Pos = MAP_APPFONT ( 6 , 3 ) ; 47 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 48 Text [ en-US ] = "Position" ; 49 }; 50 FixedText FT_POS_X 51 { 52 Pos = MAP_APPFONT ( 12 , 16 + 8 ) ; 53 Size = MAP_APPFONT ( 40 , 10 ) ; 54 Text [ en-US ] = "Position ~X" ; 55 }; 56 FixedText FT_POS_Y 57 { 58 Pos = MAP_APPFONT ( 12 , 32 + 8 ) ; 59 Size = MAP_APPFONT ( 40 , 10 ) ; 60 Text [ en-US ] = "Position ~Y" ; 61 }; 62 MetricField MTR_FLD_POS_X 63 { 64 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_X"; 65 Border = TRUE ; 66 Pos = MAP_APPFONT ( 56 , 14 + 8 ) ; 67 Size = MAP_APPFONT ( 54 , 12 ) ; 68 TabStop = TRUE ; 69 Repeat = TRUE ; 70 Spin = TRUE ; 71 Minimum = -120000 ; 72 Maximum = 240000 ; 73 StrictFormat = TRUE ; 74 DecimalDigits = 2 ; 75 Unit = FUNIT_MM ; 76 SpinSize = 10 ; 77 }; 78 MetricField MTR_FLD_POS_Y 79 { 80 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_POS_Y"; 81 Border = TRUE ; 82 Pos = MAP_APPFONT ( 56 , 30 + 8 ) ; 83 Size = MAP_APPFONT ( 54 , 12 ) ; 84 TabStop = TRUE ; 85 Repeat = TRUE ; 86 Spin = TRUE ; 87 Minimum = -120000 ; 88 Maximum = 240000 ; 89 StrictFormat = TRUE ; 90 DecimalDigits = 2 ; 91 Unit = FUNIT_MM ; 92 SpinSize = 10 ; 93 }; 94 FixedText FT_POSREFERENCE 95 { 96 Pos = MAP_APPFONT ( 178 , 2 + 8 ) ; 97 Size = MAP_APPFONT ( 70 , 10 ) ; 98 Text [ en-US ] = "Base point"; 99 }; 100 Control CTL_POSRECT 101 { 102 HelpId = HID_TPPOSITION_CTRL ; 103 Border = TRUE ; 104 Pos = MAP_APPFONT ( 178 , 12 + 8 ) ; 105 Size = MAP_APPFONT ( 48 , 34 ) ; 106 TabStop = TRUE ; 107 QuickHelpText [ en-US ] = "Base point" ; 108 }; 109 110 // size 111 112 FixedLine FL_SIZE 113 { 114 Pos = MAP_APPFONT ( 6 , 56 ) ; 115 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 116 Text [ en-US ] = "Size" ; 117 }; 118 FixedText FT_WIDTH 119 { 120 Pos = MAP_APPFONT ( 12 , 16 + 61 ) ; 121 Size = MAP_APPFONT ( 40 , 10 ) ; 122 Text [ en-US ] = "Wi~dth" ; 123 }; 124 FixedText FT_HEIGHT 125 { 126 Pos = MAP_APPFONT ( 12 , 32 + 61 ) ; 127 Size = MAP_APPFONT ( 40 , 10 ) ; 128 Text [ en-US ] = "H~eight" ; 129 }; 130 MetricField MTR_FLD_WIDTH 131 { 132 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_WIDTH"; 133 Border = TRUE ; 134 Pos = MAP_APPFONT ( 56 , 14 + 61 ) ; 135 Size = MAP_APPFONT ( 54 , 12 ) ; 136 TabStop = TRUE ; 137 Repeat = TRUE ; 138 Spin = TRUE ; 139 Minimum = 1 ; 140 Maximum = 120000 ; 141 StrictFormat = TRUE ; 142 DecimalDigits = 2 ; 143 Unit = FUNIT_MM ; 144 SpinSize = 10 ; 145 }; 146 MetricField MTR_FLD_HEIGHT 147 { 148 HelpID = "cui:MetricField:RID_SVXPAGE_POSITION_SIZE:MTR_FLD_HEIGHT"; 149 Border = TRUE ; 150 Pos = MAP_APPFONT ( 56 , 30 + 61 ) ; 151 Size = MAP_APPFONT ( 54 , 12 ) ; 152 TabStop = TRUE ; 153 Repeat = TRUE ; 154 Spin = TRUE ; 155 Minimum = 1 ; 156 Maximum = 120000 ; 157 StrictFormat = TRUE ; 158 DecimalDigits = 2 ; 159 Unit = FUNIT_MM ; 160 SpinSize = 10 ; 161 }; 162 FixedText FT_SIZEREFERENCE 163 { 164 Pos = MAP_APPFONT ( 178 , 2 + 61 ) ; 165 Size = MAP_APPFONT ( 70 , 10 ) ; 166 Text [ en-US ] = "Base point"; 167 }; 168 Control CTL_SIZERECT 169 { 170 HelpId = HID_TPSIZE_CTRL ; 171 Border = TRUE ; 172 Pos = MAP_APPFONT ( 178 , 12 + 61 ) ; 173 Size = MAP_APPFONT ( 48 , 34 ) ; 174 TabStop = TRUE ; 175 QuickHelpText [ en-US ] = "Base point" ; 176 }; 177 CheckBox CBX_SCALE 178 { 179 HelpID = "cui:CheckBox:RID_SVXPAGE_POSITION_SIZE:CBX_SCALE"; 180 Pos = MAP_APPFONT ( 12 , 47 + 61 ) ; 181 Size = MAP_APPFONT ( 162 , 10 ) ; 182 TabStop = TRUE ; 183 Text [ en-US ] = "~Keep ratio" ; 184 }; 185 186 // Protect 187 188 FixedLine FL_PROTECT 189 { 190 Pos = MAP_APPFONT ( 6 , 120 ) ; 191 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ; 192 Text [ en-US ] = "Protect" ; 193 }; 194 195 TriStateBox TSB_POSPROTECT 196 { 197 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_POSPROTECT"; 198 Pos = MAP_APPFONT ( 12 , 10 + 120 ) ; 199 Size = MAP_APPFONT ( 113 , 10 ) ; 200 Text [ en-US ] = "Position" ; 201 TabStop = TRUE ; 202 }; 203 204 TriStateBox TSB_SIZEPROTECT 205 { 206 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_SIZEPROTECT"; 207 Pos = MAP_APPFONT ( 12 , 24 + 120 ) ; 208 Size = MAP_APPFONT ( 113 , 10 ) ; 209 Text [ en-US ] = "~Size" ; 210 TabStop = TRUE ; 211 }; 212 213 // Adjust 214 215 FixedLine FL_ADJUST 216 { 217 Pos = MAP_APPFONT ( 6 + 123 + 6 , 120 ) ; 218 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ; 219 Text [ en-US ] = "Adapt" ; 220 }; 221 TriStateBox TSB_AUTOGROW_WIDTH 222 { 223 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_WIDTH"; 224 Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ; 225 Size = MAP_APPFONT ( 113 , 10 ) ; 226 Text [ en-US ] = "~Fit width to text" ; 227 TabStop = TRUE ; 228 }; 229 TriStateBox TSB_AUTOGROW_HEIGHT 230 { 231 HelpID = "cui:TriStateBox:RID_SVXPAGE_POSITION_SIZE:TSB_AUTOGROW_HEIGHT"; 232 Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ; 233 Size = MAP_APPFONT ( 113 , 10 ) ; 234 Text [ en-US ] = "Fit ~height to text" ; 235 TabStop = TRUE ; 236 }; 237 238 FixedLine FL_DIVIDER 239 { 240 Pos = MAP_APPFONT( 6 + 119 + 5, 128 ); 241 Size = MAP_APPFONT( RSC_CD_FIXEDLINE_WIDTH, 26 ); 242 Vert = True; 243 }; 244 245 // Anchor 246 247 FixedLine FL_ANCHOR 248 { 249 Pos = MAP_APPFONT ( 6 + 123 + 6 , 120 ) ; 250 Size = MAP_APPFONT ( 119 , RSC_CD_FIXEDLINE_HEIGHT ) ; 251 Hide = TRUE ; 252 Text [ en-US ] = "Anchor" ; 253 }; 254 FixedText FT_ANCHOR 255 { 256 Pos = MAP_APPFONT ( 12 + 121 + 8, 10 + 120 ) ; 257 Size = MAP_APPFONT ( 37 , 10 ) ; 258 Hide = TRUE ; 259 Text [ en-US ] = "~Anchor" ; 260 }; 261 ListBox LB_ANCHOR 262 { 263 HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ANCHOR"; 264 Pos = MAP_APPFONT ( 46 + 121 + 16 , 8 + 120 ) ; 265 Size = MAP_APPFONT ( 54 , 60 ) ; 266 Hide = TRUE ; 267 DropDown = TRUE ; 268 StringList [ en-US ] = 269 { 270 < "To paragraph" ; > ; 271 < "As character" ; > ; 272 < "To page" ; > ; 273 < "To frame" ; > ; 274 }; 275 }; 276 FixedText FT_ORIENT 277 { 278 Pos = MAP_APPFONT ( 12 + 121 + 8, 24 + 120 ) ; 279 Size = MAP_APPFONT ( 37 , 10 ) ; 280 Hide = TRUE ; 281 Text [ en-US ] = "P~osition"; 282 }; 283 ListBox LB_ORIENT 284 { 285 HelpID = "cui:ListBox:RID_SVXPAGE_POSITION_SIZE:LB_ORIENT"; 286 Pos = MAP_APPFONT ( 46 + 121 + 16 , 22 + 120 ); 287 Size = MAP_APPFONT ( 54 , 60 ) ; 288 Hide = TRUE ; 289 DropDown = TRUE ; 290 StringList [ en-US ] = 291 { 292 < "From top" ; > ; 293 < "Above" ; > ; 294 < "Centered" ; > ; 295 < "Below" ; > ; 296 < "Top of character" ; > ; 297 < "Center of character" ; > ; 298 < "Bottom of character" ; > ; 299 < "Top of line" ; > ; 300 < "Center of line" ; > ; 301 < "Bottom of line" ; > ; 302 }; 303 }; 304}; 305 306 // RID_SVXPAGE_ANGLE -------------------------------------------------------- 307TabPage RID_SVXPAGE_ANGLE 308{ 309 HelpId = HID_TRANS_ANGLE ; 310 Hide = TRUE ; 311 Text [ en-US ] = "Angle" ; 312 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ; 313 FixedLine FL_POSITION 314 { 315 Pos = MAP_APPFONT ( 6 , 3 ) ; 316 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 317 Text [ en-US ] = "Pivot point" ; 318 }; 319 FixedText FT_POS_X 320 { 321 Pos = MAP_APPFONT ( 12 , 16 + 11 ) ; 322 Size = MAP_APPFONT ( 40 , 10 ) ; 323 Text [ en-US ] = "Position ~X" ; 324 }; 325 FixedText FT_POS_Y 326 { 327 Pos = MAP_APPFONT ( 12 , 32 + 11 ) ; 328 Size = MAP_APPFONT ( 40 , 10 ) ; 329 Text [ en-US ] = "Position ~Y" ; 330 }; 331 MetricField MTR_FLD_POS_X 332 { 333 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_X"; 334 Border = TRUE ; 335 Pos = MAP_APPFONT ( 56 , 14 + 11 ) ; 336 Size = MAP_APPFONT ( 54 , 12 ) ; 337 TabStop = TRUE ; 338 Repeat = TRUE ; 339 Spin = TRUE ; 340 Minimum = -500000 ; 341 Maximum = 500000 ; 342 StrictFormat = TRUE ; 343 DecimalDigits = 2 ; 344 Unit = FUNIT_MM ; 345 SpinSize = 10 ; 346 }; 347 MetricField MTR_FLD_POS_Y 348 { 349 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_POS_Y"; 350 Border = TRUE ; 351 Pos = MAP_APPFONT ( 56 , 30 + 11 ) ; 352 Size = MAP_APPFONT ( 54 , 12 ) ; 353 TabStop = TRUE ; 354 Repeat = TRUE ; 355 Spin = TRUE ; 356 Minimum = -500000 ; 357 Maximum = 500000 ; 358 StrictFormat = TRUE ; 359 DecimalDigits = 2 ; 360 Unit = FUNIT_MM ; 361 SpinSize = 10 ; 362 }; 363 FixedText FT_POSPRESETS 364 { 365 Pos = MAP_APPFONT ( 178 , 14 ) ; 366 Size = MAP_APPFONT ( 70 , 8 ) ; 367 Text [ en-US ] = "Default settings"; 368 }; 369 Control CTL_RECT 370 { 371 HelpId = HID_TPROTATION_CTRL1 ; 372 Border = TRUE ; 373 Pos = MAP_APPFONT ( 178 , 14 + 11 ) ; 374 Size = MAP_APPFONT ( 70 , 48 ) ; 375 TabStop = TRUE ; 376 QuickHelpText [ en-US ] = "Rotation point" ; 377 }; 378 FixedLine FL_ANGLE 379 { 380 Pos = MAP_APPFONT ( 6 , 71 + 11 ) ; 381 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 382 Text [ en-US ] = "Rotation angle" ; 383 }; 384 FixedText FT_ANGLE 385 { 386 Pos = MAP_APPFONT ( 12 , 84 + 22 ) ; 387 Size = MAP_APPFONT ( 40 , 10 ) ; 388 Text [ en-US ] = "~Angle" ; 389 }; 390 MetricField MTR_FLD_ANGLE 391 { 392 HelpID = "cui:MetricField:RID_SVXPAGE_ANGLE:MTR_FLD_ANGLE"; 393 Border = TRUE ; 394 Pos = MAP_APPFONT ( 56 , 82 + 22 ) ; 395 Size = MAP_APPFONT ( 54 , 12 ) ; 396 TabStop = TRUE ; 397 Repeat = TRUE ; 398 Spin = TRUE ; 399 Minimum = -500000 ; 400 Maximum = 500000 ; 401 StrictFormat = TRUE ; 402 DecimalDigits = 2 ; 403 Unit = FUNIT_CUSTOM ; 404 CustomUnitText [ en-US ] = " degrees" ; 405 SpinSize = 500 ; 406 }; 407 FixedText FT_ANGLEPRESETS 408 { 409 Pos = MAP_APPFONT ( 178 , 82 + 11 ) ; 410 Size = MAP_APPFONT ( 70 , 8 ) ; 411 Text [ en-US ] = "Default settings"; 412 }; 413 Control CTL_ANGLE 414 { 415 HelpId = HID_TPROTATION_CTRL2 ; 416 Border = TRUE ; 417 Pos = MAP_APPFONT ( 178 , 82 + 22 ) ; 418 Size = MAP_APPFONT ( 70 , 48 ) ; 419 TabStop = TRUE ; 420 QuickHelpText [ en-US ] = "Rotation Angle"; 421 }; 422}; 423 // RID_SVXPAGE_SLANT ----------------------------------------------------- 424TabPage RID_SVXPAGE_SLANT 425{ 426 HelpId = HID_TRANS_SLANT ; 427 Hide = TRUE ; 428 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ; 429 Text [ en-US ] = "Slant & Corner Radius" ; 430 FixedLine FL_RADIUS 431 { 432 Pos = MAP_APPFONT ( 6 , 3 ) ; 433 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 434 Text [ en-US ] = "Corner radius" ; 435 }; 436 FixedText FT_RADIUS 437 { 438 Pos = MAP_APPFONT ( 12 , 16 ) ; 439 Size = MAP_APPFONT ( 40 , 10 ) ; 440 Text [ en-US ] = "~Radius" ; 441 }; 442 MetricField MTR_FLD_RADIUS 443 { 444 HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_RADIUS"; 445 Border = TRUE ; 446 Pos = MAP_APPFONT ( 56 , 14 ) ; 447 Size = MAP_APPFONT ( 54 , 12 ) ; 448 TabStop = TRUE ; 449 Repeat = TRUE ; 450 Spin = TRUE ; 451 Minimum = 0 ; 452 Maximum = 500000 ; 453 StrictFormat = TRUE ; 454 DecimalDigits = 2 ; 455 Unit = FUNIT_MM ; 456 SpinSize = 10 ; 457 }; 458 FixedLine FL_SLANT 459 { 460 Pos = MAP_APPFONT ( 6 , 35 ) ; 461 Size = MAP_APPFONT ( 248 , RSC_CD_FIXEDLINE_HEIGHT ) ; 462 Text [ en-US ] = "Slant" ; 463 }; 464 FixedText FT_ANGLE 465 { 466 Pos = MAP_APPFONT ( 12 , 48 ) ; 467 Size = MAP_APPFONT ( 40 , 10 ) ; 468 Text [ en-US ] = "~Angle" ; 469 }; 470 MetricField MTR_FLD_ANGLE 471 { 472 HelpID = "cui:MetricField:RID_SVXPAGE_SLANT:MTR_FLD_ANGLE"; 473 Border = TRUE ; 474 Pos = MAP_APPFONT ( 56 , 46 ) ; 475 Size = MAP_APPFONT ( 54 , 12 ) ; 476 TabStop = TRUE ; 477 Repeat = TRUE ; 478 Spin = TRUE ; 479 Minimum = -8900 ; 480 First = -8900 ; 481 Maximum = 8900 ; 482 Last = 8900 ; 483 StrictFormat = TRUE ; 484 DecimalDigits = 2 ; 485 Unit = FUNIT_CUSTOM ; 486 SpinSize = 500 ; 487 CustomUnitText [ en-US ] = " degrees" ; 488 }; 489}; 490 // RID_SVXDLG_TRANSFORM ----------------------------------------------------- 491 492#define _POS_SIZE_TEXT \ 493 Text [ en-US ] = "Position and Size" ; \ 494 495 496TabDialog RID_SVXDLG_TRANSFORM\ 497{ 498 OutputSize = TRUE ; 499 SvLook = TRUE ; 500 Size = MAP_APPFONT ( 289 , MA_TABPAGE_HEIGHT + 41 ) ; 501 Text [ en-US ] = "Position and Size" ;\ 502 Moveable = TRUE ; 503 TabControl TAB_CONTROL\ 504 { 505 OutputSize = TRUE ; 506 Pos = MAP_APPFONT ( 3 , 3 ) ; 507 Size = MAP_APPFONT ( 260 , MA_TABPAGE_HEIGHT ) ; 508 PageList = 509 { 510 PageItem\ 511 { 512 Identifier = RID_SVXPAGE_POSITION_SIZE ; 513 PageResID = RID_SVXPAGE_POSITION_SIZE ; 514 _POS_SIZE_TEXT 515 }; 516 PageItem 517 { 518 Identifier = RID_SVXPAGE_SWPOSSIZE; 519 PageResID = RID_SVXPAGE_SWPOSSIZE; 520 _POS_SIZE_TEXT 521 }; 522 PageItem 523 { 524 Identifier = RID_SVXPAGE_ANGLE ; 525 Text [ en-US ] = "Rotation" ; 526 PageResID = RID_SVXPAGE_ANGLE ; 527 }; 528 PageItem 529 { 530 Identifier = RID_SVXPAGE_SLANT ; 531 PageResID = RID_SVXPAGE_SLANT ; 532 Text [ en-US ] = "Slant & Corner Radius" ; 533 }; 534 }; 535 }; 536}; 537 // ********************************************************************** EOF 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626