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 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
127 ExecMethod = ExecDraw ;
128 StateMethod = NoState ;
129 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
132 FN_INSERT_SOFT_HYPHEN // status(final|play)
134 ExecMethod = ExecDraw ;
135 StateMethod = NoState ;
136 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
138 FN_INSERT_HARDHYPHEN // status()
140 ExecMethod = ExecDraw ;
141 StateMethod = NoState ;
142 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
144 FN_INSERT_HARD_SPACE // status(final|play)
146 ExecMethod = ExecDraw ;
147 StateMethod = NoState ;
148 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
150 FN_INSERT_NNBSP // status(final|play)
152 ExecMethod = ExecDraw ;
153 StateMethod = NoState ;
154 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
158 ExecMethod = ExecDraw ;
159 StateMethod = GetState ;
160 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
164 ExecMethod = ExecDraw ;
165 StateMethod = GetState ;
166 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
170 ExecMethod = ExecDraw ;
171 StateMethod = GetState ;
172 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
176 ExecMethod = ExecDraw ;
177 StateMethod = GetState ;
178 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
181 SID_ATTR_CHAR_WEIGHT // api:
183 ExecMethod = Execute ;
184 StateMethod = GetDrawTextCtrlState ;
185 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
188 SID_ATTR_CHAR_POSTURE // api:
190 ExecMethod = Execute ;
191 StateMethod = GetDrawTextCtrlState ;
192 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
195 SID_ATTR_CHAR_UNDERLINE // api:
197 ExecMethod = Execute ;
198 StateMethod = GetDrawTextCtrlState ;
199 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
202 SID_ATTR_CHAR_OVERLINE // api:
204 ExecMethod = Execute ;
205 StateMethod = GetDrawTextCtrlState ;
206 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
209 SID_ATTR_CHAR_CONTOUR
211 ExecMethod = Execute ;
212 StateMethod = GetDrawTextCtrlState ;
213 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
216 SID_ATTR_CHAR_SHADOWED
218 ExecMethod = Execute ;
219 StateMethod = GetDrawTextCtrlState ;
220 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
223 SID_ATTR_CHAR_STRIKEOUT
225 ExecMethod = Execute ;
226 StateMethod = GetDrawTextCtrlState ;
227 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
232 ExecMethod = Execute ;
233 StateMethod = GetState ;
236 SID_ATTR_PARA_LRSPACE //for indent
238 ExecMethod = Execute ;
239 StateMethod = GetState ;
242 SID_ATTR_PARA_LEFTSPACE
244 StateMethod = GetState ;
247 SID_ATTR_PARA_RIGHTSPACE
249 StateMethod = GetState ;
252 SID_ATTR_PARA_FIRSTLINESPACE
254 StateMethod = GetState ;
257 SID_PARASPACE_INCREASE
259 ExecMethod = Execute;
260 StateMethod = GetState;
261 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
264 SID_PARASPACE_DECREASE
266 ExecMethod = Execute;
267 StateMethod = GetState;
268 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
271 SID_ATTR_PARA_LINESPACE // api:
273 ExecMethod = Execute ;
274 StateMethod = GetState ;
277 SID_ATTR_PARA_ULSPACE
279 ExecMethod = Execute ;
280 StateMethod = GetState ;
283 SID_ATTR_PARA_BELOWSPACE
285 StateMethod = GetState ;
288 SID_ATTR_PARA_ABOVESPACE
290 StateMethod = GetState ;
293 SID_ATTR_PARA_ADJUST_LEFT // api:
295 ExecMethod = Execute ;
296 StateMethod = GetState ;
297 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
300 SID_ATTR_PARA_ADJUST_CENTER // api:
302 ExecMethod = Execute ;
303 StateMethod = GetState ;
304 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
307 SID_ATTR_PARA_ADJUST_RIGHT // api:
309 ExecMethod = Execute ;
310 StateMethod = GetState ;
311 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
314 SID_ATTR_PARA_ADJUST_BLOCK // api:
316 ExecMethod = Execute ;
317 StateMethod = GetState ;
318 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
321 SID_ATTR_PARA_LINESPACE_10 // api:
323 ExecMethod = Execute ;
324 StateMethod = GetState ;
325 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
328 SID_ATTR_PARA_LINESPACE_15 // api:
330 ExecMethod = Execute ;
331 StateMethod = GetState ;
332 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
335 SID_ATTR_PARA_LINESPACE_20 // api:
337 ExecMethod = Execute ;
338 StateMethod = GetState ;
339 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
341 SID_ATTR_PARA_LEFT_TO_RIGHT
343 ExecMethod = Execute ;
344 StateMethod = GetState ;
345 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
347 SID_ATTR_PARA_RIGHT_TO_LEFT
349 ExecMethod = Execute ;
350 StateMethod = GetState ;
351 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
354 SID_TEXTDIRECTION_LEFT_TO_RIGHT
356 ExecMethod = Execute ;
357 StateMethod = GetState ;
358 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
360 SID_TEXTDIRECTION_TOP_TO_BOTTOM
362 ExecMethod = Execute ;
363 StateMethod = GetState ;
364 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
366 SID_VERTICALTEXT_STATE
368 StateMethod = GetState ;
369 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
373 StateMethod = GetState ;
374 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
378 ExecMethod = Execute ;
379 StateMethod = GetState ;
380 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
385 ExecMethod = Execute ;
386 StateMethod = GetState ;
387 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
389 SID_CHAR_DLG_FOR_PARAGRAPH
391 ExecMethod = Execute ;
392 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
397 ExecMethod = Execute ;
398 StateMethod = GetState ;
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 = ExecFontWork ;
419 StateMethod = StateFontWork ;
420 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
423 SID_FORMTEXT_STYLE // api:
425 ExecMethod = ExecFormText ;
426 StateMethod = GetFormTextState ;
427 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
430 SID_FORMTEXT_ADJUST // api:
432 ExecMethod = ExecFormText ;
433 StateMethod = GetFormTextState ;
434 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
437 SID_FORMTEXT_DISTANCE // api:
439 ExecMethod = ExecFormText ;
440 StateMethod = GetFormTextState ;
441 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
444 SID_FORMTEXT_START // api:
446 ExecMethod = ExecFormText ;
447 StateMethod = GetFormTextState ;
448 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
451 SID_FORMTEXT_MIRROR // api:
453 ExecMethod = ExecFormText ;
454 StateMethod = GetFormTextState ;
455 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
458 SID_FORMTEXT_HIDEFORM // api:
460 ExecMethod = ExecFormText ;
461 StateMethod = GetFormTextState ;
462 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
465 SID_FORMTEXT_OUTLINE // api:
467 ExecMethod = ExecFormText ;
468 StateMethod = GetFormTextState ;
469 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
472 SID_FORMTEXT_SHADOW // api:
474 ExecMethod = ExecFormText ;
475 StateMethod = GetFormTextState ;
476 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
479 SID_FORMTEXT_SHDWCOLOR // api:
481 ExecMethod = ExecFormText ;
482 StateMethod = GetFormTextState ;
483 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
486 SID_FORMTEXT_SHDWXVAL // api:
488 ExecMethod = ExecFormText ;
489 StateMethod = GetFormTextState ;
490 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
493 SID_FORMTEXT_SHDWYVAL // api:
495 ExecMethod = ExecFormText ;
496 StateMethod = GetFormTextState ;
497 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
500 SID_THESAURUS // api:
502 ExecMethod = ExecDrawLingu ;
503 StateMethod = GetState ;
504 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
507 SID_HANGUL_HANJA_CONVERSION // api:
509 ExecMethod = ExecDrawLingu ;
510 StateMethod = GetState ;
511 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
514 SID_CHINESE_CONVERSION // api:
516 ExecMethod = ExecDrawLingu ;
517 StateMethod = GetState ;
518 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
523 ExecMethod = ExecDraw ;
524 StateMethod = NoState ;
525 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
530 ExecMethod = Execute;
531 StateMethod = GetDrawTextCtrlState
536 StateMethod = StateDisableItems
539 SID_HYPERLINK_SETLINK // status()
541 ExecMethod = Execute ;
542 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
545 SID_HYPERLINK_GETLINK // status()
547 StateMethod = StateInsert ;
551 ExecMethod = Execute ;
552 StateMethod = GetState;
553 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
557 ExecMethod = Execute ;
558 StateMethod = GetState;
559 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
563 ExecMethod = Execute ;
564 StateMethod = GetState;
565 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
567 SID_COPY_HYPERLINK_LOCATION
569 ExecMethod = Execute ;
570 StateMethod = GetState;
571 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
573 SID_TRANSLITERATE_SENTENCE_CASE
575 ExecMethod = ExecTransliteration;
576 StateMethod = NoState ;
577 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
579 SID_TRANSLITERATE_TITLE_CASE
581 ExecMethod = ExecTransliteration;
582 StateMethod = NoState ;
583 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
585 SID_TRANSLITERATE_TOGGLE_CASE
587 ExecMethod = ExecTransliteration;
588 StateMethod = NoState ;
589 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
591 SID_TRANSLITERATE_ROTATE_CASE
593 ExecMethod = ExecRotateTransliteration;
594 StateMethod = NoState ;
595 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
597 SID_TRANSLITERATE_UPPER
599 ExecMethod = ExecTransliteration;
600 StateMethod = NoState ;
601 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
603 SID_TRANSLITERATE_LOWER
605 ExecMethod = ExecTransliteration;
606 StateMethod = NoState ;
607 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
609 SID_TRANSLITERATE_HALFWIDTH
611 ExecMethod = ExecTransliteration;
612 StateMethod = GetState ;
613 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
615 SID_TRANSLITERATE_FULLWIDTH
617 ExecMethod = ExecTransliteration;
618 StateMethod = GetState ;
619 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
621 SID_TRANSLITERATE_HIRAGANA
623 ExecMethod = ExecTransliteration;
624 StateMethod = GetState ;
625 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
627 SID_TRANSLITERATE_KATAKANA
629 ExecMethod = ExecTransliteration;
630 StateMethod = GetState ;
631 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
636 ExecMethod = Execute;
637 StateMethod = GetState;
638 DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; // e.g. disable for read-only documents
643 ExecMethod = Execute;
644 StateMethod = GetState;
645 DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; // e.g. disable for read-only documents
648 FN_FORMAT_FOOTNOTE_DLG // status()
650 ExecMethod = Execute ;
653 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
655 ExecMethod = Execute ;
660 ExecMethod = Execute;
663 FN_NUMBERING_OUTLINE_DLG // status(final|play)
665 ExecMethod = Execute ;
670 StateMethod = StateDisableItems ;
674 StateMethod = StateDisableItems ;
679 StateMethod = StateDisableItems ;
684 ExecMethod = ExecDraw ;
685 StateMethod = GetStatePropPanelAttr ;
686 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
688 SID_TABLE_VERT_CENTER
690 ExecMethod = ExecDraw ;
691 StateMethod = GetStatePropPanelAttr ;
692 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
694 SID_TABLE_VERT_BOTTOM
696 ExecMethod = ExecDraw ;
697 StateMethod = GetStatePropPanelAttr ;
698 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
703 ExecMethod = Execute ;
704 StateMethod = GetDrawTextCtrlState ;
705 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
709 ExecMethod = Execute ;
710 StateMethod = GetDrawTextCtrlState ;
711 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
715 interface TextDrawFont
717 SID_ATTR_CHAR_FONT // status()
719 ExecMethod = Execute ;
720 StateMethod = GetDrawTextCtrlState ;
721 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
724 SID_ATTR_CHAR_FONTHEIGHT // status()
726 ExecMethod = Execute ;
727 StateMethod = GetDrawTextCtrlState ;
728 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
731 SID_ATTR_CHAR_COLOR // api:
733 ExecMethod = Execute ;
734 StateMethod = GetDrawTextCtrlState ;
735 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
738 SID_ATTR_CHAR_BACK_COLOR // api:
740 ExecMethod = Execute ;
741 StateMethod = GetDrawTextCtrlState ;
742 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
745 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
747 ExecMethod = Execute ;
748 StateMethod = GetDrawTextCtrlState ;
749 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
753 ExecMethod = Execute ;
754 StateMethod = GetDrawTextCtrlState ;
755 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
757 SID_ATTR_CHAR_LANGUAGE // status(final|play)
759 ExecMethod = Execute ;
760 StateMethod = GetDrawTextCtrlState ;
761 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
763 SID_ATTR_CHAR_KERNING // status(final|play)
765 ExecMethod = Execute ;
766 StateMethod = GetDrawTextCtrlState ;
767 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
769 SID_ATTR_CHAR_AUTOKERN // status(final|play)
771 ExecMethod = Execute ;
772 StateMethod = GetDrawTextCtrlState ;
773 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
775 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
777 ExecMethod = Execute ;
778 StateMethod = GetDrawTextCtrlState ;
779 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
782 SID_ATTR_CHAR_SCALEWIDTH // status()
784 ExecMethod = Execute ;
785 DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
789 shell SwDrawTextShell
792 import TextDrawFont ".DrawFont";