1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sfxbasemodel.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SFX_SFXBASEMODEL_HXX_
32 #define _SFX_SFXBASEMODEL_HXX_
34 //________________________________________________________________________________________________________
35 // include of other projects
36 //________________________________________________________________________________________________________
38 #ifndef _COM_SUN_STAR_LANG_XTYPEPROVIDER_HPP_
39 #include <com/sun/star/lang/XTypeProvider.hpp>
42 #ifndef _COM_SUN_STAR_CONTAINER_XCHILD_HPP_
43 #include <com/sun/star/container/XChild.hpp>
50 #ifndef _COM_SUN_STAR_DOCUMENT_XDOCUMENTINFOSUPPLIER_HPP_
51 #include <com/sun/star/document/XDocumentInfoSupplier.hpp>
54 #ifndef _COM_SUN_STAR_DOCUMENT_XEVENTBROADCASTER_HPP_
55 #include <com/sun/star/document/XEventBroadcaster.hpp>
59 #ifndef _COM_SUN_STAR_DOCUMENT_XEVENTSSUPPLIER_HPP_
60 #include <com/sun/star/document/XEventsSupplier.hpp>
65 #ifndef _COM_SUN_STAR_FRAME_XMODEL_HPP_
66 #include <com/sun/star/frame/XModel.hpp>
70 #ifndef _COM_SUN_STAR_UTIL_XMODIFIABLE_HPP_
71 #include <com/sun/star/util/XModifiable.hpp>
75 #ifndef _COM_SUN_STAR_UTIL_XCLOSEABLE_HPP_
76 #include <com/sun/star/util/XCloseable.hpp>
82 #ifndef _COM_SUN_STAR_VIEW_XPRINTABLE_HPP_
83 #include <com/sun/star/view/XPrintable.hpp>
86 #ifndef _COM_SUN_STAR_VIEW_XPRINTJOBBROADCASTER_HPP_
87 #include <com/sun/star/view/XPrintJobBroadcaster.hpp>
90 #ifndef _COM_SUN_STAR_FRAME_XSTORABLE_HPP_
91 #include <com/sun/star/frame/XStorable.hpp>
94 #ifndef _COM_SUN_STAR_FRAME_XLOADABLE_HPP_
95 #include <com/sun/star/frame/XLoadable.hpp>
100 #ifndef _COM_SUN_STAR_DATATRANSFER_XTRANSFERABLE_HPP_
101 #include <com/sun/star/datatransfer/XTransferable.hpp>
107 #ifndef _CPPUHELPER_WEAK_HXX_
108 #include <cppuhelper/weak.hxx>
112 #ifndef _COM_SUN_STAR_SCRIPT_XSTARBASICACCESS_HPP_
113 #include <com/sun/star/script/XStarBasicAccess.hpp>
118 #include <tools/link.hxx>
121 #include <com/sun/star/document/XViewDataSupplier.hpp>
123 //________________________________________________________________________________________________________
124 // include of my own project
125 //________________________________________________________________________________________________________
127 #ifndef _SFXLSTNER_HXX
128 #include <bf_svtools/lstner.hxx>
130 #include <tools/debug.hxx> //for strip
131 namespace binfilter
{
132 //________________________________________________________________________________________________________
134 //________________________________________________________________________________________________________
136 // Some defines to write better code :-)
137 #define XCHILD ::com::sun::star::container::XChild
138 #define XNAMECONTAINER ::com::sun::star::container::XNameContainer
139 #define XCONTROLLER ::com::sun::star::frame::XController
140 #define XEVENTLISTENER ::com::sun::star::lang::XEventListener
141 #define XINTERFACE ::com::sun::star::uno::XInterface
142 #define XCOMPONENT ::com::sun::star::lang::XComponent
143 #define XMODEL ::com::sun::star::frame::XModel
144 #define XMODIFIABLE ::com::sun::star::util::XModifiable
145 #define XMODIFIABLE ::com::sun::star::util::XModifiable
146 #define XMODIFYBROADCASTER ::com::sun::star::util::XModifyBroadcaster
147 #define XMODIFYLISTENER ::com::sun::star::util::XModifyListener
148 #define XCLOSEABLE ::com::sun::star::util::XCloseable
149 #define XCLOSEBROADCASTER ::com::sun::star::util::XCloseBroadcaster
150 #define XCLOSELISTENER ::com::sun::star::util::XCloseListener
151 #define XPRINTABLE ::com::sun::star::view::XPrintable
152 #define XPRINTJOBBROADCASTER ::com::sun::star::view::XPrintJobBroadcaster
153 #define XSTORABLE ::com::sun::star::frame::XStorable
154 #define XLOADABLE ::com::sun::star::frame::XLoadable
155 #define XTYPEPROVIDER ::com::sun::star::lang::XTypeProvider
156 #define XSTARBASICACCESS ::com::sun::star::script::XStarBasicAccess
157 #define NOSUCHELEMENTEXCEPTION ::com::sun::star::container::NoSuchElementException
158 #define ELEMENTEXISTEXCEPTION ::com::sun::star::container::ElementExistException
159 #define XNAMEREPLACE ::com::sun::star::container::XNameReplace
161 #define DOCEVENTOBJECT ::com::sun::star::document::EventObject
162 #define XDOCEVENTLISTENER ::com::sun::star::document::XEventListener
163 #define XDOCUMENTINFO ::com::sun::star::document::XDocumentInfo
164 #define XDOCUMENTINFOSUPPLIER ::com::sun::star::document::XDocumentInfoSupplier
165 #define XEVENTBROADCASTER ::com::sun::star::document::XEventBroadcaster
166 #define XEVENTSSUPPLIER ::com::sun::star::document::XEventsSupplier
168 #define NOSUPPORTEXCEPTION ::com::sun::star::lang::NoSupportException
169 #define RUNTIMEEXCEPTION ::com::sun::star::uno::RuntimeException
170 #define CLOSEVETOEXCEPTION ::com::sun::star::util::CloseVetoException
172 #define ANY ::com::sun::star::uno::Any
173 #define EVENTOBJECT ::com::sun::star::lang::EventObject
174 #define PROPERTYVALUE ::com::sun::star::beans::PropertyValue
175 #define REFERENCE ::com::sun::star::uno::Reference
176 #define SEQUENCE ::com::sun::star::uno::Sequence
177 #define MUTEX ::osl::Mutex
178 #define OUSTRING ::rtl::OUString
179 #define OWEAKOBJECT ::cppu::OWeakObject
180 #define UNOTYPE ::com::sun::star::uno::Type
181 #define XVIEWDATASUPPLIER ::com::sun::star::document::XViewDataSupplier
182 #define XINDEXACCESS ::com::sun::star::container::XIndexAccess
183 #define XTRANSFERABLE ::com::sun::star::datatransfer::XTransferable
184 #define DATAFLAVOR ::com::sun::star::datatransfer::DataFlavor
186 //________________________________________________________________________________________________________
188 //________________________________________________________________________________________________________
191 class SfxObjectShell
;
193 struct IMPL_SfxBaseModel_DataContainer
; // impl. struct to hold member of class SfxBaseModel
195 //________________________________________________________________________________________________________
196 // class declarations
197 //________________________________________________________________________________________________________
199 struct IMPL_SfxBaseModel_MutexContainer
204 /**_______________________________________________________________________________________________________
211 XDocumentInfoSupplier
217 ::document::XEventBroadcaster
218 ::document::XEventsSupplier
222 @base IMPL_MutexContainer
226 class SfxBaseModel
: public XTYPEPROVIDER
228 , public XDOCUMENTINFOSUPPLIER
229 , public XEVENTBROADCASTER
230 , public XEVENTLISTENER
231 , public XEVENTSSUPPLIER
235 , public XPRINTJOBBROADCASTER
238 , public XSTARBASICACCESS
239 , public XVIEWDATASUPPLIER
240 , public XCLOSEABLE
// => XCLOSEBROADCASTER
241 , public XTRANSFERABLE
242 , public IMPL_SfxBaseModel_MutexContainer
247 //________________________________________________________________________________________________________
249 //________________________________________________________________________________________________________
253 //____________________________________________________________________________________________________
254 // constructor/destructor
255 //____________________________________________________________________________________________________
257 /**___________________________________________________________________________________________________
270 SfxBaseModel( SfxObjectShell
*pObjektShell
= NULL
) ;
272 /**___________________________________________________________________________________________________
285 virtual ~SfxBaseModel() ;
287 //____________________________________________________________________________________________________
289 //____________________________________________________________________________________________________
291 /**___________________________________________________________________________________________________
292 @short give answer, if interface is supported
293 @descr The interfaces are searched by type.
297 @param "rType" is the type of searched interface.
299 @return Any information about found interface
301 @onerror A RuntimeException is thrown.
304 virtual ANY SAL_CALL
queryInterface( const UNOTYPE
& rType
) throw( RUNTIMEEXCEPTION
) ;
306 /**___________________________________________________________________________________________________
307 @short increment refcount
317 @onerror A RuntimeException is thrown.
320 virtual void SAL_CALL
acquire() throw() ;
322 /**___________________________________________________________________________________________________
323 @short decrement refcount
333 @onerror A RuntimeException is thrown.
336 virtual void SAL_CALL
release() throw() ;
338 //____________________________________________________________________________________________________
340 //____________________________________________________________________________________________________
342 /**___________________________________________________________________________________________________
343 @short get information about supported interfaces
346 @seealso XTypeProvider
350 @return Sequence of types of all supported interfaces
352 @onerror A RuntimeException is thrown.
355 virtual SEQUENCE
< UNOTYPE
> SAL_CALL
getTypes() throw( RUNTIMEEXCEPTION
) ;
357 /**___________________________________________________________________________________________________
358 @short get implementation id
359 @descr This ID is neccessary for UNO-caching. If there no ID, cache is disabled.
360 Another way, cache is enabled.
362 @seealso XTypeProvider
366 @return ID as Sequence of byte
368 @onerror A RuntimeException is thrown.
371 virtual SEQUENCE
< sal_Int8
> SAL_CALL
getImplementationId() throw( RUNTIMEEXCEPTION
) ;
373 //____________________________________________________________________________________________________
375 //____________________________________________________________________________________________________
377 /**___________________________________________________________________________________________________
378 @seealso XStarBasicAccess
380 virtual REFERENCE
< XNAMECONTAINER
> SAL_CALL
getLibraryContainer() throw( RUNTIMEEXCEPTION
);
382 /**___________________________________________________________________________________________________
383 @seealso XStarBasicAccess
385 virtual void SAL_CALL
createLibrary( const OUSTRING
& LibName
, const OUSTRING
& Password
,
386 const OUSTRING
& ExternalSourceURL
, const OUSTRING
& LinkTargetURL
)
387 throw(ELEMENTEXISTEXCEPTION
, RUNTIMEEXCEPTION
);
389 /**___________________________________________________________________________________________________
390 @seealso XStarBasicAccess
392 virtual void SAL_CALL
addModule( const OUSTRING
& LibraryName
, const OUSTRING
& ModuleName
,
393 const OUSTRING
& Language
, const OUSTRING
& Source
)
394 throw( NOSUCHELEMENTEXCEPTION
, RUNTIMEEXCEPTION
);
396 /**___________________________________________________________________________________________________
397 @seealso XStarBasicAccess
399 virtual void SAL_CALL
addDialog( const OUSTRING
& LibraryName
, const OUSTRING
& DialogName
,
400 const ::com::sun::star::uno::Sequence
< sal_Int8
>& Data
)
401 throw(NOSUCHELEMENTEXCEPTION
, RUNTIMEEXCEPTION
);
403 //____________________________________________________________________________________________________
405 //____________________________________________________________________________________________________
407 /**___________________________________________________________________________________________________
420 virtual REFERENCE
< XINTERFACE
> SAL_CALL
getParent() throw( RUNTIMEEXCEPTION
) ;
422 /**___________________________________________________________________________________________________
435 virtual void SAL_CALL
setParent( const REFERENCE
< XINTERFACE
>& xParent
) throw( NOSUPPORTEXCEPTION
,
438 //____________________________________________________________________________________________________
440 //____________________________________________________________________________________________________
442 /**___________________________________________________________________________________________________
455 virtual void SAL_CALL
dispose() throw (::com::sun::star::uno::RuntimeException
);
457 /**___________________________________________________________________________________________________
470 virtual void SAL_CALL
addEventListener(const REFERENCE
< XEVENTLISTENER
>& aListener
) throw (::com::sun::star::uno::RuntimeException
);
472 /**___________________________________________________________________________________________________
485 virtual void SAL_CALL
removeEventListener(const REFERENCE
< XEVENTLISTENER
>& aListener
) throw (::com::sun::star::uno::RuntimeException
);
487 //____________________________________________________________________________________________________
488 // XDocumentInfoSupplier
489 //____________________________________________________________________________________________________
491 /**___________________________________________________________________________________________________
504 virtual REFERENCE
< XDOCUMENTINFO
> SAL_CALL
getDocumentInfo() throw (::com::sun::star::uno::RuntimeException
);
506 //____________________________________________________________________________________________________
508 //____________________________________________________________________________________________________
510 /**___________________________________________________________________________________________________
523 virtual void SAL_CALL
disposing( const EVENTOBJECT
& aEvent
) throw (::com::sun::star::uno::RuntimeException
);
525 //____________________________________________________________________________________________________
527 //____________________________________________________________________________________________________
529 /**___________________________________________________________________________________________________
542 virtual sal_Bool SAL_CALL
attachResource( const OUSTRING
& sURL
,
543 const SEQUENCE
< PROPERTYVALUE
>& aArgs
)
544 throw (::com::sun::star::uno::RuntimeException
);
546 /**___________________________________________________________________________________________________
559 virtual OUSTRING SAL_CALL
getURL() throw (::com::sun::star::uno::RuntimeException
);
561 /**___________________________________________________________________________________________________
574 virtual SEQUENCE
< PROPERTYVALUE
> SAL_CALL
getArgs() throw (::com::sun::star::uno::RuntimeException
);
576 /**___________________________________________________________________________________________________
589 virtual void SAL_CALL
connectController( const REFERENCE
< XCONTROLLER
>& xController
) throw (::com::sun::star::uno::RuntimeException
);
591 /**___________________________________________________________________________________________________
604 virtual void SAL_CALL
disconnectController( const REFERENCE
< XCONTROLLER
>& xController
) throw (::com::sun::star::uno::RuntimeException
);
606 /**___________________________________________________________________________________________________
619 virtual void SAL_CALL
lockControllers() throw (::com::sun::star::uno::RuntimeException
);
621 /**___________________________________________________________________________________________________
634 virtual void SAL_CALL
unlockControllers() throw (::com::sun::star::uno::RuntimeException
);
636 /**___________________________________________________________________________________________________
649 virtual sal_Bool SAL_CALL
hasControllersLocked() throw (::com::sun::star::uno::RuntimeException
);
651 /**___________________________________________________________________________________________________
664 virtual REFERENCE
< XCONTROLLER
> SAL_CALL
getCurrentController() throw (::com::sun::star::uno::RuntimeException
);
666 /**___________________________________________________________________________________________________
679 virtual void SAL_CALL
setCurrentController( const REFERENCE
< XCONTROLLER
>& xController
)
680 throw (::com::sun::star::container::NoSuchElementException
, ::com::sun::star::uno::RuntimeException
);
682 /**___________________________________________________________________________________________________
695 virtual REFERENCE
< XINTERFACE
> SAL_CALL
getCurrentSelection() throw (::com::sun::star::uno::RuntimeException
);
697 //____________________________________________________________________________________________________
699 //____________________________________________________________________________________________________
701 /**___________________________________________________________________________________________________
714 virtual sal_Bool SAL_CALL
isModified() throw (::com::sun::star::uno::RuntimeException
);
716 /**___________________________________________________________________________________________________
729 virtual void SAL_CALL
setModified( sal_Bool bModified
)
730 throw (::com::sun::star::beans::PropertyVetoException
, ::com::sun::star::uno::RuntimeException
);
732 /**___________________________________________________________________________________________________
745 virtual void SAL_CALL
addModifyListener( const REFERENCE
< XMODIFYLISTENER
>& xListener
) throw( RUNTIMEEXCEPTION
) ;
747 /**___________________________________________________________________________________________________
760 virtual void SAL_CALL
removeModifyListener(const REFERENCE
< XMODIFYLISTENER
> & xListener
) throw( RUNTIMEEXCEPTION
) ;
762 //____________________________________________________________________________________________________
764 //____________________________________________________________________________________________________
766 virtual void SAL_CALL
close( sal_Bool bDeliverOwnership
) throw (CLOSEVETOEXCEPTION
, RUNTIMEEXCEPTION
);
768 //____________________________________________________________________________________________________
770 //____________________________________________________________________________________________________
772 virtual void SAL_CALL
addCloseListener( const REFERENCE
< XCLOSELISTENER
>& xListener
) throw (RUNTIMEEXCEPTION
);
773 virtual void SAL_CALL
removeCloseListener( const REFERENCE
< XCLOSELISTENER
>& xListener
) throw (RUNTIMEEXCEPTION
);
775 //____________________________________________________________________________________________________
776 // XPrintJobBroadcaster
777 //____________________________________________________________________________________________________
779 virtual void SAL_CALL
addPrintJobListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::view::XPrintJobListener
>& xListener
)throw (::com::sun::star::uno::RuntimeException
) {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 virtual void SAL_CALL addPrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
780 virtual void SAL_CALL
removePrintJobListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::view::XPrintJobListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
) {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 virtual void SAL_CALL removePrintJobListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XPrintJobListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
782 //____________________________________________________________________________________________________
784 //____________________________________________________________________________________________________
786 /**___________________________________________________________________________________________________
799 virtual SEQUENCE
< PROPERTYVALUE
> SAL_CALL
getPrinter() throw (::com::sun::star::uno::RuntimeException
) {DBG_BF_ASSERT(0, "STRIP");SEQUENCE
< PROPERTYVALUE
> aFlavorSeq( 0 );return aFlavorSeq
;}//STRIP001 virtual SEQUENCE< PROPERTYVALUE > SAL_CALL getPrinter() throw (::com::sun::star::uno::RuntimeException);
801 /**___________________________________________________________________________________________________
814 virtual void SAL_CALL
setPrinter( const SEQUENCE
< PROPERTYVALUE
>& seqPrinter
)
815 throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
) {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
816 /**___________________________________________________________________________________________________
829 virtual void SAL_CALL
print( const SEQUENCE
< PROPERTYVALUE
>& seqOptions
)
830 throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
);
832 //____________________________________________________________________________________________________
834 //____________________________________________________________________________________________________
836 /**___________________________________________________________________________________________________
849 virtual sal_Bool SAL_CALL
hasLocation() throw (::com::sun::star::uno::RuntimeException
);
851 /**___________________________________________________________________________________________________
864 virtual OUSTRING SAL_CALL
getLocation() throw (::com::sun::star::uno::RuntimeException
);
866 /**___________________________________________________________________________________________________
879 virtual sal_Bool SAL_CALL
isReadonly() throw (::com::sun::star::uno::RuntimeException
);
881 /**___________________________________________________________________________________________________
894 virtual void SAL_CALL
store() throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
896 /**___________________________________________________________________________________________________
909 virtual void SAL_CALL
storeAsURL( const OUSTRING
& sURL
,
910 const SEQUENCE
< PROPERTYVALUE
>& seqArguments
)
911 throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
) ;
913 /**___________________________________________________________________________________________________
926 virtual void SAL_CALL
storeToURL( const OUSTRING
& sURL
,
927 const SEQUENCE
< PROPERTYVALUE
>& seqArguments
)
928 throw (::com::sun::star::io::IOException
, ::com::sun::star::uno::RuntimeException
);
930 //____________________________________________________________________________________________________
932 //____________________________________________________________________________________________________
934 /**___________________________________________________________________________________________________
947 virtual void SAL_CALL
initNew()
948 throw (::com::sun::star::frame::DoubleInitializationException
,
949 ::com::sun::star::io::IOException
,
950 ::com::sun::star::uno::RuntimeException
,
951 ::com::sun::star::uno::Exception
); // #dochnoetig# {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 ::com::sun::star::uno::Exception);
953 /**___________________________________________________________________________________________________
966 virtual void SAL_CALL
load( const SEQUENCE
< PROPERTYVALUE
>& seqArguments
)
967 throw (::com::sun::star::frame::DoubleInitializationException
,
968 ::com::sun::star::io::IOException
,
969 ::com::sun::star::uno::RuntimeException
,
970 ::com::sun::star::uno::Exception
); // #dochnoetig# {DBG_BF_ASSERT(0, "STRIP");}//STRIP001 ::com::sun::star::uno::Exception);
972 //____________________________________________________________________________________________________
974 //____________________________________________________________________________________________________
976 /**___________________________________________________________________________________________________
989 virtual ANY SAL_CALL
getTransferData( const DATAFLAVOR
& aFlavor
)
990 throw (::com::sun::star::datatransfer::UnsupportedFlavorException
,
991 ::com::sun::star::io::IOException
,
992 ::com::sun::star::uno::RuntimeException
);
994 /**___________________________________________________________________________________________________
1007 virtual SEQUENCE
< DATAFLAVOR
> SAL_CALL
getTransferDataFlavors()
1008 throw (::com::sun::star::uno::RuntimeException
);
1010 /**___________________________________________________________________________________________________
1023 virtual sal_Bool SAL_CALL
isDataFlavorSupported( const DATAFLAVOR
& aFlavor
)
1024 throw (::com::sun::star::uno::RuntimeException
) {DBG_BF_ASSERT(0, "STRIP");return false;}//STRIP001 throw (::com::sun::star::uno::RuntimeException);
1026 //____________________________________________________________________________________________________
1028 //____________________________________________________________________________________________________
1030 /**___________________________________________________________________________________________________
1032 @descr - offers a list of event handlers which are be bound to events of
1038 @return - an <type>Events</type> object.
1043 virtual REFERENCE
< XNAMEREPLACE
> SAL_CALL
getEvents() throw( RUNTIMEEXCEPTION
);
1045 //____________________________________________________________________________________________________
1046 // XEventBroadcaster
1047 //____________________________________________________________________________________________________
1049 /**___________________________________________________________________________________________________
1051 @descr - registers the given <type>XEventListener</type>.
1062 virtual void SAL_CALL
addEventListener( const REFERENCE
< XDOCEVENTLISTENER
>& xListener
) throw( RUNTIMEEXCEPTION
);
1064 /**___________________________________________________________________________________________________
1066 @descr - unregisters the given <type>XEventListener</type>.
1077 virtual void SAL_CALL
removeEventListener( const REFERENCE
< XDOCEVENTLISTENER
>& xListener
) throw( RUNTIMEEXCEPTION
);
1079 //____________________________________________________________________________________________________
1081 //____________________________________________________________________________________________________
1083 /**___________________________________________________________________________________________________
1096 void Notify( SfxBroadcaster
& aBC
,
1097 const SfxHint
& aHint
) ;
1099 //____________________________________________________________________________________________________
1101 //____________________________________________________________________________________________________
1103 /**___________________________________________________________________________________________________
1118 /**___________________________________________________________________________________________________
1131 SfxObjectShell
* GetObjectShell() const ;
1133 /**___________________________________________________________________________________________________
1146 sal_Bool
impl_isDisposed() const ;
1148 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> SAL_CALL
getViewData() throw (::com::sun::star::uno::RuntimeException
);
1149 void SAL_CALL
setViewData( const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
>& aData
) throw (::com::sun::star::uno::RuntimeException
);
1151 /** calls all XEventListeners */
1152 void notifyEvent( const ::com::sun::star::document::EventObject
& aEvent
) const;
1154 /** returns true if someone added a XEventListener to this XEventBroadcaster */
1155 sal_Bool
hasEventListeners() const;
1158 virtual void impl_setPrinter(const SEQUENCE
< PROPERTYVALUE
>& rPrinter
,SfxPrinter
*& pPrinter
,sal_uInt16
& nChangeFlags
,SfxViewShell
*& pViewSh
){DBG_BF_ASSERT(0, "STRIP");}//STRIP001 virtual void impl_setPrinter(const SEQUENCE< PROPERTYVALUE >& rPrinter,SfxPrinter*& pPrinter,sal_uInt16& nChangeFlags,SfxViewShell*& pViewSh);
1159 //________________________________________________________________________________________________________
1161 //________________________________________________________________________________________________________
1165 /**___________________________________________________________________________________________________
1178 void impl_store( SfxObjectShell
* pObjectShell
,
1179 const OUSTRING
& sURL
,
1180 const SEQUENCE
< PROPERTYVALUE
>& seqArguments
,
1181 sal_Bool bSaveTo
) ;
1182 void postEvent_Impl( const SfxEventHint
& rHint
);
1183 String
getEventName_Impl( long nID
);
1185 //________________________________________________________________________________________________________
1186 // private variables and methods
1187 //________________________________________________________________________________________________________
1191 IMPL_SfxBaseModel_DataContainer
* m_pData
;
1193 DECL_LINK( LoadDone_Impl
, void* );
1195 } ; // class SfxBaseModel
1197 }//end of namespace binfilter
1198 #endif // _SFX_SFXBASEMODEL_HXX_