1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: toolbox_tmpl.hrc,v $
10 * $Revision: 1.5.210.1 $
12 * This file is part of OpenOffice.org.
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.
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).
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.
29 ************************************************************************/
33 #include "globals.hrc"
38 Identifier = SID_ATTR_CHAR_FONT;\
39 HelpID = SID_ATTR_CHAR_FONT;\
41 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; \
44 Identifier = SID_ATTR_CHAR_FONTHEIGHT ; \
45 HelpID = SID_ATTR_CHAR_FONTHEIGHT ; \
47 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
49 #define MN_TEXT1( HIDE )\
52 Identifier = SID_ATTR_CHAR_WEIGHT ; \
53 HelpID = SID_ATTR_CHAR_WEIGHT ; \
57 Identifier = SID_ATTR_CHAR_POSTURE ; \
58 HelpID = SID_ATTR_CHAR_POSTURE ; \
62 Identifier = SID_ATTR_CHAR_UNDERLINE ; \
63 HelpID = SID_ATTR_CHAR_UNDERLINE ; \
67 Identifier = SID_ATTR_CHAR_OVERLINE ; \
68 HelpID = SID_ATTR_CHAR_OVERLINE ; \
72 Identifier = FN_SET_SUPER_SCRIPT;\
73 HelpID = FN_SET_SUPER_SCRIPT;\
78 Identifier = FN_SET_SUB_SCRIPT;\
79 HelpID = FN_SET_SUB_SCRIPT;\
84 Type = TOOLBOXITEM_SEPARATOR ; \
88 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
89 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \
94 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \
95 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \
100 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \
101 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \
102 RadioCheck = TRUE ; \
105 #define MN_TEXT1_RTL( HIDE )\
108 Identifier = SID_ATTR_CHAR_WEIGHT ; \
109 HelpID = SID_ATTR_CHAR_WEIGHT ; \
113 Identifier = SID_ATTR_CHAR_POSTURE ; \
114 HelpID = SID_ATTR_CHAR_POSTURE ; \
118 Identifier = SID_ATTR_CHAR_UNDERLINE ; \
119 HelpID = SID_ATTR_CHAR_UNDERLINE ; \
123 Identifier = SID_ATTR_CHAR_OVERLINE ; \
124 HelpID = SID_ATTR_CHAR_OVERLINE ; \
128 Identifier = FN_SET_SUPER_SCRIPT;\
129 HelpID = FN_SET_SUPER_SCRIPT;\
134 Identifier = FN_SET_SUB_SCRIPT;\
135 HelpID = FN_SET_SUB_SCRIPT;\
140 Type = TOOLBOXITEM_SEPARATOR ; \
144 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \
145 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \
146 RadioCheck = TRUE ; \
150 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \
151 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \
152 RadioCheck = TRUE ; \
156 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
157 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \
158 RadioCheck = TRUE ; \
161 #define MN_TEXT1_BLOCK \
164 Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \
165 HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \
166 RadioCheck = TRUE ; \
169 #define MN_TEXT_LINESPACE \
172 Type = TOOLBOXITEM_SEPARATOR ; \
176 Identifier = SID_ATTR_PARA_LINESPACE_10;\
177 HelpID = SID_ATTR_PARA_LINESPACE_10;\
183 Identifier = SID_ATTR_PARA_LINESPACE_15;\
184 HelpID = SID_ATTR_PARA_LINESPACE_15;\
190 Identifier = SID_ATTR_PARA_LINESPACE_20;\
191 HelpID = SID_ATTR_PARA_LINESPACE_20;\
196 #define MN_TEXT_LTR_RTL \
199 Type = TOOLBOXITEM_SEPARATOR ; \
203 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\
204 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\
210 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\
211 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\
216 #define MN_TEXT_RTL_LTR \
219 Type = TOOLBOXITEM_SEPARATOR ; \
223 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\
224 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\
230 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\
231 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\
239 Type = TOOLBOXITEM_SEPARATOR ; \
243 Identifier = FN_NUM_NUMBERING_ON ; \
244 HelpID = FN_NUM_NUMBERING_ON ; \
248 Identifier = FN_NUM_BULLET_ON ; \
249 HelpID = FN_NUM_BULLET_ON ; \
253 Identifier = SID_DEC_INDENT ; \
254 HelpId = SID_DEC_INDENT ; \
258 Identifier = SID_INC_INDENT ; \
259 HelpId = SID_INC_INDENT ; \
263 Identifier = FN_GROW_FONT_SIZE;\
264 HelpID = FN_GROW_FONT_SIZE;\
269 Identifier = FN_SHRINK_FONT_SIZE;\
270 HelpID = FN_SHRINK_FONT_SIZE;\
274 #define MN_BACKGROUND_COLOR\
277 ITEM_TOOLBAR_BACKGROUND_COLOR\
280 #define MN_TEXT_BACKGROUND \
283 Type = TOOLBOXITEM_SEPARATOR ; \
287 ITEM_TOOLBAR_ATTR_CHAR_COLOR\
288 Identifier = SID_ATTR_CHAR_COLOR2 ; \
289 Command = ".uno:FontColor"; \
294 Identifier = SID_ATTR_CHAR_COLOR_BACKGROUND ; \
295 HelpID = SID_ATTR_CHAR_COLOR_BACKGROUND ; \
300 ITEM_TOOLBAR_BACKGROUND_COLOR\
301 Text [ en-US ] = "Paragraph Background" ; \
302 Text [ x-comment ] = " ";\
305 #define MN_TEXT_DIALOGS(HIDE)\
308 Type = TOOLBOXITEM_SEPARATOR ; \
312 Identifier = SID_SELECTALL;\
313 HelpId = SID_SELECTALL;\
318 Identifier = SID_CHAR_DLG;\
319 HelpId = SID_CHAR_DLG;\
324 Identifier = SID_PARA_DLG;\
325 HelpId = SID_PARA_DLG;\
333 ITEM_TOOLBAR_TEMPLATE_APPLY\
335 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
337 #define MN_FRAME_WRAP\
340 Identifier = FN_FRAME_NOWRAP ; \
341 HelpID = FN_FRAME_NOWRAP ; \
342 RadioCheck = TRUE ; \
346 Identifier = FN_FRAME_WRAP ; \
347 HelpID = FN_FRAME_WRAP ; \
348 RadioCheck = TRUE ; \
352 Identifier = FN_FRAME_WRAP_IDEAL ; \
353 HelpID = FN_FRAME_WRAP_IDEAL ; \
354 RadioCheck = TRUE ; \
359 Identifier = FN_FRAME_WRAP_LEFT ; \
360 HelpID = FN_FRAME_WRAP_LEFT ; \
361 RadioCheck = TRUE ; \
366 Identifier = FN_FRAME_WRAP_RIGHT ; \
367 HelpID = FN_FRAME_WRAP_RIGHT ; \
368 RadioCheck = TRUE ; \
373 Identifier = FN_FRAME_WRAPTHRU ; \
374 HelpID = FN_FRAME_WRAPTHRU ; \
375 RadioCheck = TRUE ; \
378 #define MN_FRAME_WRAP_WEB\
381 Identifier = FN_FRAME_NOWRAP ; \
382 HelpID = FN_FRAME_NOWRAP ; \
383 RadioCheck = TRUE ; \
387 Identifier = FN_FRAME_WRAP_LEFT ; \
388 HelpID = FN_FRAME_WRAP_LEFT ; \
389 RadioCheck = TRUE ; \
393 Identifier = FN_FRAME_WRAP_RIGHT ; \
394 HelpID = FN_FRAME_WRAP_RIGHT ; \
395 RadioCheck = TRUE ; \
399 Type = TOOLBOXITEM_SEPARATOR ; \
403 Identifier = SID_IMAP ; \
404 HelpID = SID_IMAP ; \
405 RadioCheck = TRUE ; \
411 Type = TOOLBOXITEM_SEPARATOR ; \
415 Identifier = FN_FRAME_WRAP_CONTOUR ; \
416 HelpID = FN_FRAME_WRAP_CONTOUR ; \
421 Identifier = SID_CONTOUR_DLG ; \
422 HelpID = SID_CONTOUR_DLG ; \
427 Identifier = SID_IMAP ; \
428 HelpID = SID_IMAP ; \
436 Type = TOOLBOXITEM_SEPARATOR ; \
440 Identifier = FN_FRAME_ALIGN_HORZ_LEFT ; \
441 HelpID = FN_FRAME_ALIGN_HORZ_LEFT ; \
442 RadioCheck = TRUE ; \
448 Identifier = FN_FRAME_ALIGN_HORZ_CENTER ; \
449 HelpID = FN_FRAME_ALIGN_HORZ_CENTER ; \
450 RadioCheck = TRUE ; \
456 Identifier = FN_FRAME_ALIGN_HORZ_RIGHT ; \
457 HelpID = FN_FRAME_ALIGN_HORZ_RIGHT ; \
458 RadioCheck = TRUE ; \
462 Type = TOOLBOXITEM_SEPARATOR ; \
466 Identifier = FN_FRAME_ALIGN_VERT_TOP ; \
467 HelpID = FN_FRAME_ALIGN_VERT_TOP ; \
468 RadioCheck = TRUE ; \
472 Identifier = FN_FRAME_ALIGN_VERT_CENTER ; \
473 HelpID = FN_FRAME_ALIGN_VERT_CENTER ; \
474 RadioCheck = TRUE ; \
478 Identifier = FN_FRAME_ALIGN_VERT_BOTTOM ; \
479 HelpID = FN_FRAME_ALIGN_VERT_BOTTOM ; \
480 RadioCheck = TRUE ; \
484 Type = TOOLBOXITEM_SEPARATOR ; \
490 Identifier = SID_FRAME_TO_TOP ; \
491 HelpID = SID_FRAME_TO_TOP ; \
495 Identifier = SID_FRAME_TO_BOTTOM ; \
496 HelpID = SID_FRAME_TO_BOTTOM ; \
499 #define MN_LINESTYLE\
502 ITEM_TOOLBAR_ATTR_BORDER\
506 ITEM_TOOLBAR_FRAME_LINESTYLE\
510 ITEM_TOOLBAR_FRAME_LINECOLOR\
513 #define MN_ATTRIBUTES_FRAME\
516 Identifier = FN_FORMAT_FRAME_DLG ; \
517 HelpID = FN_FORMAT_FRAME_DLG ; \
520 #define MN_ATTRIBUTES_GRAFIK\
523 Identifier = FN_FORMAT_FRAME_DLG;\
524 HelpID = FN_FORMAT_GRAFIC_DLG;\
525 Text [ en-US ] = "Graphics Properties";\
526 Text [ x-comment ] = " ";\
530 #define MN_ATTRIBUTES_OLE\
533 Identifier = FN_FORMAT_FRAME_DLG;\
534 HelpID = FN_FORMAT_FRAME_DLG;\
535 Text [ en-US ] = "Object Properties";\
536 Text [ x-comment ] = " ";\
539 #define MN_GRID(hide)\
542 Type = TOOLBOXITEM_SEPARATOR;\
546 Identifier = SID_GRID_VISIBLE;\
547 HelpID = SID_GRID_VISIBLE;\
552 Identifier = SID_GRID_USE;\
553 HelpID = SID_GRID_USE;\
558 Identifier = SID_HELPLINES_MOVE;\
559 HelpID = SID_HELPLINES_MOVE;\
565 #endif // _TOOLBOX_HRC