xref: /trunk/main/sc/source/ui/drawfunc/drformsh.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_LAYER\
31	ToolBoxItem\
32	{\
33		Identifier = SID_FRAME_TO_TOP ; \
34		HelpID = CMD_SID_FRAME_TO_TOP ; \
35	};\
36	ToolBoxItem\
37	{\
38		Identifier = SID_FRAME_TO_BOTTOM ; \
39		HelpID = CMD_SID_FRAME_TO_BOTTOM ; \
40	};
41
42#define MN_RENAME_OBJECT \
43	MenuItem\
44	{\
45		Identifier = SID_RENAME_OBJECT ; \
46		HelpId = CMD_SID_RENAME_OBJECT ; \
47		Text [ en-US ] = "Name..." ;\
48	};
49
50// #i68101#
51#define MN_TITLE_DESCRIPTION_OBJECT \
52	MenuItem\
53	{\
54		Identifier = SID_TITLE_DESCRIPTION_OBJECT ; \
55		HelpId = CMD_SID_TITLE_DESCRIPTION_OBJECT ; \
56		Text [ en-US ] = "Description..." ;\
57	};
58
59#define MN_ARRANGESUB \
60	MenuItem\
61	{\
62		Identifier = SUBMENU_OBJARRANGE ; \
63		HelpID = HID_SCMENU_OBJARRANGE ; \
64		Text [ en-US ] = "~Arrange" ; \
65		SubMenu = Menu\
66		{\
67			ItemList = \
68			{\
69				MenuItem\
70				{\
71					ITEM_FORMAT_FRAME_TO_TOP\
72				};\
73				MenuItem\
74				{\
75					Identifier = SID_FRAME_UP ; \
76					HelpId = CMD_SID_FRAME_UP ; \
77					Text [ en-US ] = "Bring ~Forward" ; \
78				};\
79				MenuItem\
80				{\
81					Identifier = SID_FRAME_DOWN ; \
82					HelpId = CMD_SID_FRAME_DOWN ; \
83					Text [ en-US ] = "Send Back~ward" ; \
84				};\
85				MenuItem\
86				{\
87					ITEM_FORMAT_FRAME_TO_BOTTOM\
88				};\
89				MenuItem { Separator = TRUE ; }; \
90				MenuItem\
91				{\
92					ITEM_FORMAT_OBJECT_HEAVEN\
93				};\
94				MenuItem\
95				{\
96					ITEM_FORMAT_OBJECT_HELL\
97				};\
98			};\
99		};\
100	};
101
102#define MN_ANCHORSUB \
103	MenuItem\
104	{\
105		Identifier = SUBMENU_ANCHOR ; \
106		HelpID = HID_SCMENU_ANCHOR ; \
107		Text [ en-US ] = "An~chor" ; \
108		SubMenu = Menu\
109		{\
110			ItemList = \
111			{\
112				MenuItem\
113				{\
114					RadioCheck = TRUE ; \
115					Identifier = SID_ANCHOR_PAGE ; \
116					HelpId = CMD_SID_ANCHOR_PAGE ; \
117					Text [ en-US ] = "To P~age" ; \
118				};\
119				MenuItem\
120				{\
121					RadioCheck = TRUE ; \
122					Identifier = SID_ANCHOR_CELL ; \
123					HelpId = CMD_SID_ANCHOR_CELL ; \
124					Text [ en-US ] = "To ~Cell" ; \
125				};\
126			};\
127		};\
128	};
129
130#define MN_ALIGNSUB	\
131	MenuItem\
132	{\
133		Identifier = SID_OBJECT_ALIGN ; \
134		HelpId = CMD_SID_OBJECT_ALIGN ; \
135		Text [ en-US ] = "A~lignment" ; \
136		SubMenu = Menu\
137		{\
138			ItemList = \
139			{\
140				MenuItem\
141				{\
142					ITEM_FORMAT_OBJECT_ALIGN_LEFT\
143				};\
144				MenuItem\
145				{\
146					ITEM_FORMAT_OBJECT_ALIGN_CENTER\
147				};\
148				MenuItem\
149				{\
150					ITEM_FORMAT_OBJECT_ALIGN_RIGHT\
151				};\
152				MenuItem\
153				{\
154					Separator = TRUE ; \
155				};\
156				MenuItem\
157				{\
158					ITEM_FORMAT_OBJECT_ALIGN_UP\
159				};\
160				MenuItem\
161				{\
162					ITEM_FORMAT_OBJECT_ALIGN_MIDDLE\
163				};\
164				MenuItem\
165				{\
166					ITEM_FORMAT_OBJECT_ALIGN_DOWN\
167				};\
168			};\
169		};\
170	};
171
172
173//	Popup-Menues ---------------------------------------------------------------------
174//
175String RID_POPUP_DRAWFORM
176{
177	Text [ en-US ] = "Popup menu for form objects" ;
178};
179//
180//		Popup-Menu for (Uno-) Controls
181//
182Menu RID_POPUP_DRAWFORM
183{
184	ItemList =
185	{
186		MenuItem { ITEM_FORMAT_ATTR_TRANSFORM };
187
188		//-#i68101#----------------------
189		MenuItem { Separator = TRUE ; };
190		MN_TITLE_DESCRIPTION_OBJECT
191		MN_RENAME_OBJECT
192		//-#i68101#----------------------
193
194		//------------------------------
195		MenuItem { Separator = TRUE ; };
196		//------------------------------
197		MenuItem { ITEM_FORM_CONTROL_PROPERTIES };
198		MenuItem { ITEM_FORM_PROPERTIES };
199		MenuItem { ITEM_REPLACE_CONTROL };
200		//------------------------------
201		MenuItem { Separator = TRUE ; };
202		//------------------------------
203		MN_ARRANGESUB
204		MN_ALIGNSUB
205		MN_ANCHORSUB
206		//------------------------------
207		MenuItem { Separator = TRUE ; };
208		//------------------------------
209		ITEM_GROUP_MENU
210	};
211};
212
213// ********************************************************************** EOF
214