xref: /trunk/main/sc/source/ui/drawfunc/objdraw.src (revision 97afbf7b)
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	};
202
203#define MN_ASSIGNMACRO \
204	 MenuItem\
205	 {\
206		 Identifier = SID_ASSIGNMACRO ; \
207		 HelpID = CMD_SID_ASSIGNMACRO ; \
208		 Text [ en-US ] = "Assig~n Macro..." ; \
209 	};
210
211#define MN_ORIGINALSIZE \
212	MenuItem\
213	{\
214		Identifier = SID_ORIGINALSIZE ; \
215		HelpId = CMD_SID_ORIGINALSIZE ; \
216		Text [ en-US ] = "~Original Size" ; \
217	};
218
219#define MN_RENAME_OBJECT \
220	MenuItem\
221	{\
222		Identifier = SID_RENAME_OBJECT ; \
223		HelpId = CMD_SID_RENAME_OBJECT ; \
224		Text [ en-US ] = "Name..." ;\
225	};
226
227// #i68101#
228#define MN_TITLE_DESCRIPTION_OBJECT \
229	MenuItem\
230	{\
231		Identifier = SID_TITLE_DESCRIPTION_OBJECT ; \
232		HelpId = CMD_SID_TITLE_DESCRIPTION_OBJECT ; \
233		Text [ en-US ] = "Description..." ;\
234	};
235
236#define MN_MIRRORSUB \
237	MenuItem\
238	{\
239		Identifier = SUBMENU_OBJMIRROR ; \
240		HelpID = HID_SCMENU_OBJMIRROR ; \
241		Text [ en-US ] = "~Flip" ; \
242		SubMenu = Menu\
243		{\
244			ItemList = \
245			{\
246				MenuItem\
247				{\
248					Identifier = SID_MIRROR_VERTICAL ; \
249					HelpId = CMD_SID_MIRROR_VERTICAL ; \
250					Text [ en-US ] = "~Vertically" ; \
251				};\
252				MenuItem\
253				{\
254					Identifier = SID_MIRROR_HORIZONTAL ; \
255					HelpId = CMD_SID_MIRROR_HORIZONTAL ; \
256					Text [ en-US ] = "~Horizontal" ; \
257				};\
258			};\
259		};\
260	};
261
262#define MN_ARRANGESUB \
263	MenuItem\
264	{\
265		Identifier = SUBMENU_OBJARRANGE ; \
266		HelpID = HID_SCMENU_OBJARRANGE ; \
267		Text [ en-US ] = "~Arrange" ; \
268		SubMenu = Menu\
269		{\
270			ItemList = \
271			{\
272				MenuItem\
273				{\
274					ITEM_FORMAT_FRAME_TO_TOP\
275				};\
276				MenuItem\
277				{\
278					Identifier = SID_FRAME_UP ; \
279					HelpId = CMD_SID_FRAME_UP ; \
280					Text [ en-US ] = "Bring ~Forward" ; \
281				};\
282				MenuItem\
283				{\
284					Identifier = SID_FRAME_DOWN ; \
285					HelpId = CMD_SID_FRAME_DOWN ; \
286					Text [ en-US ] = "Send Back~ward" ; \
287				};\
288				MenuItem\
289				{\
290					ITEM_FORMAT_FRAME_TO_BOTTOM\
291				};\
292				MenuItem { Separator = TRUE ; }; \
293				MenuItem\
294				{\
295					ITEM_FORMAT_OBJECT_HEAVEN\
296				};\
297				MenuItem\
298				{\
299					ITEM_FORMAT_OBJECT_HELL\
300				};\
301			};\
302		};\
303	};
304
305#define MN_ANCHORSUB \
306	MenuItem\
307	{\
308		Identifier = SUBMENU_ANCHOR ; \
309		HelpID = HID_SCMENU_ANCHOR ; \
310		Text [ en-US ] = "An~chor" ; \
311		SubMenu = Menu\
312		{\
313			ItemList = \
314			{\
315				MenuItem\
316				{\
317					RadioCheck = TRUE ; \
318					Identifier = SID_ANCHOR_PAGE ; \
319					HelpId = CMD_SID_ANCHOR_PAGE ; \
320					Text [ en-US ] = "To P~age" ; \
321				};\
322				MenuItem\
323				{\
324					RadioCheck = TRUE ; \
325					Identifier = SID_ANCHOR_CELL ; \
326					HelpId = CMD_SID_ANCHOR_CELL ; \
327					Text [ en-US ] = "To ~Cell" ; \
328				};\
329			};\
330		};\
331	};
332
333#define MN_ALIGNSUB \
334	MenuItem\
335	{\
336		Identifier = SID_OBJECT_ALIGN ; \
337		HelpId = CMD_SID_OBJECT_ALIGN ; \
338		Text [ en-US ] = "A~lignment" ; \
339		SubMenu = Menu\
340		{\
341			ItemList = \
342			{\
343				MenuItem\
344				{\
345					ITEM_FORMAT_OBJECT_ALIGN_LEFT\
346				};\
347				MenuItem\
348				{\
349					ITEM_FORMAT_OBJECT_ALIGN_CENTER\
350				};\
351				MenuItem\
352				{\
353					ITEM_FORMAT_OBJECT_ALIGN_RIGHT\
354				};\
355				MenuItem\
356				{\
357					Separator = TRUE ; \
358				};\
359				MenuItem\
360				{\
361					ITEM_FORMAT_OBJECT_ALIGN_UP\
362				};\
363				MenuItem\
364				{\
365					ITEM_FORMAT_OBJECT_ALIGN_MIDDLE\
366				};\
367				MenuItem\
368				{\
369					ITEM_FORMAT_OBJECT_ALIGN_DOWN\
370				};\
371			};\
372		};\
373	};
374
375//
376// ------------------------------------------------------------------------------
377//
378//
379// Objekt-Bars
380//
381String RID_DRAW_OBJECTBAR
382{
383	Text [ en-US ] = "Drawing Object Bar" ;
384};
385//
386// Text-Toolbox
387//
388String RID_TEXT_TOOLBOX
389{
390	Text [ en-US ] = "Text Object Bar" ;
391};
392//
393//	Graphics toolbox
394//
395String RID_GRAPHIC_OBJECTBAR
396{
397	Text [ en-US ] = "Graphics Object Bar" ;
398};
399//
400// Popup-Menus ----------------------------------------------------------------------
401//
402String RID_POPUP_DRAW
403{
404	Text [ en-US ] = "Pop-up menu for drawing objects" ;
405};
406//
407// Popup-Menu for (general) drawing objects
408//
409Menu RID_POPUP_DRAW
410{
411	ItemList =
412	{
413		MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE };
414		MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA };
415		MN_DRWTXTATTR// Text...
416		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
417
418		//-#i68101#----------------------
419		MenuItem { Separator = TRUE ; };
420		MN_TITLE_DESCRIPTION_OBJECT
421		MN_RENAME_OBJECT
422		//-#i68101#----------------------
423
424		//------------------------------
425		MenuItem { Separator = TRUE ; };
426		//------------------------------
427		MN_MIRRORSUB
428		MN_ARRANGESUB
429		MN_ALIGNSUB
430		MN_ANCHORSUB
431		MN_ASSIGNMACRO
432		//------------------------------
433		MenuItem { Separator = TRUE ; };
434		//------------------------------
435		MenuItem
436		{
437			ITEM_FORMAT_BEZIER_EDIT
438			RadioCheck = FALSE ;
439			AutoCheck = TRUE ;
440		};
441		MenuItem
442		{
443			ITEM_FORMAT_FONTWORK
444		};
445		//------------------------------
446		MenuItem { Separator = TRUE ; };
447		//------------------------------
448		ITEM_GROUP_MENU
449#ifdef ISSUE66550_HLINK_FOR_SHAPES
450		//------------------------------
451		MenuItem { Separator = TRUE ; };
452		//------------------------------
453		MN_EDITLNK
454		MN_DELLNK
455		MenuItem { ITEM_OPEN_HYPERLINK };
456#endif
457	};
458};
459
460//
461// Popup-Menu for (Uno-) Controls
462//
463
464Menu RID_POPUP_CONTROL
465{
466	ItemList =
467	{
468		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
469
470		//-#i68101#----------------------
471		MenuItem { Separator = TRUE ; };
472		MN_TITLE_DESCRIPTION_OBJECT
473		MN_RENAME_OBJECT
474		//-#i68101#----------------------
475
476		//------------------------------
477		MenuItem { Separator = TRUE ; };
478		//------------------------------
479		MenuItem { ITEM_FORM_CONTROL_PROPERTIES };
480		MenuItem { ITEM_FORM_PROPERTIES };
481		//------------------------------
482		MenuItem { Separator = TRUE ; };
483		//------------------------------
484		MN_ARRANGESUB
485		MN_ALIGNSUB
486		MN_ANCHORSUB
487		//------------------------------
488		MenuItem { Separator = TRUE ; };
489		//------------------------------
490		ITEM_GROUP_MENU
491	};
492};
493
494//
495// Graphic
496//
497
498Menu RID_POPUP_GRAPHIC
499{
500	ItemList =
501	{
502		MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE };// #i25616#
503		MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA };// #i25616#
504		MN_DRWTXTATTR
505		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
506		MN_ORIGINALSIZE
507
508		//-#i68101#----------------------
509		MenuItem { Separator = TRUE ; };
510		MN_TITLE_DESCRIPTION_OBJECT
511		MN_RENAME_OBJECT
512		//-#i68101#----------------------
513
514		//------------------------------
515		MenuItem { Separator = TRUE ; };
516		//------------------------------
517		MN_MIRRORSUB
518		MN_ARRANGESUB
519		MN_ALIGNSUB
520		MN_ANCHORSUB
521		MN_ASSIGNMACRO
522		//------------------------------
523		MenuItem { Separator = TRUE ; };
524		//------------------------------
525		ITEM_GROUP_MENU
526#ifdef ISSUE66550_HLINK_FOR_SHAPES
527		//------------------------------
528		MenuItem { Separator = TRUE ; };
529		//------------------------------
530		MN_EDITLNK
531		MN_DELLNK
532		MenuItem { ITEM_OPEN_HYPERLINK };
533#endif
534	};
535};
536
537//
538// Media
539//
540
541Menu RID_POPUP_MEDIA
542{
543	ItemList =
544	{
545		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
546
547		//-#i68101#----------------------
548		MenuItem { Separator = TRUE ; };
549		MN_TITLE_DESCRIPTION_OBJECT
550		MN_RENAME_OBJECT
551		//-#i68101#----------------------
552
553		//------------------------------
554		MenuItem { Separator = TRUE ; };
555		//------------------------------
556		MN_MIRRORSUB
557		MN_ARRANGESUB
558		MN_ALIGNSUB
559		MN_ANCHORSUB
560		//------------------------------
561		MenuItem { Separator = TRUE ; };
562		//------------------------------
563		ITEM_GROUP_MENU
564		};
565};
566
567//
568// Ole-Object
569//
570
571Menu RID_POPUP_OLE
572{
573	ItemList =
574	{
575		// -#i118485# Added support for Line, Area and Text
576		MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE };
577		MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA };
578		MN_DRWTXTATTR
579		//-#i118485#----------------------
580
581		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
582		MN_ORIGINALSIZE
583
584		//-#i68101#----------------------
585		MenuItem { Separator = TRUE ; };
586		MN_TITLE_DESCRIPTION_OBJECT
587		MN_RENAME_OBJECT
588		//-#i68101#----------------------
589
590		//------------------------------
591		MenuItem { Separator = TRUE ; };
592		//------------------------------
593		MN_ARRANGESUB
594		MN_ALIGNSUB
595		MN_ANCHORSUB
596		//------------------------------
597		MenuItem { Separator = TRUE ; };
598		//------------------------------
599		ITEM_GROUP_MENU
600	};
601};
602
603//
604// Charts
605//
606
607Menu RID_POPUP_CHART
608{
609	ItemList =
610	{
611		// -#i118485# Added support for Line, Area and Text
612		MenuItem { ITEM_FORMAT_ATTRIBUTES_LINE };
613		MenuItem { ITEM_FORMAT_ATTRIBUTES_AREA };
614		MN_DRWTXTATTR
615		//-#i118485#----------------------
616
617		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
618		MN_ORIGINALSIZE
619
620		//-#i68101#----------------------
621		MenuItem { Separator = TRUE ; };
622		MN_TITLE_DESCRIPTION_OBJECT
623		MN_RENAME_OBJECT
624		//-#i68101#----------------------
625
626		//------------------------------
627		MenuItem { Separator = TRUE ; };
628		//------------------------------
629		MN_ARRANGESUB
630		MN_ALIGNSUB
631		MN_ANCHORSUB
632		//------------------------------
633		MenuItem { Separator = TRUE ; };
634		//------------------------------
635		ITEM_GROUP_MENU
636	};
637};
638
639//
640// PopUpDraw Text
641//
642
643String RID_POPUP_DRAWTEXT
644{
645	Text [ en-US ] = "Pop-up menu for text objects" ;
646};
647
648Menu RID_POPUP_DRAWTEXT
649{
650	ItemList =
651	{
652		MN_RESET
653		MenuItem { Separator = TRUE ; };
654		MN_DRWTXTATTR
655		MenuItem { Separator = TRUE ; };
656		MenuItem
657		{
658			ITEM_FORMAT_ATTR_CHAR_FONT
659		};
660		MenuItem
661		{
662			ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT
663		};
664		// Stil, Ausrichtung, Zeilenabstand
665		MN_TEXT_ATTR
666		MenuItem { Separator = TRUE ; };
667		// Zeichen, Absatz
668		MN_DRWTXT
669		MenuItem { Separator = TRUE ; };
670		MenuItem
671		{
672			ITEM_OPEN_HYPERLINK
673		};
674	};
675};
676
677// ********************************************************************** EOF
678