xref: /AOO41X/main/sfx2/sdi/docslots.sdi (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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 Documents
29[
30    uuid = "61753B60-1114-101D-B8ED-3273768855A7" ;
31]
32{
33    SID_NEWDOC // ole(opt) api(final/play/rec)
34    [
35        ExecMethod = NewDocExec_Impl ;
36    ]
37    SID_OPENDOC // ole(no) api(final/play/rec)
38    [
39        ExecMethod = OpenDocExec_Impl ;
40    ]
41    SID_OPENHYPERLINK // ole(no) api(final/play/rec)
42    [
43        ExecMethod = OpenDocExec_Impl ;
44    ]
45    SID_OPENURL // ole(no) api(no)
46    [
47        ExecMethod = OpenDocExec_Impl ;
48    ]
49    SID_OPENTEMPLATE // ole(no) api(final/play/rec)
50    [
51        ExecMethod = OpenDocExec_Impl ;
52    ]
53    SID_CLOSEDOCS // ole(req) api(final/play/rec)
54    [
55        ExecMethod = MiscExec_Impl ;
56        StateMethod = MiscState_Impl ;
57    ]
58    SID_SAVEDOCS // ole(no) api(final/play/rec)
59    [
60        ExecMethod = MiscExec_Impl ;
61        StateMethod = MiscState_Impl ;
62    ]
63}
64
65 //=========================================================================
66interface Document
67[
68    Automation = FALSE ;
69]
70{
71    SID_DOCTITLE // ole(opt) api(final/norec)
72    [
73        ExecMethod = ExecProps_Impl ;
74        StateMethod = StateProps_Impl ;
75    ]
76    SID_DOCPATH // ole(req) api(final/play/norec)
77    [
78        ExecMethod = ExecProps_Impl ;
79        StateMethod = StateProps_Impl ;
80    ]
81    SID_DOCFULLNAME // ole(req) api(final/play/norec)
82    [
83        ExecMethod = ExecProps_Impl ;
84        StateMethod = StateProps_Impl ;
85    ]
86    SID_CLOSEDOC // ole(req) api(final/play/rec)
87    [
88        ExecMethod = ExecFile_Impl ;
89        StateMethod = GetState_Impl ;
90    ]
91    SID_CLOSING // ole(no) api(final/play/norec)
92    [
93        StateMethod = StateProps_Impl ;
94    ]
95    SID_ACTIVATE // ole(no) api(final/play/norec)
96    [
97        ExecMethod = ExecView_Impl ;
98        StateMethod = StateView_Impl ;
99    ]
100}
101
102interface OfficeDocument : Document
103[
104    Automation = FALSE
105]
106{
107    SID_DOCINFO_AUTHOR // ole(opt) api(todo)
108    [
109        ExecMethod = ExecProps_Impl ;
110        StateMethod = StateProps_Impl ;
111    ]
112    SID_DOCINFO_COMMENTS // ole(opt) api(todo)
113    [
114        ExecMethod = ExecProps_Impl ;
115        StateMethod = StateProps_Impl ;
116    ]
117    SID_DOCINFO_KEYWORDS // ole(opt) api(todo)
118    [
119        ExecMethod = ExecProps_Impl ;
120        StateMethod = StateProps_Impl ;
121    ]
122    SID_DOC_READONLY // ole(opt) api(final/play/norec)
123    [
124        ExecMethod = ExecProps_Impl ;
125        StateMethod = StateProps_Impl ;
126    ]
127    SID_DOC_SAVED // ole(req) api(final/play/norec)
128    [
129        ExecMethod = ExecProps_Impl ;
130        StateMethod = StateProps_Impl ;
131    ]
132    SID_DOC_MODIFIED // ole(no) api(final/noplay/norec)
133    [
134        StateMethod = GetState_Impl ;
135    ]
136    SID_MODIFIED // ole(no) api(final/noplay/norec)
137    [
138        ExecMethod = ExecProps_Impl ;
139        StateMethod = GetState_Impl ;
140    ]
141    SID_SAVEDOC // ole(req) api(final/play/rec)
142    [
143        ExecMethod = ExecFile_Impl ;
144        StateMethod = GetState_Impl ;
145    ]
146    SID_SAVEASDOC // ole(req) api(final/play/rec)
147    [
148        ExecMethod = ExecFile_Impl ;
149        StateMethod = GetState_Impl ;
150    ]
151    SID_DOCTEMPLATE // ole(no) api(final/play/rec)
152    [
153        ExecMethod = ExecFile_Impl ;
154        StateMethod = GetState_Impl ;
155    ]
156    SID_PRINTDOC //ole(req) api(final/play/norec)
157    [
158        ExecMethod = PrintExec_Impl ;
159        StateMethod = NoState ;
160    ]
161    SID_PRINTOUT // ole(opt) api(final/play/norec)
162    [
163        ExecMethod = PrintExec_Impl ;
164        StateMethod = PrintState_Impl ;
165    ]
166    SID_DOC_LOADING // ole(no) api(final/play/norec)
167    [
168        StateMethod = StateProps_Impl ;
169    ]
170    SID_IMG_LOADING // ole(no) api(final/play/norec)
171    [
172        StateMethod = StateProps_Impl ;
173    ]
174    SID_VERSION
175    [
176        ExecMethod = ExecFile_Impl;
177        StateMethod = GetState_Impl;
178    ]
179    SID_SIGNATURE
180    [
181        ExecMethod = ExecFile_Impl;
182        StateMethod = GetState_Impl;
183    ]
184    SID_MACRO_SIGNATURE
185    [
186        ExecMethod = ExecFile_Impl;
187        StateMethod = GetState_Impl;
188    ]
189}
190
191 //=========================================================================
192
193shell SfxObjectShell
194{
195    import OfficeDocument [Automation];
196
197    SID_DOCINFO // ole(no) api(final/play)
198    [
199        ExecMethod = ExecFile_Impl ;
200        StateMethod = GetState_Impl ;
201    ]
202    SID_DOCINFO_TITLE // ole(no) api(final/play/rec)
203    [
204        StateMethod = GetState_Impl ;
205    ]
206    SID_EXPORTDOC
207    [
208        ExecMethod = ExecFile_Impl ;
209        StateMethod = GetState_Impl ;
210    ]
211    SID_EXPORTDOCASPDF
212    [
213        ExecMethod = ExecFile_Impl ;
214        StateMethod = GetState_Impl ;
215    ]
216    SID_DIRECTEXPORTDOCASPDF
217    [
218        ExecMethod = ExecFile_Impl ;
219        StateMethod = GetState_Impl ;
220    ]
221    SID_SAVE_VERSION_ON_CLOSE
222    [
223        ExecMethod = ExecFile_Impl ;
224        StateMethod = GetState_Impl ;
225    ]
226    SID_SIGNATURE
227    [
228        ExecMethod = ExecFile_Impl;
229        StateMethod = GetState_Impl;
230    ]
231    SID_MACRO_SIGNATURE
232    [
233            ExecMethod = ExecFile_Impl;
234            StateMethod = GetState_Impl;
235    ]
236} ;
237