1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
34 uuid = "61753B60-1114-101D-B8ED-3273768855A7" ;
37 SID_NEWDOC // ole(opt) api(final/play/rec)
39 ExecMethod = NewDocExec_Impl ;
41 SID_OPENDOC // ole(no) api(final/play/rec)
43 ExecMethod = OpenDocExec_Impl ;
45 SID_OPENHYPERLINK // ole(no) api(final/play/rec)
47 ExecMethod = OpenDocExec_Impl ;
49 SID_OPENURL // ole(no) api(no)
51 ExecMethod = OpenDocExec_Impl ;
53 SID_OPENTEMPLATE // ole(no) api(final/play/rec)
55 ExecMethod = OpenDocExec_Impl ;
57 SID_CLOSEDOCS // ole(req) api(final/play/rec)
59 ExecMethod = MiscExec_Impl ;
60 StateMethod = MiscState_Impl ;
62 SID_SAVEDOCS // ole(no) api(final/play/rec)
64 ExecMethod = MiscExec_Impl ;
65 StateMethod = MiscState_Impl ;
69 //=========================================================================
75 SID_DOCTITLE // ole(opt) api(final/norec)
77 ExecMethod = ExecProps_Impl ;
78 StateMethod = StateProps_Impl ;
80 SID_DOCPATH // ole(req) api(final/play/norec)
82 ExecMethod = ExecProps_Impl ;
83 StateMethod = StateProps_Impl ;
85 SID_DOCFULLNAME // ole(req) api(final/play/norec)
87 ExecMethod = ExecProps_Impl ;
88 StateMethod = StateProps_Impl ;
90 SID_CLOSEDOC // ole(req) api(final/play/rec)
92 ExecMethod = ExecFile_Impl ;
93 StateMethod = GetState_Impl ;
95 SID_CLOSING // ole(no) api(final/play/norec)
97 StateMethod = StateProps_Impl ;
99 SID_ACTIVATE // ole(no) api(final/play/norec)
101 ExecMethod = ExecView_Impl ;
102 StateMethod = StateView_Impl ;
106 interface OfficeDocument : Document
111 SID_DOCINFO_AUTHOR // ole(opt) api(todo)
113 ExecMethod = ExecProps_Impl ;
114 StateMethod = StateProps_Impl ;
116 SID_DOCINFO_COMMENTS // ole(opt) api(todo)
118 ExecMethod = ExecProps_Impl ;
119 StateMethod = StateProps_Impl ;
121 SID_DOCINFO_KEYWORDS // ole(opt) api(todo)
123 ExecMethod = ExecProps_Impl ;
124 StateMethod = StateProps_Impl ;
126 SID_DOC_READONLY // ole(opt) api(final/play/norec)
128 ExecMethod = ExecProps_Impl ;
129 StateMethod = StateProps_Impl ;
131 SID_DOC_SAVED // ole(req) api(final/play/norec)
133 ExecMethod = ExecProps_Impl ;
134 StateMethod = StateProps_Impl ;
136 SID_DOC_MODIFIED // ole(no) api(final/noplay/norec)
138 StateMethod = GetState_Impl ;
140 SID_MODIFIED // ole(no) api(final/noplay/norec)
142 ExecMethod = ExecProps_Impl ;
143 StateMethod = GetState_Impl ;
145 SID_SAVEDOC // ole(req) api(final/play/rec)
147 ExecMethod = ExecFile_Impl ;
148 StateMethod = GetState_Impl ;
150 SID_SAVEASDOC // ole(req) api(final/play/rec)
152 ExecMethod = ExecFile_Impl ;
153 StateMethod = GetState_Impl ;
155 SID_DOCTEMPLATE // ole(no) api(final/play/rec)
157 ExecMethod = ExecFile_Impl ;
158 StateMethod = GetState_Impl ;
160 SID_PRINTDOC //ole(req) api(final/play/norec)
162 ExecMethod = PrintExec_Impl ;
163 StateMethod = NoState ;
165 SID_PRINTOUT // ole(opt) api(final/play/norec)
167 ExecMethod = PrintExec_Impl ;
168 StateMethod = PrintState_Impl ;
170 SID_DOC_LOADING // ole(no) api(final/play/norec)
172 StateMethod = StateProps_Impl ;
174 SID_IMG_LOADING // ole(no) api(final/play/norec)
176 StateMethod = StateProps_Impl ;
178 SID_PLAYMACRO // ole(no) api(final/play/norec)
180 ExecMethod = ExecProps_Impl ;
181 StateMethod = StateProps_Impl ;
185 ExecMethod = ExecFile_Impl;
186 StateMethod = GetState_Impl;
190 ExecMethod = ExecFile_Impl;
191 StateMethod = GetState_Impl;
195 ExecMethod = ExecFile_Impl;
196 StateMethod = GetState_Impl;
200 //=========================================================================
204 import OfficeDocument [Automation];
206 SID_DOCINFO // ole(no) api(final/play)
208 ExecMethod = ExecFile_Impl ;
209 StateMethod = GetState_Impl ;
211 SID_DOCINFO_TITLE // ole(no) api(final/play/rec)
213 StateMethod = GetState_Impl ;
217 ExecMethod = ExecFile_Impl ;
218 StateMethod = GetState_Impl ;
222 ExecMethod = ExecFile_Impl ;
223 StateMethod = GetState_Impl ;
225 SID_DIRECTEXPORTDOCASPDF
227 ExecMethod = ExecFile_Impl ;
228 StateMethod = GetState_Impl ;
230 SID_SAVE_VERSION_ON_CLOSE
232 ExecMethod = ExecFile_Impl ;
233 StateMethod = GetState_Impl ;
237 ExecMethod = ExecFile_Impl;
238 StateMethod = GetState_Impl;
242 ExecMethod = ExecFile_Impl;
243 StateMethod = GetState_Impl;