update dev300-m58
[ooovba.git] / sw / source / ui / inc / swmn_tmpl.hrc
blobf7753db76e146f04567ea6cd319e0496ba07b595
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: swmn_tmpl.hrc,v $
10  * $Revision: 1.15.210.1 $
11  *
12  * This file is part of OpenOffice.org.
13  *
14  * OpenOffice.org is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU Lesser General Public License version 3
16  * only, as published by the Free Software Foundation.
17  *
18  * OpenOffice.org is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU Lesser General Public License version 3 for more details
22  * (a copy is included in the LICENSE file that accompanied this code).
23  *
24  * You should have received a copy of the GNU Lesser General Public License
25  * version 3 along with OpenOffice.org.  If not, see
26  * <http://www.openoffice.org/license.html>
27  * for a copy of the LGPLv3 License.
28  *
29  ************************************************************************/
31 #ifndef _SWMN_HRC
32 #define _SWMN_HRC
34 #include <svx/dialogs.hrc>
35 #include <svx/globlmn.hrc>
36 #include "cmdid.h"
37 #include "app.hrc"
38 #include "globals.hrc"
39 #include "helpid.h"
40 #include "popup.hrc"
41 //#include "cfgid.h"
43 /* --------------------- F O R M A T --------------------------------- */
45 #define SEPARATOR               MenuItem { Separator = TRUE; }
47 //define for ITEM_FORMAT_NUMBERING
48 #define DEFINE_SLOTID_FOR_NUMBER_BULLETS FN_NUMBER_BULLETS
49 #define MN_NUMBERING ITEM_FORMAT_NUMBERING
51 #define MN_TXT\
52     MenuItem\
53     {\
54         ITEM_FORMAT_CHAR_DLG\
55     };\
56     MenuItem\
57     {\
58         ITEM_FORMAT_PARA_DLG\
59     };\
60     MenuItem\
61     {\
62         Identifier = FN_FORMAT_PAGE_DLG ; \
63         HelpID = FN_FORMAT_PAGE_DLG ; \
64         Text [ en-US ] = "Pa~ge..." ; \
65     };
68 #define MN_TEXT_ATTR\
69     MenuItem\
70     {\
71         ITEM_FORMAT_ATTR_CHAR_FONT\
72     };\
73     MenuItem\
74     {\
75         ITEM_FORMAT_ATTR_CHAR_FONTHEIGHT\
76     };\
77     MenuItem\
78     {\
79         Identifier = MN_FORMAT_STYLE ; \
80         HelpID = MN_FORMAT_STYLE ; \
81         Command = ".uno:StyleMenu" ; \
82         Text [ en-US ] = "St~yle" ; \
83         SubMenu = Menu\
84         {\
85             ItemList = \
86             {\
87                 MenuItem\
88                 {\
89                     ITEM_FORMAT_ATTR_CHAR_WEIGHT\
90                 };\
91                 MenuItem\
92                 {\
93                     ITEM_FORMAT_ATTR_CHAR_POSTURE\
94                 };\
95                 MenuItem\
96                 {\
97                     ITEM_FORMAT_ATTR_CHAR_OVERLINE\
98                 };\
99                 MenuItem\
100                 {\
101                     ITEM_FORMAT_ATTR_CHAR_UNDERLINE\
102                 };\
103                 MenuItem\
104                 {\
105                     ITEM_FORMAT_ATTR_CHAR_STRIKEOUT\
106                 };\
107                 MenuItem\
108                 {\
109                     ITEM_FORMAT_ATTR_CHAR_SHADOWED\
110                 };\
111                 MenuItem\
112                 {\
113                     ITEM_FORMAT_ATTR_CHAR_CONTOUR\
114                 };\
115                 SEPARATOR ; \
116                 MenuItem\
117                 {\
118                     Identifier = FN_SET_SUPER_SCRIPT ; \
119                     HelpID = FN_SET_SUPER_SCRIPT ; \
120                     Text [ en-US ] = "Superscript" ; \
121                 };\
122                 MenuItem\
123                 {\
124                     Identifier = FN_SET_SUB_SCRIPT ; \
125                     HelpID = FN_SET_SUB_SCRIPT ; \
126                     Text [ en-US ] = "Subscript" ; \
127                 };\
128             };\
129         };\
130     };\
131     MenuItem\
132     {\
133         Identifier = MN_FORMAT_ALGN ; \
134         HelpID = MN_FORMAT_ALGN ; \
135         Command = ".uno:AlignTextMenu" ; \
136         Text [ en-US ] = "A~lignment" ; \
137         RadioCheck = TRUE ; \
138         SubMenu = Menu\
139         {\
140             ItemList = \
141             {\
142                 MenuItem\
143                 {\
144                     RadioCheck = TRUE ; \
145                     ITEM_FORMAT_ATTR_PARA_ADJUST_LEFT\
146                 };\
147                 MenuItem\
148                 {\
149                     RadioCheck = TRUE ; \
150                     ITEM_FORMAT_ATTR_PARA_ADJUST_RIGHT\
151                 };\
152                 MenuItem\
153                 {\
154                     RadioCheck = TRUE ; \
155                     ITEM_FORMAT_ATTR_PARA_ADJUST_CENTER\
156                 };\
157                 MenuItem\
158                 {\
159                     Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \
160                     HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \
161                     RadioCheck = TRUE ; \
162                     Text [ en-US ] = "Justified" ; \
163                 };\
164             };\
165         };\
166     };\
167     MenuItem\
168     {\
169         Identifier = MN_FORMAT_LINESPACE ; \
170         HelpID = MN_FORMAT_LINESPACE ; \
171         Command = ".uno:LineSpacingMenu" ; \
172         Text [ en-US ] = "Line Spacing" ; \
173         _MenuItemFlags = MIB_RADIOCHECK ; \
174         SubMenu = Menu\
175         {\
176             ItemList = \
177             {\
178                 MenuItem\
179                 {\
180                     RadioCheck = TRUE ; \
181                     ITEM_FORMAT_PARA_LINESPACE_10\
182                 };\
183                 MenuItem\
184                 {\
185                     RadioCheck = TRUE ; \
186                     ITEM_FORMAT_PARA_LINESPACE_15\
187                 };\
188                 MenuItem\
189                 {\
190                     RadioCheck = TRUE ; \
191                     ITEM_FORMAT_PARA_LINESPACE_20\
192                 };\
193             };\
194         };\
195     };
197 /* --------------------- M E N U  --------------------------------- */
202 The application menu bar resource has become obsolete. You can now find the menu bar at the following
203 location: <project>/uiconfig/[swriter|sweb|sglobal]/menubar/menubar.xml
208 /* --------------------- D O C U M E N T -------------------------- */
211 #define _MN_EDIT_FIELD                                                      \
212         MenuItem                                                            \
213         {                                                                   \
214             Identifier = FN_EDIT_FIELD ;                                    \
215             HelpID = FN_EDIT_FIELD ;                                        \
216             Text [ en-US ] = "Fields..." ;                             \
217     };
218 #define _MN_EDIT_FOOTNOTE                                                    \
219         MenuItem                                                            \
220         {                                                                   \
221             Identifier = FN_EDIT_FOOTNOTE ;                                 \
222             HelpID = FN_EDIT_FOOTNOTE ;                                     \
223             Text [ en-US ] = "Footnote/Endnote~..." ;                          \
224         };
225     #define _MN_EDIT_IDX_ENTRY_DLG                                          \
226         MenuItem                                                            \
227         {                                                                   \
228             Identifier = FN_EDIT_IDX_ENTRY_DLG ;                            \
229             HelpID = FN_EDIT_IDX_ENTRY_DLG ;                                \
230             Text [ en-US ] = "Inde~x Entry..." ;                       \
231     };
233 #define _MN_EDIT_REDLINE                                          \
234         MenuItem                                                            \
235         {                                                                   \
236             Identifier = FN_REDLINE_ACCEPT_DIRECT;                            \
237             HelpID = FN_REDLINE_ACCEPT_DIRECT ;                                \
238             Text [ en-US ] = "Accept Change" ;                       \
239         };\
240         MenuItem                                                            \
241         {                                                                   \
242             Identifier = FN_REDLINE_REJECT_DIRECT ;                            \
243             HelpID = FN_REDLINE_REJECT_DIRECT ;                                \
244             Text [ en-US ] = "Reject Change" ;                       \
245         };                                                              \
246     SEPARATOR ;
247 #define _MN_EDIT_BIB_ENTRY_DLG                                              \
248         MenuItem                                                            \
249         {                                                                   \
250             Identifier = FN_EDIT_AUTH_ENTRY_DLG ;                           \
251             HelpID = FN_EDIT_AUTH_ENTRY_DLG ;                               \
252             Text [ en-US ] = "~Bibliography Entry...";                  \
253     };                                                                  \
254         SEPARATOR ;
256 #define _MN_EDIT_OPEN_HYPERLINK                                             \
257     MenuItem                                                                \
258     {                                                                       \
259         ITEM_OPEN_HYPERLINK                                                 \
260     };\
261     MenuItem                                                            \
262     {                                                                   \
263         Identifier = FN_EDIT_HYPERLINK ;                           \
264         HelpID = FN_EDIT_HYPERLINK ;                               \
265         Text [ en-US ] = "Edit Hyperlink...";                  \
266     };                                                                  \
267     MenuItem                                                            \
268     {                                                                   \
269         Identifier =  FN_COPY_HYPERLINK_LOCATION;                           \
270         HelpID =  FN_COPY_HYPERLINK_LOCATION;                               \
271         Text [ en-US ] = "Copy Hyperlink ~Location";                  \
272     };                                                                  \
273     MenuItem                                                            \
274     {                                                                   \
275         Identifier = FN_REMOVE_HYPERLINK ;                           \
276         HelpID = FN_REMOVE_HYPERLINK ;                               \
277         Text [ en-US ] = "Remo~ve Hyperlink";                  \
278     };                                                                  
280 #define _MN_EDIT_OPEN_SMARTTAGMENU                                          \
281     MenuItem                                                                \
282     {                                                                       \
283         ITEM_OPEN_SMARTTAGMENU                                              \
284     };
285     
286 #define _MN_EDIT__HYPERLINK \
287     MenuItem\
288     {\
289         Identifier = FN_EDIT_HYPERLINK ; \
290         HelpID = FN_EDIT_HYPERLINK ; \
291         Text [ en-US ] = "~Edit Hyperlink" ; \
292     };
293     
294 #define _DEFAULT_TEXT_EDIT_ELEMENTS                                         \
295     _MN_EDIT_FIELD                                                              \
296     _MN_EDIT_FOOTNOTE                                                           \
297     _MN_EDIT_IDX_ENTRY_DLG                                                      \
298     _MN_EDIT_BIB_ENTRY_DLG                                                      \
299     _MN_EDIT_REDLINE                                                            \
300     MenuItem                                                            \
301     {                                                                   \
302         ITEM_POPUP_TEMPLATE_EDIT                                        \
303     };                                                                  \
304     SEPARATOR ;                                                         \
305     _MN_EDIT_OPEN_HYPERLINK                                             \
306     _MN_EDIT_OPEN_SMARTTAGMENU
309 #define MN_RESET\
310     MenuItem\
311     {\
312         Identifier = FN_FORMAT_RESET ; \
313         HelpID = FN_FORMAT_RESET ; \
314         Text [ en-US ] = "~Default Formatting" ; \
315     };
317 #define _NUMBERING_RELATED_MENU \
318         SEPARATOR ;                                                         \
319         MenuItem                                                            \
320         {                                                                   \
321             Identifier = FN_NUMBER_NEWSTART;                                \
322             HelpId = FN_NUMBER_NEWSTART;                                    \
323             Text[ en-US ] = "Restart Numbering";                            \
324         };                                                                  \
325         MenuItem                                                            \
326         {                                                                   \
327             Identifier = FN_NUM_CONTINUE;                                   \
328             HelpId = FN_NUM_CONTINUE;                                       \
329             Text[ en-US ] = "Continue previous numbering";                  \
330         };                                                                  \
331         MenuItem                                                            \
332         {                                                                   \
333             Identifier = FN_NUM_BULLET_UP;                              \
334             HelpId = FN_NUM_BULLET_UP;                                  \
335             Text[ en-US ] = "Up One Level";                              \
336         };                                                                  \
337         MenuItem                                                            \
338         {                                                                   \
339             Identifier = FN_NUM_BULLET_DOWN;                              \
340             HelpId = FN_NUM_BULLET_DOWN;                                  \
341             Text[ en-US ] = "Down One Level";                              \
342         };                                                                  
344 #define BASE_TEXT_POPUPMENU_BEGIN \
345 {                                                                           \
346     ItemList =                                                              \
347     {                                                                       \
348         MN_RESET                                                            \
349         _NUMBERING_RELATED_MENU                                             \
350         SEPARATOR ;                                                         \
351         MN_TEXT_ATTR                                                        \
352         SEPARATOR ;                                                         \
353         MN_TXT                                                              \
354         MN_NUMBERING                                                        \
355         ITEM_TRANSLITERATE_MENU                                             \
356         SEPARATOR ;                                                         
358 // not in Writer/Web
359 #define BASE_TEXT_POPUPMENU_NOWEB \
360         MenuItem                                                            \
361         {                                                                   \
362             Identifier = FN_UPDATE_CUR_TOX ;                                \
363             HelpID = FN_UPDATE_CUR_TOX ;                                    \
364             Text [ en-US ] = "~Update Index/Table";                         \
365         };                                                                  \
366         MenuItem                                                            \
367         {                                                                   \
368             Identifier = FN_EDIT_CURRENT_TOX;                               \
369             HelpID = FN_EDIT_CURRENT_TOX;                                   \
370             Text [ en-US ] = "~Edit Index/Table";                           \
371         };                                                                  \
372         MenuItem                                                            \
373         {                                                                   \
374             Identifier = FN_REMOVE_CUR_TOX;                                 \
375             HelpID = FN_REMOVE_CUR_TOX;                                     \
376             Text [ en-US ] = "Delete Index/Table";                          \
377         };                                                                  \
378         SEPARATOR ;                                                         
380 #define BASE_TEXT_POPUPMENU_END \
381         _DEFAULT_TEXT_EDIT_ELEMENTS                                         \
382     };                                                                      \
383 };                                                                          
385 #endif