1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28interface TextDrawText 29[ 30 uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1" 31] 32{ 33 SID_SELECTALL // api: 34 [ 35 ExecMethod = ExecDraw ; 36 StateMethod = NoState ; 37 ] 38 39 SID_CUT // api: 40 [ 41 ExecMethod = ExecClpbrd ; 42 StateMethod = StateClpbrd ; 43 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 44 ] 45 46 SID_COPY // api: 47 [ 48 ExecMethod = ExecClpbrd ; 49 StateMethod = StateClpbrd ; 50 ] 51 52 SID_PASTE // api: 53 [ 54 ExecMethod = ExecClpbrd ; 55 StateMethod = StateClpbrd ; 56 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 57 ] 58 59 SID_PASTE_SPECIAL // api: 60 [ 61 StateMethod = StateClpbrd ; 62 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 63 ] 64 65 SID_CLIPBOARD_FORMAT_ITEMS // api: 66 [ 67 StateMethod = StateClpbrd ; 68 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 69 ] 70 71 FN_ESCAPE // api: 72 [ 73 ExecMethod = ExecDraw ; 74 ] 75 76 SID_UNDO // api: 77 [ 78 ExecMethod = ExecUndo ; 79 StateMethod = StateUndo ; 80 81 ToolBoxConfig , MenuConfig , AccelConfig; 82 ] 83 84 SID_REDO // api: 85 [ 86 ExecMethod = ExecUndo ; 87 StateMethod = StateUndo ; 88 ] 89 90 SID_REPEAT // api: 91 [ 92 ExecMethod = ExecUndo ; 93 StateMethod = StateUndo ; 94 ] 95 SID_GETUNDOSTRINGS 96 [ 97 StateMethod = StateUndo ; 98 ] 99 100 SID_GETREDOSTRINGS 101 [ 102 StateMethod = StateUndo ; 103 ] 104 105 FN_FORMAT_RESET // api: 106 [ 107 ExecMethod = ExecDraw ; 108 StateMethod = NoState ; 109 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 110 ] 111 112 SID_CHARMAP // api: 113 [ 114 ExecMethod = ExecDraw ; 115 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 116 ] 117 118 FN_INSERT_STRING 119 [ 120 ExecMethod = ExecDraw ; 121 StateMethod = NoState ; 122 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 123 ] 124 125 FN_INSERT_SOFT_HYPHEN // status(final|play) 126 [ 127 ExecMethod = ExecDraw ; 128 StateMethod = NoState ; 129 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 130 ] 131 FN_INSERT_HARDHYPHEN // status() 132 [ 133 ExecMethod = ExecDraw ; 134 StateMethod = NoState ; 135 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 136 ] 137 FN_INSERT_HARD_SPACE // status(final|play) 138 [ 139 ExecMethod = ExecDraw ; 140 StateMethod = NoState ; 141 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 142 ] 143 SID_INSERT_RLM 144 [ 145 ExecMethod = ExecDraw ; 146 StateMethod = GetState ; 147 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 148 ] 149 SID_INSERT_LRM 150 [ 151 ExecMethod = ExecDraw ; 152 StateMethod = GetState ; 153 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 154 ] 155 SID_INSERT_ZWSP 156 [ 157 ExecMethod = ExecDraw ; 158 StateMethod = GetState ; 159 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 160 ] 161 SID_INSERT_ZWNBSP 162 [ 163 ExecMethod = ExecDraw ; 164 StateMethod = GetState ; 165 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 166 ] 167 168 SID_ATTR_CHAR_WEIGHT // api: 169 [ 170 ExecMethod = Execute ; 171 StateMethod = GetDrawTxtCtrlState ; 172 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 173 ] 174 175 SID_ATTR_CHAR_POSTURE // api: 176 [ 177 ExecMethod = Execute ; 178 StateMethod = GetDrawTxtCtrlState ; 179 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 180 ] 181 182 SID_ATTR_CHAR_UNDERLINE // api: 183 [ 184 ExecMethod = Execute ; 185 StateMethod = GetDrawTxtCtrlState ; 186 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 187 ] 188 189 SID_ATTR_CHAR_OVERLINE // api: 190 [ 191 ExecMethod = Execute ; 192 StateMethod = GetDrawTxtCtrlState ; 193 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 194 ] 195 196 SID_ATTR_CHAR_CONTOUR 197 [ 198 ExecMethod = Execute ; 199 StateMethod = GetDrawTxtCtrlState ; 200 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 201 ] 202 203 SID_ATTR_CHAR_SHADOWED 204 [ 205 ExecMethod = Execute ; 206 StateMethod = GetDrawTxtCtrlState ; 207 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 208 ] 209 210 SID_ATTR_CHAR_STRIKEOUT 211 [ 212 ExecMethod = Execute ; 213 StateMethod = GetDrawTxtCtrlState ; 214 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 215 ] 216 217 SID_ATTR_PARA_ADJUST_LEFT // api: 218 [ 219 ExecMethod = Execute ; 220 StateMethod = GetState ; 221 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 222 ] 223 224 SID_ATTR_PARA_ADJUST_CENTER // api: 225 [ 226 ExecMethod = Execute ; 227 StateMethod = GetState ; 228 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 229 ] 230 231 SID_ATTR_PARA_ADJUST_RIGHT // api: 232 [ 233 ExecMethod = Execute ; 234 StateMethod = GetState ; 235 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 236 ] 237 238 SID_ATTR_PARA_ADJUST_BLOCK // api: 239 [ 240 ExecMethod = Execute ; 241 StateMethod = GetState ; 242 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 243 ] 244 245 SID_ATTR_PARA_LINESPACE_10 // api: 246 [ 247 ExecMethod = Execute ; 248 StateMethod = GetState ; 249 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 250 ] 251 252 SID_ATTR_PARA_LINESPACE_15 // api: 253 [ 254 ExecMethod = Execute ; 255 StateMethod = GetState ; 256 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 257 ] 258 259 SID_ATTR_PARA_LINESPACE_20 // api: 260 [ 261 ExecMethod = Execute ; 262 StateMethod = GetState ; 263 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 264 ] 265 SID_ATTR_PARA_LEFT_TO_RIGHT 266 [ 267 ExecMethod = Execute ; 268 StateMethod = GetState ; 269 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 270 ] 271 SID_ATTR_PARA_RIGHT_TO_LEFT 272 [ 273 ExecMethod = Execute ; 274 StateMethod = GetState ; 275 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 276 ] 277 278 SID_TEXTDIRECTION_LEFT_TO_RIGHT 279 [ 280 ExecMethod = Execute ; 281 StateMethod = GetState ; 282 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 283 ] 284 SID_TEXTDIRECTION_TOP_TO_BOTTOM 285 [ 286 ExecMethod = Execute ; 287 StateMethod = GetState ; 288 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 289 ] 290 SID_VERTICALTEXT_STATE 291 [ 292 StateMethod = GetState ; 293 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 294 ] 295 SID_CTLFONT_STATE 296 [ 297 StateMethod = GetState ; 298 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 299 ] 300 SID_CHAR_DLG // api: 301 [ 302 ExecMethod = Execute ; 303 StateMethod = GetState ; 304 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 305 ] 306 SID_CHAR_DLG_FOR_PARAGRAPH 307 [ 308 ExecMethod = Execute ; 309 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 310 ] 311 312 SID_PARA_DLG // api: 313 [ 314 ExecMethod = Execute ; 315 StateMethod = GetState ; 316 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 317 ] 318 319 FN_SET_SUPER_SCRIPT 320 [ 321 ExecMethod = Execute ; 322 StateMethod = GetState ; 323 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 324 ] 325 326 FN_SET_SUB_SCRIPT 327 [ 328 ExecMethod = Execute ; 329 StateMethod = GetState ; 330 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 331 ] 332 333 SID_FONTWORK // api: 334 [ 335 ExecMethod = ExecFontWork ; 336 StateMethod = StateFontWork ; 337 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 338 ] 339 340 341 SID_FORMTEXT_STYLE // api: 342 [ 343 ExecMethod = ExecFormText ; 344 StateMethod = GetFormTextState ; 345 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 346 ] 347 348 SID_FORMTEXT_ADJUST // api: 349 [ 350 ExecMethod = ExecFormText ; 351 StateMethod = GetFormTextState ; 352 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 353 ] 354 355 SID_FORMTEXT_DISTANCE // api: 356 [ 357 ExecMethod = ExecFormText ; 358 StateMethod = GetFormTextState ; 359 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 360 ] 361 362 SID_FORMTEXT_START // api: 363 [ 364 ExecMethod = ExecFormText ; 365 StateMethod = GetFormTextState ; 366 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 367 ] 368 369 370 SID_FORMTEXT_MIRROR // api: 371 [ 372 ExecMethod = ExecFormText ; 373 StateMethod = GetFormTextState ; 374 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 375 ] 376 377 378 SID_FORMTEXT_HIDEFORM // api: 379 [ 380 ExecMethod = ExecFormText ; 381 StateMethod = GetFormTextState ; 382 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 383 ] 384 385 SID_FORMTEXT_OUTLINE // api: 386 [ 387 ExecMethod = ExecFormText ; 388 StateMethod = GetFormTextState ; 389 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 390 ] 391 392 SID_FORMTEXT_SHADOW // api: 393 [ 394 ExecMethod = ExecFormText ; 395 StateMethod = GetFormTextState ; 396 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 397 ] 398 399 SID_FORMTEXT_SHDWCOLOR // api: 400 [ 401 ExecMethod = ExecFormText ; 402 StateMethod = GetFormTextState ; 403 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 404 ] 405 406 SID_FORMTEXT_SHDWXVAL // api: 407 [ 408 ExecMethod = ExecFormText ; 409 StateMethod = GetFormTextState ; 410 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 411 ] 412 413 SID_FORMTEXT_SHDWYVAL // api: 414 [ 415 ExecMethod = ExecFormText ; 416 StateMethod = GetFormTextState ; 417 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 418 ] 419 420 SID_FORMTEXT_STDFORM // api: 421 [ 422 ExecMethod = ExecFormText ; 423 StateMethod = GetFormTextState ; 424 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 425 ] 426 427 SID_THESAURUS // api: 428 [ 429 ExecMethod = ExecDrawLingu ; 430 StateMethod = GetState ; 431 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 432 ] 433 434 SID_HANGUL_HANJA_CONVERSION // api: 435 [ 436 ExecMethod = ExecDrawLingu ; 437 StateMethod = GetState ; 438 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 439 ] 440 441 SID_CHINESE_CONVERSION // api: 442 [ 443 ExecMethod = ExecDrawLingu ; 444 StateMethod = GetState ; 445 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 446 ] 447 448 FN_DRAWTEXT_ATTR_DLG 449 [ 450 ExecMethod = ExecDraw ; 451 StateMethod = NoState ; 452 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 453 ] 454 455 SID_STYLE_CATALOG // ole(no) api(play/rec) 456 [ 457 StateMethod = StateDisableItems ; 458 ] 459 460 SID_AUTOSPELL_CHECK 461 [ 462 ExecMethod = Execute; 463 StateMethod = GetDrawTxtCtrlState 464 ] 465 466 SID_SEARCH_DLG 467 [ 468 StateMethod = StateDisableItems 469 ] 470 471 SID_HYPERLINK_SETLINK // status() 472 [ 473 ExecMethod = Execute ; 474 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 475 ] 476 477 SID_HYPERLINK_GETLINK // status() 478 [ 479 StateMethod = StateInsert ; 480 ] 481 SID_TRANSLITERATE_SENTENCE_CASE 482 [ 483 ExecMethod = ExecTransliteration; 484 StateMethod = NoState ; 485 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 486 ] 487 SID_TRANSLITERATE_TITLE_CASE 488 [ 489 ExecMethod = ExecTransliteration; 490 StateMethod = NoState ; 491 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 492 ] 493 SID_TRANSLITERATE_TOGGLE_CASE 494 [ 495 ExecMethod = ExecTransliteration; 496 StateMethod = NoState ; 497 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 498 ] 499 SID_TRANSLITERATE_UPPER 500 [ 501 ExecMethod = ExecTransliteration; 502 StateMethod = NoState ; 503 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 504 ] 505 SID_TRANSLITERATE_LOWER 506 [ 507 ExecMethod = ExecTransliteration; 508 StateMethod = NoState ; 509 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 510 ] 511 SID_TRANSLITERATE_HALFWIDTH 512 [ 513 ExecMethod = ExecTransliteration; 514 StateMethod = GetState ; 515 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 516 ] 517 SID_TRANSLITERATE_FULLWIDTH 518 [ 519 ExecMethod = ExecTransliteration; 520 StateMethod = GetState ; 521 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 522 ] 523 SID_TRANSLITERATE_HIRAGANA 524 [ 525 ExecMethod = ExecTransliteration; 526 StateMethod = GetState ; 527 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 528 ] 529 SID_TRANSLITERATE_KATAGANA 530 [ 531 ExecMethod = ExecTransliteration; 532 StateMethod = GetState ; 533 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 534 ] 535 536 SID_LANGUAGE_STATUS 537 [ 538 ExecMethod = Execute; 539 StateMethod = GetState; 540 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents 541 ] 542 543 SID_THES 544 [ 545 ExecMethod = Execute; 546 StateMethod = GetState; 547 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents 548 ] 549 550 FN_FORMAT_FOOTNOTE_DLG // status() 551 [ 552 ExecMethod = Execute ; 553 ] 554 555 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ? 556 [ 557 ExecMethod = Execute ; 558 ] 559 560 FN_WORDCOUNT_DIALOG 561 [ 562 ExecMethod = Execute; 563 ] 564 565 FN_NUMBERING_OUTLINE_DLG // status(final|play) 566 [ 567 ExecMethod = Execute ; 568 ] 569 570 SID_INSERT_GRAPHIC 571 [ 572 StateMethod = StateDisableItems ; 573 ] 574 SID_TWAIN_SELECT 575 [ 576 StateMethod = StateDisableItems ; 577 ] 578 579 SID_TWAIN_TRANSFER 580 [ 581 StateMethod = StateDisableItems ; 582 ] 583} 584 585interface TextDrawFont 586[ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ] 587{ 588 SID_ATTR_CHAR_FONT // status() 589 [ 590 ExecMethod = Execute ; 591 StateMethod = GetDrawTxtCtrlState ; 592 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 593 ] 594 595 SID_ATTR_CHAR_FONTHEIGHT // status() 596 [ 597 ExecMethod = Execute ; 598 StateMethod = GetDrawTxtCtrlState ; 599 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 600 ] 601 602 SID_ATTR_CHAR_COLOR // api: 603 [ 604 ExecMethod = Execute ; 605 StateMethod = GetDrawTxtCtrlState ; 606 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 607 ] 608 SID_ATTR_CHAR_WORDLINEMODE // status(final|play) 609 [ 610 ExecMethod = Execute ; 611 StateMethod = GetDrawTxtCtrlState ; 612 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 613 ] 614 SID_ATTR_CHAR_RELIEF 615 [ 616 ExecMethod = Execute ; 617 StateMethod = GetDrawTxtCtrlState ; 618 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 619 ] 620 SID_ATTR_CHAR_LANGUAGE // status(final|play) 621 [ 622 ExecMethod = Execute ; 623 StateMethod = GetDrawTxtCtrlState ; 624 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 625 ] 626 SID_ATTR_CHAR_KERNING // status(final|play) 627 [ 628 ExecMethod = Execute ; 629 StateMethod = GetDrawTxtCtrlState ; 630 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 631 ] 632 SID_ATTR_CHAR_AUTOKERN // // status(final|play) 633 [ 634 ExecMethod = Execute ; 635 StateMethod = GetDrawTxtCtrlState ; 636 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 637 ] 638 SID_ATTR_CHAR_ESCAPEMENT // status(final|play) 639 [ 640 ExecMethod = Execute ; 641 StateMethod = GetDrawTxtCtrlState ; 642 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 643 ] 644 645 SID_ATTR_CHAR_SCALEWIDTH // status() 646 [ 647 ExecMethod = Execute ; 648 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; 649 ] 650} 651 652 653 654shell SwDrawTextShell 655{ 656 import TextDrawText[Automation]; 657 import TextDrawFont ".DrawFont"; 658} 659 660