xref: /aoo41x/main/sd/source/ui/inc/DrawController.hxx (revision 4d7c9de0)
1c45d927aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3c45d927aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4c45d927aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5c45d927aSAndrew Rist  * distributed with this work for additional information
6c45d927aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7c45d927aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8c45d927aSAndrew Rist  * "License"); you may not use this file except in compliance
9c45d927aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10c45d927aSAndrew Rist  *
11c45d927aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12c45d927aSAndrew Rist  *
13c45d927aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14c45d927aSAndrew Rist  * software distributed under the License is distributed on an
15c45d927aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16c45d927aSAndrew Rist  * KIND, either express or implied.  See the License for the
17c45d927aSAndrew Rist  * specific language governing permissions and limitations
18c45d927aSAndrew Rist  * under the License.
19c45d927aSAndrew Rist  *
20c45d927aSAndrew Rist  *************************************************************/
21c45d927aSAndrew Rist 
22c45d927aSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SD_DRAW_CONTROLLER_HXX
25cdf0e10cSrcweir #define SD_DRAW_CONTROLLER_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "ViewShell.hxx"
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <osl/mutex.hxx>
30cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx>
31cdf0e10cSrcweir #include <sfx2/sfxbasecontroller.hxx>
32cdf0e10cSrcweir #include <com/sun/star/view/XSelectionSupplier.hpp>
33cdf0e10cSrcweir #include <com/sun/star/view/XFormLayerAccess.hpp>
34cdf0e10cSrcweir #include <com/sun/star/drawing/XDrawSubController.hpp>
35cdf0e10cSrcweir #include <com/sun/star/drawing/XDrawView.hpp>
36cdf0e10cSrcweir #include <com/sun/star/drawing/framework/XConfigurationController.hpp>
37cdf0e10cSrcweir #include <com/sun/star/drawing/framework/XControllerManager.hpp>
38cdf0e10cSrcweir #include <com/sun/star/drawing/framework/ModuleController.hpp>
39cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
40cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp>
41cdf0e10cSrcweir #include <comphelper/uno3.hxx>
42cdf0e10cSrcweir #include <cppuhelper/implbase7.hxx>
43cdf0e10cSrcweir #include <tools/weakbase.hxx>
44cdf0e10cSrcweir #include <memory>
45cdf0e10cSrcweir #include <vector>
46cdf0e10cSrcweir #include <boost/scoped_ptr.hpp>
47*0deba7fbSSteve Yin #include <com/sun/star/drawing/XLayer.hpp>
48cdf0e10cSrcweir 
49cdf0e10cSrcweir class SfxViewShell;
50cdf0e10cSrcweir class SdXImpressDocument;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir namespace css = ::com::sun::star;
53cdf0e10cSrcweir 
54cdf0e10cSrcweir namespace sd {
55cdf0e10cSrcweir 
56cdf0e10cSrcweir typedef ::cppu::ImplInheritanceHelper7 <
57cdf0e10cSrcweir     SfxBaseController,
58cdf0e10cSrcweir     ::com::sun::star::view::XSelectionSupplier,
59cdf0e10cSrcweir     ::com::sun::star::lang::XServiceInfo,
60cdf0e10cSrcweir     ::com::sun::star::drawing::XDrawView,
61cdf0e10cSrcweir     ::com::sun::star::view::XSelectionChangeListener,
62cdf0e10cSrcweir     ::com::sun::star::view::XFormLayerAccess,
63cdf0e10cSrcweir     ::com::sun::star::drawing::framework::XControllerManager,
64cdf0e10cSrcweir     ::com::sun::star::lang::XUnoTunnel
65cdf0e10cSrcweir     > DrawControllerInterfaceBase;
66cdf0e10cSrcweir 
67cdf0e10cSrcweir class BroadcastHelperOwner
68cdf0e10cSrcweir {
69cdf0e10cSrcweir public:
BroadcastHelperOwner(::osl::Mutex & rMutex)70cdf0e10cSrcweir     BroadcastHelperOwner (::osl::Mutex& rMutex) : maBroadcastHelper(rMutex) {};
71cdf0e10cSrcweir     ::cppu::OBroadcastHelper maBroadcastHelper;
72cdf0e10cSrcweir };
73cdf0e10cSrcweir 
74cdf0e10cSrcweir class DrawSubController;
75cdf0e10cSrcweir class ViewShellBase;
76cdf0e10cSrcweir class ViewShell;
77cdf0e10cSrcweir class View;
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 
80cdf0e10cSrcweir /** The DrawController is the UNO controller for Impress and Draw.  It
81cdf0e10cSrcweir     relies objects that implement the DrawSubController interface for view
82cdf0e10cSrcweir     specific behaviour.  The life time of the DrawController is roughly that
83cdf0e10cSrcweir     of ViewShellBase but note that the DrawController can (in the case of a
84cdf0e10cSrcweir     reload) outlive the ViewShellBase.
85cdf0e10cSrcweir 
86cdf0e10cSrcweir     The implementation of the XControllerManager interface is not yet in its
87cdf0e10cSrcweir     final form.
88cdf0e10cSrcweir */
89cdf0e10cSrcweir class DrawController
90cdf0e10cSrcweir     : public DrawControllerInterfaceBase,
91cdf0e10cSrcweir       private BroadcastHelperOwner,
92cdf0e10cSrcweir       public ::cppu::OPropertySetHelper
93cdf0e10cSrcweir {
94cdf0e10cSrcweir public:
95cdf0e10cSrcweir     enum PropertyHandle {
96cdf0e10cSrcweir         PROPERTY_WORKAREA = 0,
97cdf0e10cSrcweir         PROPERTY_SUB_CONTROLLER = 1,
98cdf0e10cSrcweir         PROPERTY_CURRENTPAGE = 2,
99cdf0e10cSrcweir         PROPERTY_MASTERPAGEMODE = 3,
100cdf0e10cSrcweir         PROPERTY_LAYERMODE = 4,
101cdf0e10cSrcweir         PROPERTY_ACTIVE_LAYER = 5,
102cdf0e10cSrcweir         PROPERTY_ZOOMTYPE = 6,
103cdf0e10cSrcweir         PROPERTY_ZOOMVALUE = 7,
104cdf0e10cSrcweir         PROPERTY_VIEWOFFSET = 8,
105cdf0e10cSrcweir 		PROPERTY_DRAWVIEWMODE = 9
106*0deba7fbSSteve Yin 		,PROPERTY_UPDATEACC = 10
107*0deba7fbSSteve Yin 		,PROPERTY_PAGE_CHANGE = 11
108cdf0e10cSrcweir     };
109cdf0e10cSrcweir 
110cdf0e10cSrcweir     /** Create a new DrawController object for the given ViewShellBase.
111cdf0e10cSrcweir     */
112cdf0e10cSrcweir 	DrawController (ViewShellBase& rBase) throw();
113cdf0e10cSrcweir 
114cdf0e10cSrcweir 	virtual ~DrawController (void) throw();
115cdf0e10cSrcweir 
116cdf0e10cSrcweir     /** Replace the currently used sub controller with the given one.  This
117cdf0e10cSrcweir         new sub controller is used from now on for the view (that is the
118cdf0e10cSrcweir         main view shell to be precise) specific tasks.  Call this method
119cdf0e10cSrcweir         with a suitable sub controller whenever the view shell in the center
120cdf0e10cSrcweir         pane is exchanged.
121cdf0e10cSrcweir         @param pSubController
122cdf0e10cSrcweir             The ViewShell specific sub controller or NULL when (temporarily
123cdf0e10cSrcweir             while switching to another one) there is no ViewShell displayed
124cdf0e10cSrcweir             in the center pane.
125cdf0e10cSrcweir     */
126cdf0e10cSrcweir     void SetSubController (
127cdf0e10cSrcweir         const css::uno::Reference<css::drawing::XDrawSubController>& rxSubController);
128cdf0e10cSrcweir 
129cdf0e10cSrcweir     /** Call this method when the VisArea has changed.
130cdf0e10cSrcweir     */
131cdf0e10cSrcweir     void FireVisAreaChanged (const Rectangle& rVisArea) throw();
132cdf0e10cSrcweir 
133cdf0e10cSrcweir     /** Call this method when the selection has changed.
134cdf0e10cSrcweir     */
135cdf0e10cSrcweir 	void FireSelectionChangeListener (void) throw();
136cdf0e10cSrcweir 
137cdf0e10cSrcweir     /** Call this method when the edit mode has changed.
138cdf0e10cSrcweir     */
139cdf0e10cSrcweir     void FireChangeEditMode (bool bMasterPageMode) throw();
140cdf0e10cSrcweir 
141cdf0e10cSrcweir     /** Call this method when the layer mode has changed.
142cdf0e10cSrcweir     */
143cdf0e10cSrcweir 	void FireChangeLayerMode (bool bLayerMode) throw();
144cdf0e10cSrcweir 
145cdf0e10cSrcweir     /** Call this method when there is a new current page.
146cdf0e10cSrcweir     */
147cdf0e10cSrcweir 	void FireSwitchCurrentPage (SdPage* pCurrentPage) throw();
148cdf0e10cSrcweir 
14965be1ea2SAndre Fischer     /** Broadcast a sidebar context change that is caused by a view
15065be1ea2SAndre Fischer         switch.
15165be1ea2SAndre Fischer     */
15265be1ea2SAndre Fischer     void BroadcastContextChange (void) const;
153*0deba7fbSSteve Yin 	void NotifyAccUpdate();
154*0deba7fbSSteve Yin 	void fireChangeLayer( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XLayer>* pCurrentLayer ) throw();
155*0deba7fbSSteve Yin 	// change the parameter to int
156*0deba7fbSSteve Yin 	//void fireSwitchCurrentPage( String pageName) throw();
157*0deba7fbSSteve Yin 	void fireSwitchCurrentPage( sal_Int32 pageIndex) throw();
158*0deba7fbSSteve Yin 	::com::sun::star::uno::Reference< ::com::sun::star::drawing::XLayer>* mpCurrentLayer;
159*0deba7fbSSteve Yin 
160cdf0e10cSrcweir     /** Return a pointer to the ViewShellBase object that the DrawController
161cdf0e10cSrcweir         is connected to.
162cdf0e10cSrcweir         @return
163cdf0e10cSrcweir             The returned pointer is <NULL/> after a call to
164cdf0e10cSrcweir             ReleaseViewShellBase().
165cdf0e10cSrcweir     */
166cdf0e10cSrcweir     ViewShellBase* GetViewShellBase (void);
167cdf0e10cSrcweir 
168cdf0e10cSrcweir     /** This method is typically called from the destructor of ViewShellBase
169cdf0e10cSrcweir         to tell the DrawController that it and its members must not access
170cdf0e10cSrcweir         the ViewShellBase anymore.
171cdf0e10cSrcweir         After this call the DrawController is semi-disposed.
172cdf0e10cSrcweir     */
173cdf0e10cSrcweir     void ReleaseViewShellBase (void);
174cdf0e10cSrcweir 
175cdf0e10cSrcweir     static const ::com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId (void);
176cdf0e10cSrcweir 
177cdf0e10cSrcweir     DECLARE_XINTERFACE()
178cdf0e10cSrcweir 	DECLARE_XTYPEPROVIDER()
179cdf0e10cSrcweir 
180cdf0e10cSrcweir 	// XComponent
181cdf0e10cSrcweir 	virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException );
182cdf0e10cSrcweir     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
183cdf0e10cSrcweir     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
184cdf0e10cSrcweir 
185cdf0e10cSrcweir 	// XController
186cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL suspend( ::sal_Bool Suspend ) throw (::com::sun::star::uno::RuntimeException);
187cdf0e10cSrcweir 
188cdf0e10cSrcweir 	// XServiceInfo
189cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
190cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
191cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
192cdf0e10cSrcweir 
193cdf0e10cSrcweir 	// XSelectionSupplier
194cdf0e10cSrcweir     virtual sal_Bool SAL_CALL select( const ::com::sun::star::uno::Any& aSelection ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
195cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getSelection(  ) throw(::com::sun::star::uno::RuntimeException);
196cdf0e10cSrcweir     virtual void SAL_CALL addSelectionChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
197cdf0e10cSrcweir     virtual void SAL_CALL removeSelectionChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
198cdf0e10cSrcweir 
199cdf0e10cSrcweir 	// XPropertySet
200cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
201cdf0e10cSrcweir 
202cdf0e10cSrcweir     // XFormLayerAccess
203cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormController > SAL_CALL getFormController( const ::com::sun::star::uno::Reference< ::com::sun::star::form::XForm >& Form ) throw (::com::sun::star::uno::RuntimeException);
204cdf0e10cSrcweir     virtual ::sal_Bool SAL_CALL isFormDesignMode(  ) throw (::com::sun::star::uno::RuntimeException);
205cdf0e10cSrcweir     virtual void SAL_CALL setFormDesignMode( ::sal_Bool DesignMode ) throw (::com::sun::star::uno::RuntimeException);
206cdf0e10cSrcweir 
207cdf0e10cSrcweir     // XControlAccess
208cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getControl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& xModel ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
209cdf0e10cSrcweir 
210cdf0e10cSrcweir 	// XDrawView
211cdf0e10cSrcweir     virtual void SAL_CALL
212cdf0e10cSrcweir         setCurrentPage (
213cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
214cdf0e10cSrcweir             ::com::sun::star::drawing::XDrawPage >& xPage)
215cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
216cdf0e10cSrcweir 
217cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference<
218cdf0e10cSrcweir         ::com::sun::star::drawing::XDrawPage > SAL_CALL
219cdf0e10cSrcweir         getCurrentPage (void)
220cdf0e10cSrcweir         throw(::com::sun::star::uno::RuntimeException);
221cdf0e10cSrcweir 
222cdf0e10cSrcweir 
223cdf0e10cSrcweir     // lang::XEventListener
224cdf0e10cSrcweir     virtual void SAL_CALL
225cdf0e10cSrcweir         disposing (const ::com::sun::star::lang::EventObject& rEventObject)
226cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
227cdf0e10cSrcweir 
228cdf0e10cSrcweir 
229cdf0e10cSrcweir     // view::XSelectionChangeListener
230cdf0e10cSrcweir     virtual void  SAL_CALL
231cdf0e10cSrcweir         selectionChanged (const ::com::sun::star::lang::EventObject& rEvent)
232cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
233cdf0e10cSrcweir 
234cdf0e10cSrcweir 
235cdf0e10cSrcweir     // XControllerManager
236cdf0e10cSrcweir 
237cdf0e10cSrcweir     virtual css::uno::Reference<css::drawing::framework::XConfigurationController> SAL_CALL
238cdf0e10cSrcweir         getConfigurationController (void)
239cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
240cdf0e10cSrcweir 
241cdf0e10cSrcweir     virtual css::uno::Reference<css::drawing::framework::XModuleController> SAL_CALL
242cdf0e10cSrcweir         getModuleController (void)
243cdf0e10cSrcweir         throw (::com::sun::star::uno::RuntimeException);
244cdf0e10cSrcweir 
245cdf0e10cSrcweir 
246cdf0e10cSrcweir     // XUnoTunnel
247cdf0e10cSrcweir 
248cdf0e10cSrcweir     virtual sal_Int64 SAL_CALL getSomething (const com::sun::star::uno::Sequence<sal_Int8>& rId)
249cdf0e10cSrcweir         throw (com::sun::star::uno::RuntimeException);
250cdf0e10cSrcweir 
251cdf0e10cSrcweir protected:
252cdf0e10cSrcweir 	/** This method must return the name to index table. This table
253cdf0e10cSrcweir 	    contains all property names and types of this object.
254cdf0e10cSrcweir 	 */
255cdf0e10cSrcweir 	virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper();
256cdf0e10cSrcweir 
257cdf0e10cSrcweir     virtual void FillPropertyTable (
258cdf0e10cSrcweir         ::std::vector< ::com::sun::star::beans::Property>& rProperties);
259cdf0e10cSrcweir 
260cdf0e10cSrcweir 	/**
261cdf0e10cSrcweir 	 * The same as getFastProperyValue, but return the value through
262cdf0e10cSrcweir 	 * rValue and nHandle is always valid.
263cdf0e10cSrcweir 	 */
264cdf0e10cSrcweir 	virtual void SAL_CALL getFastPropertyValue(
265cdf0e10cSrcweir 		::com::sun::star::uno::Any& rValue,
266cdf0e10cSrcweir 		sal_Int32 nHandle ) const;
267cdf0e10cSrcweir 
268cdf0e10cSrcweir 	/** Convert the value rValue and return the result in rConvertedValue and the
269cdf0e10cSrcweir         old value in rOldValue.
270cdf0e10cSrcweir         After this call the vetoable listeners are notified.
271cdf0e10cSrcweir 
272cdf0e10cSrcweir         @param rConvertedValue
273cdf0e10cSrcweir             The converted value. Only set if return is true.
274cdf0e10cSrcweir         @param rOldValue
275cdf0e10cSrcweir             The old value. Only set if return is true.
276cdf0e10cSrcweir         @param nHandle
277cdf0e10cSrcweir             The handle of the proberty.
278cdf0e10cSrcweir         @return
279cdf0e10cSrcweir             <TRUE/> if the value is converted successfully.
280cdf0e10cSrcweir         @throws IllegalArgumentException
281cdf0e10cSrcweir 	 */
282cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL convertFastPropertyValue(
283cdf0e10cSrcweir 		::com::sun::star::uno::Any & rConvertedValue,
284cdf0e10cSrcweir 		::com::sun::star::uno::Any & rOldValue,
285cdf0e10cSrcweir 		sal_Int32 nHandle,
286cdf0e10cSrcweir 		const ::com::sun::star::uno::Any& rValue )
287cdf0e10cSrcweir 		throw (::com::sun::star::lang::IllegalArgumentException);
288cdf0e10cSrcweir 
289cdf0e10cSrcweir 	/** The same as setFastProperyValue, but no exception is thrown and nHandle
290cdf0e10cSrcweir         is always valid. You must not broadcast the changes in this method.
291cdf0e10cSrcweir 	 */
292cdf0e10cSrcweir 	virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
293cdf0e10cSrcweir 		sal_Int32 nHandle,
294cdf0e10cSrcweir 		const ::com::sun::star::uno::Any& rValue )
295cdf0e10cSrcweir 		throw (::com::sun::star::uno::Exception);
296cdf0e10cSrcweir 
297cdf0e10cSrcweir     /** When the called object has been disposed already this method throws
298cdf0e10cSrcweir         a Disposed exception and does not return.
299cdf0e10cSrcweir     */
300cdf0e10cSrcweir     void ThrowIfDisposed (void) const
301cdf0e10cSrcweir         throw (::com::sun::star::lang::DisposedException);
302cdf0e10cSrcweir 
303cdf0e10cSrcweir 	using cppu::OPropertySetHelper::disposing;
304cdf0e10cSrcweir 	using cppu::OPropertySetHelper::getFastPropertyValue;
305cdf0e10cSrcweir 
306cdf0e10cSrcweir private:
307cdf0e10cSrcweir     /** This pointer to the ViewShellBase can be NULL (after a call to
308cdf0e10cSrcweir         ReleaseViewShellBase()).
309cdf0e10cSrcweir     */
310cdf0e10cSrcweir     ViewShellBase* mpBase;
311cdf0e10cSrcweir 
312cdf0e10cSrcweir 	Rectangle maLastVisArea;
313cdf0e10cSrcweir     ::tools::WeakReference<SdrPage> mpCurrentPage;
314cdf0e10cSrcweir 	bool mbMasterPageMode;
315cdf0e10cSrcweir 	bool mbLayerMode;
316cdf0e10cSrcweir 
317cdf0e10cSrcweir     /** This flag indicates whether the called DrawController is being
318cdf0e10cSrcweir         disposed or already has been disposed.
319cdf0e10cSrcweir     */
320cdf0e10cSrcweir     bool mbDisposing;
321cdf0e10cSrcweir 
322cdf0e10cSrcweir     ::std::auto_ptr< ::cppu::IPropertyArrayHelper> mpPropertyArrayHelper;
323cdf0e10cSrcweir 
324cdf0e10cSrcweir     /** The current sub controller.  May be NULL.
325cdf0e10cSrcweir     */
326cdf0e10cSrcweir     css::uno::Reference<css::drawing::XDrawSubController> mxSubController;
327cdf0e10cSrcweir 
328cdf0e10cSrcweir     css::uno::Reference<
329cdf0e10cSrcweir         css::drawing::framework::XConfigurationController> mxConfigurationController;
330cdf0e10cSrcweir     css::uno::Reference<
331cdf0e10cSrcweir         css::drawing::framework::XModuleController> mxModuleController;
332cdf0e10cSrcweir 
333cdf0e10cSrcweir     /** Send an event to all relevant property listeners that a
334cdf0e10cSrcweir         property has changed its value.  The fire() method of the
335cdf0e10cSrcweir         OPropertySetHelper is wrapped by this method to handle
336cdf0e10cSrcweir         exceptions thrown by called listeners.
337cdf0e10cSrcweir     */
338cdf0e10cSrcweir     void FirePropertyChange (
339cdf0e10cSrcweir         sal_Int32 nHandle,
340cdf0e10cSrcweir         const ::com::sun::star::uno::Any& rNewValue,
341cdf0e10cSrcweir         const ::com::sun::star::uno::Any& rOldValue);
342cdf0e10cSrcweir 
343cdf0e10cSrcweir     void ProvideFrameworkControllers (void);
344cdf0e10cSrcweir     void DisposeFrameworkControllers (void);
345cdf0e10cSrcweir };
346cdf0e10cSrcweir 
347cdf0e10cSrcweir } // end of namespace sd
348cdf0e10cSrcweir 
349cdf0e10cSrcweir #endif
350