xref: /trunk/main/sw/sdi/drwtxtsh.sdi (revision fe617e93)
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
303	SID_CHAR_DLG_EFFECT
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    ]
314
315	SID_PARA_DLG // api:
316	[
317		ExecMethod = Execute ;
318		StateMethod = GetState ;
319		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
320	]
321
322	FN_SET_SUPER_SCRIPT
323	[
324		ExecMethod = Execute ;
325		StateMethod = GetState ;
326		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
327	]
328
329	FN_SET_SUB_SCRIPT
330	[
331		ExecMethod = Execute ;
332		StateMethod = GetState ;
333		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
334	]
335
336	SID_FONTWORK  // api:
337	[
338		ExecMethod = ExecFontWork ;
339		StateMethod = StateFontWork ;
340		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
341	]
342
343
344	SID_FORMTEXT_STYLE // api:
345	[
346		ExecMethod = ExecFormText ;
347		StateMethod = GetFormTextState ;
348		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
349	]
350
351	SID_FORMTEXT_ADJUST  // api:
352	[
353		ExecMethod = ExecFormText ;
354		StateMethod = GetFormTextState ;
355		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
356	]
357
358	SID_FORMTEXT_DISTANCE // api:
359	[
360		ExecMethod = ExecFormText ;
361		StateMethod = GetFormTextState ;
362		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
363	]
364
365	SID_FORMTEXT_START  // api:
366	[
367		ExecMethod = ExecFormText ;
368		StateMethod = GetFormTextState ;
369		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
370	]
371
372
373	SID_FORMTEXT_MIRROR // api:
374	[
375		ExecMethod = ExecFormText ;
376		StateMethod = GetFormTextState ;
377		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
378	]
379
380
381	SID_FORMTEXT_HIDEFORM   // api:
382	[
383		ExecMethod = ExecFormText ;
384		StateMethod = GetFormTextState ;
385		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
386	]
387
388	SID_FORMTEXT_OUTLINE // api:
389	[
390		ExecMethod = ExecFormText ;
391		StateMethod = GetFormTextState ;
392		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
393	]
394
395	SID_FORMTEXT_SHADOW  // api:
396	[
397		ExecMethod = ExecFormText ;
398		StateMethod = GetFormTextState ;
399		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
400	]
401
402	SID_FORMTEXT_SHDWCOLOR // api:
403	[
404		ExecMethod = ExecFormText ;
405		StateMethod = GetFormTextState ;
406		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
407	]
408
409	SID_FORMTEXT_SHDWXVAL  // api:
410	[
411		ExecMethod = ExecFormText ;
412		StateMethod = GetFormTextState ;
413		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
414	]
415
416	SID_FORMTEXT_SHDWYVAL  // api:
417	[
418		ExecMethod = ExecFormText ;
419		StateMethod = GetFormTextState ;
420		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
421	]
422
423	SID_FORMTEXT_STDFORM // api:
424	[
425		ExecMethod = ExecFormText ;
426		StateMethod = GetFormTextState ;
427		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
428	]
429
430    SID_THESAURUS // api:
431	[
432		ExecMethod = ExecDrawLingu ;
433		StateMethod = GetState ;
434		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
435	]
436
437        SID_HANGUL_HANJA_CONVERSION  // api:
438        [
439                ExecMethod = ExecDrawLingu ;
440                StateMethod = GetState ;
441                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
442        ]
443
444        SID_CHINESE_CONVERSION  // api:
445        [
446                ExecMethod = ExecDrawLingu ;
447                StateMethod = GetState ;
448                DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
449        ]
450
451	FN_DRAWTEXT_ATTR_DLG
452	[
453		ExecMethod = ExecDraw ;
454		StateMethod = NoState ;
455		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
456	]
457
458	SID_STYLE_CATALOG  // ole(no) api(play/rec)
459	[
460		StateMethod = StateDisableItems ;
461	]
462
463	SID_AUTOSPELL_CHECK
464	[
465		ExecMethod = Execute;
466		StateMethod = GetDrawTxtCtrlState
467	]
468
469	SID_SEARCH_DLG
470	[
471		StateMethod = StateDisableItems
472	]
473
474	SID_HYPERLINK_SETLINK  // status()
475	[
476		ExecMethod = Execute ;
477		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
478	]
479
480	SID_HYPERLINK_GETLINK // status()
481	[
482		StateMethod = StateInsert ;
483	]
484    SID_TRANSLITERATE_SENTENCE_CASE
485    [
486        ExecMethod = ExecTransliteration;
487        StateMethod = NoState ;
488        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
489    ]
490    SID_TRANSLITERATE_TITLE_CASE
491    [
492        ExecMethod = ExecTransliteration;
493        StateMethod = NoState ;
494        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
495    ]
496    SID_TRANSLITERATE_TOGGLE_CASE
497    [
498        ExecMethod = ExecTransliteration;
499        StateMethod = NoState ;
500        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
501    ]
502	SID_TRANSLITERATE_UPPER
503	[
504		ExecMethod = ExecTransliteration;
505		StateMethod = NoState ;
506		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
507	]
508	SID_TRANSLITERATE_LOWER
509	[
510		ExecMethod = ExecTransliteration;
511		StateMethod = NoState ;
512		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
513	]
514	SID_TRANSLITERATE_HALFWIDTH
515	[
516		ExecMethod = ExecTransliteration;
517        StateMethod = GetState ;
518		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
519	]
520	SID_TRANSLITERATE_FULLWIDTH
521	[
522		ExecMethod = ExecTransliteration;
523        StateMethod = GetState ;
524		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
525	]
526	SID_TRANSLITERATE_HIRAGANA
527	[
528		ExecMethod = ExecTransliteration;
529        StateMethod = GetState ;
530		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
531	]
532	SID_TRANSLITERATE_KATAGANA
533	[
534		ExecMethod = ExecTransliteration;
535        StateMethod = GetState ;
536		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
537	]
538
539    SID_LANGUAGE_STATUS
540    [
541        ExecMethod = Execute;
542        StateMethod = GetState;
543        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
544    ]
545
546    SID_THES
547    [
548        ExecMethod = Execute;
549        StateMethod = GetState;
550        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";  // e.g. disable for read-only documents
551    ]
552
553   	FN_FORMAT_FOOTNOTE_DLG // status()
554	[
555		ExecMethod = Execute ;
556	]
557
558	SID_OPEN_XML_FILTERSETTINGS // ole : no, status : ?
559    [
560        ExecMethod = Execute ;
561    ]
562
563    FN_WORDCOUNT_DIALOG
564    [
565        ExecMethod = Execute;
566    ]
567
568   	FN_NUMBERING_OUTLINE_DLG   // status(final|play)
569	[
570		ExecMethod = Execute ;
571	]
572
573    SID_INSERT_GRAPHIC
574	[
575		StateMethod = StateDisableItems ;
576	]
577	SID_TWAIN_SELECT
578	[
579		StateMethod = StateDisableItems ;
580	]
581
582	SID_TWAIN_TRANSFER
583	[
584		StateMethod = StateDisableItems ;
585	]
586}
587
588interface TextDrawFont
589[ uuid = "074C35E0-11EF-101D-9757-6E74207A7520"; ]
590{
591	SID_ATTR_CHAR_FONT // status()
592	[
593		ExecMethod = Execute ;
594		StateMethod = GetDrawTxtCtrlState ;
595		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
596	]
597
598	SID_ATTR_CHAR_FONTHEIGHT // status()
599	[
600		ExecMethod = Execute ;
601		StateMethod = GetDrawTxtCtrlState ;
602		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
603	]
604
605	SID_ATTR_CHAR_COLOR // api:
606	[
607		ExecMethod = Execute ;
608		StateMethod = GetDrawTxtCtrlState ;
609		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
610	]
611    SID_ATTR_CHAR_WORDLINEMODE // status(final|play)
612	[
613        ExecMethod = Execute ;
614        StateMethod = GetDrawTxtCtrlState ;
615		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
616	]
617    SID_ATTR_CHAR_RELIEF
618	[
619        ExecMethod = Execute ;
620        StateMethod = GetDrawTxtCtrlState ;
621        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
622	]
623    SID_ATTR_CHAR_LANGUAGE // status(final|play)
624	[
625        ExecMethod = Execute ;
626        StateMethod = GetDrawTxtCtrlState ;
627        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
628	]
629    SID_ATTR_CHAR_KERNING // status(final|play)
630	[
631        ExecMethod = Execute ;
632        StateMethod = GetDrawTxtCtrlState ;
633        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
634	]
635    SID_ATTR_CHAR_AUTOKERN // // status(final|play)
636	[
637        ExecMethod = Execute ;
638        StateMethod = GetDrawTxtCtrlState ;
639        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
640	]
641	SID_ATTR_CHAR_ESCAPEMENT // status(final|play)
642	[
643        ExecMethod = Execute ;
644        StateMethod = GetDrawTxtCtrlState ;
645        DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
646	]
647
648    SID_ATTR_CHAR_SCALEWIDTH // status()
649	[
650		ExecMethod = Execute ;
651		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
652	]
653}
654
655
656
657shell SwDrawTextShell
658{
659		import TextDrawText[Automation];
660		import TextDrawFont ".DrawFont";
661}
662
663