xref: /trunk/main/sw/sdi/drwtxtsh.sdi (revision da72173f)
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_ADJUST_LEFT // api:
214	[
215		ExecMethod = Execute ;
216		StateMethod = GetState ;
217		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
218	]
219
220	SID_ATTR_PARA_ADJUST_CENTER // api:
221	[
222		ExecMethod = Execute ;
223		StateMethod = GetState ;
224		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
225	]
226
227	SID_ATTR_PARA_ADJUST_RIGHT // api:
228	[
229		ExecMethod = Execute ;
230		StateMethod = GetState ;
231		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
232	]
233
234	SID_ATTR_PARA_ADJUST_BLOCK // api:
235	[
236		ExecMethod = Execute ;
237		StateMethod = GetState ;
238		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
239	]
240
241	SID_ATTR_PARA_LINESPACE_10 // api:
242	[
243		ExecMethod = Execute ;
244		StateMethod = GetState ;
245		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
246	]
247
248	SID_ATTR_PARA_LINESPACE_15 // api:
249	[
250		ExecMethod = Execute ;
251		StateMethod = GetState ;
252		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
253	]
254
255	SID_ATTR_PARA_LINESPACE_20 // api:
256	[
257		ExecMethod = Execute ;
258		StateMethod = GetState ;
259		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
260	]
261    SID_ATTR_PARA_LEFT_TO_RIGHT
262    [
263        ExecMethod = Execute ;
264        StateMethod = GetState ;
265        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
266    ]
267    SID_ATTR_PARA_RIGHT_TO_LEFT
268    [
269        ExecMethod = Execute ;
270        StateMethod = GetState ;
271        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
272    ]
273
274    	SID_TEXTDIRECTION_LEFT_TO_RIGHT
275	[
276		ExecMethod = Execute ;
277		StateMethod = GetState ;
278		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
279	]
280	SID_TEXTDIRECTION_TOP_TO_BOTTOM
281	[
282		ExecMethod = Execute ;
283		StateMethod = GetState ;
284		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
285	]
286	SID_VERTICALTEXT_STATE
287	[
288		StateMethod = GetState ;
289		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
290	]
291    SID_CTLFONT_STATE
292    [
293		StateMethod = GetState ;
294		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
295    ]
296	SID_CHAR_DLG  // api:
297	[
298		ExecMethod = Execute ;
299		StateMethod = GetState ;
300		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
301	]
302    SID_CHAR_DLG_FOR_PARAGRAPH
303    [
304        ExecMethod = Execute ;
305        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
306    ]
307
308	SID_PARA_DLG // api:
309	[
310		ExecMethod = Execute ;
311		StateMethod = GetState ;
312		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
313	]
314
315	FN_SET_SUPER_SCRIPT
316	[
317		ExecMethod = Execute ;
318		StateMethod = GetState ;
319		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
320	]
321
322	FN_SET_SUB_SCRIPT
323	[
324		ExecMethod = Execute ;
325		StateMethod = GetState ;
326		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
327	]
328
329	SID_FONTWORK  // api:
330	[
331		ExecMethod = ExecFontWork ;
332		StateMethod = StateFontWork ;
333		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
334	]
335
336
337	SID_FORMTEXT_STYLE // api:
338	[
339		ExecMethod = ExecFormText ;
340		StateMethod = GetFormTextState ;
341		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
342	]
343
344	SID_FORMTEXT_ADJUST  // api:
345	[
346		ExecMethod = ExecFormText ;
347		StateMethod = GetFormTextState ;
348		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
349	]
350
351	SID_FORMTEXT_DISTANCE // api:
352	[
353		ExecMethod = ExecFormText ;
354		StateMethod = GetFormTextState ;
355		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
356	]
357
358	SID_FORMTEXT_START  // api:
359	[
360		ExecMethod = ExecFormText ;
361		StateMethod = GetFormTextState ;
362		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
363	]
364
365
366	SID_FORMTEXT_MIRROR // api:
367	[
368		ExecMethod = ExecFormText ;
369		StateMethod = GetFormTextState ;
370		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
371	]
372
373
374	SID_FORMTEXT_HIDEFORM   // api:
375	[
376		ExecMethod = ExecFormText ;
377		StateMethod = GetFormTextState ;
378		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
379	]
380
381	SID_FORMTEXT_OUTLINE // api:
382	[
383		ExecMethod = ExecFormText ;
384		StateMethod = GetFormTextState ;
385		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
386	]
387
388	SID_FORMTEXT_SHADOW  // api:
389	[
390		ExecMethod = ExecFormText ;
391		StateMethod = GetFormTextState ;
392		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
393	]
394
395	SID_FORMTEXT_SHDWCOLOR // api:
396	[
397		ExecMethod = ExecFormText ;
398		StateMethod = GetFormTextState ;
399		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
400	]
401
402	SID_FORMTEXT_SHDWXVAL  // api:
403	[
404		ExecMethod = ExecFormText ;
405		StateMethod = GetFormTextState ;
406		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
407	]
408
409	SID_FORMTEXT_SHDWYVAL  // api:
410	[
411		ExecMethod = ExecFormText ;
412		StateMethod = GetFormTextState ;
413		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
414	]
415
416	SID_FORMTEXT_STDFORM // api:
417	[
418		ExecMethod = ExecFormText ;
419		StateMethod = GetFormTextState ;
420		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
421	]
422
423    SID_THESAURUS // api:
424	[
425		ExecMethod = ExecDrawLingu ;
426		StateMethod = GetState ;
427		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
428	]
429
430        SID_HANGUL_HANJA_CONVERSION  // api:
431        [
432                ExecMethod = ExecDrawLingu ;
433                StateMethod = GetState ;
434                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
435        ]
436
437        SID_CHINESE_CONVERSION  // api:
438        [
439                ExecMethod = ExecDrawLingu ;
440                StateMethod = GetState ;
441                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
442        ]
443
444	FN_DRAWTEXT_ATTR_DLG
445	[
446		ExecMethod = ExecDraw ;
447		StateMethod = NoState ;
448		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
449	]
450
451	SID_STYLE_CATALOG  // ole(no) api(play/rec)
452	[
453		StateMethod = StateDisableItems ;
454	]
455
456	SID_AUTOSPELL_CHECK
457	[
458		ExecMethod = Execute;
459		StateMethod = GetDrawTxtCtrlState
460	]
461
462	SID_SEARCH_DLG
463	[
464		StateMethod = StateDisableItems
465	]
466
467	SID_HYPERLINK_SETLINK  // status()
468	[
469		ExecMethod = Execute ;
470		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
471	]
472
473	SID_HYPERLINK_GETLINK // status()
474	[
475		StateMethod = StateInsert ;
476	]
477    SID_TRANSLITERATE_SENTENCE_CASE
478    [
479        ExecMethod = ExecTransliteration;
480        StateMethod = NoState ;
481        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
482    ]
483    SID_TRANSLITERATE_TITLE_CASE
484    [
485        ExecMethod = ExecTransliteration;
486        StateMethod = NoState ;
487        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
488    ]
489    SID_TRANSLITERATE_TOGGLE_CASE
490    [
491        ExecMethod = ExecTransliteration;
492        StateMethod = NoState ;
493        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
494    ]
495	SID_TRANSLITERATE_UPPER
496	[
497		ExecMethod = ExecTransliteration;
498		StateMethod = NoState ;
499		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
500	]
501	SID_TRANSLITERATE_LOWER
502	[
503		ExecMethod = ExecTransliteration;
504		StateMethod = NoState ;
505		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
506	]
507	SID_TRANSLITERATE_HALFWIDTH
508	[
509		ExecMethod = ExecTransliteration;
510        StateMethod = GetState ;
511		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
512	]
513	SID_TRANSLITERATE_FULLWIDTH
514	[
515		ExecMethod = ExecTransliteration;
516        StateMethod = GetState ;
517		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
518	]
519	SID_TRANSLITERATE_HIRAGANA
520	[
521		ExecMethod = ExecTransliteration;
522        StateMethod = GetState ;
523		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
524	]
525	SID_TRANSLITERATE_KATAGANA
526	[
527		ExecMethod = ExecTransliteration;
528        StateMethod = GetState ;
529		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
530	]
531
532    SID_LANGUAGE_STATUS
533    [
534        ExecMethod = Execute;
535        StateMethod = GetState;
536        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
537    ]
538
539    SID_THES
540    [
541        ExecMethod = Execute;
542        StateMethod = GetState;
543        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
544    ]
545
546   	FN_FORMAT_FOOTNOTE_DLG // status()
547	[
548		ExecMethod = Execute ;
549	]
550
551	SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
552    [
553        ExecMethod = Execute ;
554    ]
555
556    FN_WORDCOUNT_DIALOG
557    [
558        ExecMethod = Execute;
559    ]
560
561   	FN_NUMBERING_OUTLINE_DLG   // status(final|play)
562	[
563		ExecMethod = Execute ;
564	]
565
566    SID_INSERT_GRAPHIC
567	[
568		StateMethod = StateDisableItems ;
569	]
570	SID_TWAIN_SELECT
571	[
572		StateMethod = StateDisableItems ;
573	]
574
575	SID_TWAIN_TRANSFER
576	[
577		StateMethod = StateDisableItems ;
578	]
579}
580
581interface TextDrawFont
582[ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
583{
584	SID_ATTR_CHAR_FONT // status()
585	[
586		ExecMethod = Execute ;
587		StateMethod = GetDrawTxtCtrlState ;
588		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
589	]
590
591	SID_ATTR_CHAR_FONTHEIGHT // status()
592	[
593		ExecMethod = Execute ;
594		StateMethod = GetDrawTxtCtrlState ;
595		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
596	]
597
598	SID_ATTR_CHAR_COLOR // api:
599	[
600		ExecMethod = Execute ;
601		StateMethod = GetDrawTxtCtrlState ;
602		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
603	]
604    SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
605	[
606        ExecMethod = Execute ;
607        StateMethod = GetDrawTxtCtrlState ;
608		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
609	]
610    SID_ATTR_CHAR_RELIEF
611	[
612        ExecMethod = Execute ;
613        StateMethod = GetDrawTxtCtrlState ;
614        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
615	]
616    SID_ATTR_CHAR_LANGUAGE // status(final|play)
617	[
618        ExecMethod = Execute ;
619        StateMethod = GetDrawTxtCtrlState ;
620        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
621	]
622    SID_ATTR_CHAR_KERNING // status(final|play)
623	[
624        ExecMethod = Execute ;
625        StateMethod = GetDrawTxtCtrlState ;
626        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
627	]
628    SID_ATTR_CHAR_AUTOKERN // // status(final|play)
629	[
630        ExecMethod = Execute ;
631        StateMethod = GetDrawTxtCtrlState ;
632        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
633	]
634	SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
635	[
636        ExecMethod = Execute ;
637        StateMethod = GetDrawTxtCtrlState ;
638        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
639	]
640
641    SID_ATTR_CHAR_SCALEWIDTH // status()
642	[
643		ExecMethod = Execute ;
644		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
645	]
646}
647
648
649
650shell SwDrawTextShell
651{
652		import TextDrawText[Automation];
653		import TextDrawFont ".DrawFont";
654}
655
656