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