merge the formfield patch from ooo-build
[ooovba.git] / sw / sdi / drwtxtsh.sdi
blobcb87291b0de0e706ece6de75c789144e871fa926
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: drwtxtsh.sdi,v $
10  * $Revision: 1.20.82.2 $
11  *
12  * This file is part of OpenOffice.org.
13  *
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.
17  *
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).
23  *
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.
28  *
29  ************************************************************************/
31 interface TextDrawText
33     uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1"
36     SID_SELECTALL  // api:
37     [
38         ExecMethod = ExecDraw ;
39         StateMethod = NoState ;
40     ]
42     SID_CUT  // api:
43     [
44         ExecMethod = ExecClpbrd ;
45         StateMethod = StateClpbrd ;
46         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
47     ]
49     SID_COPY // api:
50     [
51         ExecMethod = ExecClpbrd ;
52         StateMethod = StateClpbrd ;
53     ]
55     SID_PASTE   // api:
56     [
57         ExecMethod = ExecClpbrd ;
58         StateMethod = StateClpbrd ;
59         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
60     ]
62     SID_PASTE_SPECIAL  // api:
63     [
64         StateMethod = StateClpbrd ;
65         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
66     ]
68         SID_CLIPBOARD_FORMAT_ITEMS  // api:
69         [
70                 StateMethod = StateClpbrd ;
71                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
72         ]
74     FN_ESCAPE // api:
75     [
76         ExecMethod = ExecDraw ;
77     ]
79     SID_UNDO // api:
80     [
81         ExecMethod = ExecUndo ;
82         StateMethod = StateUndo ;
84                 ToolBoxConfig , MenuConfig , AccelConfig;
85     ]
87     SID_REDO // api:
88     [
89         ExecMethod = ExecUndo ;
90         StateMethod = StateUndo ;
91     ]
93     SID_REPEAT // api:
94     [
95         ExecMethod = ExecUndo ;
96         StateMethod = StateUndo ;
97     ]
98     SID_GETUNDOSTRINGS
99     [
100         StateMethod = StateUndo ;
101     ]
103     SID_GETREDOSTRINGS
104     [
105         StateMethod = StateUndo ;
106     ]
108     FN_FORMAT_RESET  // api:
109     [
110         ExecMethod = ExecDraw ;
111         StateMethod = NoState ;
112         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
113     ]
115     SID_CHARMAP // api:
116     [
117         ExecMethod = ExecDraw ;
118         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
119     ]
121     FN_INSERT_STRING
122     [
123             ExecMethod = ExecDraw ;
124             StateMethod = NoState ;
125             DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
126     ]
128     FN_INSERT_SOFT_HYPHEN // status(final|play)
129         [
130                 ExecMethod = ExecDraw ;
131                 StateMethod = NoState ;
132                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
133         ]
134         FN_INSERT_HARDHYPHEN // status()
135         [
136                 ExecMethod = ExecDraw ;
137                 StateMethod = NoState ;
138                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
139         ]
140         FN_INSERT_HARD_SPACE // status(final|play)
141         [
142                 ExecMethod = ExecDraw ;
143                 StateMethod = NoState ;
144                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
145         ]
146     SID_INSERT_RLM
147     [
148                 ExecMethod = ExecDraw ;
149         StateMethod = GetState ;
150         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
151     ]
152     SID_INSERT_LRM
153     [
154         ExecMethod = ExecDraw ;
155         StateMethod = GetState ;
156         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
157     ]
158     SID_INSERT_ZWSP
159     [
160         ExecMethod = ExecDraw ;
161         StateMethod = GetState ;
162         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
163     ]
164     SID_INSERT_ZWNBSP
165     [
166         ExecMethod = ExecDraw ;
167         StateMethod = GetState ;
168         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
169     ]
171     SID_ATTR_CHAR_WEIGHT // api:
172     [
173         ExecMethod = Execute ;
174         StateMethod = GetDrawTxtCtrlState ;
175         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
176     ]
178     SID_ATTR_CHAR_POSTURE // api:
179     [
180         ExecMethod = Execute ;
181         StateMethod = GetDrawTxtCtrlState ;
182         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
183     ]
185     SID_ATTR_CHAR_UNDERLINE // api:
186     [
187         ExecMethod = Execute ;
188         StateMethod = GetDrawTxtCtrlState ;
189         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
190     ]
192     SID_ATTR_CHAR_OVERLINE // api:
193     [
194         ExecMethod = Execute ;
195         StateMethod = GetDrawTxtCtrlState ;
196         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
197     ]
199     SID_ATTR_CHAR_CONTOUR
200     [
201         ExecMethod = Execute ;
202         StateMethod = GetDrawTxtCtrlState ;
203         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
204     ]
206     SID_ATTR_CHAR_SHADOWED
207     [
208         ExecMethod = Execute ;
209         StateMethod = GetDrawTxtCtrlState ;
210         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
211     ]
213     SID_ATTR_CHAR_STRIKEOUT
214     [
215         ExecMethod = Execute ;
216         StateMethod = GetDrawTxtCtrlState ;
217         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
218     ]
220     SID_ATTR_PARA_ADJUST_LEFT // api:
221     [
222         ExecMethod = Execute ;
223         StateMethod = GetState ;
224         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
225     ]
227     SID_ATTR_PARA_ADJUST_CENTER // api:
228     [
229         ExecMethod = Execute ;
230         StateMethod = GetState ;
231         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
232     ]
234     SID_ATTR_PARA_ADJUST_RIGHT // api:
235     [
236         ExecMethod = Execute ;
237         StateMethod = GetState ;
238         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
239     ]
241     SID_ATTR_PARA_ADJUST_BLOCK // api:
242     [
243         ExecMethod = Execute ;
244         StateMethod = GetState ;
245         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
246     ]
248     SID_ATTR_PARA_LINESPACE_10 // api:
249     [
250         ExecMethod = Execute ;
251         StateMethod = GetState ;
252         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
253     ]
255     SID_ATTR_PARA_LINESPACE_15 // api:
256     [
257         ExecMethod = Execute ;
258         StateMethod = GetState ;
259         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
260     ]
262     SID_ATTR_PARA_LINESPACE_20 // api:
263     [
264         ExecMethod = Execute ;
265         StateMethod = GetState ;
266         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
267     ]
268     SID_ATTR_PARA_LEFT_TO_RIGHT
269     [
270         ExecMethod = Execute ;
271         StateMethod = GetState ;
272         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
273     ]
274     SID_ATTR_PARA_RIGHT_TO_LEFT
275     [
276         ExecMethod = Execute ;
277         StateMethod = GetState ;
278         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
279     ]
281         SID_TEXTDIRECTION_LEFT_TO_RIGHT
282     [
283         ExecMethod = Execute ;
284         StateMethod = GetState ;
285         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
286     ]
287     SID_TEXTDIRECTION_TOP_TO_BOTTOM
288     [
289         ExecMethod = Execute ;
290         StateMethod = GetState ;
291         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
292     ]
293     SID_VERTICALTEXT_STATE
294     [
295         StateMethod = GetState ;
296         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
297     ]
298     SID_CTLFONT_STATE
299     [
300         StateMethod = GetState ;
301         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
302     ]
303     SID_CHAR_DLG  // api:
304     [
305         ExecMethod = Execute ;
306         StateMethod = GetState ;
307         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
308     ]
309     SID_CHAR_DLG_FOR_PARAGRAPH
310     [
311         ExecMethod = Execute ;
312         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
313     ]
315     SID_PARA_DLG // api:
316     [
317         ExecMethod = Execute ;
318         StateMethod = GetState ;
319         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
320     ]
322     FN_SET_SUPER_SCRIPT
323     [
324         ExecMethod = Execute ;
325         StateMethod = GetState ;
326         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
327     ]
329     FN_SET_SUB_SCRIPT
330     [
331         ExecMethod = Execute ;
332         StateMethod = GetState ;
333         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
334     ]
336     SID_FONTWORK  // api:
337     [
338         ExecMethod = ExecFontWork ;
339         StateMethod = StateFontWork ;
340         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
341     ]
344     SID_FORMTEXT_STYLE // api:
345     [
346         ExecMethod = ExecFormText ;
347         StateMethod = GetFormTextState ;
348         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
349     ]
351     SID_FORMTEXT_ADJUST  // api:
352     [
353         ExecMethod = ExecFormText ;
354         StateMethod = GetFormTextState ;
355         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
356     ]
358     SID_FORMTEXT_DISTANCE // api:
359     [
360         ExecMethod = ExecFormText ;
361         StateMethod = GetFormTextState ;
362         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
363     ]
365     SID_FORMTEXT_START  // api:
366     [
367         ExecMethod = ExecFormText ;
368         StateMethod = GetFormTextState ;
369         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
370     ]
373     SID_FORMTEXT_MIRROR // api:
374     [
375         ExecMethod = ExecFormText ;
376         StateMethod = GetFormTextState ;
377         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
378     ]
381     SID_FORMTEXT_HIDEFORM   // api:
382     [
383         ExecMethod = ExecFormText ;
384         StateMethod = GetFormTextState ;
385         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
386     ]
388     SID_FORMTEXT_OUTLINE // api:
389     [
390         ExecMethod = ExecFormText ;
391         StateMethod = GetFormTextState ;
392         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
393     ]
395     SID_FORMTEXT_SHADOW  // api:
396     [
397         ExecMethod = ExecFormText ;
398         StateMethod = GetFormTextState ;
399         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
400     ]
402     SID_FORMTEXT_SHDWCOLOR // api:
403     [
404         ExecMethod = ExecFormText ;
405         StateMethod = GetFormTextState ;
406         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
407     ]
409     SID_FORMTEXT_SHDWXVAL  // api:
410     [
411         ExecMethod = ExecFormText ;
412         StateMethod = GetFormTextState ;
413         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
414     ]
416     SID_FORMTEXT_SHDWYVAL  // api:
417     [
418         ExecMethod = ExecFormText ;
419         StateMethod = GetFormTextState ;
420         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
421     ]
423     SID_FORMTEXT_STDFORM // api:
424     [
425         ExecMethod = ExecFormText ;
426         StateMethod = GetFormTextState ;
427         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
428     ]
430     FN_THESAURUS_DLG // api:
431     [
432         ExecMethod = ExecDrawLingu ;
433         StateMethod = GetState ;
434         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
435     ]
437         SID_HANGUL_HANJA_CONVERSION  // api:
438         [
439                 ExecMethod = ExecDrawLingu ;
440                 StateMethod = GetState ;
441                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
442         ]
444         SID_CHINESE_CONVERSION  // api:
445         [
446                 ExecMethod = ExecDrawLingu ;
447                 StateMethod = GetState ;
448                 DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
449         ]
451     FN_DRAWTEXT_ATTR_DLG
452     [
453         ExecMethod = ExecDraw ;
454         StateMethod = NoState ;
455         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
456     ]
458     SID_STYLE_CATALOG  // ole(no) api(play/rec)
459     [
460         StateMethod = StateDisableItems ;
461     ]
463     SID_AUTOSPELL_CHECK
464     [
465         ExecMethod = Execute;
466         StateMethod = GetDrawTxtCtrlState
467     ]
469     SID_SEARCH_DLG
470     [
471         StateMethod = StateDisableItems
472     ]
474     SID_HYPERLINK_SETLINK  // status()
475     [
476         ExecMethod = Execute ;
477         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
478     ]
480     SID_HYPERLINK_GETLINK // status()
481     [
482         StateMethod = StateInsert ;
483     ]
484     SID_TRANSLITERATE_UPPER
485     [
486         ExecMethod = ExecTransliteration;
487         StateMethod = NoState ;
488         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
489     ]
490     SID_TRANSLITERATE_LOWER
491     [
492         ExecMethod = ExecTransliteration;
493         StateMethod = NoState ;
494         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
495     ]
496     SID_TRANSLITERATE_HALFWIDTH
497     [
498         ExecMethod = ExecTransliteration;
499         StateMethod = GetState ;
500         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
501     ]
502     SID_TRANSLITERATE_FULLWIDTH
503     [
504         ExecMethod = ExecTransliteration;
505         StateMethod = GetState ;
506         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
507     ]
508     SID_TRANSLITERATE_HIRAGANA
509     [
510         ExecMethod = ExecTransliteration;
511         StateMethod = GetState ;
512         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
513     ]
514     SID_TRANSLITERATE_KATAGANA
515     [
516         ExecMethod = ExecTransliteration;
517         StateMethod = GetState ;
518         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
519     ]
520     SID_LANGUAGE_STATUS
521     [
522         ExecMethod = Execute;
523         StateMethod = GetState;
524         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
525     ]
527        FN_FORMAT_FOOTNOTE_DLG // status()
528     [
529         ExecMethod = Execute ;
530     ]
531     
532     SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
533     [
534         ExecMethod = Execute ;
535     ]
537     FN_WORDCOUNT_DIALOG
538     [
539         ExecMethod = Execute;
540     ]
542        FN_NUMBERING_OUTLINE_DLG   // status(final|play)
543     [
544         ExecMethod = Execute ;
545     ]
547     SID_INSERT_GRAPHIC
548     [
549         StateMethod = StateDisableItems ;
550     ]
551     SID_TWAIN_SELECT
552     [
553         StateMethod = StateDisableItems ;
554     ]
555     
556     SID_TWAIN_TRANSFER
557     [
558         StateMethod = StateDisableItems ;
559     ]
562 interface TextDrawFont
563 [ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
565     SID_ATTR_CHAR_FONT // status()
566     [
567         ExecMethod = Execute ;
568         StateMethod = GetDrawTxtCtrlState ;
569         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
570     ]
572     SID_ATTR_CHAR_FONTHEIGHT // status()
573     [
574         ExecMethod = Execute ;
575         StateMethod = GetDrawTxtCtrlState ;
576         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
577     ]
579     SID_ATTR_CHAR_COLOR // api:
580     [
581         ExecMethod = Execute ;
582         StateMethod = GetDrawTxtCtrlState ;
583         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
584     ]
585     SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
586     [
587         ExecMethod = Execute ;
588         StateMethod = GetDrawTxtCtrlState ;
589         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
590     ]
591     SID_ATTR_CHAR_RELIEF
592     [
593         ExecMethod = Execute ;
594         StateMethod = GetDrawTxtCtrlState ;
595         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
596     ]
597     SID_ATTR_CHAR_LANGUAGE // status(final|play)
598     [
599         ExecMethod = Execute ;
600         StateMethod = GetDrawTxtCtrlState ;
601         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
602     ]
603     SID_ATTR_CHAR_KERNING // status(final|play)
604     [
605         ExecMethod = Execute ;
606         StateMethod = GetDrawTxtCtrlState ;
607         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
608     ]
609     SID_ATTR_CHAR_AUTOKERN // // status(final|play)
610     [
611         ExecMethod = Execute ;
612         StateMethod = GetDrawTxtCtrlState ;
613         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
614     ]
615     SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
616     [
617         ExecMethod = Execute ;
618         StateMethod = GetDrawTxtCtrlState ;
619         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
620     ]
622     SID_ATTR_CHAR_SCALEWIDTH // status()
623     [
624         ExecMethod = Execute ;
625         DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
626     ]
631 shell SwDrawTextShell
633         import TextDrawText[Automation];
634         import TextDrawFont ".DrawFont";