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 28#include "sc.hrc" 29#include "submenu.hrc" 30#include <svx/globlmn.hrc> 31 // 32 // Defines ------------------------------------------------------------------------------- 33 // 34#define MN_RESET\ 35 MenuItem\ 36 {\ 37 Identifier = SID_TEXT_STANDARD ; \ 38 HelpID = CMD_SID_TEXT_STANDARD ; \ 39 Text [ en-US ] = "~Default" ; \ 40 Text [ x-comment ] = " ";\ 41 }; 42 43 // Font (SID_ATTR_CHAR_FONT) und Groesse (SID_ATTR_CHAR_FONTHEIGHT) duerfen nicht im 44 // Formatmenue auftauchen, weil die Controller im ExeEnv sonst im Container angelegt werden 45#define MN_TEXT_ATTR\ 46 MenuItem\ 47 {\ 48 Identifier = RID_MN_FORMAT_STYLE ; \ 49 HelpID = HID_MN_FORMAT_STYLE ; \ 50 Text [ en-US ] = "~Style" ; \ 51 SubMenu = Menu\ 52 {\ 53 ItemList = \ 54 {\ 55 MenuItem\ 56 {\ 57 ITEM_FORMAT_ATTR_CHAR_WEIGHT\ 58 };\ 59 MenuItem\ 60 {\ 61 ITEM_FORMAT_ATTR_CHAR_POSTURE\ 62 };\ 63 MenuItem\ 64 {\ 65 ITEM_FORMAT_ATTR_CHAR_OVERLINE\ 66 };\ 67 MenuItem\ 68 {\ 69 ITEM_FORMAT_ATTR_CHAR_UNDERLINE\ 70 };\ 71 MenuItem\ 72 {\ 73 ITEM_FORMAT_ATTR_CHAR_STRIKEOUT\ 74 };\ 75 MenuItem\ 76 {\ 77 ITEM_FORMAT_ATTR_CHAR_SHADOWED\ 78 };\ 79 MenuItem\ 80 {\ 81 ITEM_FORMAT_ATTR_CHAR_CONTOUR\ 82 };\ 83 MenuItem\ 84 {\ 85 Separator = TRUE ; \ 86 };\ 87 MenuItem\ 88 {\ 89 Identifier = SID_SET_SUPER_SCRIPT ; \ 90 HelpID = CMD_SID_SET_SUPER_SCRIPT ; \ 91 Text [ en-US ] = "~Superscript" ; \ 92 Text [ x-comment ] = " ";\ 93 };\ 94 MenuItem\ 95 {\ 96 Identifier = SID_SET_SUB_SCRIPT ; \ 97 HelpID = CMD_SID_SET_SUB_SCRIPT ; \ 98 Text [ en-US ] = "S~ubscript" ; \ 99 Text [ x-comment ] = " ";\ 100 };\ 101 };\ 102 };\ 103 Text [ x-comment ] = " ";\ 104 };\ 105 MenuItem\ 106 {\ 107 Identifier = RID_MN_FORMAT_ALGN ; \ 108 HelpID = HID_MN_FORMAT_ALGN ; \ 109 Text [ en-US ] = "~Alignment" ; \ 110 RadioCheck = TRUE ; \ 111 SubMenu = Menu\ 112 {\ 113 ItemList = \ 114 {\ 115 MenuItem\ 116 {\ 117 Identifier = SID_ALIGNLEFT ; \ 118 HelpID = CMD_SID_ATTR_PARA_ADJUST_LEFT ; \ 119 RadioCheck = TRUE ; \ 120 Text [ en-US ] = "~Left" ;\ 121 Text [ x-comment ] = " "; \ 122 };\ 123 MenuItem\ 124 {\ 125 Identifier = SID_ALIGNRIGHT ; \ 126 HelpID = CMD_SID_ATTR_PARA_ADJUST_RIGHT ; \ 127 RadioCheck = TRUE ; \ 128 Text [ en-US ] = "~Right" ;\ 129 };\ 130 MenuItem\ 131 {\ 132 Identifier = SID_ALIGNCENTERHOR ; \ 133 HelpID = CMD_SID_ATTR_PARA_ADJUST_CENTER ; \ 134 RadioCheck = TRUE ; \ 135 Text [ en-US ] = "~Centered" ;\ 136 };\ 137 MenuItem\ 138 {\ 139 Identifier = SID_ALIGNBLOCK ; \ 140 HelpID = CMD_SID_ATTR_PARA_ADJUST_BLOCK ; \ 141 RadioCheck = TRUE ; \ 142 Text [ en-US ] = "~Justified" ; \ 143 Text [ x-comment ] = " ";\ 144 };\ 145 };\ 146 };\ 147 Text [ x-comment ] = " ";\ 148 };\ 149 MenuItem\ 150 {\ 151 Identifier = RID_MN_FORMAT_LINESPACE ; \ 152 HelpID = HID_MN_FORMAT_LINESPACE ; \ 153 Text [ en-US ] = "~Line Spacing" ; \ 154 _MenuItemFlags = MIB_RADIOCHECK ; \ 155 SubMenu = Menu\ 156 {\ 157 ItemList = \ 158 {\ 159 MenuItem\ 160 {\ 161 ITEM_FORMAT_PARA_LINESPACE_10\ 162 RadioCheck = TRUE ; \ 163 };\ 164 MenuItem\ 165 {\ 166 ITEM_FORMAT_PARA_LINESPACE_15\ 167 RadioCheck = TRUE ; \ 168 };\ 169 MenuItem\ 170 {\ 171 ITEM_FORMAT_PARA_LINESPACE_20\ 172 RadioCheck = TRUE ; \ 173 };\ 174 };\ 175 };\ 176 Text [ x-comment ] = " ";\ 177 }; 178 179#define MN_DRWTXT \ 180 MenuItem\ 181 {\ 182 ITEM_FORMAT_CHAR_DLG\ 183 };\ 184 MenuItem\ 185 {\ 186 ITEM_FORMAT_PARA_DLG\ 187 }; 188 189#ifdef ISSUE66550_HLINK_FOR_SHAPES 190#define MN_EDITLNK \ 191 MenuItem\ 192 {\ 193 Identifier = SID_DRAW_HLINK_EDIT ; \ 194 HelpID = CMD_SID_DRAW_HLINK_EDIT ; \ 195 Text [ en-US ] = "~Hyperlink..." ; \ 196 }; 197 198#define MN_DELLNK \ 199 MenuItem\ 200 {\ 201 Identifier = SID_DRAW_HLINK_DELETE ; \ 202 HelpID = CMD_SID_DRAW_HLINK_DELETE ; \ 203 Text [ en-US ] = "~Remove Hyperlink" ; \ 204 }; 205#endif 206 207#define MN_DRWTXTATTR \ 208 MenuItem\ 209 {\ 210 Identifier = SID_DRAWTEXT_ATTR_DLG ; \ 211 HelpID = CMD_SID_DRAWTEXT_ATTR_DLG ; \ 212 Text [ en-US ] = "Te~xt..." ; \ 213 /* ### ACHTUNG: Neuer Text in Resource? Textattribute f�r die selektierten Textobjekte festlegen : Textattribute f�r die selektierten Textobjekte festlegen */\ 214 Text [ x-comment ] = " ";\ 215 }; 216 217#define MN_ASSIGNMACRO \ 218 MenuItem\ 219 {\ 220 Identifier = SID_ASSIGNMACRO ; \ 221 HelpID = CMD_SID_ASSIGNMACRO ; \ 222 Text [ en-US ] = "Assig~n Macro..." ; \ 223 Text [ x-comment ] = " ";\ 224 }; 225 226#define MN_ORIGINALSIZE \ 227 MenuItem\ 228 {\ 229 Identifier = SID_ORIGINALSIZE ; \ 230 HelpId = CMD_SID_ORIGINALSIZE ; \ 231 /* ### ACHTUNG: Neuer Text in Resource? Originalgr��e : Originalgr��e */\ 232 Text [ en-US ] = "~Original Size" ; \ 233 Text [ x-comment ] = " ";\ 234 }; 235 236#define MN_RENAME_OBJECT \ 237 MenuItem\ 238 {\ 239 Identifier = SID_RENAME_OBJECT ; \ 240 HelpId = CMD_SID_RENAME_OBJECT ; \ 241 Text [ en-US ] = "Name...";\ 242 }; 243 244// #i68101# 245#define MN_TITLE_DESCRIPTION_OBJECT \ 246 MenuItem\ 247 {\ 248 Identifier = SID_TITLE_DESCRIPTION_OBJECT; \ 249 HelpId = CMD_SID_TITLE_DESCRIPTION_OBJECT; \ 250 Text [ en-US ] = "Description...";\ 251 }; 252 253#define MN_MIRRORSUB \ 254 MenuItem\ 255 {\ 256 Identifier = SUBMENU_OBJMIRROR ; \ 257 HelpID = HID_SCMENU_OBJMIRROR ; \ 258 Text [ en-US ] = "~Flip" ; \ 259 SubMenu = Menu\ 260 {\ 261 ItemList = \ 262 {\ 263 MenuItem\ 264 {\ 265 Identifier = SID_MIRROR_VERTICAL ; \ 266 HelpId = CMD_SID_MIRROR_VERTICAL ; \ 267 Text [ en-US ] = "~Vertically" ; \ 268 Text [ x-comment ] = " ";\ 269 };\ 270 MenuItem\ 271 {\ 272 Identifier = SID_MIRROR_HORIZONTAL ; \ 273 HelpId = CMD_SID_MIRROR_HORIZONTAL ; \ 274 Text [ en-US ] = "~Horizontal" ; \ 275 Text [ x-comment ] = " ";\ 276 };\ 277 };\ 278 };\ 279 Text [ x-comment ] = " ";\ 280 }; 281 282#define MN_ARRANGESUB \ 283 MenuItem\ 284 {\ 285 Identifier = SUBMENU_OBJARRANGE ; \ 286 HelpID = HID_SCMENU_OBJARRANGE ; \ 287 Text [ en-US ] = "~Arrange" ; \ 288 SubMenu = Menu\ 289 {\ 290 ItemList = \ 291 {\ 292 MenuItem\ 293 {\ 294 ITEM_FORMAT_FRAME_TO_TOP\ 295 };\ 296 MenuItem\ 297 {\ 298 Identifier = SID_FRAME_UP ; \ 299 HelpId = CMD_SID_FRAME_UP ; \ 300 /* ### ACHTUNG: Neuer Text in Resource? W~eiter nach vorn : Weiter nach vorn */\ 301 Text [ en-US ] = "Bring ~Forward" ; \ 302 Text [ x-comment ] = " ";\ 303 };\ 304 MenuItem\ 305 {\ 306 Identifier = SID_FRAME_DOWN ; \ 307 HelpId = CMD_SID_FRAME_DOWN ; \ 308 /* ### ACHTUNG: Neuer Text in Resource? Weiter ~nach hinten : Weiter nach hinten */\ 309 Text [ en-US ] = "Send Back~ward" ; \ 310 Text [ x-comment ] = " ";\ 311 };\ 312 MenuItem\ 313 {\ 314 ITEM_FORMAT_FRAME_TO_BOTTOM\ 315 };\ 316 MenuItem { Separator = TRUE ; }; \ 317 MenuItem\ 318 {\ 319 ITEM_FORMAT_OBJECT_HEAVEN\ 320 };\ 321 MenuItem\ 322 {\ 323 ITEM_FORMAT_OBJECT_HELL\ 324 };\ 325 };\ 326 };\ 327 Text [ x-comment ] = " ";\ 328 }; 329 330#define MN_ANCHORSUB \ 331 MenuItem\ 332 {\ 333 Identifier = SUBMENU_ANCHOR ; \ 334 HelpID = HID_SCMENU_ANCHOR ; \ 335 Text [ en-US ] = "An~chor" ; \ 336 SubMenu = Menu\ 337 {\ 338 ItemList = \ 339 {\ 340 MenuItem\ 341 {\ 342 RadioCheck = TRUE ; \ 343 Identifier = SID_ANCHOR_PAGE ; \ 344 HelpId = CMD_SID_ANCHOR_PAGE ; \ 345 Text [ en-US ] = "To P~age" ; \ 346 Text [ x-comment ] = " ";\ 347 };\ 348 MenuItem\ 349 {\ 350 RadioCheck = TRUE ; \ 351 Identifier = SID_ANCHOR_CELL ; \ 352 HelpId = CMD_SID_ANCHOR_CELL ; \ 353 Text [ en-US ] = "To ~Cell" ; \ 354 Text [ x-comment ] = " ";\ 355 };\ 356 };\ 357 };\ 358 Text [ x-comment ] = " ";\ 359 }; 360 361#define MN_ALIGNSUB \ 362 MenuItem\ 363 {\ 364 Identifier = SID_OBJECT_ALIGN ; \ 365 HelpId = CMD_SID_OBJECT_ALIGN ; \ 366 Text [ en-US ] = "A~lignment" ; \ 367 SubMenu = Menu\ 368 {\ 369 ItemList = \ 370 {\ 371 MenuItem\ 372 {\ 373 ITEM_FORMAT_OBJECT_ALIGN_LEFT\ 374 };\ 375 MenuItem\ 376 {\ 377 ITEM_FORMAT_OBJECT_ALIGN_CENTER\ 378 };\ 379 MenuItem\ 380 {\ 381 ITEM_FORMAT_OBJECT_ALIGN_RIGHT\ 382 };\ 383 MenuItem\ 384 {\ 385 Separator = TRUE ; \ 386 };\ 387 MenuItem\ 388 {\ 389 ITEM_FORMAT_OBJECT_ALIGN_UP\ 390 };\ 391 MenuItem\ 392 {\ 393 ITEM_FORMAT_OBJECT_ALIGN_MIDDLE\ 394 };\ 395 MenuItem\ 396 {\ 397 ITEM_FORMAT_OBJECT_ALIGN_DOWN\ 398 };\ 399 };\ 400 };\ 401 Text [ x-comment ] = " ";\ 402 }; 403 404 // 405 // ------------------------------------------------------------------------------ 406 // 407 // 408 // Objekt-Leisten 409 // 410String RID_DRAW_OBJECTBAR 411{ 412 Text [ en-US ] = "Drawing Object Bar" ; 413 Text [ x-comment ] = " "; 414}; 415 // 416 // Text-Toolbox 417 // 418String RID_TEXT_TOOLBOX 419{ 420 Text [ en-US ] = "Text Object Bar" ; 421 Text [ x-comment ] = " "; 422}; 423 // 424 // Graphics toolbox 425 // 426String RID_GRAPHIC_OBJECTBAR 427{ 428 Text [ en-US ] = "Graphics Object Bar"; 429}; 430 // 431 // Popup-Menues --------------------------------------------------------------------- 432 // 433String RID_POPUP_DRAW 434{ 435 /* ### ACHTUNG: Neuer Text in Resource? Popup-Men� f�r Zeichenobjekte : Popup-Men� f�r Zeichenobjekte */ 436 Text [ en-US ] = "Pop-up menu for drawing objects" ; 437 Text [ x-comment ] = " "; 438}; 439 // 440 // Popup-Menue fuer (allgemeine) Zeichenobjekte 441 // 442Menu RID_POPUP_DRAW 443{ 444 ItemList = 445 { 446 MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE }; 447 MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA }; 448 MN_DRWTXTATTR // Text... 449 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 450 451 //-#i68101#---------------------- 452 MenuItem { Separator = TRUE ; }; 453 MN_TITLE_DESCRIPTION_OBJECT 454 MN_RENAME_OBJECT 455 //-#i68101#---------------------- 456 457 //------------------------------ 458 MenuItem { Separator = TRUE ; }; 459 //------------------------------ 460 MN_MIRRORSUB 461 MN_ARRANGESUB 462 MN_ALIGNSUB 463 MN_ANCHORSUB 464 MN_ASSIGNMACRO 465 //------------------------------ 466 MenuItem { Separator = TRUE ; }; 467 //------------------------------ 468 MenuItem 469 { 470 ITEM_FORMAT_BEZIER_EDIT 471 RadioCheck = FALSE ; 472 AutoCheck = TRUE ; 473 }; 474 MenuItem 475 { 476 ITEM_FORMAT_FONTWORK 477 }; 478 //------------------------------ 479 MenuItem { Separator = TRUE ; }; 480 //------------------------------ 481 ITEM_GROUP_MENU 482#ifdef ISSUE66550_HLINK_FOR_SHAPES 483 //------------------------------ 484 MenuItem { Separator = TRUE ; }; 485 //------------------------------ 486 MN_EDITLNK 487 MN_DELLNK 488 MenuItem { ITEM_OPEN_HYPERLINK }; 489#endif 490 }; 491}; 492 493 // 494 // Popup-Menue fuer (Uno-) Controls 495 // 496 497Menu RID_POPUP_CONTROL 498{ 499 ItemList = 500 { 501 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 502 503 //-#i68101#---------------------- 504 MenuItem { Separator = TRUE ; }; 505 MN_TITLE_DESCRIPTION_OBJECT 506 MN_RENAME_OBJECT 507 //-#i68101#---------------------- 508 509 //------------------------------ 510 MenuItem { Separator = TRUE ; }; 511 //------------------------------ 512 MenuItem { ITEM_FORM_CONTROL_PROPERTIES }; 513 MenuItem { ITEM_FORM_PROPERTIES }; 514 //------------------------------ 515 MenuItem { Separator = TRUE ; }; 516 //------------------------------ 517 MN_ARRANGESUB 518 MN_ALIGNSUB 519 MN_ANCHORSUB 520 //------------------------------ 521 MenuItem { Separator = TRUE ; }; 522 //------------------------------ 523 ITEM_GROUP_MENU 524 }; 525}; 526 527 // 528 // Grafik 529 // 530 531Menu RID_POPUP_GRAPHIC 532{ 533 ItemList = 534 { 535 MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE }; // #i25616# 536 MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA }; // #i25616# 537 MN_DRWTXTATTR 538 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 539 MN_ORIGINALSIZE 540 541 //-#i68101#---------------------- 542 MenuItem { Separator = TRUE ; }; 543 MN_TITLE_DESCRIPTION_OBJECT 544 MN_RENAME_OBJECT 545 //-#i68101#---------------------- 546 547 //------------------------------ 548 MenuItem { Separator = TRUE ; }; 549 //------------------------------ 550 MN_MIRRORSUB 551 MN_ARRANGESUB 552 MN_ALIGNSUB 553 MN_ANCHORSUB 554 MN_ASSIGNMACRO 555 //------------------------------ 556 MenuItem { Separator = TRUE ; }; 557 //------------------------------ 558 ITEM_GROUP_MENU 559#ifdef ISSUE66550_HLINK_FOR_SHAPES 560 //------------------------------ 561 MenuItem { Separator = TRUE ; }; 562 //------------------------------ 563 MN_EDITLNK 564 MN_DELLNK 565 MenuItem { ITEM_OPEN_HYPERLINK }; 566#endif 567 }; 568}; 569 570 // 571 // Media 572 // 573 574Menu RID_POPUP_MEDIA 575{ 576 ItemList = 577 { 578 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 579 580 //-#i68101#---------------------- 581 MenuItem { Separator = TRUE ; }; 582 MN_TITLE_DESCRIPTION_OBJECT 583 MN_RENAME_OBJECT 584 //-#i68101#---------------------- 585 586 //------------------------------ 587 MenuItem { Separator = TRUE ; }; 588 //------------------------------ 589 MN_MIRRORSUB 590 MN_ARRANGESUB 591 MN_ALIGNSUB 592 MN_ANCHORSUB 593 //------------------------------ 594 MenuItem { Separator = TRUE ; }; 595 //------------------------------ 596 ITEM_GROUP_MENU 597 }; 598}; 599 600 // 601 // Ole-Objekt 602 // 603 604Menu RID_POPUP_OLE 605{ 606 ItemList = 607 { 608 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 609 MN_ORIGINALSIZE 610 611 //-#i68101#---------------------- 612 MenuItem { Separator = TRUE ; }; 613 MN_TITLE_DESCRIPTION_OBJECT 614 MN_RENAME_OBJECT 615 //-#i68101#---------------------- 616 617 //------------------------------ 618 MenuItem { Separator = TRUE ; }; 619 //------------------------------ 620 MN_ARRANGESUB 621 MN_ALIGNSUB 622 MN_ANCHORSUB 623 //------------------------------ 624 MenuItem { Separator = TRUE ; }; 625 //------------------------------ 626 ITEM_GROUP_MENU 627 }; 628}; 629 630 // 631 // Charts 632 // 633 634Menu RID_POPUP_CHART 635{ 636 ItemList = 637 { 638 MenuItem { ITEM_FORMAT_ATTR_TRANSFORM }; 639 MN_ORIGINALSIZE 640 641 //-#i68101#---------------------- 642 MenuItem { Separator = TRUE ; }; 643 MN_TITLE_DESCRIPTION_OBJECT 644 MN_RENAME_OBJECT 645 //-#i68101#---------------------- 646 647 //------------------------------ 648 MenuItem { Separator = TRUE ; }; 649 //------------------------------ 650 MN_ARRANGESUB 651 MN_ALIGNSUB 652 MN_ANCHORSUB 653 //------------------------------ 654 MenuItem { Separator = TRUE ; }; 655 //------------------------------ 656 ITEM_GROUP_MENU 657 }; 658}; 659 660 // 661 // PopUpDraw Text 662 // 663 664String RID_POPUP_DRAWTEXT 665{ 666 /* ### ACHTUNG: Neuer Text in Resource? Popup-Men� f�r Text-Objekte : Popup-Men� f�r Text-Objekte */ 667 Text [ en-US ] = "Pop-up menu for text objects" ; 668 Text [ x-comment ] = " "; 669}; 670 671Menu RID_POPUP_DRAWTEXT 672{ 673 ItemList = 674 { 675 MN_RESET 676 MenuItem { Separator = TRUE ; }; 677 MN_DRWTXTATTR 678 MenuItem { Separator = TRUE ; }; 679 MenuItem 680 { 681 ITEM_FORMAT_ATTR_CHAR_FONT 682 }; 683 MenuItem 684 { 685 ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT 686 }; 687 // Stil, Ausrichtung, Zeilenabstand 688 MN_TEXT_ATTR 689 MenuItem { Separator = TRUE ; }; 690 // Zeichen, Absatz 691 MN_DRWTXT 692 MenuItem { Separator = TRUE ; }; 693 MenuItem 694 { 695 ITEM_OPEN_HYPERLINK 696 }; 697 }; 698}; 699 700