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_ADJUST_LEFT // api:
210 ExecMethod = Execute ;
211 StateMethod = GetState ;
212 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
215 SID_ATTR_PARA_ADJUST_CENTER // api:
217 ExecMethod = Execute ;
218 StateMethod = GetState ;
219 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
222 SID_ATTR_PARA_ADJUST_RIGHT // api:
224 ExecMethod = Execute ;
225 StateMethod = GetState ;
226 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
229 SID_ATTR_PARA_ADJUST_BLOCK // api:
231 ExecMethod = Execute ;
232 StateMethod = GetState ;
233 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
236 SID_ATTR_PARA_LINESPACE_10 // api:
238 ExecMethod = Execute ;
239 StateMethod = GetState ;
240 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
243 SID_ATTR_PARA_LINESPACE_15 // api:
245 ExecMethod = Execute ;
246 StateMethod = GetState ;
247 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
250 SID_ATTR_PARA_LINESPACE_20 // api:
252 ExecMethod = Execute ;
253 StateMethod = GetState ;
254 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
256 SID_ATTR_PARA_LEFT_TO_RIGHT
258 ExecMethod = Execute ;
259 StateMethod = GetState ;
260 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
262 SID_ATTR_PARA_RIGHT_TO_LEFT
264 ExecMethod = Execute ;
265 StateMethod = GetState ;
266 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
269 SID_TEXTDIRECTION_LEFT_TO_RIGHT
271 ExecMethod = Execute ;
272 StateMethod = GetState ;
273 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
275 SID_TEXTDIRECTION_TOP_TO_BOTTOM
277 ExecMethod = Execute ;
278 StateMethod = GetState ;
279 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
281 SID_VERTICALTEXT_STATE
283 StateMethod = GetState ;
284 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
288 StateMethod = GetState ;
289 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
293 ExecMethod = Execute ;
294 StateMethod = GetState ;
295 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
297 SID_CHAR_DLG_FOR_PARAGRAPH
299 ExecMethod = Execute ;
300 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
305 ExecMethod = Execute ;
306 StateMethod = GetState ;
307 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
312 ExecMethod = Execute ;
313 StateMethod = GetState ;
314 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
319 ExecMethod = Execute ;
320 StateMethod = GetState ;
321 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
326 ExecMethod = ExecFontWork ;
327 StateMethod = StateFontWork ;
328 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
332 SID_FORMTEXT_STYLE // api:
334 ExecMethod = ExecFormText ;
335 StateMethod = GetFormTextState ;
336 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
339 SID_FORMTEXT_ADJUST // api:
341 ExecMethod = ExecFormText ;
342 StateMethod = GetFormTextState ;
343 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
346 SID_FORMTEXT_DISTANCE // api:
348 ExecMethod = ExecFormText ;
349 StateMethod = GetFormTextState ;
350 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
353 SID_FORMTEXT_START // api:
355 ExecMethod = ExecFormText ;
356 StateMethod = GetFormTextState ;
357 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
361 SID_FORMTEXT_MIRROR // api:
363 ExecMethod = ExecFormText ;
364 StateMethod = GetFormTextState ;
365 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
369 SID_FORMTEXT_HIDEFORM // api:
371 ExecMethod = ExecFormText ;
372 StateMethod = GetFormTextState ;
373 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
376 SID_FORMTEXT_OUTLINE // api:
378 ExecMethod = ExecFormText ;
379 StateMethod = GetFormTextState ;
380 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
383 SID_FORMTEXT_SHADOW // api:
385 ExecMethod = ExecFormText ;
386 StateMethod = GetFormTextState ;
387 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
390 SID_FORMTEXT_SHDWCOLOR // api:
392 ExecMethod = ExecFormText ;
393 StateMethod = GetFormTextState ;
394 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
397 SID_FORMTEXT_SHDWXVAL // api:
399 ExecMethod = ExecFormText ;
400 StateMethod = GetFormTextState ;
401 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
404 SID_FORMTEXT_SHDWYVAL // api:
406 ExecMethod = ExecFormText ;
407 StateMethod = GetFormTextState ;
408 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
411 SID_FORMTEXT_STDFORM // api:
413 ExecMethod = ExecFormText ;
414 StateMethod = GetFormTextState ;
415 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
418 SID_THESAURUS // api:
420 ExecMethod = ExecDrawLingu ;
421 StateMethod = GetState ;
422 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
425 SID_HANGUL_HANJA_CONVERSION // api:
427 ExecMethod = ExecDrawLingu ;
428 StateMethod = GetState ;
429 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
432 SID_CHINESE_CONVERSION // api:
434 ExecMethod = ExecDrawLingu ;
435 StateMethod = GetState ;
436 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
441 ExecMethod = ExecDraw ;
442 StateMethod = NoState ;
443 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
448 ExecMethod = Execute;
449 StateMethod = GetDrawTxtCtrlState
454 StateMethod = StateDisableItems
457 SID_HYPERLINK_SETLINK // status()
459 ExecMethod = Execute ;
460 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
463 SID_HYPERLINK_GETLINK // status()
465 StateMethod = StateInsert ;
467 SID_TRANSLITERATE_SENTENCE_CASE
469 ExecMethod = ExecTransliteration;
470 StateMethod = NoState ;
471 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
473 SID_TRANSLITERATE_TITLE_CASE
475 ExecMethod = ExecTransliteration;
476 StateMethod = NoState ;
477 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
479 SID_TRANSLITERATE_TOGGLE_CASE
481 ExecMethod = ExecTransliteration;
482 StateMethod = NoState ;
483 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
485 SID_TRANSLITERATE_ROTATE_CASE
487 ExecMethod = ExecRotateTransliteration;
488 StateMethod = NoState ;
489 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
491 SID_TRANSLITERATE_UPPER
493 ExecMethod = ExecTransliteration;
494 StateMethod = NoState ;
495 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
497 SID_TRANSLITERATE_LOWER
499 ExecMethod = ExecTransliteration;
500 StateMethod = NoState ;
501 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
503 SID_TRANSLITERATE_HALFWIDTH
505 ExecMethod = ExecTransliteration;
506 StateMethod = GetState ;
507 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
509 SID_TRANSLITERATE_FULLWIDTH
511 ExecMethod = ExecTransliteration;
512 StateMethod = GetState ;
513 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
515 SID_TRANSLITERATE_HIRAGANA
517 ExecMethod = ExecTransliteration;
518 StateMethod = GetState ;
519 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
521 SID_TRANSLITERATE_KATAGANA
523 ExecMethod = ExecTransliteration;
524 StateMethod = GetState ;
525 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
530 ExecMethod = Execute;
531 StateMethod = GetState;
532 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents
537 ExecMethod = Execute;
538 StateMethod = GetState;
539 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents
542 FN_FORMAT_FOOTNOTE_DLG // status()
544 ExecMethod = Execute ;
547 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
549 ExecMethod = Execute ;
554 ExecMethod = Execute;
557 FN_NUMBERING_OUTLINE_DLG // status(final|play)
559 ExecMethod = Execute ;
564 StateMethod = StateDisableItems ;
568 StateMethod = StateDisableItems ;
573 StateMethod = StateDisableItems ;
577 interface TextDrawFont
578 [ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
580 SID_ATTR_CHAR_FONT // status()
582 ExecMethod = Execute ;
583 StateMethod = GetDrawTxtCtrlState ;
584 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
587 SID_ATTR_CHAR_FONTHEIGHT // status()
589 ExecMethod = Execute ;
590 StateMethod = GetDrawTxtCtrlState ;
591 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
594 SID_ATTR_CHAR_COLOR // api:
596 ExecMethod = Execute ;
597 StateMethod = GetDrawTxtCtrlState ;
598 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
600 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
602 ExecMethod = Execute ;
603 StateMethod = GetDrawTxtCtrlState ;
604 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
608 ExecMethod = Execute ;
609 StateMethod = GetDrawTxtCtrlState ;
610 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
612 SID_ATTR_CHAR_LANGUAGE // status(final|play)
614 ExecMethod = Execute ;
615 StateMethod = GetDrawTxtCtrlState ;
616 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
618 SID_ATTR_CHAR_KERNING // status(final|play)
620 ExecMethod = Execute ;
621 StateMethod = GetDrawTxtCtrlState ;
622 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
624 SID_ATTR_CHAR_AUTOKERN // // status(final|play)
626 ExecMethod = Execute ;
627 StateMethod = GetDrawTxtCtrlState ;
628 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
630 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
632 ExecMethod = Execute ;
633 StateMethod = GetDrawTxtCtrlState ;
634 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
637 SID_ATTR_CHAR_SCALEWIDTH // status()
639 ExecMethod = Execute ;
640 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
646 shell SwDrawTextShell
648 import TextDrawText[Automation];
649 import TextDrawFont ".DrawFont";