xref: /aoo41x/main/sc/inc/styleuno.hxx (revision caf44ce1)
138d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
338d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
438d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
538d50f7bSAndrew Rist  * distributed with this work for additional information
638d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
738d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
838d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
938d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
1038d50f7bSAndrew Rist  *
1138d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
1238d50f7bSAndrew Rist  *
1338d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
1438d50f7bSAndrew Rist  * software distributed under the License is distributed on an
1538d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1638d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
1738d50f7bSAndrew Rist  * specific language governing permissions and limitations
1838d50f7bSAndrew Rist  * under the License.
1938d50f7bSAndrew Rist  *
2038d50f7bSAndrew Rist  *************************************************************/
2138d50f7bSAndrew Rist 
2238d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_STYLEUNO_HXX
25cdf0e10cSrcweir #define SC_STYLEUNO_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <svl/itemprop.hxx>
28cdf0e10cSrcweir #include <svl/lstner.hxx>
29cdf0e10cSrcweir #include <rsc/rscsfx.hxx>
30cdf0e10cSrcweir #include <com/sun/star/container/XIndexAccess.hpp>
31cdf0e10cSrcweir #include <com/sun/star/style/XStyle.hpp>
32cdf0e10cSrcweir #include <com/sun/star/style/XStyleLoader.hpp>
33cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
34cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
35cdf0e10cSrcweir #include <com/sun/star/container/XIndexReplace.hpp>
36cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
37cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertySet.hpp>
38cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyState.hpp>
39cdf0e10cSrcweir #include <com/sun/star/beans/XMultiPropertyStates.hpp>
40cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp>
41cdf0e10cSrcweir //#include <cppuhelper/implbase3.hxx>
42cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>
43cdf0e10cSrcweir #include <cppuhelper/implbase7.hxx>
44cdf0e10cSrcweir 
45cdf0e10cSrcweir class SfxStyleSheetBase;
46cdf0e10cSrcweir class ScDocShell;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir class ScStyleFamilyObj;
49cdf0e10cSrcweir class ScStyleObj;
50cdf0e10cSrcweir 
51cdf0e10cSrcweir 
52cdf0e10cSrcweir class ScStyleNameConversion
53cdf0e10cSrcweir {
54cdf0e10cSrcweir public:
55cdf0e10cSrcweir 	static String DisplayToProgrammaticName( const String& rDispName, sal_uInt16 nType );
56cdf0e10cSrcweir 	static String ProgrammaticToDisplayName( const String& rProgName, sal_uInt16 nType );
57cdf0e10cSrcweir };
58cdf0e10cSrcweir 
59cdf0e10cSrcweir 
60cdf0e10cSrcweir class ScStyleFamiliesObj : public ::cppu::WeakImplHelper4<
61cdf0e10cSrcweir 							::com::sun::star::container::XIndexAccess,
62cdf0e10cSrcweir 							::com::sun::star::container::XNameAccess,
63cdf0e10cSrcweir 							::com::sun::star::style::XStyleLoader,
64cdf0e10cSrcweir                             ::com::sun::star::lang::XServiceInfo >,
65cdf0e10cSrcweir 						public SfxListener
66cdf0e10cSrcweir {
67cdf0e10cSrcweir private:
68cdf0e10cSrcweir 	ScDocShell*				pDocShell;
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 	ScStyleFamilyObj*		GetObjectByType_Impl(sal_uInt16 Type) const;
71cdf0e10cSrcweir 	ScStyleFamilyObj*		GetObjectByIndex_Impl(sal_uInt32 nIndex) const;
72cdf0e10cSrcweir 	ScStyleFamilyObj*		GetObjectByName_Impl(const rtl::OUString& aName) const;
73cdf0e10cSrcweir 
74cdf0e10cSrcweir public:
75cdf0e10cSrcweir 							ScStyleFamiliesObj(ScDocShell* pDocSh);
76cdf0e10cSrcweir 	virtual					~ScStyleFamiliesObj();
77cdf0e10cSrcweir 
78cdf0e10cSrcweir 	virtual void			Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 							// XIndexAccess
81cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
82cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
83cdf0e10cSrcweir 								throw(::com::sun::star::lang::IndexOutOfBoundsException,
84cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
85cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
86cdf0e10cSrcweir 
87cdf0e10cSrcweir 							// XNameAccess
88cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
89cdf0e10cSrcweir 								throw(::com::sun::star::container::NoSuchElementException,
90cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
91cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
92cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
93cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
94cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
95cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
96cdf0e10cSrcweir 
97cdf0e10cSrcweir 							// XElementAccess
98cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
99cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
100cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
101cdf0e10cSrcweir 
102cdf0e10cSrcweir 							// XStyleLoader
103cdf0e10cSrcweir 	virtual void SAL_CALL	loadStylesFromURL( const ::rtl::OUString& URL,
104cdf0e10cSrcweir 								const ::com::sun::star::uno::Sequence<
105cdf0e10cSrcweir 									::com::sun::star::beans::PropertyValue >& aOptions )
106cdf0e10cSrcweir 										throw(::com::sun::star::io::IOException,
107cdf0e10cSrcweir 											::com::sun::star::uno::RuntimeException);
108cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
109cdf0e10cSrcweir 							getStyleLoaderOptions() throw(::com::sun::star::uno::RuntimeException);
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 							// XServiceInfo
112cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
113cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
114cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
115cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
116cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
117cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
118cdf0e10cSrcweir };
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 
121cdf0e10cSrcweir class ScStyleFamilyObj : public ::cppu::WeakImplHelper4<
122cdf0e10cSrcweir 							::com::sun::star::container::XNameContainer,
123cdf0e10cSrcweir                             ::com::sun::star::container::XIndexAccess,
124cdf0e10cSrcweir                             ::com::sun::star::beans::XPropertySet,
125cdf0e10cSrcweir 							::com::sun::star::lang::XServiceInfo >,
126cdf0e10cSrcweir 						public SfxListener
127cdf0e10cSrcweir {
128cdf0e10cSrcweir private:
129cdf0e10cSrcweir 	ScDocShell*				pDocShell;
130cdf0e10cSrcweir 	SfxStyleFamily 			eFamily;		// Familie
131cdf0e10cSrcweir 
132cdf0e10cSrcweir 	ScStyleObj*				GetObjectByIndex_Impl(sal_uInt32 nIndex);
133cdf0e10cSrcweir 	ScStyleObj*				GetObjectByName_Impl(const rtl::OUString& Name);
134cdf0e10cSrcweir 
135cdf0e10cSrcweir public:
136cdf0e10cSrcweir 							ScStyleFamilyObj(ScDocShell* pDocSh, SfxStyleFamily eFam);
137cdf0e10cSrcweir 	virtual					~ScStyleFamilyObj();
138cdf0e10cSrcweir 
139cdf0e10cSrcweir 	virtual void			Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
140cdf0e10cSrcweir 
141cdf0e10cSrcweir 							// XNameContainer
142cdf0e10cSrcweir 	virtual void SAL_CALL	insertByName( const ::rtl::OUString& aName,
143cdf0e10cSrcweir 								const ::com::sun::star::uno::Any& aElement )
144cdf0e10cSrcweir 									throw(::com::sun::star::lang::IllegalArgumentException,
145cdf0e10cSrcweir 										::com::sun::star::container::ElementExistException,
146cdf0e10cSrcweir 										::com::sun::star::lang::WrappedTargetException,
147cdf0e10cSrcweir 										::com::sun::star::uno::RuntimeException);
148cdf0e10cSrcweir 	virtual void SAL_CALL	removeByName( const ::rtl::OUString& Name )
149cdf0e10cSrcweir 								throw(::com::sun::star::container::NoSuchElementException,
150cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
151cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
152cdf0e10cSrcweir 
153cdf0e10cSrcweir 							// XNameReplace
154cdf0e10cSrcweir 	virtual void SAL_CALL	replaceByName( const ::rtl::OUString& aName,
155cdf0e10cSrcweir 								const ::com::sun::star::uno::Any& aElement )
156cdf0e10cSrcweir 									throw(::com::sun::star::lang::IllegalArgumentException,
157cdf0e10cSrcweir 										::com::sun::star::container::NoSuchElementException,
158cdf0e10cSrcweir 										::com::sun::star::lang::WrappedTargetException,
159cdf0e10cSrcweir 										::com::sun::star::uno::RuntimeException);
160cdf0e10cSrcweir 
161cdf0e10cSrcweir 							// XNameAccess
162cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
163cdf0e10cSrcweir 								throw(::com::sun::star::container::NoSuchElementException,
164cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
165cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
166cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames()
167cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
168cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
169cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
170cdf0e10cSrcweir 
171cdf0e10cSrcweir 							// XIndexAccess
172cdf0e10cSrcweir 	virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
173cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index )
174cdf0e10cSrcweir 								throw(::com::sun::star::lang::IndexOutOfBoundsException,
175cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
176cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
177cdf0e10cSrcweir 
178cdf0e10cSrcweir 							// XElementAccess
179cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
180cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
181cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
182cdf0e10cSrcweir 
183cdf0e10cSrcweir                             // XPropertySet
184cdf0e10cSrcweir     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
185cdf0e10cSrcweir                                 throw (::com::sun::star::uno::RuntimeException);
186cdf0e10cSrcweir     virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
187cdf0e10cSrcweir                                 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);
188cdf0e10cSrcweir     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
189cdf0e10cSrcweir                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
190cdf0e10cSrcweir     virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
191cdf0e10cSrcweir                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
192cdf0e10cSrcweir     virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
193cdf0e10cSrcweir                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
194cdf0e10cSrcweir     virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
195cdf0e10cSrcweir                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
196cdf0e10cSrcweir     virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
197cdf0e10cSrcweir                                 throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
198cdf0e10cSrcweir 
199cdf0e10cSrcweir                             // XServiceInfo
200cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
201cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
202cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
203cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
204cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
205cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
206cdf0e10cSrcweir };
207cdf0e10cSrcweir 
208cdf0e10cSrcweir 
209cdf0e10cSrcweir class ScStyleObj : public ::cppu::WeakImplHelper7<
210cdf0e10cSrcweir 					::com::sun::star::style::XStyle,
211cdf0e10cSrcweir 					::com::sun::star::beans::XPropertySet,
212cdf0e10cSrcweir 					::com::sun::star::beans::XMultiPropertySet,
213cdf0e10cSrcweir 					::com::sun::star::beans::XPropertyState,
214cdf0e10cSrcweir 					::com::sun::star::beans::XMultiPropertyStates,
215cdf0e10cSrcweir 					::com::sun::star::lang::XUnoTunnel,
216cdf0e10cSrcweir 					::com::sun::star::lang::XServiceInfo >,
217cdf0e10cSrcweir 				public SfxListener
218cdf0e10cSrcweir {
219cdf0e10cSrcweir private:
220cdf0e10cSrcweir 	const SfxItemPropertySet* pPropSet;
221cdf0e10cSrcweir 	ScDocShell*				pDocShell;
222cdf0e10cSrcweir 	SfxStyleFamily 			eFamily;		// Familie
223cdf0e10cSrcweir 	String 					aStyleName;
224cdf0e10cSrcweir 
225cdf0e10cSrcweir 	SfxStyleSheetBase*		GetStyle_Impl();
226cdf0e10cSrcweir     const SfxItemSet*       GetStyleItemSet_Impl( const ::rtl::OUString& rPropName, const SfxItemPropertySimpleEntry*& rpEntry );
227cdf0e10cSrcweir     void                    SetOnePropertyValue(    const ::rtl::OUString& rPropertyName,
228cdf0e10cSrcweir                                                     const SfxItemPropertySimpleEntry* pEntry,
229cdf0e10cSrcweir 													const ::com::sun::star::uno::Any* pValue )
230cdf0e10cSrcweir 											throw(::com::sun::star::lang::IllegalArgumentException,
231cdf0e10cSrcweir 													::com::sun::star::uno::RuntimeException);
232cdf0e10cSrcweir 
233*caf44ce1SArmin Le Grand     // enhance ODS load performance
234*caf44ce1SArmin Le Grand 	bool StyleSheetChangedUpdate();
235*caf44ce1SArmin Le Grand 	void SetOnePropertyValueWithoutUpdate(  const ::rtl::OUString& rPropertyName,
236*caf44ce1SArmin Le Grand 													const SfxItemPropertySimpleEntry* pEntry,
237*caf44ce1SArmin Le Grand 													const ::com::sun::star::uno::Any* pValue )
238*caf44ce1SArmin Le Grand 											throw(::com::sun::star::lang::IllegalArgumentException,
239*caf44ce1SArmin Le Grand 													::com::sun::star::uno::RuntimeException);
240*caf44ce1SArmin Le Grand 	//end add
241*caf44ce1SArmin Le Grand 
242cdf0e10cSrcweir 	ScStyleObj(); // disabled
243cdf0e10cSrcweir public:
244cdf0e10cSrcweir 							ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const String& rName);
245cdf0e10cSrcweir 	virtual					~ScStyleObj();
246cdf0e10cSrcweir 
247cdf0e10cSrcweir 							// per getImplementation gerufen:
IsInserted() const248cdf0e10cSrcweir 	sal_Bool				IsInserted() const		{ return pDocShell != NULL; }
GetFamily() const249cdf0e10cSrcweir 	SfxStyleFamily 			GetFamily() const 		{ return eFamily; }
250cdf0e10cSrcweir 	void					InitDoc( ScDocShell* pNewDocSh, const String& rNewName );
251cdf0e10cSrcweir 
252cdf0e10cSrcweir 	virtual void			Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
253cdf0e10cSrcweir 
254cdf0e10cSrcweir 	static ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace >
255cdf0e10cSrcweir 							CreateEmptyNumberingRules();
256cdf0e10cSrcweir 
257cdf0e10cSrcweir 							// XStyle
258cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isUserDefined() throw(::com::sun::star::uno::RuntimeException);
259cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL isInUse() throw(::com::sun::star::uno::RuntimeException);
260cdf0e10cSrcweir 	virtual ::rtl::OUString	SAL_CALL getParentStyle() throw(::com::sun::star::uno::RuntimeException);
261cdf0e10cSrcweir 	virtual void SAL_CALL	setParentStyle( const ::rtl::OUString& aParentStyle )
262cdf0e10cSrcweir 								throw(::com::sun::star::container::NoSuchElementException,
263cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
264cdf0e10cSrcweir 
265cdf0e10cSrcweir 							// XNamed
266cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException);
267cdf0e10cSrcweir 	virtual void SAL_CALL	setName( const ::rtl::OUString& aName )
268cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
269cdf0e10cSrcweir 
270cdf0e10cSrcweir 							// XPropertySet
271cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
272cdf0e10cSrcweir 							SAL_CALL getPropertySetInfo()
273cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
274cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertyValue( const ::rtl::OUString& aPropertyName,
275cdf0e10cSrcweir 									const ::com::sun::star::uno::Any& aValue )
276cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
277cdf0e10cSrcweir 									::com::sun::star::beans::PropertyVetoException,
278cdf0e10cSrcweir 									::com::sun::star::lang::IllegalArgumentException,
279cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
280cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
281cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
282cdf0e10cSrcweir 									const ::rtl::OUString& PropertyName )
283cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
284cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
285cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
286cdf0e10cSrcweir 	virtual void SAL_CALL	addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
287cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
288cdf0e10cSrcweir 										::com::sun::star::beans::XPropertyChangeListener >& xListener )
289cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
290cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
291cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
292cdf0e10cSrcweir 	virtual void SAL_CALL	removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
293cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
294cdf0e10cSrcweir 										::com::sun::star::beans::XPropertyChangeListener >& aListener )
295cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
296cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
297cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
298cdf0e10cSrcweir 	virtual void SAL_CALL	addVetoableChangeListener( const ::rtl::OUString& PropertyName,
299cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
300cdf0e10cSrcweir 										::com::sun::star::beans::XVetoableChangeListener >& aListener )
301cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
302cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
303cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
304cdf0e10cSrcweir 	virtual void SAL_CALL	removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
305cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference<
306cdf0e10cSrcweir 										::com::sun::star::beans::XVetoableChangeListener >& aListener )
307cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
308cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
309cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
310cdf0e10cSrcweir 
311cdf0e10cSrcweir 							// XMultiPropertySet
312cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames,
313cdf0e10cSrcweir 									const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
314cdf0e10cSrcweir 								throw (::com::sun::star::beans::PropertyVetoException,
315cdf0e10cSrcweir 									::com::sun::star::lang::IllegalArgumentException,
316cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
317cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
318cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL
319cdf0e10cSrcweir 							getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames )
320cdf0e10cSrcweir 								throw (::com::sun::star::uno::RuntimeException);
321cdf0e10cSrcweir 	virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames,
322cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
323cdf0e10cSrcweir 								throw (::com::sun::star::uno::RuntimeException);
324cdf0e10cSrcweir 	virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
325cdf0e10cSrcweir 								throw (::com::sun::star::uno::RuntimeException);
326cdf0e10cSrcweir 	virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames,
327cdf0e10cSrcweir 									const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
328cdf0e10cSrcweir 								throw (::com::sun::star::uno::RuntimeException);
329cdf0e10cSrcweir 
330cdf0e10cSrcweir 							// XPropertyState
331cdf0e10cSrcweir 	virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(
332cdf0e10cSrcweir 									const ::rtl::OUString& PropertyName )
333cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
334cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
335cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL
336cdf0e10cSrcweir 							getPropertyStates( const ::com::sun::star::uno::Sequence<
337cdf0e10cSrcweir 										::rtl::OUString >& aPropertyName )
338cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
339cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
340cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertyToDefault( const ::rtl::OUString& PropertyName )
341cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
342cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
343cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault(
344cdf0e10cSrcweir 									const ::rtl::OUString& aPropertyName )
345cdf0e10cSrcweir 								throw(::com::sun::star::beans::UnknownPropertyException,
346cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
347cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
348cdf0e10cSrcweir 
349cdf0e10cSrcweir 							// XMultiPropertyStates
350cdf0e10cSrcweir 	// getPropertyStates already defined for XPropertyState
351cdf0e10cSrcweir 	virtual void SAL_CALL	setAllPropertiesToDefault() throw (::com::sun::star::uno::RuntimeException);
352cdf0e10cSrcweir 	virtual void SAL_CALL	setPropertiesToDefault( const ::com::sun::star::uno::Sequence<
353cdf0e10cSrcweir 										::rtl::OUString >& aPropertyNames )
354cdf0e10cSrcweir 								throw (::com::sun::star::beans::UnknownPropertyException,
355cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
356cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL
357cdf0e10cSrcweir 							getPropertyDefaults( const ::com::sun::star::uno::Sequence<
358cdf0e10cSrcweir 										::rtl::OUString >& aPropertyNames )
359cdf0e10cSrcweir 								throw (::com::sun::star::beans::UnknownPropertyException,
360cdf0e10cSrcweir 									::com::sun::star::lang::WrappedTargetException,
361cdf0e10cSrcweir 									::com::sun::star::uno::RuntimeException);
362cdf0e10cSrcweir 
363cdf0e10cSrcweir 							// XServiceInfo
364cdf0e10cSrcweir 	virtual ::rtl::OUString SAL_CALL getImplementationName()
365cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
366cdf0e10cSrcweir 	virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
367cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
368cdf0e10cSrcweir 	virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
369cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
370cdf0e10cSrcweir 
371cdf0e10cSrcweir 							// XUnoTunnel
372cdf0e10cSrcweir 	virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
373cdf0e10cSrcweir 									sal_Int8 >& aIdentifier )
374cdf0e10cSrcweir 								throw(::com::sun::star::uno::RuntimeException);
375cdf0e10cSrcweir 
376cdf0e10cSrcweir 	static const ::com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
377cdf0e10cSrcweir 	static ScStyleObj* getImplementation( const ::com::sun::star::uno::Reference<
378cdf0e10cSrcweir 									::com::sun::star::uno::XInterface> xObj );
379cdf0e10cSrcweir 
380cdf0e10cSrcweir };
381cdf0e10cSrcweir 
382cdf0e10cSrcweir #endif
383cdf0e10cSrcweir 
384