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