xref: /aoo42x/main/svx/sdi/fmslots.sdi (revision a8f4084d)
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 Form
25[
26	uuid = "F38D29A3-9EDA-11d1-AAF5-00A0248A7FBC"
27]
28{
29	SID_FM_CONFIG // ole : no, status : ?
30	[
31		ExecMethod = Execute ;
32		StateMethod = GetState ;
33	]
34	SID_FM_PUSHBUTTON
35	[
36		ExecMethod = Execute ;
37		StateMethod = GetState ;
38	]
39	SID_FM_RADIOBUTTON
40	[
41		ExecMethod = Execute ;
42		StateMethod = GetState ;
43	]
44	SID_FM_CHECKBOX
45	[
46		ExecMethod = Execute ;
47		StateMethod = GetState ;
48	]
49	SID_FM_FIXEDTEXT
50	[
51		ExecMethod = Execute ;
52		StateMethod = GetState ;
53	]
54	SID_FM_GROUPBOX
55	[
56		ExecMethod = Execute ;
57		StateMethod = GetState ;
58	]
59	SID_FM_LISTBOX
60	[
61		ExecMethod = Execute ;
62		StateMethod = GetState ;
63	]
64	SID_FM_COMBOBOX
65	[
66		ExecMethod = Execute ;
67		StateMethod = GetState ;
68	]
69    SID_FM_NAVIGATIONBAR
70	[
71		ExecMethod = Execute ;
72		StateMethod = GetState ;
73	]
74	SID_FM_EDIT
75	[
76		ExecMethod = Execute ;
77		StateMethod = GetState ;
78	]
79	SID_FM_DBGRID
80	[
81		ExecMethod = Execute ;
82		StateMethod = GetState ;
83	]
84	SID_FM_IMAGEBUTTON
85	[
86		ExecMethod = Execute ;
87		StateMethod = GetState ;
88	]
89	SID_FM_IMAGECONTROL
90	[
91		ExecMethod = Execute ;
92		StateMethod = GetState ;
93	]
94	SID_FM_FILECONTROL
95	[
96		ExecMethod = Execute ;
97		StateMethod = GetState ;
98	]
99	SID_FM_DATEFIELD
100	[
101		ExecMethod = Execute ;
102		StateMethod = GetState ;
103	]
104	SID_FM_TIMEFIELD
105	[
106		ExecMethod = Execute ;
107		StateMethod = GetState ;
108	]
109	SID_FM_NUMERICFIELD
110	[
111		ExecMethod = Execute ;
112		StateMethod = GetState ;
113	]
114	SID_FM_CURRENCYFIELD
115	[
116		ExecMethod = Execute ;
117		StateMethod = GetState ;
118	]
119	SID_FM_PATTERNFIELD
120	[
121		ExecMethod = Execute ;
122		StateMethod = GetState ;
123	]
124	SID_FM_FORMATTEDFIELD
125	[
126		ExecMethod = Execute ;
127		StateMethod = GetState ;
128	]
129	SID_FM_SCROLLBAR
130	[
131		ExecMethod = Execute ;
132		StateMethod = GetState ;
133	]
134	SID_FM_SPINBUTTON
135	[
136		ExecMethod = Execute ;
137		StateMethod = GetState ;
138	]
139	SID_FM_CTL_PROPERTIES
140	[
141		ExecMethod = Execute ;
142		StateMethod = GetState ;
143	]
144	SID_FM_PROPERTIES
145	[
146		ExecMethod = Execute ;
147		StateMethod = GetState ;
148	]
149	SID_FM_TAB_DIALOG
150	[
151		ExecMethod = Execute ;
152		StateMethod = GetState ;
153	]
154	SID_FM_ADD_FIELD
155	[
156		ExecMethod = Execute ;
157		StateMethod = GetState ;
158	]
159	SID_FM_DESIGN_MODE
160	[
161		ExecMethod = Execute ;
162		StateMethod = GetState ;
163	]
164	SID_FM_OPEN_READONLY
165	[
166		ExecMethod = Execute ;
167		StateMethod = GetState ;
168	]
169	SID_FM_USE_WIZARDS
170	[
171		ExecMethod = Execute ;
172		StateMethod = GetState ;
173	]
174	SID_FM_AUTOCONTROLFOCUS
175	[
176		ExecMethod = Execute ;
177		StateMethod = GetState ;
178	]
179	SID_FM_SHOW_FMEXPLORER
180	[
181		ExecMethod = Execute ;
182		StateMethod = GetState ;
183	]
184	SID_FM_SHOW_PROPERTY_BROWSER
185	[
186		ExecMethod = Execute ;
187		StateMethod = GetState ;
188	]
189	SID_FM_SHOW_DATANAVIGATOR
190	[
191		ExecMethod = Execute ;
192		StateMethod = GetState ;
193	]
194	SID_FM_RECORD_FIRST
195	[
196		ExecMethod = Execute ;
197		StateMethod = GetState ;
198	]
199	SID_FM_RECORD_NEXT
200	[
201		ExecMethod = Execute ;
202		StateMethod = GetState ;
203	]
204	SID_FM_RECORD_PREV
205	[
206		ExecMethod = Execute ;
207		StateMethod = GetState ;
208	]
209	SID_FM_RECORD_LAST
210	[
211		ExecMethod = Execute ;
212		StateMethod = GetState ;
213	]
214	SID_FM_RECORD_NEW
215	[
216		ExecMethod = Execute ;
217		StateMethod = GetState ;
218	]
219	SID_FM_RECORD_DELETE
220	[
221		ExecMethod = Execute ;
222		StateMethod = GetState ;
223	]
224	SID_FM_RECORD_ABSOLUTE
225	[
226		ExecMethod = Execute ;
227		StateMethod = GetState ;
228	]
229	SID_FM_RECORD_TEXT
230	[
231	]
232	SID_FM_RECORD_FROM_TEXT
233	[
234	]
235	SID_FM_RECORD_TOTAL
236	[
237		StateMethod = GetState ;
238	]
239	SID_FM_RECORD_SAVE
240	[
241		ExecMethod = Execute ;
242		StateMethod = GetState ;
243	]
244	SID_FM_RECORD_UNDO
245	[
246		ExecMethod = Execute ;
247		StateMethod = GetState ;
248	]
249	SID_FM_FORM_FILTERED
250	[
251		ExecMethod = Execute ;
252		StateMethod = GetState ;
253	]
254	SID_FM_REMOVE_FILTER_SORT
255	[
256		ExecMethod = Execute ;
257		StateMethod = GetState ;
258	]
259	SID_FM_SORTUP
260	[
261		ExecMethod = Execute ;
262		StateMethod = GetState ;
263	]
264	SID_FM_SORTDOWN
265	[
266		ExecMethod = Execute ;
267		StateMethod = GetState ;
268	]
269	SID_FM_ORDERCRIT
270	[
271		ExecMethod = Execute ;
272		StateMethod = GetState ;
273	]
274	SID_FM_FILTER_START
275	[
276		ExecMethod = Execute ;
277		StateMethod = GetState ;
278	]
279	SID_FM_AUTOFILTER
280	[
281		ExecMethod = Execute ;
282		StateMethod = GetState ;
283	]
284	SID_FM_REFRESH
285	[
286		ExecMethod = Execute ;
287		StateMethod = GetState ;
288	]
289	SID_FM_REFRESH_FORM_CONTROL
290	[
291		ExecMethod = Execute ;
292		StateMethod = GetState ;
293	]
294	SID_FM_SEARCH
295	[
296		ExecMethod = Execute ;
297		StateMethod = GetState ;
298	]
299	SID_FM_FILTER_NAVIGATOR
300	[
301		ExecMethod = Execute ;
302		StateMethod = GetState ;
303	]
304	SID_FM_FILTER_EXIT
305	[
306		ExecMethod = Execute ;
307		StateMethod = GetState ;
308	]
309	SID_FM_FILTER_EXECUTE
310	[
311		ExecMethod = Execute ;
312		StateMethod = GetState ;
313	]
314	 //--------------------------------------------------------------------------
315	SID_FM_FMEXPLORER_CONTROL
316	[
317		StateMethod = GetState ;
318	]
319	 //--------------------------------------------------------------------------
320	SID_FM_DATANAVIGATOR_CONTROL
321	[
322		StateMethod = GetState ;
323	]
324	 //--------------------------------------------------------------------------
325	SID_FM_FIELDS_CONTROL
326	[
327		StateMethod = GetState ;
328	]
329	 //--------------------------------------------------------------------------
330	SID_FM_PROPERTY_CONTROL
331	[
332		StateMethod = GetState ;
333	]
334	//--------------------------------------------------------------------------
335	SID_FM_FILTER_NAVIGATOR_CONTROL
336	[
337		StateMethod = GetState ;
338	]
339	 //--------------------------------------------------------------------------
340	SID_FM_SHOW_PROPERTIES
341	[
342		StateMethod = GetState ;
343		ExecMethod = Execute ;
344	]
345
346	SID_FM_VIEW_AS_GRID
347	[
348		StateMethod = GetState ;
349		ExecMethod = Execute ;
350	]
351}
352
353interface FormTextAttributeShell
354{
355	SID_CUT
356	[
357		ExecMethod = ExecuteTextAttribute;
358		StateMethod = GetTextAttributeState;
359	]
360	SID_COPY
361	[
362		ExecMethod = ExecuteTextAttribute;
363		StateMethod = GetTextAttributeState;
364	]
365	SID_PASTE
366	[
367		ExecMethod = ExecuteTextAttribute;
368		StateMethod = GetTextAttributeState;
369	]
370	SID_SELECTALL
371	[
372		ExecMethod = ExecuteTextAttribute;
373		StateMethod = GetTextAttributeState;
374	]
375
376    SID_ATTR_PARA_ADJUST
377	[
378		ExecMethod = ExecuteTextAttribute;
379		StateMethod = GetTextAttributeState;
380	]
381    SID_ATTR_PARA_ADJUST_LEFT
382	[
383		ExecMethod = ExecuteTextAttribute;
384		StateMethod = GetTextAttributeState;
385	]
386	SID_ATTR_PARA_ADJUST_CENTER
387	[
388		ExecMethod = ExecuteTextAttribute;
389		StateMethod = GetTextAttributeState;
390	]
391	SID_ATTR_PARA_ADJUST_RIGHT
392	[
393		ExecMethod = ExecuteTextAttribute;
394		StateMethod = GetTextAttributeState;
395	]
396	SID_ATTR_PARA_ADJUST_BLOCK
397	[
398		ExecMethod = ExecuteTextAttribute;
399		StateMethod = GetTextAttributeState;
400	]
401    SID_SET_SUPER_SCRIPT
402	[
403		ExecMethod = ExecuteTextAttribute;
404		StateMethod = GetTextAttributeState;
405	]
406    SID_SET_SUB_SCRIPT
407	[
408		ExecMethod = ExecuteTextAttribute;
409		StateMethod = GetTextAttributeState;
410	]
411    SID_ATTR_CHAR_UNDERLINE
412	[
413		ExecMethod = ExecuteTextAttribute;
414		StateMethod = GetTextAttributeState;
415	]
416    SID_ATTR_CHAR_OVERLINE
417	[
418		ExecMethod = ExecuteTextAttribute;
419		StateMethod = GetTextAttributeState;
420	]
421    SID_ATTR_CHAR_WEIGHT
422	[
423		ExecMethod = ExecuteTextAttribute;
424		StateMethod = GetTextAttributeState;
425	]
426    SID_ATTR_CHAR_POSTURE
427	[
428		ExecMethod = ExecuteTextAttribute;
429		StateMethod = GetTextAttributeState;
430	]
431    SID_ATTR_CHAR_STRIKEOUT
432	[
433		ExecMethod = ExecuteTextAttribute;
434		StateMethod = GetTextAttributeState;
435	]
436    SID_ATTR_CHAR_SHADOWED
437	[
438		ExecMethod = ExecuteTextAttribute;
439		StateMethod = GetTextAttributeState;
440	]
441    SID_CHAR_DLG
442	[
443		ExecMethod = ExecuteTextAttribute;
444		StateMethod = GetTextAttributeState;
445	]
446    SID_PARA_DLG
447	[
448		ExecMethod = ExecuteTextAttribute;
449		StateMethod = GetTextAttributeState;
450	]
451	SID_ATTR_CHAR_FONT
452	[
453		ExecMethod = ExecuteTextAttribute;
454		StateMethod = GetTextAttributeState;
455	]
456	SID_ATTR_CHAR_FONTHEIGHT
457	[
458		ExecMethod = ExecuteTextAttribute;
459		StateMethod = GetTextAttributeState;
460	]
461	SID_ATTR_PARA_LINESPACE_10
462	[
463		ExecMethod = ExecuteTextAttribute;
464		StateMethod = GetTextAttributeState;
465	]
466	SID_ATTR_PARA_LINESPACE_15
467	[
468		ExecMethod = ExecuteTextAttribute;
469		StateMethod = GetTextAttributeState;
470	]
471	SID_ATTR_PARA_LINESPACE_20
472	[
473		ExecMethod = ExecuteTextAttribute;
474		StateMethod = GetTextAttributeState;
475	]
476	SID_ATTR_CHAR_CONTOUR
477	[
478		ExecMethod = ExecuteTextAttribute;
479		StateMethod = GetTextAttributeState;
480	]
481    SID_CLIPBOARD_FORMAT_ITEMS
482	[
483		ExecMethod = ExecuteTextAttribute;
484		StateMethod = GetTextAttributeState;
485	]
486    SID_ATTR_CHAR_WORDLINEMODE
487	[
488		ExecMethod = ExecuteTextAttribute;
489		StateMethod = GetTextAttributeState;
490	]
491	SID_ATTR_CHAR_COLOR
492	[
493		ExecMethod = ExecuteTextAttribute;
494		StateMethod = GetTextAttributeState;
495	]
496	SID_ATTR_CHAR_RELIEF
497	[
498		ExecMethod = ExecuteTextAttribute;
499		StateMethod = GetTextAttributeState;
500	]
501	SID_ATTR_CHAR_ESCAPEMENT
502	[
503		ExecMethod = ExecuteTextAttribute;
504		StateMethod = GetTextAttributeState;
505	]
506	SID_ATTR_CHAR_SCALEWIDTH
507	[
508		ExecMethod = ExecuteTextAttribute;
509		StateMethod = GetTextAttributeState;
510	]
511	SID_ATTR_CHAR_KERNING
512	[
513		ExecMethod = ExecuteTextAttribute;
514		StateMethod = GetTextAttributeState;
515	]
516	SID_ATTR_CHAR_AUTOKERN
517	[
518		ExecMethod = ExecuteTextAttribute;
519		StateMethod = GetTextAttributeState;
520	]
521	SID_ATTR_CHAR_LANGUAGE
522	[
523		ExecMethod = ExecuteTextAttribute;
524		StateMethod = GetTextAttributeState;
525	]
526	SID_ATTR_PARA_LINESPACE
527	[
528		ExecMethod = ExecuteTextAttribute;
529		StateMethod = GetTextAttributeState;
530	]
531	SID_ATTR_ULSPACE
532	[
533		ExecMethod = ExecuteTextAttribute;
534		StateMethod = GetTextAttributeState;
535	]
536	SID_ATTR_LRSPACE
537	[
538		ExecMethod = ExecuteTextAttribute;
539		StateMethod = GetTextAttributeState;
540	]
541	SID_ATTR_PARA_LEFT_TO_RIGHT
542	[
543		ExecMethod = ExecuteTextAttribute;
544		StateMethod = GetTextAttributeState;
545	]
546	SID_ATTR_PARA_RIGHT_TO_LEFT
547	[
548		ExecMethod = ExecuteTextAttribute;
549		StateMethod = GetTextAttributeState;
550	]
551
552    /**** <HACK> ****/
553    // the following is a slight hack. Problem is that the form shell needs to translate
554    // slot names/args into URL dispatch names/args. For this, the SfxSlotPool is used
555    // - it provides convenient methods for this. However, the "pool" is not really a
556    // "pool" - it only knows slots, if there is a shell on the dispatcher stack which
557    // which is responsible for this slot.
558    // So, we declare the form shell as responsible for the following slots.
559	SID_ATTR_CHAR_CJK_FONT
560	[
561		ExecMethod = ExecuteTextAttribute;
562		StateMethod = GetTextAttributeState;
563	]
564	SID_ATTR_CHAR_CTL_FONT
565	[
566		ExecMethod = ExecuteTextAttribute;
567		StateMethod = GetTextAttributeState;
568	]
569	SID_ATTR_CHAR_CJK_FONTHEIGHT
570	[
571		ExecMethod = ExecuteTextAttribute;
572		StateMethod = GetTextAttributeState;
573	]
574	SID_ATTR_CHAR_CTL_FONTHEIGHT
575	[
576		ExecMethod = ExecuteTextAttribute;
577		StateMethod = GetTextAttributeState;
578	]
579	SID_ATTR_CHAR_CJK_WEIGHT
580	[
581		ExecMethod = ExecuteTextAttribute;
582		StateMethod = GetTextAttributeState;
583	]
584	SID_ATTR_CHAR_CTL_WEIGHT
585	[
586		ExecMethod = ExecuteTextAttribute;
587		StateMethod = GetTextAttributeState;
588	]
589	SID_ATTR_CHAR_CJK_POSTURE
590	[
591		ExecMethod = ExecuteTextAttribute;
592		StateMethod = GetTextAttributeState;
593	]
594	SID_ATTR_CHAR_CTL_POSTURE
595	[
596		ExecMethod = ExecuteTextAttribute;
597		StateMethod = GetTextAttributeState;
598	]
599	SID_ATTR_CHAR_EMPHASISMARK
600	[
601		ExecMethod = ExecuteTextAttribute;
602		StateMethod = GetTextAttributeState;
603	]
604	SID_ATTR_CHAR_LATIN_FONT
605	[
606		ExecMethod = ExecuteTextAttribute;
607		StateMethod = GetTextAttributeState;
608	]
609	SID_ATTR_CHAR_LATIN_FONTHEIGHT
610	[
611		ExecMethod = ExecuteTextAttribute;
612		StateMethod = GetTextAttributeState;
613	]
614	SID_ATTR_CHAR_LATIN_LANGUAGE
615	[
616		ExecMethod = ExecuteTextAttribute;
617		StateMethod = GetTextAttributeState;
618	]
619	SID_ATTR_CHAR_LATIN_POSTURE
620	[
621		ExecMethod = ExecuteTextAttribute;
622		StateMethod = GetTextAttributeState;
623	]
624	SID_ATTR_CHAR_LATIN_WEIGHT
625	[
626		ExecMethod = ExecuteTextAttribute;
627		StateMethod = GetTextAttributeState;
628	]
629    /**** </HACK> ****/
630}
631
632shell FmFormShell
633{
634    import FormTextAttributeShell;
635    import Form [Automation];
636
637	SID_FM_CONFIG // ole : no, status : ?
638	[
639		ExecMethod = Execute ;
640		StateMethod = GetState ;
641	]
642	SID_FM_MORE_CONTROLS
643	[
644		ExecMethod = Execute ;
645		StateMethod = GetState ;
646	]
647	SID_FM_FORM_DESIGN_TOOLS
648	[
649		ExecMethod = Execute ;
650		StateMethod = GetState ;
651	]
652	SID_FM_LEAVE_CREATE
653	[
654		ExecMethod = Execute ;
655	]
656	SID_FM_TOGGLECONTROLFOCUS
657	[
658		ExecMethod = Execute ;
659	]
660	SID_FM_CHANGECONTROLTYPE
661	[
662		ExecMethod = Execute ;
663		StateMethod = GetState ;
664	]
665	SID_FM_CONVERTTO_EDIT
666	[
667		ExecMethod = Execute ;
668		StateMethod = GetState ;
669	]
670	SID_FM_CONVERTTO_BUTTON
671	[
672		ExecMethod = Execute ;
673		StateMethod = GetState ;
674	]
675	SID_FM_CONVERTTO_FIXEDTEXT
676	[
677		ExecMethod = Execute ;
678		StateMethod = GetState ;
679	]
680	SID_FM_CONVERTTO_LISTBOX
681	[
682		ExecMethod = Execute ;
683		StateMethod = GetState ;
684	]
685	SID_FM_CONVERTTO_CHECKBOX
686	[
687		ExecMethod = Execute ;
688		StateMethod = GetState ;
689	]
690	SID_FM_CONVERTTO_RADIOBUTTON
691	[
692		ExecMethod = Execute ;
693		StateMethod = GetState ;
694	]
695	SID_FM_CONVERTTO_GROUPBOX
696	[
697		ExecMethod = Execute ;
698		StateMethod = GetState ;
699	]
700	SID_FM_CONVERTTO_COMBOBOX
701	[
702		ExecMethod = Execute ;
703		StateMethod = GetState ;
704	]
705	SID_FM_CONVERTTO_IMAGEBUTTON
706	[
707		ExecMethod = Execute ;
708		StateMethod = GetState ;
709	]
710	SID_FM_CONVERTTO_FILECONTROL
711	[
712		ExecMethod = Execute ;
713		StateMethod = GetState ;
714	]
715	SID_FM_CONVERTTO_DATE
716	[
717		ExecMethod = Execute ;
718		StateMethod = GetState ;
719	]
720	SID_FM_CONVERTTO_TIME
721	[
722		ExecMethod = Execute ;
723		StateMethod = GetState ;
724	]
725	SID_FM_CONVERTTO_NUMERIC
726	[
727		ExecMethod = Execute ;
728		StateMethod = GetState ;
729	]
730	SID_FM_CONVERTTO_CURRENCY
731	[
732		ExecMethod = Execute ;
733		StateMethod = GetState ;
734	]
735	SID_FM_CONVERTTO_PATTERN
736	[
737		ExecMethod = Execute ;
738		StateMethod = GetState ;
739	]
740	SID_FM_CONVERTTO_IMAGECONTROL
741	[
742		ExecMethod = Execute ;
743		StateMethod = GetState ;
744	]
745	SID_FM_CONVERTTO_FORMATTED
746	[
747		ExecMethod = Execute ;
748		StateMethod = GetState ;
749	]
750	SID_FM_CONVERTTO_SCROLLBAR
751	[
752		ExecMethod = Execute ;
753		StateMethod = GetState ;
754	]
755	SID_FM_CONVERTTO_SPINBUTTON
756	[
757		ExecMethod = Execute ;
758		StateMethod = GetState ;
759	]
760    SID_FM_CONVERTTO_NAVIGATIONBAR
761    [
762		ExecMethod = Execute ;
763		StateMethod = GetState ;
764    ]
765}
766
767