1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include "globals.hrc"
27 Identifier = SID_ATTR_CHAR_FONT;\
28 HelpID = SID_ATTR_CHAR_FONT;\
30 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; \
33 Identifier = SID_ATTR_CHAR_FONTHEIGHT ; \
34 HelpID = SID_ATTR_CHAR_FONTHEIGHT ; \
36 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
38 #define MN_TEXT1( HIDE )\
41 Identifier = SID_ATTR_CHAR_WEIGHT ; \
42 HelpID = SID_ATTR_CHAR_WEIGHT ; \
46 Identifier = SID_ATTR_CHAR_POSTURE ; \
47 HelpID = SID_ATTR_CHAR_POSTURE ; \
51 Identifier = SID_ATTR_CHAR_UNDERLINE ; \
52 HelpID = SID_ATTR_CHAR_UNDERLINE ; \
56 Identifier = SID_ATTR_CHAR_OVERLINE ; \
57 HelpID = SID_ATTR_CHAR_OVERLINE ; \
61 Identifier = FN_SET_SUPER_SCRIPT;\
62 HelpID = FN_SET_SUPER_SCRIPT;\
67 Identifier = FN_SET_SUB_SCRIPT;\
68 HelpID = FN_SET_SUB_SCRIPT;\
73 Type = TOOLBOXITEM_SEPARATOR ; \
77 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
78 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \
83 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \
84 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \
89 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \
90 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \
94 #define MN_TEXT1_RTL( HIDE )\
97 Identifier = SID_ATTR_CHAR_WEIGHT ; \
98 HelpID = SID_ATTR_CHAR_WEIGHT ; \
102 Identifier = SID_ATTR_CHAR_POSTURE ; \
103 HelpID = SID_ATTR_CHAR_POSTURE ; \
107 Identifier = SID_ATTR_CHAR_UNDERLINE ; \
108 HelpID = SID_ATTR_CHAR_UNDERLINE ; \
112 Identifier = SID_ATTR_CHAR_OVERLINE ; \
113 HelpID = SID_ATTR_CHAR_OVERLINE ; \
117 Identifier = FN_SET_SUPER_SCRIPT;\
118 HelpID = FN_SET_SUPER_SCRIPT;\
123 Identifier = FN_SET_SUB_SCRIPT;\
124 HelpID = FN_SET_SUB_SCRIPT;\
129 Type = TOOLBOXITEM_SEPARATOR ; \
133 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \
134 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \
135 RadioCheck = TRUE ; \
139 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \
140 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \
141 RadioCheck = TRUE ; \
145 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \
146 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \
147 RadioCheck = TRUE ; \
150 #define MN_TEXT1_BLOCK \
153 Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \
154 HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \
155 RadioCheck = TRUE ; \
158 #define MN_TEXT_LINESPACE \
161 Type = TOOLBOXITEM_SEPARATOR ; \
165 Identifier = SID_ATTR_PARA_LINESPACE_10;\
166 HelpID = SID_ATTR_PARA_LINESPACE_10;\
172 Identifier = SID_ATTR_PARA_LINESPACE_15;\
173 HelpID = SID_ATTR_PARA_LINESPACE_15;\
179 Identifier = SID_ATTR_PARA_LINESPACE_20;\
180 HelpID = SID_ATTR_PARA_LINESPACE_20;\
185 #define MN_TEXT_LTR_RTL \
188 Type = TOOLBOXITEM_SEPARATOR ; \
192 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\
193 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\
199 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\
200 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\
205 #define MN_TEXT_RTL_LTR \
208 Type = TOOLBOXITEM_SEPARATOR ; \
212 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\
213 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\
219 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\
220 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\
228 Type = TOOLBOXITEM_SEPARATOR ; \
232 Identifier = FN_NUM_NUMBERING_ON ; \
233 HelpID = FN_NUM_NUMBERING_ON ; \
237 Identifier = FN_NUM_BULLET_ON ; \
238 HelpID = FN_NUM_BULLET_ON ; \
242 Identifier = SID_DEC_INDENT ; \
243 HelpId = SID_DEC_INDENT ; \
247 Identifier = SID_INC_INDENT ; \
248 HelpId = SID_INC_INDENT ; \
252 Identifier = FN_GROW_FONT_SIZE;\
253 HelpID = FN_GROW_FONT_SIZE;\
258 Identifier = FN_SHRINK_FONT_SIZE;\
259 HelpID = FN_SHRINK_FONT_SIZE;\
263 #define MN_BACKGROUND_COLOR\
266 ITEM_TOOLBAR_BACKGROUND_COLOR\
269 #define MN_TEXT_BACKGROUND \
272 Type = TOOLBOXITEM_SEPARATOR ; \
276 ITEM_TOOLBAR_ATTR_CHAR_COLOR\
277 Identifier = SID_ATTR_CHAR_COLOR2 ; \
278 Command = ".uno:FontColor"; \
283 Identifier = SID_ATTR_CHAR_COLOR_BACKGROUND ; \
284 HelpID = SID_ATTR_CHAR_COLOR_BACKGROUND ; \
289 ITEM_TOOLBAR_BACKGROUND_COLOR\
290 Text [ en-US ] = "Paragraph Background" ; \
293 #define MN_TEXT_DIALOGS(HIDE)\
296 Type = TOOLBOXITEM_SEPARATOR ; \
300 Identifier = SID_SELECTALL;\
301 HelpId = SID_SELECTALL;\
306 Identifier = SID_CHAR_DLG;\
307 HelpId = SID_CHAR_DLG;\
312 Identifier = SID_PARA_DLG;\
313 HelpId = SID_PARA_DLG;\
321 ITEM_TOOLBAR_TEMPLATE_APPLY\
323 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; };
325 #define MN_FRAME_WRAP\
328 Identifier = FN_FRAME_NOWRAP ; \
329 HelpID = FN_FRAME_NOWRAP ; \
330 RadioCheck = TRUE ; \
334 Identifier = FN_FRAME_WRAP ; \
335 HelpID = FN_FRAME_WRAP ; \
336 RadioCheck = TRUE ; \
340 Identifier = FN_FRAME_WRAP_IDEAL ; \
341 HelpID = FN_FRAME_WRAP_IDEAL ; \
342 RadioCheck = TRUE ; \
347 Identifier = FN_FRAME_WRAP_LEFT ; \
348 HelpID = FN_FRAME_WRAP_LEFT ; \
349 RadioCheck = TRUE ; \
354 Identifier = FN_FRAME_WRAP_RIGHT ; \
355 HelpID = FN_FRAME_WRAP_RIGHT ; \
356 RadioCheck = TRUE ; \
361 Identifier = FN_FRAME_WRAPTHRU ; \
362 HelpID = FN_FRAME_WRAPTHRU ; \
363 RadioCheck = TRUE ; \
366 #define MN_FRAME_WRAP_WEB\
369 Identifier = FN_FRAME_NOWRAP ; \
370 HelpID = FN_FRAME_NOWRAP ; \
371 RadioCheck = TRUE ; \
375 Identifier = FN_FRAME_WRAP_LEFT ; \
376 HelpID = FN_FRAME_WRAP_LEFT ; \
377 RadioCheck = TRUE ; \
381 Identifier = FN_FRAME_WRAP_RIGHT ; \
382 HelpID = FN_FRAME_WRAP_RIGHT ; \
383 RadioCheck = TRUE ; \
387 Type = TOOLBOXITEM_SEPARATOR ; \
391 Identifier = SID_IMAP ; \
392 HelpID = SID_IMAP ; \
393 RadioCheck = TRUE ; \
399 Type = TOOLBOXITEM_SEPARATOR ; \
403 Identifier = FN_FRAME_WRAP_CONTOUR ; \
404 HelpID = FN_FRAME_WRAP_CONTOUR ; \
409 Identifier = SID_CONTOUR_DLG ; \
410 HelpID = SID_CONTOUR_DLG ; \
415 Identifier = SID_IMAP ; \
416 HelpID = SID_IMAP ; \
424 Type = TOOLBOXITEM_SEPARATOR ; \
428 Identifier = FN_FRAME_ALIGN_HORZ_LEFT ; \
429 HelpID = FN_FRAME_ALIGN_HORZ_LEFT ; \
430 RadioCheck = TRUE ; \
436 Identifier = FN_FRAME_ALIGN_HORZ_CENTER ; \
437 HelpID = FN_FRAME_ALIGN_HORZ_CENTER ; \
438 RadioCheck = TRUE ; \
444 Identifier = FN_FRAME_ALIGN_HORZ_RIGHT ; \
445 HelpID = FN_FRAME_ALIGN_HORZ_RIGHT ; \
446 RadioCheck = TRUE ; \
450 Type = TOOLBOXITEM_SEPARATOR ; \
454 Identifier = FN_FRAME_ALIGN_VERT_TOP ; \
455 HelpID = FN_FRAME_ALIGN_VERT_TOP ; \
456 RadioCheck = TRUE ; \
460 Identifier = FN_FRAME_ALIGN_VERT_CENTER ; \
461 HelpID = FN_FRAME_ALIGN_VERT_CENTER ; \
462 RadioCheck = TRUE ; \
466 Identifier = FN_FRAME_ALIGN_VERT_BOTTOM ; \
467 HelpID = FN_FRAME_ALIGN_VERT_BOTTOM ; \
468 RadioCheck = TRUE ; \
472 Type = TOOLBOXITEM_SEPARATOR ; \
478 Identifier = SID_FRAME_TO_TOP ; \
479 HelpID = SID_FRAME_TO_TOP ; \
483 Identifier = SID_FRAME_TO_BOTTOM ; \
484 HelpID = SID_FRAME_TO_BOTTOM ; \
487 #define MN_LINESTYLE\
490 ITEM_TOOLBAR_ATTR_BORDER\
494 ITEM_TOOLBAR_FRAME_LINESTYLE\
498 ITEM_TOOLBAR_FRAME_LINECOLOR\
501 #define MN_ATTRIBUTES_FRAME\
504 Identifier = FN_FORMAT_FRAME_DLG ; \
505 HelpID = FN_FORMAT_FRAME_DLG ; \
508 #define MN_ATTRIBUTES_GRAFIK\
511 Identifier = FN_FORMAT_FRAME_DLG;\
512 HelpID = FN_FORMAT_GRAFIC_DLG;\
513 Text [ en-US ] = "Graphics Properties";\
517 #define MN_ATTRIBUTES_OLE\
520 Identifier = FN_FORMAT_FRAME_DLG;\
521 HelpID = FN_FORMAT_FRAME_DLG;\
522 Text [ en-US ] = "Object Properties";\
525 #define MN_GRID(hide)\
528 Type = TOOLBOXITEM_SEPARATOR;\
532 Identifier = SID_GRID_VISIBLE;\
533 HelpID = SID_GRID_VISIBLE;\
538 Identifier = SID_GRID_USE;\
539 HelpID = SID_GRID_USE;\
544 Identifier = SID_HELPLINES_MOVE;\
545 HelpID = SID_HELPLINES_MOVE;\
551 #endif // _TOOLBOX_HRC
553 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */