xref: /trunk/main/sw/sdi/drwtxtsh.sdi (revision 1e9c32af)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24interface TextDrawText
25[
26	uuid = "CA0C4280-293D-11D1-89CB-008029E4B0B1"
27]
28{
29	SID_SELECTALL  // api:
30	[
31		ExecMethod = ExecDraw ;
32		StateMethod = NoState ;
33	]
34
35	SID_CUT  // api:
36	[
37		ExecMethod = ExecClpbrd ;
38		StateMethod = StateClpbrd ;
39		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
40	]
41
42	SID_COPY // api:
43	[
44		ExecMethod = ExecClpbrd ;
45		StateMethod = StateClpbrd ;
46	]
47
48	SID_PASTE   // api:
49	[
50		ExecMethod = ExecClpbrd ;
51		StateMethod = StateClpbrd ;
52		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
53	]
54
55    SID_PASTE_SPECIAL  // api:
56	[
57		StateMethod = StateClpbrd ;
58		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
59	]
60
61        SID_CLIPBOARD_FORMAT_ITEMS  // api:
62        [
63                StateMethod = StateClpbrd ;
64                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
65        ]
66
67	FN_ESCAPE // api:
68	[
69		ExecMethod = ExecDraw ;
70	]
71
72	SID_UNDO // api:
73	[
74		ExecMethod = ExecUndo ;
75		StateMethod = StateUndo ;
76
77                ToolBoxConfig , MenuConfig , AccelConfig;
78	]
79
80	SID_REDO // api:
81	[
82		ExecMethod = ExecUndo ;
83		StateMethod = StateUndo ;
84	]
85
86	SID_REPEAT // api:
87	[
88		ExecMethod = ExecUndo ;
89		StateMethod = StateUndo ;
90	]
91	SID_GETUNDOSTRINGS
92	[
93		StateMethod = StateUndo ;
94	]
95
96	SID_GETREDOSTRINGS
97	[
98		StateMethod = StateUndo ;
99	]
100
101	FN_FORMAT_RESET  // api:
102	[
103		ExecMethod = ExecDraw ;
104		StateMethod = NoState ;
105		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
106	]
107
108	SID_CHARMAP // api:
109	[
110		ExecMethod = ExecDraw ;
111		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
112	]
113
114	FN_INSERT_STRING
115	[
116			ExecMethod = ExecDraw ;
117			StateMethod = NoState ;
118			DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
119	]
120
121    FN_INSERT_SOFT_HYPHEN // status(final|play)
122        [
123                ExecMethod = ExecDraw ;
124                StateMethod = NoState ;
125                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
126        ]
127        FN_INSERT_HARDHYPHEN // status()
128        [
129                ExecMethod = ExecDraw ;
130                StateMethod = NoState ;
131                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
132        ]
133        FN_INSERT_HARD_SPACE // status(final|play)
134        [
135                ExecMethod = ExecDraw ;
136                StateMethod = NoState ;
137                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
138        ]
139    SID_INSERT_RLM
140    [
141                ExecMethod = ExecDraw ;
142        StateMethod = GetState ;
143        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
144    ]
145    SID_INSERT_LRM
146    [
147		ExecMethod = ExecDraw ;
148        StateMethod = GetState ;
149        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
150    ]
151    SID_INSERT_ZWSP
152    [
153		ExecMethod = ExecDraw ;
154        StateMethod = GetState ;
155        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
156    ]
157    SID_INSERT_ZWNBSP
158    [
159		ExecMethod = ExecDraw ;
160        StateMethod = GetState ;
161        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
162    ]
163
164	SID_ATTR_CHAR_WEIGHT // api:
165	[
166		ExecMethod = Execute ;
167		StateMethod = GetDrawTxtCtrlState ;
168		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
169	]
170
171	SID_ATTR_CHAR_POSTURE // api:
172	[
173		ExecMethod = Execute ;
174		StateMethod = GetDrawTxtCtrlState ;
175		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
176	]
177
178	SID_ATTR_CHAR_UNDERLINE // api:
179	[
180		ExecMethod = Execute ;
181		StateMethod = GetDrawTxtCtrlState ;
182		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
183	]
184
185	SID_ATTR_CHAR_OVERLINE // api:
186	[
187		ExecMethod = Execute ;
188		StateMethod = GetDrawTxtCtrlState ;
189		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
190	]
191
192	SID_ATTR_CHAR_CONTOUR
193	[
194		ExecMethod = Execute ;
195		StateMethod = GetDrawTxtCtrlState ;
196		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
197	]
198
199	SID_ATTR_CHAR_SHADOWED
200	[
201		ExecMethod = Execute ;
202		StateMethod = GetDrawTxtCtrlState ;
203		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
204	]
205
206	SID_ATTR_CHAR_STRIKEOUT
207	[
208		ExecMethod = Execute ;
209		StateMethod = GetDrawTxtCtrlState ;
210		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
211	]
212
213	SID_ATTR_PARA_LRSPACE  //for indent
214	[
215		ExecMethod = Execute ;
216		StateMethod = GetState ;
217	]
218
219	SID_ATTR_PARA_LINESPACE // api:
220	[
221		ExecMethod = Execute ;
222		StateMethod = GetState ;
223	]
224
225	SID_ATTR_PARA_ULSPACE
226	[
227		ExecMethod = Execute ;
228		StateMethod = GetState ;
229	]
230
231	SID_ATTR_PARA_ADJUST_LEFT // api:
232	[
233		ExecMethod = Execute ;
234		StateMethod = GetState ;
235		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
236	]
237
238	SID_ATTR_PARA_ADJUST_CENTER // api:
239	[
240		ExecMethod = Execute ;
241		StateMethod = GetState ;
242		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
243	]
244
245	SID_ATTR_PARA_ADJUST_RIGHT // api:
246	[
247		ExecMethod = Execute ;
248		StateMethod = GetState ;
249		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
250	]
251
252	SID_ATTR_PARA_ADJUST_BLOCK // api:
253	[
254		ExecMethod = Execute ;
255		StateMethod = GetState ;
256		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
257	]
258
259	SID_ATTR_PARA_LINESPACE_10 // api:
260	[
261		ExecMethod = Execute ;
262		StateMethod = GetState ;
263		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
264	]
265
266	SID_ATTR_PARA_LINESPACE_15 // api:
267	[
268		ExecMethod = Execute ;
269		StateMethod = GetState ;
270		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
271	]
272
273	SID_ATTR_PARA_LINESPACE_20 // api:
274	[
275		ExecMethod = Execute ;
276		StateMethod = GetState ;
277		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
278	]
279    SID_ATTR_PARA_LEFT_TO_RIGHT
280    [
281        ExecMethod = Execute ;
282        StateMethod = GetState ;
283        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
284    ]
285    SID_ATTR_PARA_RIGHT_TO_LEFT
286    [
287        ExecMethod = Execute ;
288        StateMethod = GetState ;
289        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
290    ]
291
292    	SID_TEXTDIRECTION_LEFT_TO_RIGHT
293	[
294		ExecMethod = Execute ;
295		StateMethod = GetState ;
296		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
297	]
298	SID_TEXTDIRECTION_TOP_TO_BOTTOM
299	[
300		ExecMethod = Execute ;
301		StateMethod = GetState ;
302		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
303	]
304	SID_VERTICALTEXT_STATE
305	[
306		StateMethod = GetState ;
307		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
308	]
309    SID_CTLFONT_STATE
310    [
311		StateMethod = GetState ;
312		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
313    ]
314	SID_CHAR_DLG  // api:
315	[
316		ExecMethod = Execute ;
317		StateMethod = GetState ;
318		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
319	]
320
321	SID_CHAR_DLG_EFFECT
322	[
323		ExecMethod = Execute ;
324		StateMethod = GetState ;
325		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
326	]
327    SID_CHAR_DLG_FOR_PARAGRAPH
328    [
329        ExecMethod = Execute ;
330        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
331    ]
332
333	SID_PARA_DLG // api:
334	[
335		ExecMethod = Execute ;
336		StateMethod = GetState ;
337		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
338	]
339
340	FN_SET_SUPER_SCRIPT
341	[
342		ExecMethod = Execute ;
343		StateMethod = GetState ;
344		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
345	]
346
347	FN_SET_SUB_SCRIPT
348	[
349		ExecMethod = Execute ;
350		StateMethod = GetState ;
351		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
352	]
353
354	SID_FONTWORK  // api:
355	[
356		ExecMethod = ExecFontWork ;
357		StateMethod = StateFontWork ;
358		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
359	]
360
361
362	SID_FORMTEXT_STYLE // api:
363	[
364		ExecMethod = ExecFormText ;
365		StateMethod = GetFormTextState ;
366		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
367	]
368
369	SID_FORMTEXT_ADJUST  // api:
370	[
371		ExecMethod = ExecFormText ;
372		StateMethod = GetFormTextState ;
373		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
374	]
375
376	SID_FORMTEXT_DISTANCE // api:
377	[
378		ExecMethod = ExecFormText ;
379		StateMethod = GetFormTextState ;
380		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
381	]
382
383	SID_FORMTEXT_START  // api:
384	[
385		ExecMethod = ExecFormText ;
386		StateMethod = GetFormTextState ;
387		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
388	]
389
390
391	SID_FORMTEXT_MIRROR // api:
392	[
393		ExecMethod = ExecFormText ;
394		StateMethod = GetFormTextState ;
395		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
396	]
397
398
399	SID_FORMTEXT_HIDEFORM   // api:
400	[
401		ExecMethod = ExecFormText ;
402		StateMethod = GetFormTextState ;
403		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
404	]
405
406	SID_FORMTEXT_OUTLINE // api:
407	[
408		ExecMethod = ExecFormText ;
409		StateMethod = GetFormTextState ;
410		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
411	]
412
413	SID_FORMTEXT_SHADOW  // api:
414	[
415		ExecMethod = ExecFormText ;
416		StateMethod = GetFormTextState ;
417		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
418	]
419
420	SID_FORMTEXT_SHDWCOLOR // api:
421	[
422		ExecMethod = ExecFormText ;
423		StateMethod = GetFormTextState ;
424		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
425	]
426
427	SID_FORMTEXT_SHDWXVAL  // api:
428	[
429		ExecMethod = ExecFormText ;
430		StateMethod = GetFormTextState ;
431		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
432	]
433
434	SID_FORMTEXT_SHDWYVAL  // api:
435	[
436		ExecMethod = ExecFormText ;
437		StateMethod = GetFormTextState ;
438		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
439	]
440
441    SID_THESAURUS // api:
442	[
443		ExecMethod = ExecDrawLingu ;
444		StateMethod = GetState ;
445		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
446	]
447
448        SID_HANGUL_HANJA_CONVERSION  // api:
449        [
450                ExecMethod = ExecDrawLingu ;
451                StateMethod = GetState ;
452                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
453        ]
454
455        SID_CHINESE_CONVERSION  // api:
456        [
457                ExecMethod = ExecDrawLingu ;
458                StateMethod = GetState ;
459                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
460        ]
461
462	FN_DRAWTEXT_ATTR_DLG
463	[
464		ExecMethod = ExecDraw ;
465		StateMethod = NoState ;
466		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
467	]
468
469	SID_STYLE_CATALOG  // ole(no) api(play/rec)
470	[
471		StateMethod = StateDisableItems ;
472	]
473
474	SID_AUTOSPELL_CHECK
475	[
476		ExecMethod = Execute;
477		StateMethod = GetDrawTxtCtrlState
478	]
479
480	SID_SEARCH_DLG
481	[
482		StateMethod = StateDisableItems
483	]
484
485	SID_HYPERLINK_SETLINK  // status()
486	[
487		ExecMethod = Execute ;
488		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
489	]
490
491	SID_HYPERLINK_GETLINK // status()
492	[
493		StateMethod = StateInsert ;
494	]
495    SID_TRANSLITERATE_SENTENCE_CASE
496    [
497        ExecMethod = ExecTransliteration;
498        StateMethod = NoState ;
499        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
500    ]
501    SID_TRANSLITERATE_TITLE_CASE
502    [
503        ExecMethod = ExecTransliteration;
504        StateMethod = NoState ;
505        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
506    ]
507    SID_TRANSLITERATE_TOGGLE_CASE
508    [
509        ExecMethod = ExecTransliteration;
510        StateMethod = NoState ;
511        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
512    ]
513	SID_TRANSLITERATE_UPPER
514	[
515		ExecMethod = ExecTransliteration;
516		StateMethod = NoState ;
517		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
518	]
519	SID_TRANSLITERATE_LOWER
520	[
521		ExecMethod = ExecTransliteration;
522		StateMethod = NoState ;
523		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
524	]
525	SID_TRANSLITERATE_HALFWIDTH
526	[
527		ExecMethod = ExecTransliteration;
528        StateMethod = GetState ;
529		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
530	]
531	SID_TRANSLITERATE_FULLWIDTH
532	[
533		ExecMethod = ExecTransliteration;
534        StateMethod = GetState ;
535		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
536	]
537	SID_TRANSLITERATE_HIRAGANA
538	[
539		ExecMethod = ExecTransliteration;
540        StateMethod = GetState ;
541		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
542	]
543	SID_TRANSLITERATE_KATAGANA
544	[
545		ExecMethod = ExecTransliteration;
546        StateMethod = GetState ;
547		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
548	]
549
550    SID_LANGUAGE_STATUS
551    [
552        ExecMethod = Execute;
553        StateMethod = GetState;
554        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
555    ]
556
557    SID_THES
558    [
559        ExecMethod = Execute;
560        StateMethod = GetState;
561        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
562    ]
563
564   	FN_FORMAT_FOOTNOTE_DLG // status()
565	[
566		ExecMethod = Execute ;
567	]
568
569	SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
570    [
571        ExecMethod = Execute ;
572    ]
573
574    FN_WORDCOUNT_DIALOG
575    [
576        ExecMethod = Execute;
577    ]
578
579   	FN_NUMBERING_OUTLINE_DLG   // status(final|play)
580	[
581		ExecMethod = Execute ;
582	]
583
584    SID_INSERT_GRAPHIC
585	[
586		StateMethod = StateDisableItems ;
587	]
588	SID_TWAIN_SELECT
589	[
590		StateMethod = StateDisableItems ;
591	]
592
593	SID_TWAIN_TRANSFER
594	[
595		StateMethod = StateDisableItems ;
596	]
597
598	SID_TABLE_VERT_NONE
599	[
600		ExecMethod = ExecDraw ;
601		StateMethod = GetStatePropPanelAttr ;
602		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
603	]
604	SID_TABLE_VERT_CENTER
605	[
606		ExecMethod = ExecDraw ;
607		StateMethod = GetStatePropPanelAttr ;
608		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
609	]
610	SID_TABLE_VERT_BOTTOM
611	[
612		ExecMethod = ExecDraw ;
613		StateMethod = GetStatePropPanelAttr ;
614		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
615	]
616}
617
618interface TextDrawFont
619[ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
620{
621	SID_ATTR_CHAR_FONT // status()
622	[
623		ExecMethod = Execute ;
624		StateMethod = GetDrawTxtCtrlState ;
625		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
626	]
627
628	SID_ATTR_CHAR_FONTHEIGHT // status()
629	[
630		ExecMethod = Execute ;
631		StateMethod = GetDrawTxtCtrlState ;
632		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
633	]
634
635	SID_ATTR_CHAR_COLOR // api:
636	[
637		ExecMethod = Execute ;
638		StateMethod = GetDrawTxtCtrlState ;
639		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
640	]
641    SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
642	[
643        ExecMethod = Execute ;
644        StateMethod = GetDrawTxtCtrlState ;
645		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
646	]
647    SID_ATTR_CHAR_RELIEF
648	[
649        ExecMethod = Execute ;
650        StateMethod = GetDrawTxtCtrlState ;
651        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
652	]
653    SID_ATTR_CHAR_LANGUAGE // status(final|play)
654	[
655        ExecMethod = Execute ;
656        StateMethod = GetDrawTxtCtrlState ;
657        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
658	]
659    SID_ATTR_CHAR_KERNING // status(final|play)
660	[
661        ExecMethod = Execute ;
662        StateMethod = GetDrawTxtCtrlState ;
663        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
664	]
665    SID_ATTR_CHAR_AUTOKERN // // status(final|play)
666	[
667        ExecMethod = Execute ;
668        StateMethod = GetDrawTxtCtrlState ;
669        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
670	]
671	SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
672	[
673        ExecMethod = Execute ;
674        StateMethod = GetDrawTxtCtrlState ;
675        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
676	]
677
678    SID_ATTR_CHAR_SCALEWIDTH // status()
679	[
680		ExecMethod = Execute ;
681		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
682	]
683}
684
685
686
687shell SwDrawTextShell
688{
689		import TextDrawText[Automation];
690		import TextDrawFont ".DrawFont";
691}
692
693