xref: /aoo41x/main/sfx2/inc/sfx2/sfxbasemodel.hxx (revision 353d8f4d)
1*353d8f4dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*353d8f4dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*353d8f4dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*353d8f4dSAndrew Rist  * distributed with this work for additional information
6*353d8f4dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*353d8f4dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*353d8f4dSAndrew Rist  * "License"); you may not use this file except in compliance
9*353d8f4dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*353d8f4dSAndrew Rist  *
11*353d8f4dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*353d8f4dSAndrew Rist  *
13*353d8f4dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*353d8f4dSAndrew Rist  * software distributed under the License is distributed on an
15*353d8f4dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*353d8f4dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*353d8f4dSAndrew Rist  * specific language governing permissions and limitations
18*353d8f4dSAndrew Rist  * under the License.
19*353d8f4dSAndrew Rist  *
20*353d8f4dSAndrew Rist  *************************************************************/
21*353d8f4dSAndrew Rist 
22*353d8f4dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SFX_SFXBASEMODEL_HXX_
25cdf0e10cSrcweir #define _SFX_SFXBASEMODEL_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "sal/config.h"
28cdf0e10cSrcweir #include "sfx2/dllapi.h"
29cdf0e10cSrcweir #include "sal/types.h"
30cdf0e10cSrcweir #include <com/sun/star/lang/XTypeProvider.hpp>
31cdf0e10cSrcweir #include <com/sun/star/frame/XModule.hpp>
32cdf0e10cSrcweir #include <com/sun/star/frame/XTitle.hpp>
33cdf0e10cSrcweir #include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
34cdf0e10cSrcweir #include <com/sun/star/frame/XUntitledNumbers.hpp>
35cdf0e10cSrcweir #include <com/sun/star/container/XChild.hpp>
36cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
37cdf0e10cSrcweir #include <com/sun/star/container/XNameReplace.hpp>
38cdf0e10cSrcweir #include <com/sun/star/frame/XController2.hpp>
39cdf0e10cSrcweir #include <com/sun/star/document/XDocumentInfo.hpp>
40cdf0e10cSrcweir #include <com/sun/star/document/XDocumentInfoSupplier.hpp>
41cdf0e10cSrcweir #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
42cdf0e10cSrcweir #include <com/sun/star/document/XDocumentRecovery.hpp>
43cdf0e10cSrcweir #include <com/sun/star/document/XUndoManagerSupplier.hpp>
44cdf0e10cSrcweir 
45cdf0e10cSrcweir #include <com/sun/star/rdf/XDocumentMetadataAccess.hpp>
46cdf0e10cSrcweir 
47cdf0e10cSrcweir #include <com/sun/star/document/XEventBroadcaster.hpp>
48cdf0e10cSrcweir #include <com/sun/star/document/XDocumentEventBroadcaster.hpp>
49cdf0e10cSrcweir #include <com/sun/star/document/XEventListener.hpp>
50cdf0e10cSrcweir #include <com/sun/star/document/XEventsSupplier.hpp>
51cdf0e10cSrcweir #include <com/sun/star/document/XEmbeddedScripts.hpp>
52cdf0e10cSrcweir #include <com/sun/star/document/EventObject.hpp>
53cdf0e10cSrcweir #include <com/sun/star/document/XDocumentSubStorageSupplier.hpp>
54cdf0e10cSrcweir #include <com/sun/star/document/XStorageBasedDocument.hpp>
55cdf0e10cSrcweir #include <com/sun/star/document/XScriptInvocationContext.hpp>
56cdf0e10cSrcweir #include <com/sun/star/lang/XEventListener.hpp>
57cdf0e10cSrcweir #include <com/sun/star/lang/NotInitializedException.hpp>
58cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp>
59cdf0e10cSrcweir #include <com/sun/star/frame/XModel2.hpp>
60cdf0e10cSrcweir #include <com/sun/star/frame/DoubleInitializationException.hpp>
61cdf0e10cSrcweir #include <com/sun/star/util/XModifiable2.hpp>
62cdf0e10cSrcweir #include <com/sun/star/util/XModifyListener.hpp>
63cdf0e10cSrcweir #include <com/sun/star/util/XCloseable.hpp>
64cdf0e10cSrcweir #include <com/sun/star/util/XCloseBroadcaster.hpp>
65cdf0e10cSrcweir #include <com/sun/star/util/XCloseListener.hpp>
66cdf0e10cSrcweir #include <com/sun/star/util/CloseVetoException.hpp>
67cdf0e10cSrcweir #include <com/sun/star/view/XPrintable.hpp>
68cdf0e10cSrcweir #include <com/sun/star/view/XPrintJobBroadcaster.hpp>
69cdf0e10cSrcweir #include <com/sun/star/frame/XStorable.hpp>
70cdf0e10cSrcweir #include <com/sun/star/frame/XStorable2.hpp>
71cdf0e10cSrcweir #include <com/sun/star/frame/XLoadable.hpp>
72cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
73cdf0e10cSrcweir #include <com/sun/star/lang/EventObject.hpp>
74cdf0e10cSrcweir #include <com/sun/star/datatransfer/XTransferable.hpp>
75cdf0e10cSrcweir #include <com/sun/star/script/provider/XScriptProviderSupplier.hpp>
76cdf0e10cSrcweir #include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp>
77cdf0e10cSrcweir #include <com/sun/star/embed/XVisualObject.hpp>
78cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
79cdf0e10cSrcweir #include <com/sun/star/uno/Reference.hxx>
80cdf0e10cSrcweir #include <com/sun/star/uno/Any.hxx>
81cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
82cdf0e10cSrcweir #include <cppuhelper/basemutex.hxx>
83cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx>
84cdf0e10cSrcweir #include <com/sun/star/script/XStarBasicAccess.hpp>
85cdf0e10cSrcweir #include <osl/mutex.hxx>
86cdf0e10cSrcweir #include <vos/mutex.hxx>
87cdf0e10cSrcweir #include <vcl/svapp.hxx>
88cdf0e10cSrcweir 
89cdf0e10cSrcweir #include <tools/link.hxx>
90cdf0e10cSrcweir 
91cdf0e10cSrcweir #include <com/sun/star/document/XViewDataSupplier.hpp>
92cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
93cdf0e10cSrcweir 
94cdf0e10cSrcweir #include <com/sun/star/task/XInteractionHandler.hpp>
95cdf0e10cSrcweir 
96cdf0e10cSrcweir //________________________________________________________________________________________________________
97cdf0e10cSrcweir #if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_32)
98cdf0e10cSrcweir #define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_32
99cdf0e10cSrcweir #define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 32
100cdf0e10cSrcweir #include <comphelper/implbase_var.hxx>
101cdf0e10cSrcweir #endif
102cdf0e10cSrcweir 
103cdf0e10cSrcweir //	include of my own project
104cdf0e10cSrcweir //________________________________________________________________________________________________________
105cdf0e10cSrcweir #include <svl/lstner.hxx>
106cdf0e10cSrcweir 
107cdf0e10cSrcweir //________________________________________________________________________________________________________
108cdf0e10cSrcweir //	defines
109cdf0e10cSrcweir //________________________________________________________________________________________________________
110cdf0e10cSrcweir 
111cdf0e10cSrcweir // Some defines to write better code :-)
112cdf0e10cSrcweir #define	XCHILD					::com::sun::star::container::XChild
113cdf0e10cSrcweir #define	XNAMECONTAINER			::com::sun::star::container::XNameContainer
114cdf0e10cSrcweir #define	XCONTROLLER				::com::sun::star::frame::XController
115cdf0e10cSrcweir #define	XEVENTLISTENER			::com::sun::star::lang::XEventListener
116cdf0e10cSrcweir #define	XINTERFACE				::com::sun::star::uno::XInterface
117cdf0e10cSrcweir #define XCOMPONENT              ::com::sun::star::lang::XComponent
118cdf0e10cSrcweir #define	XMODEL					::com::sun::star::frame::XModel
119cdf0e10cSrcweir #define	XMODEL2					::com::sun::star::frame::XModel2
120cdf0e10cSrcweir #define	XMODIFIABLE				::com::sun::star::util::XModifiable
121cdf0e10cSrcweir #define	XMODIFIABLE2			::com::sun::star::util::XModifiable2
122cdf0e10cSrcweir #define XMODIFYBROADCASTER      ::com::sun::star::util::XModifyBroadcaster
123cdf0e10cSrcweir #define	XMODIFYLISTENER			::com::sun::star::util::XModifyListener
124cdf0e10cSrcweir #define XCLOSEABLE              ::com::sun::star::util::XCloseable
125cdf0e10cSrcweir #define XCLOSEBROADCASTER       ::com::sun::star::util::XCloseBroadcaster
126cdf0e10cSrcweir #define XCLOSELISTENER          ::com::sun::star::util::XCloseListener
127cdf0e10cSrcweir #define	XPRINTABLE				::com::sun::star::view::XPrintable
128cdf0e10cSrcweir #define	XPRINTJOBBROADCASTER	::com::sun::star::view::XPrintJobBroadcaster
129cdf0e10cSrcweir #define	XSTORABLE				::com::sun::star::frame::XStorable
130cdf0e10cSrcweir #define	XSTORABLE2				::com::sun::star::frame::XStorable2
131cdf0e10cSrcweir #define	XLOADABLE				::com::sun::star::frame::XLoadable
132cdf0e10cSrcweir #define	XTYPEPROVIDER			::com::sun::star::lang::XTypeProvider
133cdf0e10cSrcweir #define	XSTARBASICACCESS		::com::sun::star::script::XStarBasicAccess
134cdf0e10cSrcweir #define	NOSUCHELEMENTEXCEPTION	::com::sun::star::container::NoSuchElementException
135cdf0e10cSrcweir #define	ELEMENTEXISTEXCEPTION	::com::sun::star::container::ElementExistException
136cdf0e10cSrcweir #define XNAMEREPLACE			::com::sun::star::container::XNameReplace
137cdf0e10cSrcweir #define XINDEXCONTAINER         ::com::sun::star::container::XIndexContainer
138cdf0e10cSrcweir #define DISPOSEDEXCEPTION       ::com::sun::star::lang::DisposedException
139cdf0e10cSrcweir #define	DOCEVENTOBJECT			::com::sun::star::document::EventObject
140cdf0e10cSrcweir #define	XDOCEVENTLISTENER		::com::sun::star::document::XEventListener
141cdf0e10cSrcweir #define	XDOCUMENTINFO			::com::sun::star::document::XDocumentInfo
142cdf0e10cSrcweir #define	XDOCUMENTINFOSUPPLIER	::com::sun::star::document::XDocumentInfoSupplier
143cdf0e10cSrcweir #define	XEVENTBROADCASTER		::com::sun::star::document::XEventBroadcaster
144cdf0e10cSrcweir #define	XDOCUMENTEVENTBROADCASTER	::com::sun::star::document::XDocumentEventBroadcaster
145cdf0e10cSrcweir #define	XEVENTSSUPPLIER			::com::sun::star::document::XEventsSupplier
146cdf0e10cSrcweir #define XEMBEDDEDSCRIPTS        ::com::sun::star::document::XEmbeddedScripts
147cdf0e10cSrcweir #define XSCRIPTINVOCATIONCONTEXT    ::com::sun::star::document::XScriptInvocationContext
148cdf0e10cSrcweir 
149cdf0e10cSrcweir #define	NOSUPPORTEXCEPTION		::com::sun::star::lang::NoSupportException
150cdf0e10cSrcweir #define	RUNTIMEEXCEPTION		::com::sun::star::uno::RuntimeException
151cdf0e10cSrcweir #define CLOSEVETOEXCEPTION      ::com::sun::star::util::CloseVetoException
152cdf0e10cSrcweir #define DOUBLEINITIALIZATIONEXCEPTION      ::com::sun::star::frame::DoubleInitializationException
153cdf0e10cSrcweir #define ILLEGALARGUMENTEXCEPTION ::com::sun::star::lang::IllegalArgumentException
154cdf0e10cSrcweir #define IOEXCEPTION				::com::sun::star::io::IOException
155cdf0e10cSrcweir #define EXCEPTION				::com::sun::star::uno::Exception
156cdf0e10cSrcweir 
157cdf0e10cSrcweir #define	ANY						::com::sun::star::uno::Any
158cdf0e10cSrcweir #define	EVENTOBJECT				::com::sun::star::lang::EventObject
159cdf0e10cSrcweir #define	PROPERTYVALUE			::com::sun::star::beans::PropertyValue
160cdf0e10cSrcweir #define	REFERENCE				::com::sun::star::uno::Reference
161cdf0e10cSrcweir #define	MUTEX					::osl::Mutex
162cdf0e10cSrcweir #define	OUSTRING				::rtl::OUString
163cdf0e10cSrcweir #define	UNOTYPE					::com::sun::star::uno::Type
164cdf0e10cSrcweir #define XVIEWDATASUPPLIER       ::com::sun::star::document::XViewDataSupplier
165cdf0e10cSrcweir #define XINDEXACCESS		  	::com::sun::star::container::XIndexAccess
166cdf0e10cSrcweir #define XTRANSFERABLE		  	::com::sun::star::datatransfer::XTransferable
167cdf0e10cSrcweir #define DATAFLAVOR				::com::sun::star::datatransfer::DataFlavor
168cdf0e10cSrcweir 
169cdf0e10cSrcweir #define	XUNOTUNNEL		 		::com::sun::star::lang::XUnoTunnel
170cdf0e10cSrcweir 
171cdf0e10cSrcweir #define XDOCUMENTSUBSTORAGESUPPLIER  ::com::sun::star::document::XDocumentSubStorageSupplier
172cdf0e10cSrcweir #define XSTORAGEBASEDDOCUMENT	::com::sun::star::document::XStorageBasedDocument
173cdf0e10cSrcweir #define XSTORAGE				::com::sun::star::embed::XStorage
174cdf0e10cSrcweir #define XVISUALOBJECT           ::com::sun::star::embed::XVisualObject
175cdf0e10cSrcweir 
176cdf0e10cSrcweir #define XSCRIPTPROVIDERSUPPLIER	::com::sun::star::script::provider::XScriptProviderSupplier
177cdf0e10cSrcweir #define XSCRIPTPROVIDER			::com::sun::star::script::provider::XScriptProvider
178cdf0e10cSrcweir 
179cdf0e10cSrcweir #define XUICONFIGURATIONMANAGERSUPPLIER ::com::sun::star::ui::XUIConfigurationManagerSupplier
180cdf0e10cSrcweir #define XUICONFIGURATIONMANAGER ::com::sun::star::ui::XUIConfigurationManager
181cdf0e10cSrcweir #define XMODULE ::com::sun::star::frame::XModule
182cdf0e10cSrcweir #define XTITLE ::com::sun::star::frame::XTitle
183cdf0e10cSrcweir #define XTITLECHANGEBROADCASTER ::com::sun::star::frame::XTitleChangeBroadcaster
184cdf0e10cSrcweir #define XUNTITLEDNUMBERS ::com::sun::star::frame::XUntitledNumbers
185cdf0e10cSrcweir 
186cdf0e10cSrcweir //________________________________________________________________________________________________________
187cdf0e10cSrcweir //	namespace
188cdf0e10cSrcweir //________________________________________________________________________________________________________
189cdf0e10cSrcweir #ifdef css
190cdf0e10cSrcweir     #error "class is using css as namespace define .-)"
191cdf0e10cSrcweir #else
192cdf0e10cSrcweir     #define css ::com::sun::star
193cdf0e10cSrcweir #endif
194cdf0e10cSrcweir 
195cdf0e10cSrcweir //________________________________________________________________________________________________________
196cdf0e10cSrcweir //	forwards
197cdf0e10cSrcweir //________________________________________________________________________________________________________
198cdf0e10cSrcweir class	SfxPrinter;
199cdf0e10cSrcweir class	SfxViewShell;
200cdf0e10cSrcweir class	SfxObjectShell						;
201cdf0e10cSrcweir class	SfxEventHint;
202cdf0e10cSrcweir class   SfxViewFrame;
203cdf0e10cSrcweir struct	IMPL_SfxBaseModel_DataContainer		;	// impl. struct to hold member of class SfxBaseModel
204cdf0e10cSrcweir 
205cdf0e10cSrcweir namespace sfx { namespace intern {
206cdf0e10cSrcweir     class ViewCreationGuard;
207cdf0e10cSrcweir } }
208cdf0e10cSrcweir //________________________________________________________________________________________________________
209cdf0e10cSrcweir //	class declarations
210cdf0e10cSrcweir //________________________________________________________________________________________________________
211cdf0e10cSrcweir 
212cdf0e10cSrcweir /**_______________________________________________________________________________________________________
213cdf0e10cSrcweir 	@short		-
214cdf0e10cSrcweir 
215cdf0e10cSrcweir 	@descr		-
216cdf0e10cSrcweir 
217cdf0e10cSrcweir 	@implements	XChild
218cdf0e10cSrcweir 				XComponent
219cdf0e10cSrcweir 				XDocumentInfoSupplier
220cdf0e10cSrcweir 				document::XDocumentPropertiesSupplier
221cdf0e10cSrcweir 				rdf::XDocumentMetadataAccess
222cdf0e10cSrcweir 				XEventListener
223cdf0e10cSrcweir 				XModel
224cdf0e10cSrcweir 				XModifiable2
225cdf0e10cSrcweir 				XPrintable
226cdf0e10cSrcweir 				XStorable2
227cdf0e10cSrcweir 				document::XEventBroadcaster
228cdf0e10cSrcweir 				document::XEventsSupplier
229cdf0e10cSrcweir                 document::XEmbeddedScripts
230cdf0e10cSrcweir                 document::XScriptInvocationContext
231cdf0e10cSrcweir                 XCloseable
232cdf0e10cSrcweir                 XCloseBroadcaster
233cdf0e10cSrcweir 
234cdf0e10cSrcweir 	@base		cppu::BaseMutex
235cdf0e10cSrcweir  				SfxListener
236cdf0e10cSrcweir */
237cdf0e10cSrcweir 
238cdf0e10cSrcweir typedef ::comphelper::WeakImplHelper32  <   XCHILD
239cdf0e10cSrcweir                                         ,   XDOCUMENTINFOSUPPLIER
240cdf0e10cSrcweir                                         ,   ::com::sun::star::document::XDocumentPropertiesSupplier
241cdf0e10cSrcweir                                         ,   ::com::sun::star::rdf::XDocumentMetadataAccess
242cdf0e10cSrcweir                                         ,   ::com::sun::star::document::XDocumentRecovery
243cdf0e10cSrcweir                                         ,   ::com::sun::star::document::XUndoManagerSupplier
244cdf0e10cSrcweir                                         ,   XEVENTBROADCASTER
245cdf0e10cSrcweir                                         ,   XDOCUMENTEVENTBROADCASTER
246cdf0e10cSrcweir                                         ,   XEVENTLISTENER
247cdf0e10cSrcweir                                         ,   XEVENTSSUPPLIER
248cdf0e10cSrcweir                                         ,   XEMBEDDEDSCRIPTS
249cdf0e10cSrcweir                                         ,   XSCRIPTINVOCATIONCONTEXT
250cdf0e10cSrcweir                                         ,   XMODEL2
251cdf0e10cSrcweir                                         ,   XMODIFIABLE2
252cdf0e10cSrcweir                                         ,   XPRINTABLE
253cdf0e10cSrcweir                                         ,   XPRINTJOBBROADCASTER
254cdf0e10cSrcweir                                         ,   XSTORABLE2
255cdf0e10cSrcweir                                         ,   XLOADABLE
256cdf0e10cSrcweir                                         ,   XSTARBASICACCESS
257cdf0e10cSrcweir                                         ,   XVIEWDATASUPPLIER
258cdf0e10cSrcweir                                         ,   XCLOSEABLE           // => XCLOSEBROADCASTER
259cdf0e10cSrcweir                                         ,   XTRANSFERABLE
260cdf0e10cSrcweir                                         ,   XDOCUMENTSUBSTORAGESUPPLIER
261cdf0e10cSrcweir                                         ,   XSTORAGEBASEDDOCUMENT
262cdf0e10cSrcweir                                         ,   XSCRIPTPROVIDERSUPPLIER
263cdf0e10cSrcweir                                         ,   XUICONFIGURATIONMANAGERSUPPLIER
264cdf0e10cSrcweir                                         ,   XVISUALOBJECT
265cdf0e10cSrcweir                                         ,   XUNOTUNNEL
266cdf0e10cSrcweir                                         ,   XMODULE
267cdf0e10cSrcweir                                         ,   XTITLE
268cdf0e10cSrcweir                                         ,   XTITLECHANGEBROADCASTER
269cdf0e10cSrcweir                                         ,   XUNTITLEDNUMBERS
270cdf0e10cSrcweir                                         >   SfxBaseModel_Base;
271cdf0e10cSrcweir 
272cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxBaseModel   :   protected ::cppu::BaseMutex
273cdf0e10cSrcweir                                     ,   public SfxBaseModel_Base
274cdf0e10cSrcweir 					                ,	public SfxListener
275cdf0e10cSrcweir {
276cdf0e10cSrcweir 
277cdf0e10cSrcweir //________________________________________________________________________________________________________
278cdf0e10cSrcweir //	public methods
279cdf0e10cSrcweir //________________________________________________________________________________________________________
280cdf0e10cSrcweir 
281cdf0e10cSrcweir public:
282cdf0e10cSrcweir 
283cdf0e10cSrcweir 	//____________________________________________________________________________________________________
284cdf0e10cSrcweir 	//	constructor/destructor
285cdf0e10cSrcweir 	//____________________________________________________________________________________________________
286cdf0e10cSrcweir 
287cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
288cdf0e10cSrcweir 		@short		-
289cdf0e10cSrcweir 		@descr		-
290cdf0e10cSrcweir 
291cdf0e10cSrcweir 		@seealso	-
292cdf0e10cSrcweir 
293cdf0e10cSrcweir 		@param		-
294cdf0e10cSrcweir 
295cdf0e10cSrcweir 		@return		-
296cdf0e10cSrcweir 
297cdf0e10cSrcweir 		@onerror	-
298cdf0e10cSrcweir 	*/
299cdf0e10cSrcweir 
300cdf0e10cSrcweir 	SfxBaseModel( SfxObjectShell *pObjektShell = NULL ) ;
301cdf0e10cSrcweir 
302cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
303cdf0e10cSrcweir 		@short		-
304cdf0e10cSrcweir 		@descr		-
305cdf0e10cSrcweir 
306cdf0e10cSrcweir 		@seealso	-
307cdf0e10cSrcweir 
308cdf0e10cSrcweir 		@param		-
309cdf0e10cSrcweir 
310cdf0e10cSrcweir 		@return		-
311cdf0e10cSrcweir 
312cdf0e10cSrcweir 		@onerror	-
313cdf0e10cSrcweir 	*/
314cdf0e10cSrcweir 
315cdf0e10cSrcweir 	virtual ~SfxBaseModel() ;
316cdf0e10cSrcweir 
317cdf0e10cSrcweir 	//____________________________________________________________________________________________________
318cdf0e10cSrcweir 	//	XInterface
319cdf0e10cSrcweir 	//____________________________________________________________________________________________________
320cdf0e10cSrcweir 
321cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
322cdf0e10cSrcweir 		@short		give answer, if interface is supported
323cdf0e10cSrcweir 		@descr		The interfaces are searched by type.
324cdf0e10cSrcweir 
325cdf0e10cSrcweir 		@seealso	XInterface
326cdf0e10cSrcweir 
327cdf0e10cSrcweir 		@param      "rType" is the type of searched interface.
328cdf0e10cSrcweir 
329cdf0e10cSrcweir 		@return		Any		information about found interface
330cdf0e10cSrcweir 
331cdf0e10cSrcweir 		@onerror	A RuntimeException is thrown.
332cdf0e10cSrcweir 	*/
333cdf0e10cSrcweir 
334cdf0e10cSrcweir 	virtual ANY SAL_CALL queryInterface( const UNOTYPE& rType ) throw( RUNTIMEEXCEPTION ) ;
335cdf0e10cSrcweir 
336cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
337cdf0e10cSrcweir 		@short		increment refcount
338cdf0e10cSrcweir 		@descr		-
339cdf0e10cSrcweir 
340cdf0e10cSrcweir 		@seealso	XInterface
341cdf0e10cSrcweir 		@seealso	release()
342cdf0e10cSrcweir 
343cdf0e10cSrcweir 		@param		-
344cdf0e10cSrcweir 
345cdf0e10cSrcweir 		@return		-
346cdf0e10cSrcweir 
347cdf0e10cSrcweir 		@onerror	A RuntimeException is thrown.
348cdf0e10cSrcweir 	*/
349cdf0e10cSrcweir 
350cdf0e10cSrcweir     virtual void SAL_CALL acquire() throw() ;
351cdf0e10cSrcweir 
352cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
353cdf0e10cSrcweir 		@short		decrement refcount
354cdf0e10cSrcweir 		@descr		-
355cdf0e10cSrcweir 
356cdf0e10cSrcweir 		@seealso	XInterface
357cdf0e10cSrcweir 		@seealso	acquire()
358cdf0e10cSrcweir 
359cdf0e10cSrcweir 		@param		-
360cdf0e10cSrcweir 
361cdf0e10cSrcweir 		@return		-
362cdf0e10cSrcweir 
363cdf0e10cSrcweir 		@onerror	A RuntimeException is thrown.
364cdf0e10cSrcweir 	*/
365cdf0e10cSrcweir 
366cdf0e10cSrcweir     virtual void SAL_CALL release() throw() ;
367cdf0e10cSrcweir 
368cdf0e10cSrcweir 	//____________________________________________________________________________________________________
369cdf0e10cSrcweir 	//	XTypeProvider
370cdf0e10cSrcweir 	//____________________________________________________________________________________________________
371cdf0e10cSrcweir 
372cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
373cdf0e10cSrcweir 		@short		get information about supported interfaces
374cdf0e10cSrcweir 		@descr      -
375cdf0e10cSrcweir 
376cdf0e10cSrcweir 		@seealso	XTypeProvider
377cdf0e10cSrcweir 
378cdf0e10cSrcweir 		@param      -
379cdf0e10cSrcweir 
380cdf0e10cSrcweir 		@return		Sequence of types of all supported interfaces
381cdf0e10cSrcweir 
382cdf0e10cSrcweir 		@onerror	A RuntimeException is thrown.
383cdf0e10cSrcweir 	*/
384cdf0e10cSrcweir 
385cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< UNOTYPE > SAL_CALL getTypes() throw( RUNTIMEEXCEPTION ) ;
386cdf0e10cSrcweir 
387cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
388cdf0e10cSrcweir 		@short		get implementation id
389cdf0e10cSrcweir 		@descr      This ID is neccessary for UNO-caching. If there no ID, cache is disabled.
390cdf0e10cSrcweir 					Another way, cache is enabled.
391cdf0e10cSrcweir 
392cdf0e10cSrcweir 		@seealso	XTypeProvider
393cdf0e10cSrcweir 
394cdf0e10cSrcweir 		@param		-
395cdf0e10cSrcweir 
396cdf0e10cSrcweir 		@return		ID as Sequence of byte
397cdf0e10cSrcweir 
398cdf0e10cSrcweir 		@onerror	A RuntimeException is thrown.
399cdf0e10cSrcweir 	*/
400cdf0e10cSrcweir 
401cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw( RUNTIMEEXCEPTION ) ;
402cdf0e10cSrcweir 
403cdf0e10cSrcweir 
404cdf0e10cSrcweir 	//____________________________________________________________________________________________________
405cdf0e10cSrcweir 	//	XStarBasicAccess
406cdf0e10cSrcweir 	//____________________________________________________________________________________________________
407cdf0e10cSrcweir 
408cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
409cdf0e10cSrcweir 		@seealso	XStarBasicAccess
410cdf0e10cSrcweir 	*/
411cdf0e10cSrcweir     virtual REFERENCE< XNAMECONTAINER > SAL_CALL getLibraryContainer() throw( RUNTIMEEXCEPTION );
412cdf0e10cSrcweir 
413cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
414cdf0e10cSrcweir 		@seealso	XStarBasicAccess
415cdf0e10cSrcweir 	*/
416cdf0e10cSrcweir     virtual void SAL_CALL createLibrary( const OUSTRING& LibName, const OUSTRING& Password,
417cdf0e10cSrcweir 		const OUSTRING& ExternalSourceURL, const OUSTRING& LinkTargetURL )
418cdf0e10cSrcweir 			throw(ELEMENTEXISTEXCEPTION, RUNTIMEEXCEPTION);
419cdf0e10cSrcweir 
420cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
421cdf0e10cSrcweir 		@seealso	XStarBasicAccess
422cdf0e10cSrcweir 	*/
423cdf0e10cSrcweir     virtual void SAL_CALL addModule( const OUSTRING& LibraryName, const OUSTRING& ModuleName,
424cdf0e10cSrcweir 		const OUSTRING& Language, const OUSTRING& Source )
425cdf0e10cSrcweir 			throw( NOSUCHELEMENTEXCEPTION, RUNTIMEEXCEPTION);
426cdf0e10cSrcweir 
427cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
428cdf0e10cSrcweir 		@seealso	XStarBasicAccess
429cdf0e10cSrcweir 	*/
430cdf0e10cSrcweir     virtual void SAL_CALL addDialog( const OUSTRING& LibraryName, const OUSTRING& DialogName,
431cdf0e10cSrcweir 		const ::com::sun::star::uno::Sequence< sal_Int8 >& Data )
432cdf0e10cSrcweir 			throw(NOSUCHELEMENTEXCEPTION, RUNTIMEEXCEPTION);
433cdf0e10cSrcweir 
434cdf0e10cSrcweir 
435cdf0e10cSrcweir 	//____________________________________________________________________________________________________
436cdf0e10cSrcweir 	//	XChild
437cdf0e10cSrcweir 	//____________________________________________________________________________________________________
438cdf0e10cSrcweir 
439cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
440cdf0e10cSrcweir 		@short		-
441cdf0e10cSrcweir 		@descr		-
442cdf0e10cSrcweir 
443cdf0e10cSrcweir 		@seealso	-
444cdf0e10cSrcweir 
445cdf0e10cSrcweir 		@param		-
446cdf0e10cSrcweir 
447cdf0e10cSrcweir 		@return		-
448cdf0e10cSrcweir 
449cdf0e10cSrcweir 		@onerror	-
450cdf0e10cSrcweir 	*/
451cdf0e10cSrcweir 
452cdf0e10cSrcweir     virtual REFERENCE< XINTERFACE > SAL_CALL getParent() throw( RUNTIMEEXCEPTION ) ;
453cdf0e10cSrcweir 
454cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
455cdf0e10cSrcweir 		@short		-
456cdf0e10cSrcweir 		@descr		-
457cdf0e10cSrcweir 
458cdf0e10cSrcweir 		@seealso	-
459cdf0e10cSrcweir 
460cdf0e10cSrcweir 		@param		-
461cdf0e10cSrcweir 
462cdf0e10cSrcweir 		@return		-
463cdf0e10cSrcweir 
464cdf0e10cSrcweir 		@onerror	-
465cdf0e10cSrcweir 	*/
466cdf0e10cSrcweir 
467cdf0e10cSrcweir     virtual void SAL_CALL setParent( const REFERENCE< XINTERFACE >& xParent ) throw(	NOSUPPORTEXCEPTION	,
468cdf0e10cSrcweir 																						RUNTIMEEXCEPTION	) ;
469cdf0e10cSrcweir 
470cdf0e10cSrcweir 	//____________________________________________________________________________________________________
471cdf0e10cSrcweir 	//	XComponent
472cdf0e10cSrcweir 	//____________________________________________________________________________________________________
473cdf0e10cSrcweir 
474cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
475cdf0e10cSrcweir 		@short		-
476cdf0e10cSrcweir 		@descr		-
477cdf0e10cSrcweir 
478cdf0e10cSrcweir 		@seealso	-
479cdf0e10cSrcweir 
480cdf0e10cSrcweir 		@param		-
481cdf0e10cSrcweir 
482cdf0e10cSrcweir 		@return		-
483cdf0e10cSrcweir 
484cdf0e10cSrcweir 		@onerror	-
485cdf0e10cSrcweir 	*/
486cdf0e10cSrcweir 
487cdf0e10cSrcweir 	virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
488cdf0e10cSrcweir 
489cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
490cdf0e10cSrcweir 		@short		-
491cdf0e10cSrcweir 		@descr		-
492cdf0e10cSrcweir 
493cdf0e10cSrcweir 		@seealso	-
494cdf0e10cSrcweir 
495cdf0e10cSrcweir 		@param		-
496cdf0e10cSrcweir 
497cdf0e10cSrcweir 		@return		-
498cdf0e10cSrcweir 
499cdf0e10cSrcweir 		@onerror	-
500cdf0e10cSrcweir 	*/
501cdf0e10cSrcweir 
502cdf0e10cSrcweir 	virtual void SAL_CALL addEventListener(const REFERENCE< XEVENTLISTENER >& aListener) throw (::com::sun::star::uno::RuntimeException);
503cdf0e10cSrcweir 
504cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
505cdf0e10cSrcweir 		@short		-
506cdf0e10cSrcweir 		@descr		-
507cdf0e10cSrcweir 
508cdf0e10cSrcweir 		@seealso	-
509cdf0e10cSrcweir 
510cdf0e10cSrcweir 		@param		-
511cdf0e10cSrcweir 
512cdf0e10cSrcweir 		@return		-
513cdf0e10cSrcweir 
514cdf0e10cSrcweir 		@onerror	-
515cdf0e10cSrcweir 	*/
516cdf0e10cSrcweir 
517cdf0e10cSrcweir 	virtual void SAL_CALL removeEventListener(const REFERENCE< XEVENTLISTENER >& aListener ) throw (::com::sun::star::uno::RuntimeException);
518cdf0e10cSrcweir 
519cdf0e10cSrcweir 	//____________________________________________________________________________________________________
520cdf0e10cSrcweir 	//	XDocumentInfoSupplier
521cdf0e10cSrcweir 	//____________________________________________________________________________________________________
522cdf0e10cSrcweir 
523cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
524cdf0e10cSrcweir 		@short		-
525cdf0e10cSrcweir 		@descr		-
526cdf0e10cSrcweir 
527cdf0e10cSrcweir 		@seealso	-
528cdf0e10cSrcweir 
529cdf0e10cSrcweir 		@param		-
530cdf0e10cSrcweir 
531cdf0e10cSrcweir 		@return		-
532cdf0e10cSrcweir 
533cdf0e10cSrcweir 		@onerror	-
534cdf0e10cSrcweir 	*/
535cdf0e10cSrcweir 
536cdf0e10cSrcweir 	virtual REFERENCE< XDOCUMENTINFO > SAL_CALL getDocumentInfo() throw (::com::sun::star::uno::RuntimeException);
537cdf0e10cSrcweir 
538cdf0e10cSrcweir     // XDocumentPropertiesSupplier
539cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties >
540cdf0e10cSrcweir         SAL_CALL getDocumentProperties()
541cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
542cdf0e10cSrcweir 
543cdf0e10cSrcweir 	//____________________________________________________________________________________________________
544cdf0e10cSrcweir 	//	XEventListener
545cdf0e10cSrcweir 	//____________________________________________________________________________________________________
546cdf0e10cSrcweir 
547cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
548cdf0e10cSrcweir 		@short		-
549cdf0e10cSrcweir 		@descr		-
550cdf0e10cSrcweir 
551cdf0e10cSrcweir 		@seealso	-
552cdf0e10cSrcweir 
553cdf0e10cSrcweir 		@param		-
554cdf0e10cSrcweir 
555cdf0e10cSrcweir 		@return		-
556cdf0e10cSrcweir 
557cdf0e10cSrcweir 		@onerror	-
558cdf0e10cSrcweir 	*/
559cdf0e10cSrcweir 
560cdf0e10cSrcweir 	virtual void SAL_CALL disposing( const EVENTOBJECT& aEvent ) throw (::com::sun::star::uno::RuntimeException);
561cdf0e10cSrcweir 
562cdf0e10cSrcweir 	//____________________________________________________________________________________________________
563cdf0e10cSrcweir 	//	XModel
564cdf0e10cSrcweir 	//____________________________________________________________________________________________________
565cdf0e10cSrcweir 
566cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
567cdf0e10cSrcweir 		@short		-
568cdf0e10cSrcweir 		@descr		-
569cdf0e10cSrcweir 
570cdf0e10cSrcweir 		@seealso	-
571cdf0e10cSrcweir 
572cdf0e10cSrcweir 		@param		-
573cdf0e10cSrcweir 
574cdf0e10cSrcweir 		@return		-
575cdf0e10cSrcweir 
576cdf0e10cSrcweir 		@onerror	-
577cdf0e10cSrcweir 	*/
578cdf0e10cSrcweir 
579cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL attachResource(	const	OUSTRING&					sURL	,
580cdf0e10cSrcweir 												const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	aArgs	)
581cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
582cdf0e10cSrcweir 
583cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
584cdf0e10cSrcweir 		@short		-
585cdf0e10cSrcweir 		@descr		-
586cdf0e10cSrcweir 
587cdf0e10cSrcweir 		@seealso	-
588cdf0e10cSrcweir 
589cdf0e10cSrcweir 		@param		-
590cdf0e10cSrcweir 
591cdf0e10cSrcweir 		@return		-
592cdf0e10cSrcweir 
593cdf0e10cSrcweir 		@onerror	-
594cdf0e10cSrcweir 	*/
595cdf0e10cSrcweir 
596cdf0e10cSrcweir 	virtual OUSTRING SAL_CALL getURL() throw (::com::sun::star::uno::RuntimeException);
597cdf0e10cSrcweir 
598cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
599cdf0e10cSrcweir 		@short		-
600cdf0e10cSrcweir 		@descr		-
601cdf0e10cSrcweir 
602cdf0e10cSrcweir 		@seealso	-
603cdf0e10cSrcweir 
604cdf0e10cSrcweir 		@param		-
605cdf0e10cSrcweir 
606cdf0e10cSrcweir 		@return		-
607cdf0e10cSrcweir 
608cdf0e10cSrcweir 		@onerror	-
609cdf0e10cSrcweir 	*/
610cdf0e10cSrcweir 
611cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< PROPERTYVALUE > SAL_CALL getArgs() throw (::com::sun::star::uno::RuntimeException);
612cdf0e10cSrcweir 
613cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
614cdf0e10cSrcweir 		@short		-
615cdf0e10cSrcweir 		@descr		-
616cdf0e10cSrcweir 
617cdf0e10cSrcweir 		@seealso	-
618cdf0e10cSrcweir 
619cdf0e10cSrcweir 		@param		-
620cdf0e10cSrcweir 
621cdf0e10cSrcweir 		@return		-
622cdf0e10cSrcweir 
623cdf0e10cSrcweir 		@onerror	-
624cdf0e10cSrcweir 	*/
625cdf0e10cSrcweir 
626cdf0e10cSrcweir 	virtual void SAL_CALL connectController( const REFERENCE< XCONTROLLER >& xController ) throw (::com::sun::star::uno::RuntimeException);
627cdf0e10cSrcweir 
628cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
629cdf0e10cSrcweir 		@short		-
630cdf0e10cSrcweir 		@descr		-
631cdf0e10cSrcweir 
632cdf0e10cSrcweir 		@seealso	-
633cdf0e10cSrcweir 
634cdf0e10cSrcweir 		@param		-
635cdf0e10cSrcweir 
636cdf0e10cSrcweir 		@return		-
637cdf0e10cSrcweir 
638cdf0e10cSrcweir 		@onerror	-
639cdf0e10cSrcweir 	*/
640cdf0e10cSrcweir 
641cdf0e10cSrcweir 	virtual void SAL_CALL disconnectController( const REFERENCE< XCONTROLLER >& xController ) throw (::com::sun::star::uno::RuntimeException);
642cdf0e10cSrcweir 
643cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
644cdf0e10cSrcweir 		@short		-
645cdf0e10cSrcweir 		@descr		-
646cdf0e10cSrcweir 
647cdf0e10cSrcweir 		@seealso	-
648cdf0e10cSrcweir 
649cdf0e10cSrcweir 		@param		-
650cdf0e10cSrcweir 
651cdf0e10cSrcweir 		@return		-
652cdf0e10cSrcweir 
653cdf0e10cSrcweir 		@onerror	-
654cdf0e10cSrcweir 	*/
655cdf0e10cSrcweir 
656cdf0e10cSrcweir 	virtual void SAL_CALL lockControllers() throw (::com::sun::star::uno::RuntimeException);
657cdf0e10cSrcweir 
658cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
659cdf0e10cSrcweir 		@short		-
660cdf0e10cSrcweir 		@descr		-
661cdf0e10cSrcweir 
662cdf0e10cSrcweir 		@seealso	-
663cdf0e10cSrcweir 
664cdf0e10cSrcweir 		@param		-
665cdf0e10cSrcweir 
666cdf0e10cSrcweir 		@return		-
667cdf0e10cSrcweir 
668cdf0e10cSrcweir 		@onerror	-
669cdf0e10cSrcweir 	*/
670cdf0e10cSrcweir 
671cdf0e10cSrcweir 	virtual void SAL_CALL unlockControllers() throw (::com::sun::star::uno::RuntimeException);
672cdf0e10cSrcweir 
673cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
674cdf0e10cSrcweir 		@short		-
675cdf0e10cSrcweir 		@descr		-
676cdf0e10cSrcweir 
677cdf0e10cSrcweir 		@seealso	-
678cdf0e10cSrcweir 
679cdf0e10cSrcweir 		@param		-
680cdf0e10cSrcweir 
681cdf0e10cSrcweir 		@return		-
682cdf0e10cSrcweir 
683cdf0e10cSrcweir 		@onerror	-
684cdf0e10cSrcweir 	*/
685cdf0e10cSrcweir 
686cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasControllersLocked() throw (::com::sun::star::uno::RuntimeException);
687cdf0e10cSrcweir 
688cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
689cdf0e10cSrcweir 		@short		-
690cdf0e10cSrcweir 		@descr		-
691cdf0e10cSrcweir 
692cdf0e10cSrcweir 		@seealso	-
693cdf0e10cSrcweir 
694cdf0e10cSrcweir 		@param		-
695cdf0e10cSrcweir 
696cdf0e10cSrcweir 		@return		-
697cdf0e10cSrcweir 
698cdf0e10cSrcweir 		@onerror	-
699cdf0e10cSrcweir 	*/
700cdf0e10cSrcweir 
701cdf0e10cSrcweir 	virtual REFERENCE< XCONTROLLER > SAL_CALL getCurrentController() throw (::com::sun::star::uno::RuntimeException);
702cdf0e10cSrcweir 
703cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
704cdf0e10cSrcweir 		@short		-
705cdf0e10cSrcweir 		@descr		-
706cdf0e10cSrcweir 
707cdf0e10cSrcweir 		@seealso	-
708cdf0e10cSrcweir 
709cdf0e10cSrcweir 		@param		-
710cdf0e10cSrcweir 
711cdf0e10cSrcweir 		@return		-
712cdf0e10cSrcweir 
713cdf0e10cSrcweir 		@onerror	-
714cdf0e10cSrcweir 	*/
715cdf0e10cSrcweir 
716cdf0e10cSrcweir 	virtual void SAL_CALL setCurrentController( const REFERENCE< XCONTROLLER >& xController )
717cdf0e10cSrcweir         throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
718cdf0e10cSrcweir 
719cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
720cdf0e10cSrcweir 		@short		-
721cdf0e10cSrcweir 		@descr		-
722cdf0e10cSrcweir 
723cdf0e10cSrcweir 		@seealso	-
724cdf0e10cSrcweir 
725cdf0e10cSrcweir 		@param		-
726cdf0e10cSrcweir 
727cdf0e10cSrcweir 		@return		-
728cdf0e10cSrcweir 
729cdf0e10cSrcweir 		@onerror	-
730cdf0e10cSrcweir 	*/
731cdf0e10cSrcweir 
732cdf0e10cSrcweir 	virtual REFERENCE< XINTERFACE > SAL_CALL getCurrentSelection() throw (::com::sun::star::uno::RuntimeException);
733cdf0e10cSrcweir 
734cdf0e10cSrcweir 	//____________________________________________________________________________________________________
735cdf0e10cSrcweir 	//	XModel2
736cdf0e10cSrcweir 	//____________________________________________________________________________________________________
737cdf0e10cSrcweir     virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL getControllers()
738cdf0e10cSrcweir         throw (css::uno::RuntimeException);
739cdf0e10cSrcweir 
740cdf0e10cSrcweir     virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getAvailableViewControllerNames()
741cdf0e10cSrcweir         throw (css::uno::RuntimeException);
742cdf0e10cSrcweir 
743cdf0e10cSrcweir     virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createDefaultViewController(const css::uno::Reference< css::frame::XFrame >& Frame )
744cdf0e10cSrcweir         throw (css::uno::RuntimeException         ,
745cdf0e10cSrcweir                css::lang::IllegalArgumentException,
746cdf0e10cSrcweir                css::uno::Exception                );
747cdf0e10cSrcweir 
748cdf0e10cSrcweir     virtual css::uno::Reference< css::frame::XController2 > SAL_CALL createViewController(const ::rtl::OUString&                                 ViewName       ,
749cdf0e10cSrcweir                                                                                           const css::uno::Sequence< css::beans::PropertyValue >& Arguments      ,
750cdf0e10cSrcweir                                                                                           const css::uno::Reference< css::frame::XFrame >&       Frame          )
751cdf0e10cSrcweir         throw (css::uno::RuntimeException         ,
752cdf0e10cSrcweir                css::lang::IllegalArgumentException,
753cdf0e10cSrcweir                css::uno::Exception                );
754cdf0e10cSrcweir 
755cdf0e10cSrcweir 	//____________________________________________________________________________________________________
756cdf0e10cSrcweir 	//	XModifiable2
757cdf0e10cSrcweir 	//____________________________________________________________________________________________________
758cdf0e10cSrcweir 
759cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL disableSetModified(  ) throw (::com::sun::star::uno::RuntimeException);
760cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL enableSetModified(  ) throw (::com::sun::star::uno::RuntimeException);
761cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL isSetModifiedEnabled(  ) throw (::com::sun::star::uno::RuntimeException);
762cdf0e10cSrcweir 
763cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
764cdf0e10cSrcweir 		@short		-
765cdf0e10cSrcweir 		@descr		-
766cdf0e10cSrcweir 
767cdf0e10cSrcweir 		@seealso	-
768cdf0e10cSrcweir 
769cdf0e10cSrcweir 		@param		-
770cdf0e10cSrcweir 
771cdf0e10cSrcweir 		@return		-
772cdf0e10cSrcweir 
773cdf0e10cSrcweir 		@onerror	-
774cdf0e10cSrcweir 	*/
775cdf0e10cSrcweir 
776cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isModified() throw (::com::sun::star::uno::RuntimeException);
777cdf0e10cSrcweir 
778cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
779cdf0e10cSrcweir 		@short		-
780cdf0e10cSrcweir 		@descr		-
781cdf0e10cSrcweir 
782cdf0e10cSrcweir 		@seealso	-
783cdf0e10cSrcweir 
784cdf0e10cSrcweir 		@param		-
785cdf0e10cSrcweir 
786cdf0e10cSrcweir 		@return		-
787cdf0e10cSrcweir 
788cdf0e10cSrcweir 		@onerror	-
789cdf0e10cSrcweir 	*/
790cdf0e10cSrcweir 
791cdf0e10cSrcweir 	virtual void SAL_CALL setModified( sal_Bool bModified )
792cdf0e10cSrcweir         throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException);
793cdf0e10cSrcweir 
794cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
795cdf0e10cSrcweir 		@short		-
796cdf0e10cSrcweir 		@descr		-
797cdf0e10cSrcweir 
798cdf0e10cSrcweir 		@seealso	-
799cdf0e10cSrcweir 
800cdf0e10cSrcweir 		@param		-
801cdf0e10cSrcweir 
802cdf0e10cSrcweir 		@return		-
803cdf0e10cSrcweir 
804cdf0e10cSrcweir 		@onerror	-
805cdf0e10cSrcweir 	*/
806cdf0e10cSrcweir 
807cdf0e10cSrcweir     virtual void SAL_CALL addModifyListener( const REFERENCE< XMODIFYLISTENER >& xListener ) throw( RUNTIMEEXCEPTION ) ;
808cdf0e10cSrcweir 
809cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
810cdf0e10cSrcweir 		@short		-
811cdf0e10cSrcweir 		@descr		-
812cdf0e10cSrcweir 
813cdf0e10cSrcweir 		@seealso	-
814cdf0e10cSrcweir 
815cdf0e10cSrcweir 		@param		-
816cdf0e10cSrcweir 
817cdf0e10cSrcweir 		@return		-
818cdf0e10cSrcweir 
819cdf0e10cSrcweir 		@onerror	-
820cdf0e10cSrcweir 	*/
821cdf0e10cSrcweir 
822cdf0e10cSrcweir     virtual void SAL_CALL removeModifyListener(const REFERENCE< XMODIFYLISTENER > & xListener) throw( RUNTIMEEXCEPTION ) ;
823cdf0e10cSrcweir 
824cdf0e10cSrcweir 	//____________________________________________________________________________________________________
825cdf0e10cSrcweir     //  XCloseable
826cdf0e10cSrcweir 	//____________________________________________________________________________________________________
827cdf0e10cSrcweir 
828cdf0e10cSrcweir     virtual void SAL_CALL close( sal_Bool bDeliverOwnership ) throw (CLOSEVETOEXCEPTION, RUNTIMEEXCEPTION);
829cdf0e10cSrcweir 
830cdf0e10cSrcweir 	//____________________________________________________________________________________________________
831cdf0e10cSrcweir     //  XCloseBroadcaster
832cdf0e10cSrcweir 	//____________________________________________________________________________________________________
833cdf0e10cSrcweir 
834cdf0e10cSrcweir     virtual void SAL_CALL addCloseListener( const REFERENCE< XCLOSELISTENER >& xListener ) throw (RUNTIMEEXCEPTION);
835cdf0e10cSrcweir     virtual void SAL_CALL removeCloseListener( const REFERENCE< XCLOSELISTENER >& xListener ) throw (RUNTIMEEXCEPTION);
836cdf0e10cSrcweir 
837cdf0e10cSrcweir 	//____________________________________________________________________________________________________
838cdf0e10cSrcweir 	//	XPrintJobBroadcaster
839cdf0e10cSrcweir 	//____________________________________________________________________________________________________
840cdf0e10cSrcweir 
841cdf0e10cSrcweir     virtual void SAL_CALL addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
842cdf0e10cSrcweir     virtual void SAL_CALL removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
843cdf0e10cSrcweir 
844cdf0e10cSrcweir 	//____________________________________________________________________________________________________
845cdf0e10cSrcweir 	//	XPrintable
846cdf0e10cSrcweir 	//____________________________________________________________________________________________________
847cdf0e10cSrcweir 
848cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
849cdf0e10cSrcweir 		@short		-
850cdf0e10cSrcweir 		@descr		-
851cdf0e10cSrcweir 
852cdf0e10cSrcweir 		@seealso	-
853cdf0e10cSrcweir 
854cdf0e10cSrcweir 		@param		-
855cdf0e10cSrcweir 
856cdf0e10cSrcweir 		@return		-
857cdf0e10cSrcweir 
858cdf0e10cSrcweir 		@onerror	-
859cdf0e10cSrcweir 	*/
860cdf0e10cSrcweir 
861cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< PROPERTYVALUE > SAL_CALL getPrinter() throw (::com::sun::star::uno::RuntimeException);
862cdf0e10cSrcweir 
863cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
864cdf0e10cSrcweir 		@short		-
865cdf0e10cSrcweir 		@descr		-
866cdf0e10cSrcweir 
867cdf0e10cSrcweir 		@seealso	-
868cdf0e10cSrcweir 
869cdf0e10cSrcweir 		@param		-
870cdf0e10cSrcweir 
871cdf0e10cSrcweir 		@return		-
872cdf0e10cSrcweir 
873cdf0e10cSrcweir 		@onerror	-
874cdf0e10cSrcweir 	*/
875cdf0e10cSrcweir 
876cdf0e10cSrcweir 	virtual void SAL_CALL setPrinter( const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqPrinter )
877cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
878cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
879cdf0e10cSrcweir 		@short		-
880cdf0e10cSrcweir 		@descr		-
881cdf0e10cSrcweir 
882cdf0e10cSrcweir 		@seealso	-
883cdf0e10cSrcweir 
884cdf0e10cSrcweir 		@param		-
885cdf0e10cSrcweir 
886cdf0e10cSrcweir 		@return		-
887cdf0e10cSrcweir 
888cdf0e10cSrcweir 		@onerror	-
889cdf0e10cSrcweir 	*/
890cdf0e10cSrcweir 
891cdf0e10cSrcweir 	virtual void SAL_CALL print( const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& seqOptions )
892cdf0e10cSrcweir         throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
893cdf0e10cSrcweir 
894cdf0e10cSrcweir 	//____________________________________________________________________________________________________
895cdf0e10cSrcweir 	//	XStorable2
896cdf0e10cSrcweir 	//____________________________________________________________________________________________________
897cdf0e10cSrcweir 
898cdf0e10cSrcweir 	virtual void SAL_CALL storeSelf( const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	seqArguments	)
899cdf0e10cSrcweir 		throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
900cdf0e10cSrcweir 
901cdf0e10cSrcweir 	//____________________________________________________________________________________________________
902cdf0e10cSrcweir 	//	XStorable
903cdf0e10cSrcweir 	//____________________________________________________________________________________________________
904cdf0e10cSrcweir 
905cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
906cdf0e10cSrcweir 		@short		-
907cdf0e10cSrcweir 		@descr		-
908cdf0e10cSrcweir 
909cdf0e10cSrcweir 		@seealso	-
910cdf0e10cSrcweir 
911cdf0e10cSrcweir 		@param		-
912cdf0e10cSrcweir 
913cdf0e10cSrcweir 		@return		-
914cdf0e10cSrcweir 
915cdf0e10cSrcweir 		@onerror	-
916cdf0e10cSrcweir 	*/
917cdf0e10cSrcweir 
918cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasLocation() throw (::com::sun::star::uno::RuntimeException);
919cdf0e10cSrcweir 
920cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
921cdf0e10cSrcweir 		@short		-
922cdf0e10cSrcweir 		@descr		-
923cdf0e10cSrcweir 
924cdf0e10cSrcweir 		@seealso	-
925cdf0e10cSrcweir 
926cdf0e10cSrcweir 		@param		-
927cdf0e10cSrcweir 
928cdf0e10cSrcweir 		@return		-
929cdf0e10cSrcweir 
930cdf0e10cSrcweir 		@onerror	-
931cdf0e10cSrcweir 	*/
932cdf0e10cSrcweir 
933cdf0e10cSrcweir 	virtual OUSTRING SAL_CALL getLocation() throw (::com::sun::star::uno::RuntimeException);
934cdf0e10cSrcweir 
935cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
936cdf0e10cSrcweir 		@short		-
937cdf0e10cSrcweir 		@descr		-
938cdf0e10cSrcweir 
939cdf0e10cSrcweir 		@seealso	-
940cdf0e10cSrcweir 
941cdf0e10cSrcweir 		@param		-
942cdf0e10cSrcweir 
943cdf0e10cSrcweir 		@return		-
944cdf0e10cSrcweir 
945cdf0e10cSrcweir 		@onerror	-
946cdf0e10cSrcweir 	*/
947cdf0e10cSrcweir 
948cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isReadonly() throw (::com::sun::star::uno::RuntimeException);
949cdf0e10cSrcweir 
950cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
951cdf0e10cSrcweir 		@short		-
952cdf0e10cSrcweir 		@descr		-
953cdf0e10cSrcweir 
954cdf0e10cSrcweir 		@seealso	-
955cdf0e10cSrcweir 
956cdf0e10cSrcweir 		@param		-
957cdf0e10cSrcweir 
958cdf0e10cSrcweir 		@return		-
959cdf0e10cSrcweir 
960cdf0e10cSrcweir 		@onerror	-
961cdf0e10cSrcweir 	*/
962cdf0e10cSrcweir 
963cdf0e10cSrcweir 	virtual void SAL_CALL store() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
964cdf0e10cSrcweir 
965cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
966cdf0e10cSrcweir 		@short		-
967cdf0e10cSrcweir 		@descr		-
968cdf0e10cSrcweir 
969cdf0e10cSrcweir 		@seealso	-
970cdf0e10cSrcweir 
971cdf0e10cSrcweir 		@param		-
972cdf0e10cSrcweir 
973cdf0e10cSrcweir 		@return		-
974cdf0e10cSrcweir 
975cdf0e10cSrcweir 		@onerror	-
976cdf0e10cSrcweir 	*/
977cdf0e10cSrcweir 
978cdf0e10cSrcweir 	virtual void SAL_CALL storeAsURL(	const	OUSTRING&					sURL			,
979cdf0e10cSrcweir 										const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	seqArguments	)
980cdf0e10cSrcweir         throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) ;
981cdf0e10cSrcweir 
982cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
983cdf0e10cSrcweir 		@short		-
984cdf0e10cSrcweir 		@descr		-
985cdf0e10cSrcweir 
986cdf0e10cSrcweir 		@seealso	-
987cdf0e10cSrcweir 
988cdf0e10cSrcweir 		@param		-
989cdf0e10cSrcweir 
990cdf0e10cSrcweir 		@return		-
991cdf0e10cSrcweir 
992cdf0e10cSrcweir 		@onerror	-
993cdf0e10cSrcweir 	*/
994cdf0e10cSrcweir 
995cdf0e10cSrcweir 	virtual void SAL_CALL storeToURL(	const	OUSTRING&					sURL			,
996cdf0e10cSrcweir 										const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	seqArguments	)
997cdf0e10cSrcweir         throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
998cdf0e10cSrcweir 
999cdf0e10cSrcweir 
1000cdf0e10cSrcweir 
1001cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1002cdf0e10cSrcweir 	//	XLoadable
1003cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1004cdf0e10cSrcweir 
1005cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1006cdf0e10cSrcweir 		@short		-
1007cdf0e10cSrcweir 		@descr		-
1008cdf0e10cSrcweir 
1009cdf0e10cSrcweir 		@seealso	-
1010cdf0e10cSrcweir 
1011cdf0e10cSrcweir 		@param		-
1012cdf0e10cSrcweir 
1013cdf0e10cSrcweir 		@return		-
1014cdf0e10cSrcweir 
1015cdf0e10cSrcweir 		@onerror	-
1016cdf0e10cSrcweir 	*/
1017cdf0e10cSrcweir 
1018cdf0e10cSrcweir 	virtual void SAL_CALL initNew()
1019cdf0e10cSrcweir 		throw (::com::sun::star::frame::DoubleInitializationException,
1020cdf0e10cSrcweir 			   ::com::sun::star::io::IOException,
1021cdf0e10cSrcweir 			   ::com::sun::star::uno::RuntimeException,
1022cdf0e10cSrcweir 			   ::com::sun::star::uno::Exception);
1023cdf0e10cSrcweir 
1024cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1025cdf0e10cSrcweir 		@short		-
1026cdf0e10cSrcweir 		@descr		-
1027cdf0e10cSrcweir 
1028cdf0e10cSrcweir 		@seealso	-
1029cdf0e10cSrcweir 
1030cdf0e10cSrcweir 		@param		-
1031cdf0e10cSrcweir 
1032cdf0e10cSrcweir 		@return		-
1033cdf0e10cSrcweir 
1034cdf0e10cSrcweir 		@onerror	-
1035cdf0e10cSrcweir 	*/
1036cdf0e10cSrcweir 
1037cdf0e10cSrcweir 	virtual void SAL_CALL load(	const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	seqArguments )
1038cdf0e10cSrcweir 		throw (::com::sun::star::frame::DoubleInitializationException,
1039cdf0e10cSrcweir 			   ::com::sun::star::io::IOException,
1040cdf0e10cSrcweir 			   ::com::sun::star::uno::RuntimeException,
1041cdf0e10cSrcweir 			   ::com::sun::star::uno::Exception);
1042cdf0e10cSrcweir 
1043cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1044cdf0e10cSrcweir 	//	XDocumentSubStorageSupplier
1045cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1046cdf0e10cSrcweir 
1047cdf0e10cSrcweir     virtual REFERENCE< XSTORAGE > SAL_CALL getDocumentSubStorage( const ::rtl::OUString& aStorageName, sal_Int32 nMode )
1048cdf0e10cSrcweir 		throw ( RUNTIMEEXCEPTION );
1049cdf0e10cSrcweir 
1050cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getDocumentSubStoragesNames()
1051cdf0e10cSrcweir 		throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException );
1052cdf0e10cSrcweir 
1053cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1054cdf0e10cSrcweir 	//	XStorageBasedDocument
1055cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1056cdf0e10cSrcweir 
1057cdf0e10cSrcweir     virtual void SAL_CALL loadFromStorage( const REFERENCE< XSTORAGE >& xStorage,
1058cdf0e10cSrcweir 											const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& aMediaDescriptor )
1059cdf0e10cSrcweir 		throw ( ILLEGALARGUMENTEXCEPTION,
1060cdf0e10cSrcweir 				DOUBLEINITIALIZATIONEXCEPTION,
1061cdf0e10cSrcweir 				IOEXCEPTION,
1062cdf0e10cSrcweir 				EXCEPTION,
1063cdf0e10cSrcweir 				RUNTIMEEXCEPTION );
1064cdf0e10cSrcweir 
1065cdf0e10cSrcweir     virtual void SAL_CALL storeToStorage( const REFERENCE< XSTORAGE >& xStorage,
1066cdf0e10cSrcweir 											const ::com::sun::star::uno::Sequence< PROPERTYVALUE >& aMediaDescriptor )
1067cdf0e10cSrcweir 		throw ( ILLEGALARGUMENTEXCEPTION,
1068cdf0e10cSrcweir 				IOEXCEPTION,
1069cdf0e10cSrcweir 				EXCEPTION,
1070cdf0e10cSrcweir 				RUNTIMEEXCEPTION );
1071cdf0e10cSrcweir 
1072cdf0e10cSrcweir     virtual void SAL_CALL switchToStorage( const REFERENCE< XSTORAGE >& xStorage )
1073cdf0e10cSrcweir 		throw ( ILLEGALARGUMENTEXCEPTION,
1074cdf0e10cSrcweir 				IOEXCEPTION,
1075cdf0e10cSrcweir 				EXCEPTION,
1076cdf0e10cSrcweir 				RUNTIMEEXCEPTION );
1077cdf0e10cSrcweir 
1078cdf0e10cSrcweir     virtual REFERENCE< XSTORAGE > SAL_CALL getDocumentStorage()
1079cdf0e10cSrcweir 		throw ( IOEXCEPTION,
1080cdf0e10cSrcweir 				EXCEPTION,
1081cdf0e10cSrcweir 				RUNTIMEEXCEPTION );
1082cdf0e10cSrcweir 
1083cdf0e10cSrcweir     virtual void SAL_CALL addStorageChangeListener(
1084cdf0e10cSrcweir 			const REFERENCE< ::com::sun::star::document::XStorageChangeListener >& xListener )
1085cdf0e10cSrcweir 		throw ( RUNTIMEEXCEPTION );
1086cdf0e10cSrcweir 
1087cdf0e10cSrcweir     virtual void SAL_CALL removeStorageChangeListener(
1088cdf0e10cSrcweir 			const REFERENCE< ::com::sun::star::document::XStorageChangeListener >& xListener )
1089cdf0e10cSrcweir 		throw ( RUNTIMEEXCEPTION );
1090cdf0e10cSrcweir 
1091cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1092cdf0e10cSrcweir 	//	XVisualObject
1093cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1094cdf0e10cSrcweir 
1095cdf0e10cSrcweir     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
1096cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
1097cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
1098cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
1099cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
1100cdf0e10cSrcweir 
1101cdf0e10cSrcweir     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
1102cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
1103cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
1104cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
1105cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
1106cdf0e10cSrcweir 
1107cdf0e10cSrcweir     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
1108cdf0e10cSrcweir 		throw ( ::com::sun::star::lang::IllegalArgumentException,
1109cdf0e10cSrcweir 				::com::sun::star::embed::WrongStateException,
1110cdf0e10cSrcweir 				::com::sun::star::uno::Exception,
1111cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
1112cdf0e10cSrcweir 
1113cdf0e10cSrcweir     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
1114cdf0e10cSrcweir 		throw ( ::com::sun::star::uno::Exception,
1115cdf0e10cSrcweir 				::com::sun::star::uno::RuntimeException );
1116cdf0e10cSrcweir 
1117cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1118cdf0e10cSrcweir 	//	XScriptProviderSupplier
1119cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1120cdf0e10cSrcweir 
1121cdf0e10cSrcweir 	virtual REFERENCE< XSCRIPTPROVIDER > SAL_CALL getScriptProvider() throw ( RUNTIMEEXCEPTION );
1122cdf0e10cSrcweir 
1123cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1124cdf0e10cSrcweir 	//	XUIConfigurationManagerSupplier
1125cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1126cdf0e10cSrcweir     virtual REFERENCE< XUICONFIGURATIONMANAGER > SAL_CALL getUIConfigurationManager() throw ( RUNTIMEEXCEPTION );
1127cdf0e10cSrcweir 
1128cdf0e10cSrcweir     //____________________________________________________________________________________________________
1129cdf0e10cSrcweir 	//	XTransferable
1130cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1131cdf0e10cSrcweir 
1132cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1133cdf0e10cSrcweir 		@short		-
1134cdf0e10cSrcweir 		@descr		-
1135cdf0e10cSrcweir 
1136cdf0e10cSrcweir 		@seealso	-
1137cdf0e10cSrcweir 
1138cdf0e10cSrcweir 		@param		-
1139cdf0e10cSrcweir 
1140cdf0e10cSrcweir 		@return		-
1141cdf0e10cSrcweir 
1142cdf0e10cSrcweir 		@onerror	-
1143cdf0e10cSrcweir 	*/
1144cdf0e10cSrcweir 
1145cdf0e10cSrcweir     virtual ANY SAL_CALL getTransferData( const DATAFLAVOR& aFlavor )
1146cdf0e10cSrcweir 		throw (::com::sun::star::datatransfer::UnsupportedFlavorException,
1147cdf0e10cSrcweir 			   ::com::sun::star::io::IOException,
1148cdf0e10cSrcweir 			   ::com::sun::star::uno::RuntimeException);
1149cdf0e10cSrcweir 
1150cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1151cdf0e10cSrcweir 		@short		-
1152cdf0e10cSrcweir 		@descr		-
1153cdf0e10cSrcweir 
1154cdf0e10cSrcweir 		@seealso	-
1155cdf0e10cSrcweir 
1156cdf0e10cSrcweir 		@param		-
1157cdf0e10cSrcweir 
1158cdf0e10cSrcweir 		@return		-
1159cdf0e10cSrcweir 
1160cdf0e10cSrcweir 		@onerror	-
1161cdf0e10cSrcweir 	*/
1162cdf0e10cSrcweir 
1163cdf0e10cSrcweir 
1164cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< DATAFLAVOR > SAL_CALL getTransferDataFlavors()
1165cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
1166cdf0e10cSrcweir 
1167cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1168cdf0e10cSrcweir 		@short		-
1169cdf0e10cSrcweir 		@descr		-
1170cdf0e10cSrcweir 
1171cdf0e10cSrcweir 		@seealso	-
1172cdf0e10cSrcweir 
1173cdf0e10cSrcweir 		@param		-
1174cdf0e10cSrcweir 
1175cdf0e10cSrcweir 		@return		-
1176cdf0e10cSrcweir 
1177cdf0e10cSrcweir 		@onerror	-
1178cdf0e10cSrcweir 	*/
1179cdf0e10cSrcweir 
1180cdf0e10cSrcweir     virtual sal_Bool SAL_CALL isDataFlavorSupported( const DATAFLAVOR& aFlavor )
1181cdf0e10cSrcweir 		throw (::com::sun::star::uno::RuntimeException);
1182cdf0e10cSrcweir 
1183cdf0e10cSrcweir 
1184cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1185cdf0e10cSrcweir 	//	XEventsSupplier
1186cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1187cdf0e10cSrcweir 
1188cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1189cdf0e10cSrcweir 		@short		-
1190cdf0e10cSrcweir 		@descr		-	offers a list of event handlers which are be bound to events of
1191cdf0e10cSrcweir 						this object.
1192cdf0e10cSrcweir 		@seealso	-
1193cdf0e10cSrcweir 
1194cdf0e10cSrcweir 		@param		-
1195cdf0e10cSrcweir 
1196cdf0e10cSrcweir 		@return		-	an <type>Events</type> object.
1197cdf0e10cSrcweir 
1198cdf0e10cSrcweir 		@onerror	-
1199cdf0e10cSrcweir 	*/
1200cdf0e10cSrcweir 
1201cdf0e10cSrcweir     virtual REFERENCE< XNAMEREPLACE > SAL_CALL getEvents() throw( RUNTIMEEXCEPTION );
1202cdf0e10cSrcweir 
1203cdf0e10cSrcweir 
1204cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1205cdf0e10cSrcweir 	//	XEmbeddedScripts
1206cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1207cdf0e10cSrcweir 
1208cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::script::XStorageBasedLibraryContainer > SAL_CALL getBasicLibraries() throw (::com::sun::star::uno::RuntimeException);
1209cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::script::XStorageBasedLibraryContainer > SAL_CALL getDialogLibraries() throw (::com::sun::star::uno::RuntimeException);
1210cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL getAllowMacroExecution() throw (::com::sun::star::uno::RuntimeException);
1211cdf0e10cSrcweir 
1212cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1213cdf0e10cSrcweir 	//	XScriptInvocationContext
1214cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1215cdf0e10cSrcweir 
1216cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XEmbeddedScripts > SAL_CALL getScriptContainer() throw (::com::sun::star::uno::RuntimeException);
1217cdf0e10cSrcweir 
1218cdf0e10cSrcweir     //____________________________________________________________________________________________________
1219cdf0e10cSrcweir 	//	XEventBroadcaster
1220cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1221cdf0e10cSrcweir 
1222cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1223cdf0e10cSrcweir 		@short		-
1224cdf0e10cSrcweir 		@descr		-	registers the given <type>XEventListener</type>.
1225cdf0e10cSrcweir 
1226cdf0e10cSrcweir 		@seealso	-
1227cdf0e10cSrcweir 
1228cdf0e10cSrcweir 		@param		-
1229cdf0e10cSrcweir 
1230cdf0e10cSrcweir 		@return		-
1231cdf0e10cSrcweir 
1232cdf0e10cSrcweir 		@onerror	-
1233cdf0e10cSrcweir 	*/
1234cdf0e10cSrcweir 
1235cdf0e10cSrcweir     virtual void SAL_CALL addEventListener( const REFERENCE< XDOCEVENTLISTENER >& xListener ) throw( RUNTIMEEXCEPTION );
1236cdf0e10cSrcweir 
1237cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1238cdf0e10cSrcweir 		@short		-
1239cdf0e10cSrcweir 		@descr		-	unregisters the given <type>XEventListener</type>.
1240cdf0e10cSrcweir 
1241cdf0e10cSrcweir 		@seealso	-
1242cdf0e10cSrcweir 
1243cdf0e10cSrcweir 		@param		-
1244cdf0e10cSrcweir 
1245cdf0e10cSrcweir 		@return		-
1246cdf0e10cSrcweir 
1247cdf0e10cSrcweir 		@onerror	-
1248cdf0e10cSrcweir 	*/
1249cdf0e10cSrcweir 
1250cdf0e10cSrcweir     virtual void SAL_CALL removeEventListener( const REFERENCE< XDOCEVENTLISTENER >& xListener ) throw( RUNTIMEEXCEPTION );
1251cdf0e10cSrcweir 
1252cdf0e10cSrcweir     //____________________________________________________________________________________________________
1253cdf0e10cSrcweir     //	XDocumentEventBroadcaster
1254cdf0e10cSrcweir     //____________________________________________________________________________________________________
1255cdf0e10cSrcweir 
1256cdf0e10cSrcweir     virtual void SAL_CALL addDocumentEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentEventListener >& _Listener ) throw (::com::sun::star::uno::RuntimeException);
1257cdf0e10cSrcweir     virtual void SAL_CALL removeDocumentEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentEventListener >& _Listener ) throw (::com::sun::star::uno::RuntimeException);
1258cdf0e10cSrcweir     virtual void SAL_CALL notifyDocumentEvent( const ::rtl::OUString& _EventName, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController2 >& _ViewController, const ::com::sun::star::uno::Any& _Supplement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException);
1259cdf0e10cSrcweir 
1260cdf0e10cSrcweir     //____________________________________________________________________________________________________
1261cdf0e10cSrcweir 	//	XUnoTunnel
1262cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1263cdf0e10cSrcweir 
1264cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
1265cdf0e10cSrcweir 
1266cdf0e10cSrcweir     // css.frame.XModule
1267cdf0e10cSrcweir     virtual void SAL_CALL setIdentifier(const ::rtl::OUString& sIdentifier)
1268cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1269cdf0e10cSrcweir 
1270cdf0e10cSrcweir     // css.frame.XModule
1271cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getIdentifier()
1272cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1273cdf0e10cSrcweir 
1274cdf0e10cSrcweir     // css.frame.XTitle
1275cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getTitle()
1276cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1277cdf0e10cSrcweir 
1278cdf0e10cSrcweir     // css.frame.XTitle
1279cdf0e10cSrcweir     virtual void SAL_CALL setTitle( const ::rtl::OUString& sTitle )
1280cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1281cdf0e10cSrcweir 
1282cdf0e10cSrcweir     // css.frame.XTitleChangeBroadcaster
1283cdf0e10cSrcweir     virtual void SAL_CALL addTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener )
1284cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1285cdf0e10cSrcweir 
1286cdf0e10cSrcweir     // css.frame.XTitleChangeBroadcaster
1287cdf0e10cSrcweir     virtual void SAL_CALL removeTitleChangeListener( const css::uno::Reference< css::frame::XTitleChangeListener >& xListener )
1288cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1289cdf0e10cSrcweir 
1290cdf0e10cSrcweir     // css.frame.XUntitledNumbers
1291cdf0e10cSrcweir     virtual ::sal_Int32 SAL_CALL leaseNumber( const css::uno::Reference< css::uno::XInterface >& xComponent )
1292cdf0e10cSrcweir         throw (css::lang::IllegalArgumentException,
1293cdf0e10cSrcweir                css::uno::RuntimeException         );
1294cdf0e10cSrcweir 
1295cdf0e10cSrcweir     // css.frame.XUntitledNumbers
1296cdf0e10cSrcweir     virtual void SAL_CALL releaseNumber( ::sal_Int32 nNumber )
1297cdf0e10cSrcweir         throw (css::lang::IllegalArgumentException,
1298cdf0e10cSrcweir                css::uno::RuntimeException         );
1299cdf0e10cSrcweir 
1300cdf0e10cSrcweir     // css.frame.XUntitledNumbers
1301cdf0e10cSrcweir     virtual void SAL_CALL releaseNumberForComponent( const css::uno::Reference< css::uno::XInterface >& xComponent )
1302cdf0e10cSrcweir         throw (css::lang::IllegalArgumentException,
1303cdf0e10cSrcweir                css::uno::RuntimeException         );
1304cdf0e10cSrcweir 
1305cdf0e10cSrcweir     // css.frame.XUntitledNumbers
1306cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getUntitledPrefix()
1307cdf0e10cSrcweir         throw (css::uno::RuntimeException);
1308cdf0e10cSrcweir 
1309cdf0e10cSrcweir     // css.document.XDocumentRecovery
1310cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL wasModifiedSinceLastSave()
1311cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException );
1312cdf0e10cSrcweir     virtual void SAL_CALL storeToRecoveryFile( const ::rtl::OUString& i_TargetLocation, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& i_MediaDescriptor )
1313cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException,
1314cdf0e10cSrcweir                 ::com::sun::star::io::IOException,
1315cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException );
1316cdf0e10cSrcweir     virtual void SAL_CALL recoverFromFile( const ::rtl::OUString& i_SourceLocation, const ::rtl::OUString& i_SalvagedFile, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& i_MediaDescriptor )
1317cdf0e10cSrcweir         throw ( ::com::sun::star::uno::RuntimeException,
1318cdf0e10cSrcweir                 ::com::sun::star::io::IOException,
1319cdf0e10cSrcweir                 ::com::sun::star::lang::WrappedTargetException );
1320cdf0e10cSrcweir 
1321cdf0e10cSrcweir     // css.document.XUndoManagerSupplier
1322cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::document::XUndoManager > SAL_CALL getUndoManager(  ) throw (::com::sun::star::uno::RuntimeException);
1323cdf0e10cSrcweir 
1324cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1325cdf0e10cSrcweir 
1326cdf0e10cSrcweir     // ::com::sun::star::rdf::XNode:
1327cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getStringValue()
1328cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
1329cdf0e10cSrcweir 
1330cdf0e10cSrcweir     // ::com::sun::star::rdf::XURI:
1331cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getNamespace()
1332cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
1333cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getLocalName()
1334cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
1335cdf0e10cSrcweir 
1336cdf0e10cSrcweir     // ::com::sun::star::rdf::XRepositorySupplier:
1337cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
1338cdf0e10cSrcweir         ::com::sun::star::rdf::XRepository > SAL_CALL getRDFRepository()
1339cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
1340cdf0e10cSrcweir 
1341cdf0e10cSrcweir     // ::com::sun::star::rdf::XDocumentMetadataAccess:
1342cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
1343cdf0e10cSrcweir                 ::com::sun::star::rdf::XMetadatable > SAL_CALL
1344cdf0e10cSrcweir         getElementByMetadataReference(
1345cdf0e10cSrcweir             const ::com::sun::star::beans::StringPair & i_rReference)
1346cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
1347cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
1348cdf0e10cSrcweir                 ::com::sun::star::rdf::XMetadatable > SAL_CALL
1349cdf0e10cSrcweir         getElementByURI(const ::com::sun::star::uno::Reference<
1350cdf0e10cSrcweir             ::com::sun::star::rdf::XURI > & i_xURI)
1351cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1352cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException);
1353cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
1354cdf0e10cSrcweir             ::com::sun::star::rdf::XURI > > SAL_CALL getMetadataGraphsWithType(
1355cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1356cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI > & i_xType)
1357cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1358cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException);
1359cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
1360cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI> SAL_CALL
1361cdf0e10cSrcweir         addMetadataFile(const ::rtl::OUString & i_rFileName,
1362cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
1363cdf0e10cSrcweir                 ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >
1364cdf0e10cSrcweir                 > & i_rTypes)
1365cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1366cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1367cdf0e10cSrcweir             ::com::sun::star::container::ElementExistException);
1368cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
1369cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI> SAL_CALL
1370cdf0e10cSrcweir         importMetadataFile(::sal_Int16 i_Format,
1371cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1372cdf0e10cSrcweir                 ::com::sun::star::io::XInputStream > & i_xInStream,
1373cdf0e10cSrcweir             const ::rtl::OUString & i_rFileName,
1374cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1375cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI > & i_xBaseURI,
1376cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
1377cdf0e10cSrcweir                 ::com::sun::star::uno::Reference< ::com::sun::star::rdf::XURI >
1378cdf0e10cSrcweir                 > & i_rTypes)
1379cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1380cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1381cdf0e10cSrcweir             ::com::sun::star::datatransfer::UnsupportedFlavorException,
1382cdf0e10cSrcweir             ::com::sun::star::container::ElementExistException,
1383cdf0e10cSrcweir             ::com::sun::star::rdf::ParseException,
1384cdf0e10cSrcweir             ::com::sun::star::io::IOException);
1385cdf0e10cSrcweir     virtual void SAL_CALL removeMetadataFile(
1386cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1387cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI > & i_xGraphName)
1388cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1389cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1390cdf0e10cSrcweir             ::com::sun::star::container::NoSuchElementException);
1391cdf0e10cSrcweir     virtual void SAL_CALL addContentOrStylesFile(
1392cdf0e10cSrcweir             const ::rtl::OUString & i_rFileName)
1393cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1394cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1395cdf0e10cSrcweir             ::com::sun::star::container::ElementExistException);
1396cdf0e10cSrcweir     virtual void SAL_CALL removeContentOrStylesFile(
1397cdf0e10cSrcweir             const ::rtl::OUString & i_rFileName)
1398cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1399cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1400cdf0e10cSrcweir             ::com::sun::star::container::NoSuchElementException);
1401cdf0e10cSrcweir 
1402cdf0e10cSrcweir     virtual void SAL_CALL loadMetadataFromStorage(
1403cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1404cdf0e10cSrcweir                 ::com::sun::star::embed::XStorage > & i_xStorage,
1405cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1406cdf0e10cSrcweir                 ::com::sun::star::rdf::XURI > & i_xBaseURI,
1407cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1408cdf0e10cSrcweir                 ::com::sun::star::task::XInteractionHandler> & i_xHandler)
1409cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1410cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1411cdf0e10cSrcweir             ::com::sun::star::lang::WrappedTargetException);
1412cdf0e10cSrcweir     virtual void SAL_CALL storeMetadataToStorage(
1413cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
1414cdf0e10cSrcweir                 ::com::sun::star::embed::XStorage > & i_xStorage)
1415cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1416cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1417cdf0e10cSrcweir             ::com::sun::star::lang::WrappedTargetException);
1418cdf0e10cSrcweir     virtual void SAL_CALL loadMetadataFromMedium(
1419cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
1420cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyValue > & i_rMedium)
1421cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1422cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1423cdf0e10cSrcweir             ::com::sun::star::lang::WrappedTargetException);
1424cdf0e10cSrcweir     virtual void SAL_CALL storeMetadataToMedium(
1425cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
1426cdf0e10cSrcweir                 ::com::sun::star::beans::PropertyValue > & i_rMedium)
1427cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException,
1428cdf0e10cSrcweir             ::com::sun::star::lang::IllegalArgumentException,
1429cdf0e10cSrcweir             ::com::sun::star::lang::WrappedTargetException);
1430cdf0e10cSrcweir 
1431cdf0e10cSrcweir 
1432cdf0e10cSrcweir     //____________________________________________________________________________________________________
1433cdf0e10cSrcweir 	//	SfxListener
1434cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1435cdf0e10cSrcweir 
1436cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1437cdf0e10cSrcweir 		@short		-
1438cdf0e10cSrcweir 		@descr		-
1439cdf0e10cSrcweir 
1440cdf0e10cSrcweir 		@seealso	-
1441cdf0e10cSrcweir 
1442cdf0e10cSrcweir 		@param		-
1443cdf0e10cSrcweir 
1444cdf0e10cSrcweir 		@return		-
1445cdf0e10cSrcweir 
1446cdf0e10cSrcweir 		@onerror	-
1447cdf0e10cSrcweir 	*/
1448cdf0e10cSrcweir 
1449cdf0e10cSrcweir 	void Notify(			SfxBroadcaster&	aBC		,
1450cdf0e10cSrcweir 					const	SfxHint&		aHint	) ;
1451cdf0e10cSrcweir 
1452cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1453cdf0e10cSrcweir 	//	public IMPL?
1454cdf0e10cSrcweir 	//____________________________________________________________________________________________________
1455cdf0e10cSrcweir 
1456cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1457cdf0e10cSrcweir 		@short		-
1458cdf0e10cSrcweir 		@descr		-
1459cdf0e10cSrcweir 
1460cdf0e10cSrcweir 		@seealso	-
1461cdf0e10cSrcweir 
1462cdf0e10cSrcweir 		@param		-
1463cdf0e10cSrcweir 
1464cdf0e10cSrcweir 		@return		-
1465cdf0e10cSrcweir 
1466cdf0e10cSrcweir 		@onerror	-
1467cdf0e10cSrcweir 	*/
1468cdf0e10cSrcweir 
1469cdf0e10cSrcweir 	void changing() ;
1470cdf0e10cSrcweir 	SAL_DLLPRIVATE void impl_change() ;
1471cdf0e10cSrcweir 
1472cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1473cdf0e10cSrcweir 		@short		-
1474cdf0e10cSrcweir 		@descr		-
1475cdf0e10cSrcweir 
1476cdf0e10cSrcweir 		@seealso	-
1477cdf0e10cSrcweir 
1478cdf0e10cSrcweir 		@param		-
1479cdf0e10cSrcweir 
1480cdf0e10cSrcweir 		@return		-
1481cdf0e10cSrcweir 
1482cdf0e10cSrcweir 		@onerror	-
1483cdf0e10cSrcweir 	*/
1484cdf0e10cSrcweir 
1485cdf0e10cSrcweir 	SfxObjectShell* GetObjectShell() const ;
1486cdf0e10cSrcweir 	SAL_DLLPRIVATE SfxObjectShell* impl_getObjectShell() const ;
1487cdf0e10cSrcweir 
1488cdf0e10cSrcweir 	SAL_DLLPRIVATE sal_Bool impl_isDisposed() const ;
1489cdf0e10cSrcweir     sal_Bool IsInitialized() const;
IsDisposed() const1490cdf0e10cSrcweir     sal_Bool IsDisposed() const { return impl_isDisposed(); }
1491cdf0e10cSrcweir     void MethodEntryCheck( const bool i_mustBeInitialized ) const;
getMutex() const1492cdf0e10cSrcweir     ::osl::Mutex& getMutex() const { return m_aMutex; }
1493cdf0e10cSrcweir 
1494cdf0e10cSrcweir     ::com::sun::star::uno::Reference < ::com::sun::star::container::XIndexAccess > SAL_CALL getViewData() throw (::com::sun::star::uno::RuntimeException);
1495cdf0e10cSrcweir     void SAL_CALL setViewData( const ::com::sun::star::uno::Reference < ::com::sun::star::container::XIndexAccess >& aData ) throw (::com::sun::star::uno::RuntimeException);
1496cdf0e10cSrcweir 
1497cdf0e10cSrcweir 	/** calls all XEventListeners */
1498cdf0e10cSrcweir 	void notifyEvent( const ::com::sun::star::document::EventObject& aEvent ) const;
1499cdf0e10cSrcweir 
1500cdf0e10cSrcweir 	/** returns true if someone added a XEventListener to this XEventBroadcaster */
1501cdf0e10cSrcweir 	sal_Bool hasEventListeners() const;
1502cdf0e10cSrcweir 
1503cdf0e10cSrcweir protected:
1504cdf0e10cSrcweir 
1505cdf0e10cSrcweir     /* returns a unique id for the model that is valid as long as the document
1506cdf0e10cSrcweir        is loaded. The id is not saved across document close/reload. */
1507cdf0e10cSrcweir     rtl::OUString getRuntimeUID() const;
1508cdf0e10cSrcweir 
1509cdf0e10cSrcweir     /* returns true if the document signatures are valid, otherwise false */
1510cdf0e10cSrcweir     sal_Bool hasValidSignatures() const;
1511cdf0e10cSrcweir 
1512cdf0e10cSrcweir //________________________________________________________________________________________________________
1513cdf0e10cSrcweir //	private methods
1514cdf0e10cSrcweir //________________________________________________________________________________________________________
1515cdf0e10cSrcweir 
1516cdf0e10cSrcweir private:
1517cdf0e10cSrcweir 
1518cdf0e10cSrcweir 	/**___________________________________________________________________________________________________
1519cdf0e10cSrcweir 		@short		-
1520cdf0e10cSrcweir 		@descr		-
1521cdf0e10cSrcweir 
1522cdf0e10cSrcweir 		@seealso	-
1523cdf0e10cSrcweir 
1524cdf0e10cSrcweir 		@param		-
1525cdf0e10cSrcweir 
1526cdf0e10cSrcweir 		@return		-
1527cdf0e10cSrcweir 
1528cdf0e10cSrcweir 		@onerror	-
1529cdf0e10cSrcweir 	*/
1530cdf0e10cSrcweir 
1531cdf0e10cSrcweir     bool impl_getPrintHelper();
1532cdf0e10cSrcweir 	SAL_DLLPRIVATE void ListenForStorage_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
1533cdf0e10cSrcweir 	SAL_DLLPRIVATE ::rtl::OUString GetMediumFilterName_Impl();
1534cdf0e10cSrcweir 
1535cdf0e10cSrcweir 	SAL_DLLPRIVATE void impl_store(	const	OUSTRING&					sURL			,
1536cdf0e10cSrcweir 						const	::com::sun::star::uno::Sequence< PROPERTYVALUE >&	seqArguments	,
1537cdf0e10cSrcweir 								sal_Bool					bSaveTo			) ;
1538cdf0e10cSrcweir 
1539cdf0e10cSrcweir 	SAL_DLLPRIVATE void postEvent_Impl( const ::rtl::OUString& aName, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController2 >& xController = ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController2 >() );
1540cdf0e10cSrcweir 
1541cdf0e10cSrcweir 	SAL_DLLPRIVATE String getEventName_Impl( long nID );
1542cdf0e10cSrcweir 	SAL_DLLPRIVATE void NotifyStorageListeners_Impl();
1543cdf0e10cSrcweir    	SAL_DLLPRIVATE bool QuerySaveSizeExceededModules( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler >& xHandler );
1544cdf0e10cSrcweir 
1545cdf0e10cSrcweir     SAL_DLLPRIVATE css::uno::Reference< css::frame::XTitle > impl_getTitleHelper ();
1546cdf0e10cSrcweir     SAL_DLLPRIVATE css::uno::Reference< css::frame::XUntitledNumbers > impl_getUntitledHelper ();
1547cdf0e10cSrcweir 
1548cdf0e10cSrcweir     SAL_DLLPRIVATE SfxViewFrame* FindOrCreateViewFrame_Impl(
1549cdf0e10cSrcweir                         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& i_rFrame,
1550cdf0e10cSrcweir                         ::sfx::intern::ViewCreationGuard& i_rGuard
1551cdf0e10cSrcweir                     ) const;
1552cdf0e10cSrcweir 
1553cdf0e10cSrcweir     SAL_DLLPRIVATE void NotifyModifyListeners_Impl() const;
1554cdf0e10cSrcweir 
1555cdf0e10cSrcweir //________________________________________________________________________________________________________
1556cdf0e10cSrcweir //	private variables and methods
1557cdf0e10cSrcweir //________________________________________________________________________________________________________
1558cdf0e10cSrcweir 
1559cdf0e10cSrcweir private:
1560cdf0e10cSrcweir 
1561cdf0e10cSrcweir 	IMPL_SfxBaseModel_DataContainer*	m_pData	;
1562cdf0e10cSrcweir     // cannot be held in m_pData, since it needs to be accessed in non-threadsafe context
1563cdf0e10cSrcweir     const bool                          m_bSupportEmbeddedScripts;
1564cdf0e10cSrcweir     const bool                          m_bSupportDocRecovery;
1565cdf0e10cSrcweir 
1566cdf0e10cSrcweir } ;	// class SfxBaseModel
1567cdf0e10cSrcweir 
1568cdf0e10cSrcweir /** base class for sub components of an SfxBaseModel, which share their ref count and lifetime with the SfxBaseModel
1569cdf0e10cSrcweir */
1570cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxModelSubComponent
1571cdf0e10cSrcweir {
1572cdf0e10cSrcweir public:
1573cdf0e10cSrcweir     /** checks whether the instance is alive, i.e. properly initialized, and not yet disposed
1574cdf0e10cSrcweir     */
MethodEntryCheck()1575cdf0e10cSrcweir     void    MethodEntryCheck()
1576cdf0e10cSrcweir     {
1577cdf0e10cSrcweir         m_rModel.MethodEntryCheck( true );
1578cdf0e10cSrcweir     }
1579cdf0e10cSrcweir 
1580cdf0e10cSrcweir     // called when the SfxBaseModel which the component is superordinate of is being disposed
1581cdf0e10cSrcweir     virtual void disposing();
1582cdf0e10cSrcweir 
1583cdf0e10cSrcweir protected:
SfxModelSubComponent(SfxBaseModel & i_model)1584cdf0e10cSrcweir     SfxModelSubComponent( SfxBaseModel& i_model )
1585cdf0e10cSrcweir         :m_rModel( i_model )
1586cdf0e10cSrcweir     {
1587cdf0e10cSrcweir     }
1588cdf0e10cSrcweir     virtual ~SfxModelSubComponent();
1589cdf0e10cSrcweir 
1590cdf0e10cSrcweir     // helpers for implementing XInterface - delegates ref counting to the SfxBaseModel
acquire()1591cdf0e10cSrcweir     void acquire()  {   m_rModel.acquire(); }
release()1592cdf0e10cSrcweir     void release()  {   m_rModel.release(); }
1593cdf0e10cSrcweir 
isDisposed() const1594cdf0e10cSrcweir     bool isDisposed() const {   return m_rModel.IsDisposed();   }
1595cdf0e10cSrcweir 
1596cdf0e10cSrcweir protected:
getBaseModel() const1597cdf0e10cSrcweir     const SfxBaseModel& getBaseModel() const { return m_rModel; }
getBaseModel()1598cdf0e10cSrcweir           SfxBaseModel& getBaseModel()       { return m_rModel; }
1599cdf0e10cSrcweir 
getMutex()1600cdf0e10cSrcweir           ::osl::Mutex&  getMutex()          { return m_rModel.getMutex(); }
1601cdf0e10cSrcweir 
1602cdf0e10cSrcweir private:
1603cdf0e10cSrcweir     SfxBaseModel&   m_rModel;
1604cdf0e10cSrcweir };
1605cdf0e10cSrcweir 
1606cdf0e10cSrcweir class SFX2_DLLPUBLIC SfxModelGuard
1607cdf0e10cSrcweir {
1608cdf0e10cSrcweir public:
1609cdf0e10cSrcweir     enum AllowedModelState
1610cdf0e10cSrcweir     {
1611cdf0e10cSrcweir         // not yet initialized
1612cdf0e10cSrcweir         E_INITIALIZING,
1613cdf0e10cSrcweir         // fully alive, i.e. initialized, and not yet disposed
1614cdf0e10cSrcweir         E_FULLY_ALIVE
1615cdf0e10cSrcweir     };
1616cdf0e10cSrcweir 
SfxModelGuard(SfxBaseModel & i_rModel,const AllowedModelState i_eState=E_FULLY_ALIVE)1617cdf0e10cSrcweir     SfxModelGuard( SfxBaseModel& i_rModel, const AllowedModelState i_eState = E_FULLY_ALIVE )
1618cdf0e10cSrcweir         :m_aGuard( Application::GetSolarMutex() )
1619cdf0e10cSrcweir     {
1620cdf0e10cSrcweir         i_rModel.MethodEntryCheck( i_eState != E_INITIALIZING );
1621cdf0e10cSrcweir     }
SfxModelGuard(SfxModelSubComponent & i_rSubComponent)1622cdf0e10cSrcweir     SfxModelGuard( SfxModelSubComponent& i_rSubComponent )
1623cdf0e10cSrcweir         :m_aGuard( Application::GetSolarMutex() )
1624cdf0e10cSrcweir     {
1625cdf0e10cSrcweir         i_rSubComponent.MethodEntryCheck();
1626cdf0e10cSrcweir     }
~SfxModelGuard()1627cdf0e10cSrcweir     ~SfxModelGuard()
1628cdf0e10cSrcweir     {
1629cdf0e10cSrcweir     }
1630cdf0e10cSrcweir 
reset()1631cdf0e10cSrcweir     void reset()
1632cdf0e10cSrcweir     {
1633cdf0e10cSrcweir         m_aGuard.reset();
1634cdf0e10cSrcweir     }
1635cdf0e10cSrcweir 
clear()1636cdf0e10cSrcweir     void clear()
1637cdf0e10cSrcweir     {
1638cdf0e10cSrcweir         m_aGuard.clear();
1639cdf0e10cSrcweir     }
1640cdf0e10cSrcweir 
1641cdf0e10cSrcweir private:
1642cdf0e10cSrcweir     ::osl::ResettableGuard< ::vos::IMutex >  m_aGuard;
1643cdf0e10cSrcweir };
1644cdf0e10cSrcweir 
1645cdf0e10cSrcweir #undef css
1646cdf0e10cSrcweir 
1647cdf0e10cSrcweir #endif // _SFX_SFXBASEMODEL_HXX_
1648