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#ifndef _TOOLBOX_HRC 24#define _TOOLBOX_HRC 25#include "shells.hrc" 26#include "globals.hrc" 27#include "cmdid.h" 28#define MN_FONT\ 29 ToolBoxItem\ 30 {\ 31 Identifier = SID_ATTR_CHAR_FONT;\ 32 HelpID = SID_ATTR_CHAR_FONT;\ 33 };\ 34 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; \ 35 ToolBoxItem\ 36 {\ 37 Identifier = SID_ATTR_CHAR_FONTHEIGHT ; \ 38 HelpID = SID_ATTR_CHAR_FONTHEIGHT ; \ 39 };\ 40 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; 41 42#define MN_TEXT1( HIDE )\ 43 ToolBoxItem\ 44 {\ 45 Identifier = SID_ATTR_CHAR_WEIGHT ; \ 46 HelpID = SID_ATTR_CHAR_WEIGHT ; \ 47 };\ 48 ToolBoxItem\ 49 {\ 50 Identifier = SID_ATTR_CHAR_POSTURE ; \ 51 HelpID = SID_ATTR_CHAR_POSTURE ; \ 52 };\ 53 ToolBoxItem\ 54 {\ 55 Identifier = SID_ATTR_CHAR_UNDERLINE ; \ 56 HelpID = SID_ATTR_CHAR_UNDERLINE ; \ 57 };\ 58 ToolBoxItem\ 59 {\ 60 Identifier = SID_ATTR_CHAR_OVERLINE ; \ 61 HelpID = SID_ATTR_CHAR_OVERLINE ; \ 62 };\ 63 ToolBoxItem\ 64 {\ 65 Identifier = FN_SET_SUPER_SCRIPT;\ 66 HelpID = FN_SET_SUPER_SCRIPT;\ 67 Hide = HIDE;\ 68 };\ 69 ToolBoxItem\ 70 {\ 71 Identifier = FN_SET_SUB_SCRIPT;\ 72 HelpID = FN_SET_SUB_SCRIPT;\ 73 Hide = HIDE;\ 74 };\ 75 ToolBoxItem\ 76 {\ 77 Type = TOOLBOXITEM_SEPARATOR ; \ 78 };\ 79 ToolBoxItem\ 80 {\ 81 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \ 82 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \ 83 RadioCheck = TRUE ; \ 84 };\ 85 ToolBoxItem\ 86 {\ 87 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \ 88 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \ 89 RadioCheck = TRUE ; \ 90 };\ 91 ToolBoxItem\ 92 {\ 93 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \ 94 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \ 95 RadioCheck = TRUE ; \ 96 };\ 97 98#define MN_TEXT1_RTL( HIDE )\ 99 ToolBoxItem\ 100 {\ 101 Identifier = SID_ATTR_CHAR_WEIGHT ; \ 102 HelpID = SID_ATTR_CHAR_WEIGHT ; \ 103 };\ 104 ToolBoxItem\ 105 {\ 106 Identifier = SID_ATTR_CHAR_POSTURE ; \ 107 HelpID = SID_ATTR_CHAR_POSTURE ; \ 108 };\ 109 ToolBoxItem\ 110 {\ 111 Identifier = SID_ATTR_CHAR_UNDERLINE ; \ 112 HelpID = SID_ATTR_CHAR_UNDERLINE ; \ 113 };\ 114 ToolBoxItem\ 115 {\ 116 Identifier = SID_ATTR_CHAR_OVERLINE ; \ 117 HelpID = SID_ATTR_CHAR_OVERLINE ; \ 118 };\ 119 ToolBoxItem\ 120 {\ 121 Identifier = FN_SET_SUPER_SCRIPT;\ 122 HelpID = FN_SET_SUPER_SCRIPT;\ 123 Hide = HIDE;\ 124 };\ 125 ToolBoxItem\ 126 {\ 127 Identifier = FN_SET_SUB_SCRIPT;\ 128 HelpID = FN_SET_SUB_SCRIPT;\ 129 Hide = HIDE;\ 130 };\ 131 ToolBoxItem\ 132 {\ 133 Type = TOOLBOXITEM_SEPARATOR ; \ 134 };\ 135 ToolBoxItem\ 136 {\ 137 Identifier = SID_ATTR_PARA_ADJUST_RIGHT ; \ 138 HelpID = SID_ATTR_PARA_ADJUST_RIGHT ; \ 139 RadioCheck = TRUE ; \ 140 };\ 141 ToolBoxItem\ 142 {\ 143 Identifier = SID_ATTR_PARA_ADJUST_CENTER ; \ 144 HelpID = SID_ATTR_PARA_ADJUST_CENTER ; \ 145 RadioCheck = TRUE ; \ 146 };\ 147 ToolBoxItem\ 148 {\ 149 Identifier = SID_ATTR_PARA_ADJUST_LEFT ; \ 150 HelpID = SID_ATTR_PARA_ADJUST_LEFT ; \ 151 RadioCheck = TRUE ; \ 152 };\ 153 154#define MN_TEXT1_BLOCK \ 155 ToolBoxItem\ 156 {\ 157 Identifier = SID_ATTR_PARA_ADJUST_BLOCK ; \ 158 HelpID = SID_ATTR_PARA_ADJUST_BLOCK ; \ 159 RadioCheck = TRUE ; \ 160 };\ 161 162#define MN_TEXT_LINESPACE \ 163 ToolBoxItem\ 164 {\ 165 Type = TOOLBOXITEM_SEPARATOR ; \ 166 };\ 167 ToolBoxItem\ 168 {\ 169 Identifier = SID_ATTR_PARA_LINESPACE_10;\ 170 HelpID = SID_ATTR_PARA_LINESPACE_10;\ 171 RadioCheck = TRUE;\ 172 Hide = TRUE;\ 173 };\ 174 ToolBoxItem\ 175 {\ 176 Identifier = SID_ATTR_PARA_LINESPACE_15;\ 177 HelpID = SID_ATTR_PARA_LINESPACE_15;\ 178 RadioCheck = TRUE;\ 179 Hide = TRUE;\ 180 };\ 181 ToolBoxItem\ 182 {\ 183 Identifier = SID_ATTR_PARA_LINESPACE_20;\ 184 HelpID = SID_ATTR_PARA_LINESPACE_20;\ 185 RadioCheck = TRUE;\ 186 Hide = TRUE;\ 187 };\ 188 189#define MN_TEXT_LTR_RTL \ 190 ToolBoxItem\ 191 {\ 192 Type = TOOLBOXITEM_SEPARATOR ; \ 193 };\ 194 ToolBoxItem\ 195 {\ 196 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\ 197 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\ 198 RadioCheck = TRUE;\ 199 Hide = TRUE;\ 200 };\ 201 ToolBoxItem\ 202 {\ 203 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\ 204 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\ 205 RadioCheck = TRUE;\ 206 Hide = TRUE;\ 207 };\ 208 209#define MN_TEXT_RTL_LTR \ 210 ToolBoxItem\ 211 {\ 212 Type = TOOLBOXITEM_SEPARATOR ; \ 213 };\ 214 ToolBoxItem\ 215 {\ 216 Identifier = SID_ATTR_PARA_RIGHT_TO_LEFT;\ 217 HelpID = SID_ATTR_PARA_RIGHT_TO_LEFT;\ 218 RadioCheck = TRUE;\ 219 Hide = TRUE;\ 220 };\ 221 ToolBoxItem\ 222 {\ 223 Identifier = SID_ATTR_PARA_LEFT_TO_RIGHT;\ 224 HelpID = SID_ATTR_PARA_LEFT_TO_RIGHT;\ 225 RadioCheck = TRUE;\ 226 Hide = TRUE;\ 227 };\ 228 229#define MN_TEXT2\ 230 ToolBoxItem\ 231 {\ 232 Type = TOOLBOXITEM_SEPARATOR ; \ 233 };\ 234 ToolBoxItem\ 235 {\ 236 Identifier = FN_NUM_NUMBERING_ON ; \ 237 HelpID = FN_NUM_NUMBERING_ON ; \ 238 };\ 239 ToolBoxItem\ 240 {\ 241 Identifier = FN_NUM_BULLET_ON ; \ 242 HelpID = FN_NUM_BULLET_ON ; \ 243 };\ 244 ToolBoxItem\ 245 {\ 246 Identifier = SID_DEC_INDENT ; \ 247 HelpId = SID_DEC_INDENT ; \ 248 };\ 249 ToolBoxItem\ 250 {\ 251 Identifier = SID_INC_INDENT ; \ 252 HelpId = SID_INC_INDENT ; \ 253 };\ 254 ToolBoxItem\ 255 {\ 256 Identifier = FN_GROW_FONT_SIZE;\ 257 HelpID = FN_GROW_FONT_SIZE;\ 258 Hide = TRUE;\ 259 };\ 260 ToolBoxItem\ 261 {\ 262 Identifier = FN_SHRINK_FONT_SIZE;\ 263 HelpID = FN_SHRINK_FONT_SIZE;\ 264 Hide = TRUE;\ 265 };\ 266 267#define MN_BACKGROUND_COLOR\ 268 ToolBoxItem\ 269 {\ 270 ITEM_TOOLBAR_BACKGROUND_COLOR\ 271 }; 272 273#define MN_TEXT_BACKGROUND \ 274 ToolBoxItem\ 275 {\ 276 Type = TOOLBOXITEM_SEPARATOR ; \ 277 };\ 278 ToolBoxItem\ 279 {\ 280 ITEM_TOOLBAR_ATTR_CHAR_COLOR\ 281 Identifier = SID_ATTR_CHAR_COLOR2 ; \ 282 Command = ".uno:FontColor"; \ 283 DropDown = TRUE ;\ 284 };\ 285 ToolBoxItem\ 286 {\ 287 Identifier = SID_ATTR_CHAR_COLOR_BACKGROUND ; \ 288 HelpID = SID_ATTR_CHAR_COLOR_BACKGROUND ; \ 289 DropDown = TRUE ;\ 290 };\ 291 ToolBoxItem\ 292 {\ 293 ITEM_TOOLBAR_BACKGROUND_COLOR\ 294 Text [ en-US ] = "Paragraph Background" ; \ 295 Text [ x-comment ] = " ";\ 296 }; 297 298#define MN_TEXT_DIALOGS(HIDE)\ 299 ToolBoxItem\ 300 {\ 301 Type = TOOLBOXITEM_SEPARATOR ; \ 302 };\ 303 ToolBoxItem\ 304 {\ 305 Identifier = SID_SELECTALL;\ 306 HelpId = SID_SELECTALL;\ 307 Hide = HIDE;\ 308 };\ 309 ToolBoxItem\ 310 {\ 311 Identifier = SID_CHAR_DLG;\ 312 HelpId = SID_CHAR_DLG;\ 313 Hide = HIDE;\ 314 };\ 315 ToolBoxItem\ 316 {\ 317 Identifier = SID_PARA_DLG;\ 318 HelpId = SID_PARA_DLG;\ 319 Hide = HIDE;\ 320 }; 321 322 323#define MN_TEMPLATE\ 324 ToolBoxItem\ 325 {\ 326 ITEM_TOOLBAR_TEMPLATE_APPLY\ 327 };\ 328 ToolBoxItem { Type = TOOLBOXITEM_SEPARATOR ; }; 329 330#define MN_FRAME_WRAP\ 331 ToolBoxItem\ 332 {\ 333 Identifier = FN_FRAME_NOWRAP ; \ 334 HelpID = FN_FRAME_NOWRAP ; \ 335 RadioCheck = TRUE ; \ 336 };\ 337 ToolBoxItem\ 338 {\ 339 Identifier = FN_FRAME_WRAP ; \ 340 HelpID = FN_FRAME_WRAP ; \ 341 RadioCheck = TRUE ; \ 342 };\ 343 ToolBoxItem\ 344 {\ 345 Identifier = FN_FRAME_WRAP_IDEAL ; \ 346 HelpID = FN_FRAME_WRAP_IDEAL ; \ 347 RadioCheck = TRUE ; \ 348 Hide = TRUE;\ 349 };\ 350 ToolBoxItem\ 351 {\ 352 Identifier = FN_FRAME_WRAP_LEFT ; \ 353 HelpID = FN_FRAME_WRAP_LEFT ; \ 354 RadioCheck = TRUE ; \ 355 Hide = TRUE;\ 356 };\ 357 ToolBoxItem\ 358 {\ 359 Identifier = FN_FRAME_WRAP_RIGHT ; \ 360 HelpID = FN_FRAME_WRAP_RIGHT ; \ 361 RadioCheck = TRUE ; \ 362 Hide = TRUE;\ 363 };\ 364 ToolBoxItem\ 365 {\ 366 Identifier = FN_FRAME_WRAPTHRU ; \ 367 HelpID = FN_FRAME_WRAPTHRU ; \ 368 RadioCheck = TRUE ; \ 369 }; 370 371#define MN_FRAME_WRAP_WEB\ 372 ToolBoxItem\ 373 {\ 374 Identifier = FN_FRAME_NOWRAP ; \ 375 HelpID = FN_FRAME_NOWRAP ; \ 376 RadioCheck = TRUE ; \ 377 };\ 378 ToolBoxItem\ 379 {\ 380 Identifier = FN_FRAME_WRAP_LEFT ; \ 381 HelpID = FN_FRAME_WRAP_LEFT ; \ 382 RadioCheck = TRUE ; \ 383 };\ 384 ToolBoxItem\ 385 {\ 386 Identifier = FN_FRAME_WRAP_RIGHT ; \ 387 HelpID = FN_FRAME_WRAP_RIGHT ; \ 388 RadioCheck = TRUE ; \ 389 };\ 390 ToolBoxItem\ 391 {\ 392 Type = TOOLBOXITEM_SEPARATOR ; \ 393 };\ 394 ToolBoxItem\ 395 {\ 396 Identifier = SID_IMAP ; \ 397 HelpID = SID_IMAP ; \ 398 RadioCheck = TRUE ; \ 399 }; 400 401#define MN_CONTOUR\ 402 ToolBoxItem\ 403 {\ 404 Type = TOOLBOXITEM_SEPARATOR ; \ 405 };\ 406 ToolBoxItem\ 407 {\ 408 Identifier = FN_FRAME_WRAP_CONTOUR ; \ 409 HelpID = FN_FRAME_WRAP_CONTOUR ; \ 410 Hide = TRUE ; \ 411 };\ 412 ToolBoxItem\ 413 {\ 414 Identifier = SID_CONTOUR_DLG ; \ 415 HelpID = SID_CONTOUR_DLG ; \ 416 Hide = TRUE ; \ 417 };\ 418 ToolBoxItem\ 419 {\ 420 Identifier = SID_IMAP ; \ 421 HelpID = SID_IMAP ; \ 422 Hide = TRUE ; \ 423 }; 424 425 426#define MN_FRAME1\ 427 ToolBoxItem\ 428 {\ 429 Type = TOOLBOXITEM_SEPARATOR ; \ 430 };\ 431 ToolBoxItem\ 432 {\ 433 Identifier = FN_FRAME_ALIGN_HORZ_LEFT ; \ 434 HelpID = FN_FRAME_ALIGN_HORZ_LEFT ; \ 435 RadioCheck = TRUE ; \ 436 }; 437 438#define MN_FRAME2\ 439 ToolBoxItem\ 440 {\ 441 Identifier = FN_FRAME_ALIGN_HORZ_CENTER ; \ 442 HelpID = FN_FRAME_ALIGN_HORZ_CENTER ; \ 443 RadioCheck = TRUE ; \ 444 }; 445 446#define MN_FRAME3\ 447 ToolBoxItem\ 448 {\ 449 Identifier = FN_FRAME_ALIGN_HORZ_RIGHT ; \ 450 HelpID = FN_FRAME_ALIGN_HORZ_RIGHT ; \ 451 RadioCheck = TRUE ; \ 452 };\ 453 ToolBoxItem\ 454 {\ 455 Type = TOOLBOXITEM_SEPARATOR ; \ 456 };\ 457 ToolBoxItem\ 458 {\ 459 Identifier = FN_FRAME_ALIGN_VERT_TOP ; \ 460 HelpID = FN_FRAME_ALIGN_VERT_TOP ; \ 461 RadioCheck = TRUE ; \ 462 };\ 463 ToolBoxItem\ 464 {\ 465 Identifier = FN_FRAME_ALIGN_VERT_CENTER ; \ 466 HelpID = FN_FRAME_ALIGN_VERT_CENTER ; \ 467 RadioCheck = TRUE ; \ 468 };\ 469 ToolBoxItem\ 470 {\ 471 Identifier = FN_FRAME_ALIGN_VERT_BOTTOM ; \ 472 HelpID = FN_FRAME_ALIGN_VERT_BOTTOM ; \ 473 RadioCheck = TRUE ; \ 474 };\ 475 ToolBoxItem\ 476 {\ 477 Type = TOOLBOXITEM_SEPARATOR ; \ 478 }; 479 480#define MN_LAYER\ 481 ToolBoxItem\ 482 {\ 483 Identifier = SID_FRAME_TO_TOP ; \ 484 HelpID = SID_FRAME_TO_TOP ; \ 485 };\ 486 ToolBoxItem\ 487 {\ 488 Identifier = SID_FRAME_TO_BOTTOM ; \ 489 HelpID = SID_FRAME_TO_BOTTOM ; \ 490 }; 491 492#define MN_LINESTYLE\ 493 ToolBoxItem\ 494 {\ 495 ITEM_TOOLBAR_ATTR_BORDER\ 496 };\ 497 ToolBoxItem\ 498 {\ 499 ITEM_TOOLBAR_FRAME_LINESTYLE\ 500 };\ 501 ToolBoxItem\ 502 {\ 503 ITEM_TOOLBAR_FRAME_LINECOLOR\ 504 }; 505 506#define MN_ATTRIBUTES_FRAME\ 507 ToolBoxItem\ 508 {\ 509 Identifier = FN_FORMAT_FRAME_DLG ; \ 510 HelpID = FN_FORMAT_FRAME_DLG ; \ 511 }; 512 513#define MN_ATTRIBUTES_GRAFIK\ 514 ToolBoxItem\ 515 {\ 516 Identifier = FN_FORMAT_FRAME_DLG;\ 517 HelpID = FN_FORMAT_GRAFIC_DLG;\ 518 Text [ en-US ] = "Graphics Properties";\ 519 Text [ x-comment ] = " ";\ 520 }; 521 522 523#define MN_ATTRIBUTES_OLE\ 524 ToolBoxItem\ 525 {\ 526 Identifier = FN_FORMAT_FRAME_DLG;\ 527 HelpID = FN_FORMAT_FRAME_DLG;\ 528 Text [ en-US ] = "Object Properties";\ 529 Text [ x-comment ] = " ";\ 530 }; 531 532#define MN_GRID(hide)\ 533 ToolBoxItem\ 534 {\ 535 Type = TOOLBOXITEM_SEPARATOR;\ 536 };\ 537 ToolBoxItem\ 538 {\ 539 Identifier = SID_GRID_VISIBLE;\ 540 HelpID = SID_GRID_VISIBLE;\ 541 hide;\ 542 };\ 543 ToolBoxItem\ 544 {\ 545 Identifier = SID_GRID_USE;\ 546 HelpID = SID_GRID_USE;\ 547 hide;\ 548 };\ 549 ToolBoxItem\ 550 {\ 551 Identifier = SID_HELPLINES_MOVE;\ 552 HelpID = SID_HELPLINES_MOVE;\ 553 hide;\ 554 }; 555 556 557 558#endif // _TOOLBOX_HRC 559 560