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
23 ExecMethod = ExecDraw ;
24 StateMethod = NoState ;
29 ExecMethod = ExecClpbrd ;
30 StateMethod = StateClpbrd ;
31 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
36 ExecMethod = ExecClpbrd ;
37 StateMethod = StateClpbrd ;
42 ExecMethod = ExecClpbrd ;
43 StateMethod = StateClpbrd ;
44 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
47 SID_PASTE_UNFORMATTED // api:
49 ExecMethod = ExecClpbrd ;
50 StateMethod = StateClpbrd ;
51 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
54 SID_PASTE_SPECIAL // api:
56 ExecMethod = ExecClpbrd ;
57 StateMethod = StateClpbrd ;
58 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
61 SID_CLIPBOARD_FORMAT_ITEMS // api:
63 ExecMethod = ExecClpbrd ;
64 StateMethod = StateClpbrd ;
65 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
70 ExecMethod = ExecDraw ;
75 ExecMethod = ExecUndo ;
76 StateMethod = StateUndo ;
78 ToolBoxConfig , MenuConfig , AccelConfig;
83 ExecMethod = ExecUndo ;
84 StateMethod = StateUndo ;
89 ExecMethod = ExecUndo ;
90 StateMethod = StateUndo ;
94 StateMethod = StateUndo ;
99 StateMethod = StateUndo ;
102 FN_FORMAT_RESET // api:
104 ExecMethod = ExecDraw ;
105 StateMethod = NoState ;
106 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
111 ExecMethod = ExecDraw ;
112 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
117 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
122 ExecMethod = ExecDraw ;
123 StateMethod = NoState ;
124 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
127 FN_INSERT_SOFT_HYPHEN // status(final|play)
129 ExecMethod = ExecDraw ;
130 StateMethod = NoState ;
131 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
133 FN_INSERT_HARDHYPHEN // status()
135 ExecMethod = ExecDraw ;
136 StateMethod = NoState ;
137 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
139 FN_INSERT_HARD_SPACE // status(final|play)
141 ExecMethod = ExecDraw ;
142 StateMethod = NoState ;
143 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
145 FN_INSERT_NNBSP // status(final|play)
147 ExecMethod = ExecDraw ;
148 StateMethod = NoState ;
149 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
153 ExecMethod = ExecDraw ;
154 StateMethod = GetState ;
155 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
159 ExecMethod = ExecDraw ;
160 StateMethod = GetState ;
161 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
165 ExecMethod = ExecDraw ;
166 StateMethod = GetState ;
167 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
171 ExecMethod = ExecDraw ;
172 StateMethod = GetState ;
173 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
176 SID_ATTR_CHAR_WEIGHT // api:
178 ExecMethod = Execute ;
179 StateMethod = GetDrawTextCtrlState ;
180 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
183 SID_ATTR_CHAR_POSTURE // api:
185 ExecMethod = Execute ;
186 StateMethod = GetDrawTextCtrlState ;
187 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
190 SID_ATTR_CHAR_UNDERLINE // api:
192 ExecMethod = Execute ;
193 StateMethod = GetDrawTextCtrlState ;
194 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
197 SID_ATTR_CHAR_OVERLINE // api:
199 ExecMethod = Execute ;
200 StateMethod = GetDrawTextCtrlState ;
201 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
204 SID_ATTR_CHAR_CONTOUR
206 ExecMethod = Execute ;
207 StateMethod = GetDrawTextCtrlState ;
208 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
211 SID_ATTR_CHAR_SHADOWED
213 ExecMethod = Execute ;
214 StateMethod = GetDrawTextCtrlState ;
215 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
218 SID_ATTR_CHAR_STRIKEOUT
220 ExecMethod = Execute ;
221 StateMethod = GetDrawTextCtrlState ;
222 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
227 ExecMethod = Execute ;
228 StateMethod = GetState ;
231 SID_ATTR_PARA_LRSPACE //for indent
233 ExecMethod = Execute ;
234 StateMethod = GetState ;
237 SID_ATTR_PARA_LEFTSPACE
239 StateMethod = GetState ;
242 SID_ATTR_PARA_RIGHTSPACE
244 StateMethod = GetState ;
247 SID_ATTR_PARA_FIRSTLINESPACE
249 StateMethod = GetState ;
252 SID_PARASPACE_INCREASE
254 ExecMethod = Execute;
255 StateMethod = GetState;
256 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
259 SID_PARASPACE_DECREASE
261 ExecMethod = Execute;
262 StateMethod = GetState;
263 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
266 SID_ATTR_PARA_LINESPACE // api:
268 ExecMethod = Execute ;
269 StateMethod = GetState ;
272 SID_ATTR_PARA_ULSPACE
274 ExecMethod = Execute ;
275 StateMethod = GetState ;
278 SID_ATTR_PARA_BELOWSPACE
280 StateMethod = GetState ;
283 SID_ATTR_PARA_ABOVESPACE
285 StateMethod = GetState ;
288 SID_ATTR_PARA_ADJUST_LEFT // api:
290 ExecMethod = Execute ;
291 StateMethod = GetState ;
292 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
295 SID_ATTR_PARA_ADJUST_CENTER // api:
297 ExecMethod = Execute ;
298 StateMethod = GetState ;
299 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
302 SID_ATTR_PARA_ADJUST_RIGHT // api:
304 ExecMethod = Execute ;
305 StateMethod = GetState ;
306 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
309 SID_ATTR_PARA_ADJUST_BLOCK // api:
311 ExecMethod = Execute ;
312 StateMethod = GetState ;
313 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
316 SID_ATTR_PARA_LINESPACE_10 // api:
318 ExecMethod = Execute ;
319 StateMethod = GetState ;
320 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
323 SID_ATTR_PARA_LINESPACE_115
325 ExecMethod = Execute ;
326 StateMethod = GetState ;
327 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
330 SID_ATTR_PARA_LINESPACE_15 // api:
332 ExecMethod = Execute ;
333 StateMethod = GetState ;
334 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
337 SID_ATTR_PARA_LINESPACE_20 // api:
339 ExecMethod = Execute ;
340 StateMethod = GetState ;
341 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
343 SID_ATTR_PARA_LEFT_TO_RIGHT
345 ExecMethod = Execute ;
346 StateMethod = GetState ;
347 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
349 SID_ATTR_PARA_RIGHT_TO_LEFT
351 ExecMethod = Execute ;
352 StateMethod = GetState ;
353 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
356 SID_TEXTDIRECTION_LEFT_TO_RIGHT
358 ExecMethod = Execute ;
359 StateMethod = GetState ;
360 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
362 SID_TEXTDIRECTION_TOP_TO_BOTTOM
364 ExecMethod = Execute ;
365 StateMethod = GetState ;
366 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
368 SID_VERTICALTEXT_STATE
370 StateMethod = GetState ;
371 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
375 StateMethod = GetState ;
376 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
380 ExecMethod = Execute ;
381 StateMethod = GetState ;
382 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
387 ExecMethod = Execute ;
388 StateMethod = GetState ;
389 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
391 SID_CHAR_DLG_POSITION
393 ExecMethod = Execute ;
394 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
396 SID_CHAR_DLG_FOR_PARAGRAPH
398 ExecMethod = Execute ;
399 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
404 ExecMethod = Execute ;
405 StateMethod = GetState ;
406 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
411 ExecMethod = Execute ;
412 StateMethod = GetState ;
413 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
418 ExecMethod = Execute ;
419 StateMethod = GetState ;
420 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
425 ExecMethod = ExecFontWork ;
426 StateMethod = StateFontWork ;
427 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
430 SID_FORMTEXT_STYLE // api:
432 ExecMethod = ExecFormText ;
433 StateMethod = GetFormTextState ;
434 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
437 SID_FORMTEXT_ADJUST // api:
439 ExecMethod = ExecFormText ;
440 StateMethod = GetFormTextState ;
441 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
444 SID_FORMTEXT_DISTANCE // api:
446 ExecMethod = ExecFormText ;
447 StateMethod = GetFormTextState ;
448 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
451 SID_FORMTEXT_START // api:
453 ExecMethod = ExecFormText ;
454 StateMethod = GetFormTextState ;
455 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
458 SID_FORMTEXT_MIRROR // api:
460 ExecMethod = ExecFormText ;
461 StateMethod = GetFormTextState ;
462 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
465 SID_FORMTEXT_HIDEFORM // api:
467 ExecMethod = ExecFormText ;
468 StateMethod = GetFormTextState ;
469 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
472 SID_FORMTEXT_OUTLINE // api:
474 ExecMethod = ExecFormText ;
475 StateMethod = GetFormTextState ;
476 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
479 SID_FORMTEXT_SHADOW // api:
481 ExecMethod = ExecFormText ;
482 StateMethod = GetFormTextState ;
483 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
486 SID_FORMTEXT_SHDWCOLOR // api:
488 ExecMethod = ExecFormText ;
489 StateMethod = GetFormTextState ;
490 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
493 SID_FORMTEXT_SHDWXVAL // api:
495 ExecMethod = ExecFormText ;
496 StateMethod = GetFormTextState ;
497 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
500 SID_FORMTEXT_SHDWYVAL // api:
502 ExecMethod = ExecFormText ;
503 StateMethod = GetFormTextState ;
504 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
507 SID_THESAURUS // api:
509 ExecMethod = ExecDrawLingu ;
510 StateMethod = GetState ;
511 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
514 SID_HANGUL_HANJA_CONVERSION // api:
516 ExecMethod = ExecDrawLingu ;
517 StateMethod = GetState ;
518 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
521 SID_CHINESE_CONVERSION // api:
523 ExecMethod = ExecDrawLingu ;
524 StateMethod = GetState ;
525 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
530 ExecMethod = ExecDraw ;
531 StateMethod = NoState ;
532 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
537 ExecMethod = Execute;
538 StateMethod = GetDrawTextCtrlState
543 StateMethod = StateDisableItems
546 SID_HYPERLINK_SETLINK // status()
548 ExecMethod = Execute ;
549 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
552 SID_HYPERLINK_GETLINK // status()
554 StateMethod = StateInsert ;
558 ExecMethod = Execute ;
559 StateMethod = GetState;
560 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
564 ExecMethod = Execute ;
565 StateMethod = GetState;
566 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
570 ExecMethod = Execute ;
571 StateMethod = GetState;
572 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
574 SID_COPY_HYPERLINK_LOCATION
576 ExecMethod = Execute ;
577 StateMethod = GetState;
578 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
580 SID_TRANSLITERATE_SENTENCE_CASE
582 ExecMethod = ExecTransliteration;
583 StateMethod = NoState ;
584 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
586 SID_TRANSLITERATE_TITLE_CASE
588 ExecMethod = ExecTransliteration;
589 StateMethod = NoState ;
590 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
592 SID_TRANSLITERATE_TOGGLE_CASE
594 ExecMethod = ExecTransliteration;
595 StateMethod = NoState ;
596 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
598 SID_TRANSLITERATE_ROTATE_CASE
600 ExecMethod = ExecRotateTransliteration;
601 StateMethod = NoState ;
602 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
604 SID_TRANSLITERATE_UPPER
606 ExecMethod = ExecTransliteration;
607 StateMethod = NoState ;
608 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
610 SID_TRANSLITERATE_LOWER
612 ExecMethod = ExecTransliteration;
613 StateMethod = NoState ;
614 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
616 SID_TRANSLITERATE_HALFWIDTH
618 ExecMethod = ExecTransliteration;
619 StateMethod = GetState ;
620 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
622 SID_TRANSLITERATE_FULLWIDTH
624 ExecMethod = ExecTransliteration;
625 StateMethod = GetState ;
626 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
628 SID_TRANSLITERATE_HIRAGANA
630 ExecMethod = ExecTransliteration;
631 StateMethod = GetState ;
632 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
634 SID_TRANSLITERATE_KATAKANA
636 ExecMethod = ExecTransliteration;
637 StateMethod = GetState ;
638 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
643 ExecMethod = Execute;
644 StateMethod = GetState;
645 DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; // e.g. disable for read-only documents
650 ExecMethod = Execute;
651 StateMethod = GetState;
652 DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; // e.g. disable for read-only documents
655 FN_FORMAT_FOOTNOTE_DLG // status()
657 ExecMethod = Execute ;
660 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
662 ExecMethod = Execute ;
667 ExecMethod = Execute;
670 FN_NUMBERING_OUTLINE_DLG // status(final|play)
672 ExecMethod = Execute ;
677 StateMethod = StateDisableItems ;
681 StateMethod = StateDisableItems ;
686 StateMethod = StateDisableItems ;
691 ExecMethod = ExecDraw ;
692 StateMethod = GetStatePropPanelAttr ;
693 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
695 SID_TABLE_VERT_CENTER
697 ExecMethod = ExecDraw ;
698 StateMethod = GetStatePropPanelAttr ;
699 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
701 SID_TABLE_VERT_BOTTOM
703 ExecMethod = ExecDraw ;
704 StateMethod = GetStatePropPanelAttr ;
705 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
710 ExecMethod = Execute ;
711 StateMethod = GetDrawTextCtrlState ;
712 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
716 ExecMethod = Execute ;
717 StateMethod = GetDrawTextCtrlState ;
718 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
722 interface TextDrawFont
724 SID_ATTR_CHAR_FONT // status()
726 ExecMethod = Execute ;
727 StateMethod = GetDrawTextCtrlState ;
728 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
731 SID_ATTR_CHAR_FONTHEIGHT // status()
733 ExecMethod = Execute ;
734 StateMethod = GetDrawTextCtrlState ;
735 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
738 SID_ATTR_CHAR_COLOR // api:
740 ExecMethod = Execute ;
741 StateMethod = GetDrawTextCtrlState ;
742 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
745 SID_ATTR_CHAR_BACK_COLOR // api:
747 ExecMethod = Execute ;
748 StateMethod = GetDrawTextCtrlState ;
749 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
752 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
754 ExecMethod = Execute ;
755 StateMethod = GetDrawTextCtrlState ;
756 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
760 ExecMethod = Execute ;
761 StateMethod = GetDrawTextCtrlState ;
762 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
764 SID_ATTR_CHAR_LANGUAGE // status(final|play)
766 ExecMethod = Execute ;
767 StateMethod = GetDrawTextCtrlState ;
768 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
770 SID_ATTR_CHAR_KERNING // status(final|play)
772 ExecMethod = Execute ;
773 StateMethod = GetDrawTextCtrlState ;
774 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
776 SID_ATTR_CHAR_AUTOKERN // status(final|play)
778 ExecMethod = Execute ;
779 StateMethod = GetDrawTextCtrlState ;
780 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
782 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
784 ExecMethod = Execute ;
785 StateMethod = GetDrawTextCtrlState ;
786 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
789 SID_ATTR_CHAR_SCALEWIDTH // status()
791 ExecMethod = Execute ;
792 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
796 shell SwDrawTextShell
799 import TextDrawFont ".DrawFont";