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