1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: drwtxtsh.sdi,v $
10 * $Revision: 1.20.82.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 interface TextDrawText
33 uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1"
38 ExecMethod = ExecDraw ;
39 StateMethod = NoState ;
44 ExecMethod = ExecClpbrd ;
45 StateMethod = StateClpbrd ;
46 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
51 ExecMethod = ExecClpbrd ;
52 StateMethod = StateClpbrd ;
57 ExecMethod = ExecClpbrd ;
58 StateMethod = StateClpbrd ;
59 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
62 SID_PASTE_SPECIAL // api:
64 StateMethod = StateClpbrd ;
65 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
68 SID_CLIPBOARD_FORMAT_ITEMS // api:
70 StateMethod = StateClpbrd ;
71 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
76 ExecMethod = ExecDraw ;
81 ExecMethod = ExecUndo ;
82 StateMethod = StateUndo ;
84 ToolBoxConfig , MenuConfig , AccelConfig;
89 ExecMethod = ExecUndo ;
90 StateMethod = StateUndo ;
95 ExecMethod = ExecUndo ;
96 StateMethod = StateUndo ;
100 StateMethod = StateUndo ;
105 StateMethod = StateUndo ;
108 FN_FORMAT_RESET // api:
110 ExecMethod = ExecDraw ;
111 StateMethod = NoState ;
112 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
117 ExecMethod = ExecDraw ;
118 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
123 ExecMethod = ExecDraw ;
124 StateMethod = NoState ;
125 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
128 FN_INSERT_SOFT_HYPHEN // status(final|play)
130 ExecMethod = ExecDraw ;
131 StateMethod = NoState ;
132 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
134 FN_INSERT_HARDHYPHEN // status()
136 ExecMethod = ExecDraw ;
137 StateMethod = NoState ;
138 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
140 FN_INSERT_HARD_SPACE // status(final|play)
142 ExecMethod = ExecDraw ;
143 StateMethod = NoState ;
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";
160 ExecMethod = ExecDraw ;
161 StateMethod = GetState ;
162 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
166 ExecMethod = ExecDraw ;
167 StateMethod = GetState ;
168 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
171 SID_ATTR_CHAR_WEIGHT // api:
173 ExecMethod = Execute ;
174 StateMethod = GetDrawTxtCtrlState ;
175 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
178 SID_ATTR_CHAR_POSTURE // api:
180 ExecMethod = Execute ;
181 StateMethod = GetDrawTxtCtrlState ;
182 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
185 SID_ATTR_CHAR_UNDERLINE // api:
187 ExecMethod = Execute ;
188 StateMethod = GetDrawTxtCtrlState ;
189 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
192 SID_ATTR_CHAR_OVERLINE // api:
194 ExecMethod = Execute ;
195 StateMethod = GetDrawTxtCtrlState ;
196 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
199 SID_ATTR_CHAR_CONTOUR
201 ExecMethod = Execute ;
202 StateMethod = GetDrawTxtCtrlState ;
203 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
206 SID_ATTR_CHAR_SHADOWED
208 ExecMethod = Execute ;
209 StateMethod = GetDrawTxtCtrlState ;
210 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
213 SID_ATTR_CHAR_STRIKEOUT
215 ExecMethod = Execute ;
216 StateMethod = GetDrawTxtCtrlState ;
217 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
220 SID_ATTR_PARA_ADJUST_LEFT // api:
222 ExecMethod = Execute ;
223 StateMethod = GetState ;
224 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
227 SID_ATTR_PARA_ADJUST_CENTER // api:
229 ExecMethod = Execute ;
230 StateMethod = GetState ;
231 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
234 SID_ATTR_PARA_ADJUST_RIGHT // api:
236 ExecMethod = Execute ;
237 StateMethod = GetState ;
238 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
241 SID_ATTR_PARA_ADJUST_BLOCK // api:
243 ExecMethod = Execute ;
244 StateMethod = GetState ;
245 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
248 SID_ATTR_PARA_LINESPACE_10 // api:
250 ExecMethod = Execute ;
251 StateMethod = GetState ;
252 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
255 SID_ATTR_PARA_LINESPACE_15 // api:
257 ExecMethod = Execute ;
258 StateMethod = GetState ;
259 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
262 SID_ATTR_PARA_LINESPACE_20 // api:
264 ExecMethod = Execute ;
265 StateMethod = GetState ;
266 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
268 SID_ATTR_PARA_LEFT_TO_RIGHT
270 ExecMethod = Execute ;
271 StateMethod = GetState ;
272 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
274 SID_ATTR_PARA_RIGHT_TO_LEFT
276 ExecMethod = Execute ;
277 StateMethod = GetState ;
278 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
281 SID_TEXTDIRECTION_LEFT_TO_RIGHT
283 ExecMethod = Execute ;
284 StateMethod = GetState ;
285 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
287 SID_TEXTDIRECTION_TOP_TO_BOTTOM
289 ExecMethod = Execute ;
290 StateMethod = GetState ;
291 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
293 SID_VERTICALTEXT_STATE
295 StateMethod = GetState ;
296 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
300 StateMethod = GetState ;
301 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
305 ExecMethod = Execute ;
306 StateMethod = GetState ;
307 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
309 SID_CHAR_DLG_FOR_PARAGRAPH
311 ExecMethod = Execute ;
312 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
317 ExecMethod = Execute ;
318 StateMethod = GetState ;
319 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
324 ExecMethod = Execute ;
325 StateMethod = GetState ;
326 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
331 ExecMethod = Execute ;
332 StateMethod = GetState ;
333 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
338 ExecMethod = ExecFontWork ;
339 StateMethod = StateFontWork ;
340 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
344 SID_FORMTEXT_STYLE // api:
346 ExecMethod = ExecFormText ;
347 StateMethod = GetFormTextState ;
348 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
351 SID_FORMTEXT_ADJUST // api:
353 ExecMethod = ExecFormText ;
354 StateMethod = GetFormTextState ;
355 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
358 SID_FORMTEXT_DISTANCE // api:
360 ExecMethod = ExecFormText ;
361 StateMethod = GetFormTextState ;
362 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
365 SID_FORMTEXT_START // api:
367 ExecMethod = ExecFormText ;
368 StateMethod = GetFormTextState ;
369 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
373 SID_FORMTEXT_MIRROR // api:
375 ExecMethod = ExecFormText ;
376 StateMethod = GetFormTextState ;
377 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
381 SID_FORMTEXT_HIDEFORM // api:
383 ExecMethod = ExecFormText ;
384 StateMethod = GetFormTextState ;
385 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
388 SID_FORMTEXT_OUTLINE // api:
390 ExecMethod = ExecFormText ;
391 StateMethod = GetFormTextState ;
392 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
395 SID_FORMTEXT_SHADOW // api:
397 ExecMethod = ExecFormText ;
398 StateMethod = GetFormTextState ;
399 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
402 SID_FORMTEXT_SHDWCOLOR // api:
404 ExecMethod = ExecFormText ;
405 StateMethod = GetFormTextState ;
406 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
409 SID_FORMTEXT_SHDWXVAL // api:
411 ExecMethod = ExecFormText ;
412 StateMethod = GetFormTextState ;
413 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
416 SID_FORMTEXT_SHDWYVAL // api:
418 ExecMethod = ExecFormText ;
419 StateMethod = GetFormTextState ;
420 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
423 SID_FORMTEXT_STDFORM // api:
425 ExecMethod = ExecFormText ;
426 StateMethod = GetFormTextState ;
427 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
430 FN_THESAURUS_DLG // api:
432 ExecMethod = ExecDrawLingu ;
433 StateMethod = GetState ;
434 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
437 SID_HANGUL_HANJA_CONVERSION // api:
439 ExecMethod = ExecDrawLingu ;
440 StateMethod = GetState ;
441 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
444 SID_CHINESE_CONVERSION // api:
446 ExecMethod = ExecDrawLingu ;
447 StateMethod = GetState ;
448 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
453 ExecMethod = ExecDraw ;
454 StateMethod = NoState ;
455 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
458 SID_STYLE_CATALOG // ole(no) api(play/rec)
460 StateMethod = StateDisableItems ;
465 ExecMethod = Execute;
466 StateMethod = GetDrawTxtCtrlState
471 StateMethod = StateDisableItems
474 SID_HYPERLINK_SETLINK // status()
476 ExecMethod = Execute ;
477 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
480 SID_HYPERLINK_GETLINK // status()
482 StateMethod = StateInsert ;
484 SID_TRANSLITERATE_UPPER
486 ExecMethod = ExecTransliteration;
487 StateMethod = NoState ;
488 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
490 SID_TRANSLITERATE_LOWER
492 ExecMethod = ExecTransliteration;
493 StateMethod = NoState ;
494 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
496 SID_TRANSLITERATE_HALFWIDTH
498 ExecMethod = ExecTransliteration;
499 StateMethod = GetState ;
500 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
502 SID_TRANSLITERATE_FULLWIDTH
504 ExecMethod = ExecTransliteration;
505 StateMethod = GetState ;
506 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
508 SID_TRANSLITERATE_HIRAGANA
510 ExecMethod = ExecTransliteration;
511 StateMethod = GetState ;
512 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
514 SID_TRANSLITERATE_KATAGANA
516 ExecMethod = ExecTransliteration;
517 StateMethod = GetState ;
518 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
522 ExecMethod = Execute;
523 StateMethod = GetState;
524 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; // e.g. disable for read-only documents
527 FN_FORMAT_FOOTNOTE_DLG // status()
529 ExecMethod = Execute ;
532 SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
534 ExecMethod = Execute ;
539 ExecMethod = Execute;
542 FN_NUMBERING_OUTLINE_DLG // status(final|play)
544 ExecMethod = Execute ;
549 StateMethod = StateDisableItems ;
553 StateMethod = StateDisableItems ;
558 StateMethod = StateDisableItems ;
562 interface TextDrawFont
563 [ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
565 SID_ATTR_CHAR_FONT // status()
567 ExecMethod = Execute ;
568 StateMethod = GetDrawTxtCtrlState ;
569 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
572 SID_ATTR_CHAR_FONTHEIGHT // status()
574 ExecMethod = Execute ;
575 StateMethod = GetDrawTxtCtrlState ;
576 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
579 SID_ATTR_CHAR_COLOR // api:
581 ExecMethod = Execute ;
582 StateMethod = GetDrawTxtCtrlState ;
583 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
585 SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
587 ExecMethod = Execute ;
588 StateMethod = GetDrawTxtCtrlState ;
589 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
593 ExecMethod = Execute ;
594 StateMethod = GetDrawTxtCtrlState ;
595 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
597 SID_ATTR_CHAR_LANGUAGE // status(final|play)
599 ExecMethod = Execute ;
600 StateMethod = GetDrawTxtCtrlState ;
601 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
603 SID_ATTR_CHAR_KERNING // status(final|play)
605 ExecMethod = Execute ;
606 StateMethod = GetDrawTxtCtrlState ;
607 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
609 SID_ATTR_CHAR_AUTOKERN // // status(final|play)
611 ExecMethod = Execute ;
612 StateMethod = GetDrawTxtCtrlState ;
613 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
615 SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
617 ExecMethod = Execute ;
618 StateMethod = GetDrawTxtCtrlState ;
619 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
622 SID_ATTR_CHAR_SCALEWIDTH // status()
624 ExecMethod = Execute ;
625 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
631 shell SwDrawTextShell
633 import TextDrawText[Automation];
634 import TextDrawFont ".DrawFont";