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