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