1*38d50f7bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*38d50f7bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*38d50f7bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*38d50f7bSAndrew Rist * distributed with this work for additional information 6*38d50f7bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*38d50f7bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*38d50f7bSAndrew Rist * "License"); you may not use this file except in compliance 9*38d50f7bSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*38d50f7bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*38d50f7bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*38d50f7bSAndrew Rist * software distributed under the License is distributed on an 15*38d50f7bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*38d50f7bSAndrew Rist * KIND, either express or implied. See the License for the 17*38d50f7bSAndrew Rist * specific language governing permissions and limitations 18*38d50f7bSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*38d50f7bSAndrew Rist *************************************************************/ 21*38d50f7bSAndrew Rist 22*38d50f7bSAndrew 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 233cdf0e10cSrcweir ScStyleObj(); // disabled 234cdf0e10cSrcweir public: 235cdf0e10cSrcweir ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const String& rName); 236cdf0e10cSrcweir virtual ~ScStyleObj(); 237cdf0e10cSrcweir 238cdf0e10cSrcweir // per getImplementation gerufen: 239cdf0e10cSrcweir sal_Bool IsInserted() const { return pDocShell != NULL; } 240cdf0e10cSrcweir SfxStyleFamily GetFamily() const { return eFamily; } 241cdf0e10cSrcweir void InitDoc( ScDocShell* pNewDocSh, const String& rNewName ); 242cdf0e10cSrcweir 243cdf0e10cSrcweir virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); 244cdf0e10cSrcweir 245cdf0e10cSrcweir static ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > 246cdf0e10cSrcweir CreateEmptyNumberingRules(); 247cdf0e10cSrcweir 248cdf0e10cSrcweir // XStyle 249cdf0e10cSrcweir virtual sal_Bool SAL_CALL isUserDefined() throw(::com::sun::star::uno::RuntimeException); 250cdf0e10cSrcweir virtual sal_Bool SAL_CALL isInUse() throw(::com::sun::star::uno::RuntimeException); 251cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getParentStyle() throw(::com::sun::star::uno::RuntimeException); 252cdf0e10cSrcweir virtual void SAL_CALL setParentStyle( const ::rtl::OUString& aParentStyle ) 253cdf0e10cSrcweir throw(::com::sun::star::container::NoSuchElementException, 254cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 255cdf0e10cSrcweir 256cdf0e10cSrcweir // XNamed 257cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); 258cdf0e10cSrcweir virtual void SAL_CALL setName( const ::rtl::OUString& aName ) 259cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 260cdf0e10cSrcweir 261cdf0e10cSrcweir // XPropertySet 262cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > 263cdf0e10cSrcweir SAL_CALL getPropertySetInfo() 264cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 265cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, 266cdf0e10cSrcweir const ::com::sun::star::uno::Any& aValue ) 267cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 268cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 269cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 270cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 271cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 272cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 273cdf0e10cSrcweir const ::rtl::OUString& PropertyName ) 274cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 275cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 276cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 277cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, 278cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 279cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener ) 280cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 281cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 282cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 283cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, 284cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 285cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& aListener ) 286cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 287cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 288cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 289cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, 290cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 291cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 292cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 293cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 294cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 295cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, 296cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 297cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 298cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 299cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 300cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 301cdf0e10cSrcweir 302cdf0e10cSrcweir // XMultiPropertySet 303cdf0e10cSrcweir virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, 304cdf0e10cSrcweir const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) 305cdf0e10cSrcweir throw (::com::sun::star::beans::PropertyVetoException, 306cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 307cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 308cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 309cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL 310cdf0e10cSrcweir getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) 311cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 312cdf0e10cSrcweir virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, 313cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) 314cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 315cdf0e10cSrcweir virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) 316cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 317cdf0e10cSrcweir virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, 318cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener ) 319cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 320cdf0e10cSrcweir 321cdf0e10cSrcweir // XPropertyState 322cdf0e10cSrcweir virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( 323cdf0e10cSrcweir const ::rtl::OUString& PropertyName ) 324cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 325cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 326cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL 327cdf0e10cSrcweir getPropertyStates( const ::com::sun::star::uno::Sequence< 328cdf0e10cSrcweir ::rtl::OUString >& aPropertyName ) 329cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 330cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 331cdf0e10cSrcweir virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName ) 332cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 333cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 334cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( 335cdf0e10cSrcweir const ::rtl::OUString& aPropertyName ) 336cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 337cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 338cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 339cdf0e10cSrcweir 340cdf0e10cSrcweir // XMultiPropertyStates 341cdf0e10cSrcweir // getPropertyStates already defined for XPropertyState 342cdf0e10cSrcweir virtual void SAL_CALL setAllPropertiesToDefault() throw (::com::sun::star::uno::RuntimeException); 343cdf0e10cSrcweir virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< 344cdf0e10cSrcweir ::rtl::OUString >& aPropertyNames ) 345cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 346cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 347cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL 348cdf0e10cSrcweir getPropertyDefaults( const ::com::sun::star::uno::Sequence< 349cdf0e10cSrcweir ::rtl::OUString >& aPropertyNames ) 350cdf0e10cSrcweir throw (::com::sun::star::beans::UnknownPropertyException, 351cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 352cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 353cdf0e10cSrcweir 354cdf0e10cSrcweir // XServiceInfo 355cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 356cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 357cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 358cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 359cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 360cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 361cdf0e10cSrcweir 362cdf0e10cSrcweir // XUnoTunnel 363cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< 364cdf0e10cSrcweir sal_Int8 >& aIdentifier ) 365cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 366cdf0e10cSrcweir 367cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId(); 368cdf0e10cSrcweir static ScStyleObj* getImplementation( const ::com::sun::star::uno::Reference< 369cdf0e10cSrcweir ::com::sun::star::uno::XInterface> xObj ); 370cdf0e10cSrcweir 371cdf0e10cSrcweir }; 372cdf0e10cSrcweir 373cdf0e10cSrcweir #endif 374cdf0e10cSrcweir 375