1*39a19a47SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*39a19a47SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*39a19a47SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*39a19a47SAndrew Rist * distributed with this work for additional information 6*39a19a47SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*39a19a47SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*39a19a47SAndrew Rist * "License"); you may not use this file except in compliance 9*39a19a47SAndrew Rist * with the License. You may obtain a copy of the License at 10*39a19a47SAndrew Rist * 11*39a19a47SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*39a19a47SAndrew Rist * 13*39a19a47SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*39a19a47SAndrew Rist * software distributed under the License is distributed on an 15*39a19a47SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*39a19a47SAndrew Rist * KIND, either express or implied. See the License for the 17*39a19a47SAndrew Rist * specific language governing permissions and limitations 18*39a19a47SAndrew Rist * under the License. 19*39a19a47SAndrew Rist * 20*39a19a47SAndrew Rist *************************************************************/ 21*39a19a47SAndrew Rist 22*39a19a47SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _NUMFMUNO_HXX 25cdf0e10cSrcweir #define _NUMFMUNO_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatter.hpp> 28cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatPreviewer.hpp> 29cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormats.hpp> 30cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatTypes.hpp> 31cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 32cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp> 33cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx> 34cdf0e10cSrcweir #include <cppuhelper/implbase3.hxx> 35cdf0e10cSrcweir #include <comphelper/sharedmutex.hxx> 36cdf0e10cSrcweir #include <rtl/ref.hxx> 37cdf0e10cSrcweir 38cdf0e10cSrcweir class SvNumberformat; 39cdf0e10cSrcweir class SvNumberFormatter; 40cdf0e10cSrcweir class SvNumberFormatsSupplierObj; 41cdf0e10cSrcweir 42cdf0e10cSrcweir 43cdf0e10cSrcweir // SvNumberFormatterServiceObj wird global als Service angemeldet 44cdf0e10cSrcweir 45cdf0e10cSrcweir class SvNumberFormatterServiceObj : public cppu::WeakImplHelper3< 46cdf0e10cSrcweir com::sun::star::util::XNumberFormatter, 47cdf0e10cSrcweir com::sun::star::util::XNumberFormatPreviewer, 48cdf0e10cSrcweir com::sun::star::lang::XServiceInfo> 49cdf0e10cSrcweir { 50cdf0e10cSrcweir private: 51cdf0e10cSrcweir ::rtl::Reference< SvNumberFormatsSupplierObj > xSupplier; 52cdf0e10cSrcweir mutable ::comphelper::SharedMutex m_aMutex; 53cdf0e10cSrcweir 54cdf0e10cSrcweir public: 55cdf0e10cSrcweir SvNumberFormatterServiceObj(); 56cdf0e10cSrcweir virtual ~SvNumberFormatterServiceObj(); 57cdf0e10cSrcweir 58cdf0e10cSrcweir // XNumberFormatter 59cdf0e10cSrcweir virtual void SAL_CALL attachNumberFormatsSupplier( 60cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 61cdf0e10cSrcweir ::com::sun::star::util::XNumberFormatsSupplier >& xSupplier ) 62cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 63cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > 64cdf0e10cSrcweir SAL_CALL getNumberFormatsSupplier() 65cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 66cdf0e10cSrcweir virtual sal_Int32 SAL_CALL detectNumberFormat( sal_Int32 nKey, const ::rtl::OUString& aString ) 67cdf0e10cSrcweir throw(::com::sun::star::util::NotNumericException, 68cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 69cdf0e10cSrcweir virtual double SAL_CALL convertStringToNumber( sal_Int32 nKey, const ::rtl::OUString& aString ) 70cdf0e10cSrcweir throw(::com::sun::star::util::NotNumericException, 71cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 72cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL convertNumberToString( sal_Int32 nKey, double fValue ) 73cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 74cdf0e10cSrcweir virtual ::com::sun::star::util::Color SAL_CALL queryColorForNumber( sal_Int32 nKey, 75cdf0e10cSrcweir double fValue, ::com::sun::star::util::Color aDefaultColor ) 76cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 77cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL formatString( sal_Int32 nKey, const ::rtl::OUString& aString ) 78cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 79cdf0e10cSrcweir virtual ::com::sun::star::util::Color SAL_CALL queryColorForString( sal_Int32 nKey, 80cdf0e10cSrcweir const ::rtl::OUString& aString, 81cdf0e10cSrcweir ::com::sun::star::util::Color aDefaultColor ) 82cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 83cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getInputString( sal_Int32 nKey, double fValue ) 84cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 85cdf0e10cSrcweir 86cdf0e10cSrcweir // XNumberFormatPreviewer 87cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL convertNumberToPreviewString( 88cdf0e10cSrcweir const ::rtl::OUString& aFormat, double fValue, 89cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, sal_Bool bAllowEnglish ) 90cdf0e10cSrcweir throw(::com::sun::star::util::MalformedNumberFormatException, 91cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 92cdf0e10cSrcweir virtual ::com::sun::star::util::Color SAL_CALL queryPreviewColorForNumber( 93cdf0e10cSrcweir const ::rtl::OUString& aFormat, double fValue, 94cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, sal_Bool bAllowEnglish, 95cdf0e10cSrcweir ::com::sun::star::util::Color aDefaultColor ) 96cdf0e10cSrcweir throw(::com::sun::star::util::MalformedNumberFormatException, 97cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 98cdf0e10cSrcweir 99cdf0e10cSrcweir // XServiceInfo 100cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) 101cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 102cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 103cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 104cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 105cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 106cdf0e10cSrcweir }; 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109cdf0e10cSrcweir class SvNumberFormatsObj : public cppu::WeakImplHelper3< 110cdf0e10cSrcweir com::sun::star::util::XNumberFormats, 111cdf0e10cSrcweir com::sun::star::util::XNumberFormatTypes, 112cdf0e10cSrcweir com::sun::star::lang::XServiceInfo> 113cdf0e10cSrcweir { 114cdf0e10cSrcweir private: 115cdf0e10cSrcweir SvNumberFormatsSupplierObj& rSupplier; 116cdf0e10cSrcweir mutable ::comphelper::SharedMutex m_aMutex; 117cdf0e10cSrcweir 118cdf0e10cSrcweir public: 119cdf0e10cSrcweir SvNumberFormatsObj(SvNumberFormatsSupplierObj& pParent, ::comphelper::SharedMutex& _rMutex); 120cdf0e10cSrcweir virtual ~SvNumberFormatsObj(); 121cdf0e10cSrcweir 122cdf0e10cSrcweir 123cdf0e10cSrcweir // XNumberFormats 124cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL 125cdf0e10cSrcweir getByKey( sal_Int32 nKey ) throw(::com::sun::star::uno::RuntimeException); 126cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL queryKeys( sal_Int16 nType, 127cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, sal_Bool bCreate ) 128cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 129cdf0e10cSrcweir virtual sal_Int32 SAL_CALL queryKey( const ::rtl::OUString& aFormat, 130cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, sal_Bool bScan ) 131cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 132cdf0e10cSrcweir virtual sal_Int32 SAL_CALL addNew( const ::rtl::OUString& aFormat, 133cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale ) 134cdf0e10cSrcweir throw(::com::sun::star::util::MalformedNumberFormatException, 135cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 136cdf0e10cSrcweir virtual sal_Int32 SAL_CALL addNewConverted( const ::rtl::OUString& aFormat, 137cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, 138cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nNewLocale ) 139cdf0e10cSrcweir throw(::com::sun::star::util::MalformedNumberFormatException, 140cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 141cdf0e10cSrcweir virtual void SAL_CALL removeByKey( sal_Int32 nKey ) throw(::com::sun::star::uno::RuntimeException); 142cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL generateFormat( sal_Int32 nBaseKey, 143cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale, sal_Bool bThousands, 144cdf0e10cSrcweir sal_Bool bRed, sal_Int16 nDecimals, sal_Int16 nLeading ) 145cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 146cdf0e10cSrcweir 147cdf0e10cSrcweir // XNumberFormatTypes 148cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getStandardIndex( const ::com::sun::star::lang::Locale& nLocale ) 149cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 150cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getStandardFormat( sal_Int16 nType, 151cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale ) 152cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 153cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getFormatIndex( sal_Int16 nIndex, 154cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale ) 155cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 156cdf0e10cSrcweir virtual sal_Bool SAL_CALL isTypeCompatible( sal_Int16 nOldType, sal_Int16 nNewType ) 157cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 158cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getFormatForLocale( sal_Int32 nKey, 159cdf0e10cSrcweir const ::com::sun::star::lang::Locale& nLocale ) 160cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 161cdf0e10cSrcweir 162cdf0e10cSrcweir // XServiceInfo 163cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) 164cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 165cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 166cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 167cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 168cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 169cdf0e10cSrcweir 170cdf0e10cSrcweir private: 171cdf0e10cSrcweir SvNumberFormatsObj(); // never implemented 172cdf0e10cSrcweir }; 173cdf0e10cSrcweir 174cdf0e10cSrcweir 175cdf0e10cSrcweir class SvNumberFormatObj : public cppu::WeakImplHelper3< 176cdf0e10cSrcweir com::sun::star::beans::XPropertySet, 177cdf0e10cSrcweir com::sun::star::beans::XPropertyAccess, 178cdf0e10cSrcweir com::sun::star::lang::XServiceInfo> 179cdf0e10cSrcweir { 180cdf0e10cSrcweir private: 181cdf0e10cSrcweir SvNumberFormatsSupplierObj& rSupplier; 182cdf0e10cSrcweir sal_uLong nKey; 183cdf0e10cSrcweir mutable ::comphelper::SharedMutex m_aMutex; 184cdf0e10cSrcweir 185cdf0e10cSrcweir public: 186cdf0e10cSrcweir SvNumberFormatObj( SvNumberFormatsSupplierObj& rParent, sal_uLong nK, const ::comphelper::SharedMutex& _rMutex ); 187cdf0e10cSrcweir virtual ~SvNumberFormatObj(); 188cdf0e10cSrcweir 189cdf0e10cSrcweir // XPropertySet 190cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > 191cdf0e10cSrcweir SAL_CALL getPropertySetInfo( ) 192cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 193cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, 194cdf0e10cSrcweir const ::com::sun::star::uno::Any& aValue ) 195cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 196cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 197cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 198cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 199cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 200cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 201cdf0e10cSrcweir const ::rtl::OUString& PropertyName ) 202cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 203cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 204cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 205cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, 206cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 207cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener ) 208cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 209cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 210cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 211cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, 212cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 213cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& aListener ) 214cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 215cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 216cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 217cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, 218cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 219cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 220cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 221cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 222cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 223cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, 224cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 225cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 226cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 227cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 228cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 229cdf0e10cSrcweir 230cdf0e10cSrcweir // XPropertyAccess 231cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL 232cdf0e10cSrcweir getPropertyValues() throw(::com::sun::star::uno::RuntimeException); 233cdf0e10cSrcweir virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< 234cdf0e10cSrcweir ::com::sun::star::beans::PropertyValue >& aProps ) 235cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 236cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 237cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 238cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 239cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 240cdf0e10cSrcweir 241cdf0e10cSrcweir // XServiceInfo 242cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) 243cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 244cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 245cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 246cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 247cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 248cdf0e10cSrcweir }; 249cdf0e10cSrcweir 250cdf0e10cSrcweir 251cdf0e10cSrcweir class SvNumberFormatSettingsObj : public cppu::WeakImplHelper2< 252cdf0e10cSrcweir com::sun::star::beans::XPropertySet, 253cdf0e10cSrcweir com::sun::star::lang::XServiceInfo> 254cdf0e10cSrcweir { 255cdf0e10cSrcweir private: 256cdf0e10cSrcweir SvNumberFormatsSupplierObj& rSupplier; 257cdf0e10cSrcweir mutable ::comphelper::SharedMutex m_aMutex; 258cdf0e10cSrcweir 259cdf0e10cSrcweir public: 260cdf0e10cSrcweir SvNumberFormatSettingsObj( SvNumberFormatsSupplierObj& rParent, const ::comphelper::SharedMutex& _rMutex); 261cdf0e10cSrcweir virtual ~SvNumberFormatSettingsObj(); 262cdf0e10cSrcweir 263cdf0e10cSrcweir 264cdf0e10cSrcweir // XPropertySet 265cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > 266cdf0e10cSrcweir SAL_CALL getPropertySetInfo( ) 267cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 268cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, 269cdf0e10cSrcweir const ::com::sun::star::uno::Any& aValue ) 270cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 271cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 272cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 273cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 274cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 275cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( 276cdf0e10cSrcweir const ::rtl::OUString& PropertyName ) 277cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 278cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 279cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 280cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, 281cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 282cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& xListener ) 283cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 284cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 285cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 286cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, 287cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 288cdf0e10cSrcweir ::com::sun::star::beans::XPropertyChangeListener >& aListener ) 289cdf0e10cSrcweir throw(::com::sun::star::beans::UnknownPropertyException, 290cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 291cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException); 292cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, 293cdf0e10cSrcweir const ::com::sun::star::uno::Reference< 294cdf0e10cSrcweir ::com::sun::star::beans::XVetoableChangeListener >& 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 removeVetoableChangeListener( 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 305cdf0e10cSrcweir // XServiceInfo 306cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) 307cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 308cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 309cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 310cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 311cdf0e10cSrcweir throw(::com::sun::star::uno::RuntimeException); 312cdf0e10cSrcweir }; 313cdf0e10cSrcweir 314cdf0e10cSrcweir 315cdf0e10cSrcweir 316cdf0e10cSrcweir #endif 317cdf0e10cSrcweir 318