xref: /trunk/main/sw/inc/unoframe.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _UNOFRAME_HXX
28 #define _UNOFRAME_HXX
29 
30 #include <com/sun/star/beans/XPropertyState.hpp>
31 #include <com/sun/star/container/XNamed.hpp>
32 #include <com/sun/star/container/XEnumerationAccess.hpp>
33 #include <com/sun/star/document/XEmbeddedObjectSupplier2.hpp>
34 #include <com/sun/star/text/XTextFrame.hpp>
35 #include <com/sun/star/drawing/XShape.hpp>
36 #include <com/sun/star/util/XModifyListener.hpp>
37 #include <com/sun/star/frame/XModel.hpp>
38 #include <com/sun/star/document/XEventsSupplier.hpp>
39 
40 #include <cppuhelper/implbase1.hxx>
41 #include <cppuhelper/implbase3.hxx>
42 #include <cppuhelper/implbase6.hxx>
43 
44 #include <sfx2/objsh.hxx>
45 
46 #include <flyenum.hxx>
47 #include <frmfmt.hxx>
48 #include <unoevtlstnr.hxx>
49 #include <unotext.hxx>
50 
51 
52 class SfxItemPropertSet;
53 class SdrObject;
54 class SwDoc;
55 class SwFmt;
56 class SwFlyFrmFmt;
57 
58 class BaseFrameProperties_Impl;
59 class SwXFrame : public cppu::WeakImplHelper6
60 <
61 	::com::sun::star::lang::XServiceInfo,
62 	::com::sun::star::beans::XPropertySet,
63 	::com::sun::star::beans::XPropertyState,
64 	::com::sun::star::drawing::XShape,
65 	::com::sun::star::container::XNamed,
66 	::com::sun::star::lang::XUnoTunnel
67 >,
68 	public SwClient
69 {
70 	SwEventListenerContainer		aLstnrCntnr;
71     const SfxItemPropertySet*       m_pPropSet;
72     SwDoc*                          m_pDoc;
73 
74 	const FlyCntType 				eType;
75 
76 	// Descriptor-interface
77 	BaseFrameProperties_Impl*		pProps;
78 	sal_Bool 						bIsDescriptor;
79 	String 							sName;
80 
81     SwPaM*                          m_pCopySource;
82 
83 protected:
84 	com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >	mxStyleData;
85 	com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >	mxStyleFamily;
86    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
87 
88 	virtual ~SwXFrame();
89 public:
90 	SwXFrame(FlyCntType eSet,
91                 const SfxItemPropertySet*    pPropSet,
92 				SwDoc *pDoc ); //Descriptor-If
93 	SwXFrame(SwFrmFmt& rFrmFmt, FlyCntType eSet,
94                 const SfxItemPropertySet*    pPropSet);
95 
96 
97 	static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
98 
99 	//XUnoTunnel
100 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
101 
102 	TYPEINFO();
103 
104 	//XNamed
105 	virtual rtl::OUString SAL_CALL getName(void) throw( ::com::sun::star::uno::RuntimeException );
106 	virtual void SAL_CALL setName(const rtl::OUString& Name_) throw( ::com::sun::star::uno::RuntimeException );
107 
108 	//XPropertySet
109     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
110     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
111     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
112     virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
113     virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
114     virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
115     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
116 
117  	//XPropertyState
118     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
119     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
120     virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
121     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
122 
123    //XShape
124     virtual ::com::sun::star::awt::Point SAL_CALL getPosition(  ) throw(::com::sun::star::uno::RuntimeException);
125     virtual void SAL_CALL setPosition( const ::com::sun::star::awt::Point& aPosition ) throw(::com::sun::star::uno::RuntimeException);
126     virtual ::com::sun::star::awt::Size SAL_CALL getSize(  ) throw(::com::sun::star::uno::RuntimeException);
127     virtual void SAL_CALL setSize( const ::com::sun::star::awt::Size& aSize ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException);
128 
129 	//XShapeDescriptor
130 	virtual rtl::OUString SAL_CALL getShapeType(void) throw( ::com::sun::star::uno::RuntimeException );
131 
132 	//Basisimplementierung
133 	//XComponent
134     virtual void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
135     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
136     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException);
137 
138 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >  SAL_CALL getAnchor(void) throw( ::com::sun::star::uno::RuntimeException );
139 
140 	//XServiceInfo
141 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
142 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
143 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
144 
145 	void attachToRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange)throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
146     void attach( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xTextRange ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
147 
148 	SwFrmFmt* 		GetFrmFmt() const
149 	{
150 		return PTR_CAST ( SwFrmFmt, GetRegisteredIn() );
151 	}
152 	FlyCntType 		GetFlyCntType()const {return eType;}
153 
154 	sal_Bool 			IsDescriptor() const {return bIsDescriptor;}
155 	void			ResetDescriptor();
156     //copy text from a given source PaM
157     void            SetSelection(SwPaM& rCopySource);
158 	static SW_DLLPUBLIC SdrObject *GetOrCreateSdrObject( SwFlyFrmFmt *pFmt );
159 };
160 
161 typedef cppu::WeakImplHelper3
162 <
163 	::com::sun::star::text::XTextFrame,
164 	::com::sun::star::container::XEnumerationAccess,
165 	::com::sun::star::document::XEventsSupplier
166 >
167 SwXTextFrameBaseClass;
168 
169 class SwXTextFrame : public SwXTextFrameBaseClass,
170 	public SwXText,
171 	public SwXFrame
172 {
173     const SfxItemPropertSet*    _pPropSet;
174 
175 protected:
176 	virtual const SwStartNode *GetStartNode() const;
177 
178     virtual ::com::sun::star::uno::Reference<
179                 ::com::sun::star::text::XTextCursor >
180         CreateCursor()
181         throw (::com::sun::star::uno::RuntimeException);
182 
183 	virtual ~SwXTextFrame();
184 public:
185 	SwXTextFrame(SwDoc *pDoc);
186 	SwXTextFrame(SwFrmFmt& rFmt);
187 
188     // FIXME: EVIL HACK:  make available for SwXFrame::attachToRange
189     void SetDoc(SwDoc *const pDoc) { SwXText::SetDoc(pDoc); };
190 
191     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
192     virtual void SAL_CALL acquire(  ) throw();
193     virtual void SAL_CALL release(  ) throw();
194 
195 	//XTypeProvider
196 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
197     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
198 
199 	//XTextFrame
200 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XText >  SAL_CALL getText(void) throw( ::com::sun::star::uno::RuntimeException );
201 
202 	//XText
203 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >  SAL_CALL createTextCursor(void) throw( ::com::sun::star::uno::RuntimeException );
204 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >  SAL_CALL createTextCursorByRange(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & aTextPosition) throw( ::com::sun::star::uno::RuntimeException );
205 
206 	//XEnumerationAccess - frueher XParagraphEnumerationAccess
207 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration >  SAL_CALL createEnumeration(void) throw( ::com::sun::star::uno::RuntimeException );
208 
209 	//XElementAccess
210     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
211     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
212 
213 	//XTextContent
214     virtual void SAL_CALL attach( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xTextRange ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
215     virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL getAnchor(  ) throw(::com::sun::star::uno::RuntimeException);
216 
217 	//XComponent
218     virtual void SAL_CALL dispose(  ) throw(::com::sun::star::uno::RuntimeException);
219     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
220     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw(::com::sun::star::uno::RuntimeException);
221 
222 	//XServiceInfo
223 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
224 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
225 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
226 
227     // XEventsSupplier
228     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents(  ) throw(::com::sun::star::uno::RuntimeException);
229 
230 	//XUnoTunnel
231 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
232 
233     //XPropertySet
234     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
235 
236     void * SAL_CALL operator new( size_t ) throw();
237 	void SAL_CALL operator delete( void * ) throw();
238 };
239 
240 typedef cppu::WeakImplHelper2
241 <
242 	::com::sun::star::text::XTextContent,
243 	::com::sun::star::document::XEventsSupplier
244 >
245 SwXTextGraphicObjectBaseClass;
246 class SwXTextGraphicObject : public SwXTextGraphicObjectBaseClass,
247 							public SwXFrame
248 {
249 protected:
250 	virtual ~SwXTextGraphicObject();
251 public:
252 	SwXTextGraphicObject( SwDoc *pDoc );
253 	SwXTextGraphicObject(SwFrmFmt& rFmt);
254 
255 
256     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
257     virtual void SAL_CALL acquire(  ) throw();
258     virtual void SAL_CALL release(  ) throw();
259 
260 	//XTypeProvider
261 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
262     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
263 
264 	//XTextContent
265 	virtual void SAL_CALL attach(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
266 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >  SAL_CALL getAnchor(void) throw( ::com::sun::star::uno::RuntimeException );
267 
268 	//XComponent
269 	virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException );
270 	virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
271 	virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
272 
273 	//XServiceInfo
274 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
275 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
276 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
277 
278     // XEventsSupplier
279     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents(  ) throw(::com::sun::star::uno::RuntimeException);
280 	void * SAL_CALL operator new( size_t ) throw();
281 	void SAL_CALL operator delete( void * ) throw();
282 };
283 /*-----------------20.02.98 11:28-------------------
284 
285 --------------------------------------------------*/
286 class SwOLENode;
287 typedef cppu::WeakImplHelper3
288 <
289 	::com::sun::star::text::XTextContent,
290 	::com::sun::star::document::XEmbeddedObjectSupplier2,
291 	::com::sun::star::document::XEventsSupplier
292 >SwXTextEmbeddedObjectBaseClass;
293 
294 class SwXTextEmbeddedObject : public SwXTextEmbeddedObjectBaseClass,
295 								public SwXFrame
296 {
297 protected:
298 	virtual ~SwXTextEmbeddedObject();
299 
300 public:
301 	SwXTextEmbeddedObject( SwDoc *pDoc );
302 	SwXTextEmbeddedObject(SwFrmFmt& rFmt);
303 
304 
305     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
306     virtual void SAL_CALL acquire(  ) throw();
307     virtual void SAL_CALL release(  ) throw();
308 
309 	//XTypeProvider
310 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
311     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId(  ) throw(::com::sun::star::uno::RuntimeException);
312 
313 	//XTextContent
314 	virtual void SAL_CALL attach(const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > & xTextRange) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
315 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >  SAL_CALL getAnchor(void) throw( ::com::sun::star::uno::RuntimeException );
316 
317 	//XComponent
318 	virtual void SAL_CALL dispose(void) throw( ::com::sun::star::uno::RuntimeException );
319 	virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
320 	virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw( ::com::sun::star::uno::RuntimeException );
321 
322 	//XEmbeddedObjectSupplier2
323 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >  SAL_CALL getEmbeddedObject(void) throw( ::com::sun::star::uno::RuntimeException );
324     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject > SAL_CALL getExtendedControlOverEmbeddedObject(void) throw( ::com::sun::star::uno::RuntimeException );
325     virtual ::sal_Int64 SAL_CALL getAspect() throw (::com::sun::star::uno::RuntimeException);
326     virtual void SAL_CALL setAspect( ::sal_Int64 _aspect ) throw (::com::sun::star::uno::RuntimeException);
327     virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL getReplacementGraphic() throw (::com::sun::star::uno::RuntimeException);
328 
329 	//XServiceInfo
330 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
331 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
332 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
333 
334     // XEventsSupplier
335     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents(  ) throw(::com::sun::star::uno::RuntimeException);
336 	void * SAL_CALL operator new( size_t ) throw();
337 	void SAL_CALL operator delete( void * ) throw();
338 };
339 
340 
341 
342 class SwXOLEListener : public cppu::WeakImplHelper1
343 <
344 	::com::sun::star::util::XModifyListener
345 >,
346 	public SwClient
347 {
348     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xOLEModel;
349 //    SfxObjectShell* GetObjShell( const SwFmt& rFmt,
350 //                                    SwOLENode** ppNd = 0 ) const;
351     SwFmt*       GetFmt() const    {  return (SwFmt*)GetRegisteredIn(); }
352 public:
353     SwXOLEListener(SwFmt& rOLEFmt, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > xOLE);
354     ~SwXOLEListener();
355     TYPEINFO();
356 
357 // ::com::sun::star::lang::XEventListener
358     virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
359 
360 // ::com::sun::star::util::XModifyListener
361     virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw(::com::sun::star::uno::RuntimeException);
362 
363 protected:
364    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
365 };
366 
367 
368 
369 #endif
370 
371