xref: /aoo42x/main/sw/inc/unostyle.hxx (revision 56b35d86)
11d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51d2dbeb0SAndrew Rist  * distributed with this work for additional information
61d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
91d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
101d2dbeb0SAndrew Rist  *
111d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
121d2dbeb0SAndrew Rist  *
131d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
151d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
171d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
181d2dbeb0SAndrew Rist  * under the License.
191d2dbeb0SAndrew Rist  *
201d2dbeb0SAndrew Rist  *************************************************************/
211d2dbeb0SAndrew Rist 
221d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _UNOSTYLE_HXX
24cdf0e10cSrcweir #define _UNOSTYLE_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <boost/shared_ptr.hpp>
27cdf0e10cSrcweir #include <svl/style.hxx>
28cdf0e10cSrcweir #include <svl/lstner.hxx>
29cdf0e10cSrcweir #include <unocoll.hxx>
30cdf0e10cSrcweir #include <unomap.hxx>
31cdf0e10cSrcweir #include <com/sun/star/style/XStyle.hpp>
32cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
33cdf0e10cSrcweir #include <com/sun/star/style/XStyleLoader.hpp>
34cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
35cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
36cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp>
37cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp>
38cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp>
39cdf0e10cSrcweir #include <cppuhelper/implbase7.hxx>
40cdf0e10cSrcweir #include <com/sun/star/document/XEventsSupplier.hpp>
41cdf0e10cSrcweir #include <calbck.hxx>
42cdf0e10cSrcweir 
43cdf0e10cSrcweir 
44cdf0e10cSrcweir #include <com/sun/star/style/XAutoStyleFamily.hpp>
45cdf0e10cSrcweir #include <com/sun/star/style/XAutoStyles.hpp>
46cdf0e10cSrcweir #include <com/sun/star/style/XAutoStyle.hpp>
47cdf0e10cSrcweir 
48cdf0e10cSrcweir #include <istyleaccess.hxx>
49cdf0e10cSrcweir 
50cdf0e10cSrcweir class SwDocShell;
51cdf0e10cSrcweir class SfxItemPropertySet;
52cdf0e10cSrcweir class SwXStyle;
53cdf0e10cSrcweir class SwStyleProperties_Impl;
54cdf0e10cSrcweir class SwAutoStylesEnumImpl;
55cdf0e10cSrcweir class IStyleAccess;
56cdf0e10cSrcweir class SfxItemSet;
57cdf0e10cSrcweir typedef boost::shared_ptr<SfxItemSet> SfxItemSet_Pointer_t;
58cdf0e10cSrcweir 
59cdf0e10cSrcweir /******************************************************************************
60cdf0e10cSrcweir  *
61cdf0e10cSrcweir  ******************************************************************************/
62cdf0e10cSrcweir /*-----------------12.02.98 08:27-------------------
63cdf0e10cSrcweir 
64cdf0e10cSrcweir --------------------------------------------------*/
65cdf0e10cSrcweir class SwXStyleFamilies :  public cppu::WeakImplHelper4
66cdf0e10cSrcweir <
67cdf0e10cSrcweir 	::com::sun::star::container::XIndexAccess,
68cdf0e10cSrcweir 	::com::sun::star::container::XNameAccess,
69cdf0e10cSrcweir 	::com::sun::star::lang::XServiceInfo,
70cdf0e10cSrcweir 	::com::sun::star::style::XStyleLoader
71cdf0e10cSrcweir >,
72cdf0e10cSrcweir 	public SwUnoCollection
73cdf0e10cSrcweir {
74cdf0e10cSrcweir 	SwDocShell* 		pDocShell;
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > *	pxCharStyles;
77cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > *	pxParaStyles;
78cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > *	pxFrameStyles;
79cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > *	pxPageStyles;
80cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > *	pxNumberingStyles;
81cdf0e10cSrcweir protected:
82cdf0e10cSrcweir 	virtual ~SwXStyleFamilies();
83cdf0e10cSrcweir public:
84cdf0e10cSrcweir 	SwXStyleFamilies(SwDocShell& rDocShell);
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 
87cdf0e10cSrcweir 	//XNameAccess
88cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName(const rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
89cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
90cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 	//XIndexAccess
93cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
94cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
95cdf0e10cSrcweir 
96cdf0e10cSrcweir 	//XElementAccess
97cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
98cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
99cdf0e10cSrcweir 
100cdf0e10cSrcweir 	//XStyleLoader
101cdf0e10cSrcweir 	virtual void SAL_CALL loadStylesFromURL(const rtl::OUString& rURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aOptions) throw( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException );
102cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getStyleLoaderOptions(void) throw( ::com::sun::star::uno::RuntimeException );
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 
105cdf0e10cSrcweir 	//XServiceInfo
106cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
107cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
108cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
109cdf0e10cSrcweir };
110cdf0e10cSrcweir 
111cdf0e10cSrcweir /* -----------------26.05.98 10:56-------------------
112cdf0e10cSrcweir  *
113cdf0e10cSrcweir  * --------------------------------------------------*/
114cdf0e10cSrcweir class SwXStyleFamily : public cppu::WeakImplHelper4
115cdf0e10cSrcweir <
116cdf0e10cSrcweir 	::com::sun::star::container::XNameContainer,
117cdf0e10cSrcweir 	::com::sun::star::lang::XServiceInfo,
118cdf0e10cSrcweir     ::com::sun::star::container::XIndexAccess,
119cdf0e10cSrcweir     ::com::sun::star::beans::XPropertySet
120cdf0e10cSrcweir >,
121cdf0e10cSrcweir 	public SfxListener
122cdf0e10cSrcweir {
123cdf0e10cSrcweir 	SfxStyleFamily 				eFamily;		// Familie
124cdf0e10cSrcweir 	SfxStyleSheetBasePool*		pBasePool;
125cdf0e10cSrcweir //	const SfxItemPropertyMap*	_pPropMap;
126cdf0e10cSrcweir 	SwDocShell* 				pDocShell;
127cdf0e10cSrcweir 
128cdf0e10cSrcweir 	SwXStyle* 				_FindStyle(const String& rStyleName) const;
129cdf0e10cSrcweir public:
130cdf0e10cSrcweir 	SwXStyleFamily(SwDocShell* pDocShell, sal_uInt16 nFamily);
131cdf0e10cSrcweir 	~SwXStyleFamily();
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 	//XIndexAccess
134cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
135cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
136cdf0e10cSrcweir 
137cdf0e10cSrcweir 	//XElementAccess
138cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
139cdf0e10cSrcweir     virtual sal_Bool SAL_CALL SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
140cdf0e10cSrcweir 
141cdf0e10cSrcweir 	//XNameAccess
142cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName(const rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
143cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
144cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
145cdf0e10cSrcweir 
146cdf0e10cSrcweir 	//XNameContainer
147cdf0e10cSrcweir 	virtual void SAL_CALL insertByName(const rtl::OUString& Name, const ::com::sun::star::uno::Any& Element) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
148cdf0e10cSrcweir 	virtual void SAL_CALL replaceByName(const rtl::OUString& Name, const ::com::sun::star::uno::Any& Element) throw( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
149cdf0e10cSrcweir 	virtual void SAL_CALL removeByName(const rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
150cdf0e10cSrcweir 
151cdf0e10cSrcweir     //XPropertySet
152cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
153cdf0e10cSrcweir     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);
154cdf0e10cSrcweir     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);
155cdf0e10cSrcweir     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);
156cdf0e10cSrcweir     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);
157cdf0e10cSrcweir     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);
158cdf0e10cSrcweir     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);
159cdf0e10cSrcweir 
160cdf0e10cSrcweir     //SfxListener
161cdf0e10cSrcweir 	virtual void		Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
162cdf0e10cSrcweir 
163cdf0e10cSrcweir 	//XServiceInfo
164cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
165cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
166cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
167cdf0e10cSrcweir };
168cdf0e10cSrcweir /* -----------------20.05.98 09:51-------------------
169cdf0e10cSrcweir  *
170cdf0e10cSrcweir  * --------------------------------------------------*/
171cdf0e10cSrcweir class SwXStyle : public cppu::WeakImplHelper7
172cdf0e10cSrcweir <
173cdf0e10cSrcweir 	::com::sun::star::style::XStyle,
174cdf0e10cSrcweir 	::com::sun::star::beans::XPropertySet,
175cdf0e10cSrcweir     ::com::sun::star::beans::XMultiPropertySet,
176cdf0e10cSrcweir     ::com::sun::star::lang::XServiceInfo,
177cdf0e10cSrcweir 	::com::sun::star::lang::XUnoTunnel,
178cdf0e10cSrcweir 	::com::sun::star::beans::XPropertyState,
179cdf0e10cSrcweir 	::com::sun::star::beans::XMultiPropertyStates
180cdf0e10cSrcweir >,
181cdf0e10cSrcweir 		public SfxListener,
182cdf0e10cSrcweir 		public SwClient
183cdf0e10cSrcweir {
184cdf0e10cSrcweir 	friend class SwXStyleFamily;
185cdf0e10cSrcweir 	SwDoc* 					m_pDoc;
186cdf0e10cSrcweir 	String 					sStyleName;
187cdf0e10cSrcweir 	SfxStyleSheetBasePool* 	pBasePool;
188cdf0e10cSrcweir 	SfxStyleFamily 			eFamily;	// fuer Notify
189cdf0e10cSrcweir 
190cdf0e10cSrcweir 	sal_Bool					bIsDescriptor  : 1;
191cdf0e10cSrcweir 	sal_Bool					bIsConditional : 1;
192cdf0e10cSrcweir 	String					sParentStyleName;
193cdf0e10cSrcweir 	SwStyleProperties_Impl*	pPropImpl;
194cdf0e10cSrcweir 
195cdf0e10cSrcweir 	void	ApplyDescriptorProperties();
196cdf0e10cSrcweir protected:
197cdf0e10cSrcweir 	void 	Invalidate();
198cdf0e10cSrcweir 
GetBasePool() const199cdf0e10cSrcweir 	const SfxStyleSheetBasePool* 	GetBasePool() const {return pBasePool;}
GetBasePool()200cdf0e10cSrcweir 	SfxStyleSheetBasePool* 	GetBasePool() {return pBasePool;}
201cdf0e10cSrcweir 
SetStyleName(const String & rSet)202cdf0e10cSrcweir 	void				SetStyleName(const String& rSet){ sStyleName = rSet;}
GetPropImpl()203cdf0e10cSrcweir     SwStyleProperties_Impl* GetPropImpl(){return pPropImpl;}
204cdf0e10cSrcweir 	com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >	mxStyleData;
205cdf0e10cSrcweir 	com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >	mxStyleFamily;
206cdf0e10cSrcweir 
207cdf0e10cSrcweir     void SAL_CALL SetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) 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);
208cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
209cdf0e10cSrcweir 
210cdf0e10cSrcweir    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
211cdf0e10cSrcweir public:
212cdf0e10cSrcweir 	SwXStyle(SwDoc* pDoc, SfxStyleFamily eFam = SFX_STYLE_FAMILY_PARA, sal_Bool bConditional = sal_False);
213cdf0e10cSrcweir 	SwXStyle(SfxStyleSheetBasePool& rPool, SfxStyleFamily eFam,
214cdf0e10cSrcweir 								SwDoc* 	pDoc,
215cdf0e10cSrcweir 								const String& rStyleName);//,
216cdf0e10cSrcweir 									//const SfxItemPropertyMap* _pMap);
217cdf0e10cSrcweir 	~SwXStyle();
218cdf0e10cSrcweir 
219cdf0e10cSrcweir 	TYPEINFO();
220cdf0e10cSrcweir 
221cdf0e10cSrcweir 	static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId();
222cdf0e10cSrcweir 
223cdf0e10cSrcweir 	//XUnoTunnel
224cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException);
225cdf0e10cSrcweir 
226cdf0e10cSrcweir 	//XNamed
227cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getName(void) throw( ::com::sun::star::uno::RuntimeException );
228cdf0e10cSrcweir 	virtual void SAL_CALL setName(const rtl::OUString& Name_) throw( ::com::sun::star::uno::RuntimeException );
229cdf0e10cSrcweir 
230cdf0e10cSrcweir 	//XStyle
231cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isUserDefined(void) throw( ::com::sun::star::uno::RuntimeException );
232cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isInUse(void) throw( ::com::sun::star::uno::RuntimeException );
233cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getParentStyle(void) throw( ::com::sun::star::uno::RuntimeException );
234cdf0e10cSrcweir 	virtual void SAL_CALL setParentStyle(const rtl::OUString& aParentStyle) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException );
235cdf0e10cSrcweir 
236cdf0e10cSrcweir 	//XPropertySet
237cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
238cdf0e10cSrcweir     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);
239cdf0e10cSrcweir     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);
240cdf0e10cSrcweir     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);
241cdf0e10cSrcweir     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);
242cdf0e10cSrcweir     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);
243cdf0e10cSrcweir     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);
244cdf0e10cSrcweir 
245cdf0e10cSrcweir     //XMultiPropertySet
246cdf0e10cSrcweir //    virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
247cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
248cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw(::com::sun::star::uno::RuntimeException);
249cdf0e10cSrcweir     virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
250cdf0e10cSrcweir     virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
251cdf0e10cSrcweir     virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
252cdf0e10cSrcweir 
253cdf0e10cSrcweir     //XPropertyState
254cdf0e10cSrcweir     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
255cdf0e10cSrcweir     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);
256cdf0e10cSrcweir     virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
257cdf0e10cSrcweir     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);
258cdf0e10cSrcweir 
259cdf0e10cSrcweir 	//XMultiPropertyStates
260cdf0e10cSrcweir     //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);
261cdf0e10cSrcweir     virtual void SAL_CALL setAllPropertiesToDefault(  ) throw (::com::sun::star::uno::RuntimeException);
262cdf0e10cSrcweir     virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
263cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
264cdf0e10cSrcweir 
265cdf0e10cSrcweir 	//XServiceInfo
266cdf0e10cSrcweir 	virtual rtl::OUString SAL_CALL getImplementationName(void) throw( ::com::sun::star::uno::RuntimeException );
267cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException );
268cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException );
269cdf0e10cSrcweir 
270cdf0e10cSrcweir 	//SfxListener
271cdf0e10cSrcweir 	virtual void		Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
272cdf0e10cSrcweir 
GetStyleName() const273cdf0e10cSrcweir 	const String& 		GetStyleName() const { return sStyleName;}
GetFamily() const274cdf0e10cSrcweir 	SfxStyleFamily 		GetFamily() const {return eFamily;}
275cdf0e10cSrcweir 
IsDescriptor() const276cdf0e10cSrcweir 	sal_Bool				IsDescriptor() const {return bIsDescriptor;}
IsConditional() const277cdf0e10cSrcweir 	sal_Bool				IsConditional() const { return bIsConditional;}
GetParentStyleName() const278cdf0e10cSrcweir 	const String&		GetParentStyleName() const { return sParentStyleName;}
SetDoc(SwDoc * pDc,SfxStyleSheetBasePool * pPool)279cdf0e10cSrcweir 	void				SetDoc(SwDoc* pDc, SfxStyleSheetBasePool* 	pPool)
280cdf0e10cSrcweir 							{
281cdf0e10cSrcweir 								bIsDescriptor = sal_False; m_pDoc = pDc;
282cdf0e10cSrcweir 								pBasePool = pPool;
283cdf0e10cSrcweir 								StartListening(*pBasePool);
284cdf0e10cSrcweir 							}
GetDoc() const285cdf0e10cSrcweir     SwDoc*                GetDoc() const { return m_pDoc; }
286cdf0e10cSrcweir };
287cdf0e10cSrcweir /* -----------------------------15.12.00 14:25--------------------------------
288cdf0e10cSrcweir 
289cdf0e10cSrcweir  ---------------------------------------------------------------------------*/
290cdf0e10cSrcweir class SwXFrameStyle : public SwXStyle,
291cdf0e10cSrcweir 						public com::sun::star::document::XEventsSupplier
292cdf0e10cSrcweir {
293cdf0e10cSrcweir public:
SwXFrameStyle(SfxStyleSheetBasePool & rPool,SwDoc * pDoc,const String & rStyleName)294cdf0e10cSrcweir 	SwXFrameStyle(SfxStyleSheetBasePool& rPool,
295cdf0e10cSrcweir 								SwDoc* 	pDoc,
296cdf0e10cSrcweir 								const String& rStyleName) :
297cdf0e10cSrcweir 		SwXStyle(rPool, SFX_STYLE_FAMILY_FRAME, pDoc, rStyleName){}
298cdf0e10cSrcweir 	SwXFrameStyle( SwDoc *pDoc );
299cdf0e10cSrcweir 	~SwXFrameStyle();
300cdf0e10cSrcweir 
acquire()301cdf0e10cSrcweir     virtual void SAL_CALL acquire(  ) throw(){SwXStyle::acquire();}
release()302cdf0e10cSrcweir     virtual void SAL_CALL release(  ) throw(){SwXStyle::release();}
303cdf0e10cSrcweir 
304cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException);
305cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
306cdf0e10cSrcweir 
307cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents(  ) throw(::com::sun::star::uno::RuntimeException);
308cdf0e10cSrcweir 
309cdf0e10cSrcweir 	friend class SwFrameStyleEventDescriptor;
310cdf0e10cSrcweir };
311cdf0e10cSrcweir /* -----------------24.08.98 16:04-------------------
312cdf0e10cSrcweir  *
313cdf0e10cSrcweir  * --------------------------------------------------*/
314cdf0e10cSrcweir class SwXPageStyle : public SwXStyle
315cdf0e10cSrcweir {
316cdf0e10cSrcweir 	SwDocShell* 	pDocShell;
317cdf0e10cSrcweir 
318cdf0e10cSrcweir protected:
319cdf0e10cSrcweir     void SAL_CALL SetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) 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);
320cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
321cdf0e10cSrcweir 
322cdf0e10cSrcweir public:
323cdf0e10cSrcweir 	SwXPageStyle(SfxStyleSheetBasePool& rPool, SwDocShell* pDocSh, SfxStyleFamily eFam,
324cdf0e10cSrcweir 								const String& rStyleName);//,
325cdf0e10cSrcweir 									//const SfxItemPropertyMap* _pMap);
326cdf0e10cSrcweir 	SwXPageStyle(SwDocShell* pDocSh);
327cdf0e10cSrcweir 	~SwXPageStyle();
328cdf0e10cSrcweir 
329cdf0e10cSrcweir 	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);
330cdf0e10cSrcweir     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);
331cdf0e10cSrcweir 
332cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
333cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw(::com::sun::star::uno::RuntimeException);
334cdf0e10cSrcweir 
335cdf0e10cSrcweir };
336cdf0e10cSrcweir /*-- 19.05.2006 11:20:22---------------------------------------------------
337cdf0e10cSrcweir     access to all automatic style families
338cdf0e10cSrcweir   -----------------------------------------------------------------------*/
339cdf0e10cSrcweir class SwXAutoStyles :
340cdf0e10cSrcweir     public cppu::WeakImplHelper1< ::com::sun::star::style::XAutoStyles >,
341cdf0e10cSrcweir     public SwUnoCollection
342cdf0e10cSrcweir {
343cdf0e10cSrcweir     SwDocShell *pDocShell;
344cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > xAutoCharStyles;
345cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > xAutoRubyStyles;
346cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > xAutoParaStyles;
347cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyleFamily > xAutoNotxtStyles;
348cdf0e10cSrcweir     virtual ~SwXAutoStyles();
349cdf0e10cSrcweir 
350cdf0e10cSrcweir public:
351cdf0e10cSrcweir     SwXAutoStyles(SwDocShell& rDocShell);
352cdf0e10cSrcweir 
353cdf0e10cSrcweir 	//XIndexAccess
354cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount(void) throw( ::com::sun::star::uno::RuntimeException );
355cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
356cdf0e10cSrcweir 
357cdf0e10cSrcweir 	//XElementAccess
358cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
359cdf0e10cSrcweir     virtual sal_Bool SAL_CALL SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
360cdf0e10cSrcweir 
361cdf0e10cSrcweir 	//XNameAccess
362cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName(const rtl::OUString& Name) throw( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
363cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getElementNames(void) throw( ::com::sun::star::uno::RuntimeException );
364cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName(const rtl::OUString& Name) throw( ::com::sun::star::uno::RuntimeException );
365cdf0e10cSrcweir 
366cdf0e10cSrcweir };
367cdf0e10cSrcweir /*-- 19.05.2006 11:20:12---------------------------------------------------
368cdf0e10cSrcweir     access to a family of automatic styles (character or paragraph or ...)
369cdf0e10cSrcweir   -----------------------------------------------------------------------*/
370cdf0e10cSrcweir class SwXAutoStyleFamily : public cppu::WeakImplHelper1< com::sun::star::style::XAutoStyleFamily >,
371cdf0e10cSrcweir     public SwClient
372cdf0e10cSrcweir {
373cdf0e10cSrcweir     SwDocShell *pDocShell;
374cdf0e10cSrcweir     IStyleAccess::SwAutoStyleFamily eFamily;
375cdf0e10cSrcweir 
376cdf0e10cSrcweir protected:
377cdf0e10cSrcweir    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
378cdf0e10cSrcweir 
379cdf0e10cSrcweir public:
380cdf0e10cSrcweir     SwXAutoStyleFamily(SwDocShell* pDocShell, IStyleAccess::SwAutoStyleFamily eFamily);
381cdf0e10cSrcweir 	virtual ~SwXAutoStyleFamily();
382cdf0e10cSrcweir 
383cdf0e10cSrcweir     //XAutoStyleFamily
384cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::style::XAutoStyle > SAL_CALL insertStyle( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Values ) throw (::com::sun::star::uno::RuntimeException);
385cdf0e10cSrcweir 
386cdf0e10cSrcweir 	//XEnumerationAccess
387cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration(  ) throw (::com::sun::star::uno::RuntimeException);
388cdf0e10cSrcweir 
389cdf0e10cSrcweir     //XElementAccess
390cdf0e10cSrcweir     virtual ::com::sun::star::uno::Type SAL_CALL SAL_CALL getElementType(  ) throw(::com::sun::star::uno::RuntimeException);
391cdf0e10cSrcweir     virtual sal_Bool SAL_CALL SAL_CALL hasElements(  ) throw(::com::sun::star::uno::RuntimeException);
392cdf0e10cSrcweir 
393cdf0e10cSrcweir };
394*56b35d86SArmin Le Grand 
395cdf0e10cSrcweir class SwXAutoStylesEnumerator : public cppu::WeakImplHelper1< ::com::sun::star::container::XEnumeration >,
396cdf0e10cSrcweir     public SwClient
397cdf0e10cSrcweir {
398cdf0e10cSrcweir     SwAutoStylesEnumImpl *pImpl;
399cdf0e10cSrcweir public:
400cdf0e10cSrcweir     SwXAutoStylesEnumerator( SwDoc* pDoc, IStyleAccess::SwAutoStyleFamily eFam );
401cdf0e10cSrcweir     virtual ~SwXAutoStylesEnumerator();
402cdf0e10cSrcweir 
403cdf0e10cSrcweir     //XEnumeration
404cdf0e10cSrcweir     virtual sal_Bool SAL_CALL hasMoreElements(  ) throw (::com::sun::star::uno::RuntimeException);
405cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL nextElement(  ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
406cdf0e10cSrcweir protected:
407cdf0e10cSrcweir     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
408cdf0e10cSrcweir };
409cdf0e10cSrcweir 
410cdf0e10cSrcweir /*-- 19.05.2006 11:20:02---------------------------------------------------
411cdf0e10cSrcweir     an automatic style
412cdf0e10cSrcweir   -----------------------------------------------------------------------*/
413cdf0e10cSrcweir 
414cdf0e10cSrcweir class SwXAutoStyle : public cppu::WeakImplHelper3
415cdf0e10cSrcweir <
416cdf0e10cSrcweir     ::com::sun::star::beans::XPropertySet,
417cdf0e10cSrcweir     ::com::sun::star::beans::XPropertyState,
418cdf0e10cSrcweir     ::com::sun::star::style::XAutoStyle
419cdf0e10cSrcweir >,
420cdf0e10cSrcweir     public SwClient
421cdf0e10cSrcweir {
422*56b35d86SArmin Le Grand private:
423*56b35d86SArmin Le Grand     SfxItemSet_Pointer_t                mpSet;
424*56b35d86SArmin Le Grand     IStyleAccess::SwAutoStyleFamily     meFamily;
425*56b35d86SArmin Le Grand     SwDoc&                              mrDoc;
426cdf0e10cSrcweir 
427cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL GetPropertyValues_Impl( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
428cdf0e10cSrcweir 
429cdf0e10cSrcweir public:
430cdf0e10cSrcweir 
431cdf0e10cSrcweir     SwXAutoStyle( SwDoc* pDoc, SfxItemSet_Pointer_t pInitSet, IStyleAccess::SwAutoStyleFamily eFam );
432cdf0e10cSrcweir     virtual ~SwXAutoStyle();
433cdf0e10cSrcweir 
434cdf0e10cSrcweir     //XPropertySet
435cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException);
436cdf0e10cSrcweir     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);
437cdf0e10cSrcweir     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);
438cdf0e10cSrcweir     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);
439cdf0e10cSrcweir     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);
440cdf0e10cSrcweir     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);
441cdf0e10cSrcweir     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);
442cdf0e10cSrcweir 
443cdf0e10cSrcweir     //XMultiPropertySet
444cdf0e10cSrcweir     // virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw (::com::sun::star::uno::RuntimeException);
445cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) throw (::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
446cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::uno::RuntimeException);
447cdf0e10cSrcweir     virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
448cdf0e10cSrcweir     virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
449cdf0e10cSrcweir     virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
450cdf0e10cSrcweir 
451cdf0e10cSrcweir     //XPropertyState
452cdf0e10cSrcweir     virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
453cdf0e10cSrcweir     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);
454cdf0e10cSrcweir     virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
455cdf0e10cSrcweir     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);
456cdf0e10cSrcweir 
457cdf0e10cSrcweir     //XMultiPropertyStates
458cdf0e10cSrcweir     // 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);
459cdf0e10cSrcweir     virtual void SAL_CALL setAllPropertiesToDefault(  ) throw (::com::sun::star::uno::RuntimeException);
460cdf0e10cSrcweir     virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
461cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
462cdf0e10cSrcweir 
463cdf0e10cSrcweir     // Special
464cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getProperties() throw (::com::sun::star::uno::RuntimeException);
465cdf0e10cSrcweir protected:
466cdf0e10cSrcweir     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
467cdf0e10cSrcweir 
468cdf0e10cSrcweir };
469cdf0e10cSrcweir #endif
470cdf0e10cSrcweir 
471cdf0e10cSrcweir 
472