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