2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 interface TextDrawText
21 uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1"
26 ExecMethod = ExecDraw ;
27 StateMethod = NoState ;
32 ExecMethod = ExecClpbrd ;
33 StateMethod = StateClpbrd ;
34 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
39 ExecMethod = ExecClpbrd ;
40 StateMethod = StateClpbrd ;
45 ExecMethod = ExecClpbrd ;
46 StateMethod = StateClpbrd ;
47 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
50 SID_PASTE_SPECIAL // api:
52 StateMethod = StateClpbrd ;
53 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
56 SID_CLIPBOARD_FORMAT_ITEMS // api:
58 StateMethod = StateClpbrd ;
59 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
64 ExecMethod = ExecDraw ;
69 ExecMethod = ExecUndo ;
70 StateMethod = StateUndo ;
72 ToolBoxConfig , MenuConfig , AccelConfig;
77 ExecMethod = ExecUndo ;
78 StateMethod = StateUndo ;
83 ExecMethod = ExecUndo ;
84 StateMethod = StateUndo ;
88 StateMethod = StateUndo ;
93 StateMethod = StateUndo ;
96 FN_FORMAT_RESET // api:
98 ExecMethod = ExecDraw ;
99 StateMethod = NoState ;
100 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
105 ExecMethod = ExecDraw ;
106 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
111 ExecMethod = ExecDraw ;
112 StateMethod = NoState ;
113 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
116 FN_INSERT_SOFT_HYPHEN // status(final|play)
118 ExecMethod = ExecDraw ;
119 StateMethod = NoState ;
120 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
122 FN_INSERT_HARDHYPHEN // status()
124 ExecMethod = ExecDraw ;
125 StateMethod = NoState ;
126 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
128 FN_INSERT_HARD_SPACE // status(final|play)
130 ExecMethod = ExecDraw ;
131 StateMethod = NoState ;
132 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
136 ExecMethod = ExecDraw ;
137 StateMethod = GetState ;
138 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
142 ExecMethod = ExecDraw ;
143 StateMethod = GetState ;
144 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
148 ExecMethod = ExecDraw ;
149 StateMethod = GetState ;
150 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
154 ExecMethod = ExecDraw ;
155 StateMethod = GetState ;
156 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
159 SID_ATTR_CHAR_WEIGHT // api:
161 ExecMethod = Execute ;
162 StateMethod = GetDrawTxtCtrlState ;
163 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
166 SID_ATTR_CHAR_POSTURE // api:
168 ExecMethod = Execute ;
169 StateMethod = GetDrawTxtCtrlState ;
170 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
173 SID_ATTR_CHAR_UNDERLINE // api:
175 ExecMethod = Execute ;
176 StateMethod = GetDrawTxtCtrlState ;
177 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
180 SID_ATTR_CHAR_OVERLINE // api:
182 ExecMethod = Execute ;
183 StateMethod = GetDrawTxtCtrlState ;
184 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
187 SID_ATTR_CHAR_CONTOUR
189 ExecMethod = Execute ;
190 StateMethod = GetDrawTxtCtrlState ;
191 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
194 SID_ATTR_CHAR_SHADOWED
196 ExecMethod = Execute ;
197 StateMethod = GetDrawTxtCtrlState ;
198 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
201 SID_ATTR_CHAR_STRIKEOUT
203 ExecMethod = Execute ;
204 StateMethod = GetDrawTxtCtrlState ;
205 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
208 SID_ATTR_PARA_LRSPACE //for indent
210 ExecMethod = Execute ;
211 StateMethod = GetState ;
214 SID_ATTR_PARA_LINESPACE // api:
216 ExecMethod = Execute ;
217 StateMethod = GetState ;
220 SID_ATTR_PARA_ULSPACE
222 ExecMethod = Execute ;
223 StateMethod = GetState ;
226 SID_ATTR_PARA_ADJUST_LEFT // api:
228 ExecMethod = Execute ;
229 StateMethod = GetState ;
230 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
233 SID_ATTR_PARA_ADJUST_CENTER // api:
235 ExecMethod = Execute ;
236 StateMethod = GetState ;
237 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
240 SID_ATTR_PARA_ADJUST_RIGHT // api:
242 ExecMethod = Execute ;
243 StateMethod = GetState ;
244 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
247 SID_ATTR_PARA_ADJUST_BLOCK // api:
249 ExecMethod = Execute ;
250 StateMethod = GetState ;
251 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
254 SID_ATTR_PARA_LINESPACE_10 // api:
256 ExecMethod = Execute ;
257 StateMethod = GetState ;
258 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
261 SID_ATTR_PARA_LINESPACE_15 // api:
263 ExecMethod = Execute ;
264 StateMethod = GetState ;
265 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
268 SID_ATTR_PARA_LINESPACE_20 // api:
270 ExecMethod = Execute ;
271 StateMethod = GetState ;
272 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
274 SID_ATTR_PARA_LEFT_TO_RIGHT
276 ExecMethod = Execute ;
277 StateMethod = GetState ;
278 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
280 SID_ATTR_PARA_RIGHT_TO_LEFT
282 ExecMethod = Execute ;
283 StateMethod = GetState ;
284 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
287 SID_TEXTDIRECTION_LEFT_TO_RIGHT
289 ExecMethod = Execute ;
290 StateMethod = GetState ;
291 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
293 SID_TEXTDIRECTION_TOP_TO_BOTTOM
295 ExecMethod = Execute ;
296 StateMethod = GetState ;
297 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
299 SID_VERTICALTEXT_STATE
301 StateMethod = GetState ;
302 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
306 StateMethod = GetState ;
307 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
311 ExecMethod = Execute ;
312 StateMethod = GetState ;
313 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
318 ExecMethod = Execute ;
319 StateMethod = GetState ;
320 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
322 SID_CHAR_DLG_FOR_PARAGRAPH
324 ExecMethod = Execute ;
325 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
330 ExecMethod = Execute ;
331 StateMethod = GetState ;
332 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
337 ExecMethod = Execute ;
338 StateMethod = GetState ;
339 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
344 ExecMethod = Execute ;
345 StateMethod = GetState ;
346 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
351 ExecMethod = ExecFontWork ;
352 StateMethod = StateFontWork ;
353 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
357 SID_FORMTEXT_STYLE // api:
359 ExecMethod = ExecFormText ;
360 StateMethod = GetFormTextState ;
361 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
364 SID_FORMTEXT_ADJUST // api:
366 ExecMethod = ExecFormText ;
367 StateMethod = GetFormTextState ;
368 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
371 SID_FORMTEXT_DISTANCE // api:
373 ExecMethod = ExecFormText ;
374 StateMethod = GetFormTextState ;
375 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
378 SID_FORMTEXT_START // api:
380 ExecMethod = ExecFormText ;
381 StateMethod = GetFormTextState ;
382 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
386 SID_FORMTEXT_MIRROR // api:
388 ExecMethod = ExecFormText ;
389 StateMethod = GetFormTextState ;
390 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
394 SID_FORMTEXT_HIDEFORM // api:
396 ExecMethod = ExecFormText ;
397 StateMethod = GetFormTextState ;
398 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
401 SID_FORMTEXT_OUTLINE // api:
403 ExecMethod = ExecFormText ;
404 StateMethod = GetFormTextState ;
405 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
408 SID_FORMTEXT_SHADOW // api:
410 ExecMethod = ExecFormText ;
411 StateMethod = GetFormTextState ;
412 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
415 SID_FORMTEXT_SHDWCOLOR // api:
417 ExecMethod = ExecFormText ;
418 StateMethod = GetFormTextState ;
419 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
422 SID_FORMTEXT_SHDWXVAL // api:
424 ExecMethod = ExecFormText ;
425 StateMethod = GetFormTextState ;
426 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
429 SID_FORMTEXT_SHDWYVAL // api:
431 ExecMethod = ExecFormText ;
432 StateMethod = GetFormTextState ;
433 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
436 SID_FORMTEXT_STDFORM // api:
438 ExecMethod = ExecFormText ;
439 StateMethod = GetFormTextState ;
440 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
443 SID_THESAURUS // api:
445 ExecMethod = ExecDrawLingu ;
446 StateMethod = GetState ;
447 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
450 SID_HANGUL_HANJA_CONVERSION // api:
452 ExecMethod = ExecDrawLingu ;
453 StateMethod = GetState ;
454 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
457 SID_CHINESE_CONVERSION // api:
459 ExecMethod = ExecDrawLingu ;
460 StateMethod = GetState ;
461 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
466 ExecMethod = ExecDraw ;
467 StateMethod = NoState ;
468 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
473 ExecMethod = Execute;
474 StateMethod = GetDrawTxtCtrlState
479 StateMethod = StateDisableItems
482 SID_HYPERLINK_SETLINK // status()
484 ExecMethod = Execute ;
485 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
488 SID_HYPERLINK_GETLINK // status()
490 StateMethod = StateInsert ;
492 SID_TRANSLITERATE_SENTENCE_CASE
494 ExecMethod = ExecTransliteration;
495 StateMethod = NoState ;
496 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
498 SID_TRANSLITERATE_TITLE_CASE
500 ExecMethod = ExecTransliteration;
501 StateMethod = NoState ;
502 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
504 SID_TRANSLITERATE_TOGGLE_CASE
506 ExecMethod = ExecTransliteration;
507 StateMethod = NoState ;
508 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
510 SID_TRANSLITERATE_ROTATE_CASE
512 ExecMethod = ExecRotateTransliteration;
513 StateMethod = NoState ;
514 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
516 SID_TRANSLITERATE_UPPER
518 ExecMethod = ExecTransliteration;
519 StateMethod = NoState ;
520 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
522 SID_TRANSLITERATE_LOWER
524 ExecMethod = ExecTransliteration;
525 StateMethod = NoState ;
526 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
528 SID_TRANSLITERATE_HALFWIDTH
530 ExecMethod = ExecTransliteration;
531 StateMethod = GetState ;
532 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
534 SID_TRANSLITERATE_FULLWIDTH
536 ExecMethod = ExecTransliteration;
537 StateMethod = GetState ;
538 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
540 SID_TRANSLITERATE_HIRAGANA
542 ExecMethod = ExecTransliteration;
543 StateMethod = GetState ;
544 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
546 SID_TRANSLITERATE_KATAGANA
548 ExecMethod = ExecTransliteration;
549 StateMethod = GetState ;
550 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
555 ExecMethod = Execute;
556 StateMethod = GetState;
557 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents
562 ExecMethod = Execute;
563 StateMethod = GetState;
564 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents
567 FN_FORMAT_FOOTNOTE_DLG // status()
569 ExecMethod = Execute ;
572 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
574 ExecMethod = Execute ;
579 ExecMethod = Execute;
582 FN_NUMBERING_OUTLINE_DLG // status(final|play)
584 ExecMethod = Execute ;
589 StateMethod = StateDisableItems ;
593 StateMethod = StateDisableItems ;
598 StateMethod = StateDisableItems ;
603 ExecMethod = ExecDraw ;
604 StateMethod = GetStatePropPanelAttr ;
605 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
607 SID_TABLE_VERT_CENTER
609 ExecMethod = ExecDraw ;
610 StateMethod = GetStatePropPanelAttr ;
611 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
613 SID_TABLE_VERT_BOTTOM
615 ExecMethod = ExecDraw ;
616 StateMethod = GetStatePropPanelAttr ;
617 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
621 interface TextDrawFont
622 [ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
624 SID_ATTR_CHAR_FONT // status()
626 ExecMethod = Execute ;
627 StateMethod = GetDrawTxtCtrlState ;
628 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
631 SID_ATTR_CHAR_FONTHEIGHT // status()
633 ExecMethod = Execute ;
634 StateMethod = GetDrawTxtCtrlState ;
635 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
638 SID_ATTR_CHAR_COLOR // api:
640 ExecMethod = Execute ;
641 StateMethod = GetDrawTxtCtrlState ;
642 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
644 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
646 ExecMethod = Execute ;
647 StateMethod = GetDrawTxtCtrlState ;
648 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
652 ExecMethod = Execute ;
653 StateMethod = GetDrawTxtCtrlState ;
654 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
656 SID_ATTR_CHAR_LANGUAGE // status(final|play)
658 ExecMethod = Execute ;
659 StateMethod = GetDrawTxtCtrlState ;
660 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
662 SID_ATTR_CHAR_KERNING // status(final|play)
664 ExecMethod = Execute ;
665 StateMethod = GetDrawTxtCtrlState ;
666 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
668 SID_ATTR_CHAR_AUTOKERN // // status(final|play)
670 ExecMethod = Execute ;
671 StateMethod = GetDrawTxtCtrlState ;
672 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
674 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
676 ExecMethod = Execute ;
677 StateMethod = GetDrawTxtCtrlState ;
678 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
681 SID_ATTR_CHAR_SCALEWIDTH // status()
683 ExecMethod = Execute ;
684 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
690 shell SwDrawTextShell
692 import TextDrawText[Automation];
693 import TextDrawFont ".DrawFont";