From 45f18e2ff2a54c412f296818fd73111cb62c7f3d Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Mon, 23 Jun 2014 21:18:14 +0200 Subject: sdr::table::Cell's XServiceInfo cleaning There is no "com.sun.star.table.cell" / "com.sun.star.drawing.cell". And remove unused XFastPropertySet methods which were not marked as override. Change-Id: I92c856ef16387758d00174708094b0e0c3a38bac --- svx/source/table/cell.cxx | 40 ---------------------------------------- svx/source/table/cell.hxx | 9 --------- 2 files changed, 49 deletions(-) (limited to 'svx/source/table') diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 1b9a982e25bd..a4a37a998c0b 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -858,27 +858,6 @@ Sequence< sal_Int8 > SAL_CALL Cell::getImplementationId( ) throw (RuntimeExcept return css::uno::Sequence(); } -// XServiceInfo -OUString SAL_CALL Cell::getImplementationName( ) throw (RuntimeException, std::exception) -{ - return OUString( "com.sun.star.comp.svx.table.Cell" ); -} - -sal_Bool SAL_CALL Cell::supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception) -{ - return cppu::supportsService( this, ServiceName ); -} - -Sequence< OUString > SAL_CALL Cell::getSupportedServiceNames( ) throw (RuntimeException, std::exception) -{ - Sequence< OUString > aSeq( SvxUnoTextBase::getSupportedServiceNames() ); - sal_Int32 nIndex = aSeq.getLength(); - aSeq.realloc( nIndex + 2 ); - aSeq[nIndex++] = "com.sun.star.table.cell"; - aSeq[nIndex++] = "com.sun.star.drawing.cell"; - return aSeq; -} - // XLayoutConstrains ::com::sun::star::awt::Size SAL_CALL Cell::getMinimumSize() throw (RuntimeException, @@ -1625,25 +1604,6 @@ Sequence< Any > SAL_CALL Cell::getPropertyDefaults( const Sequence< OUString >& } -// XFastPropertySet - - -void SAL_CALL Cell::setFastPropertyValue( sal_Int32 nHandle, const Any& aValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException) -{ - (void)aValue; - (void)nHandle; - throw UnknownPropertyException(); -} - - -// TODO: Refactor this method! -Any SAL_CALL Cell::getFastPropertyValue( sal_Int32 nHandle ) throw (UnknownPropertyException, WrappedTargetException, RuntimeException) -{ - (void)nHandle; - throw UnknownPropertyException(); -} - - // XText diff --git a/svx/source/table/cell.hxx b/svx/source/table/cell.hxx index 82d717d849e8..65fdcd034d57 100644 --- a/svx/source/table/cell.hxx +++ b/svx/source/table/cell.hxx @@ -111,11 +111,6 @@ public: SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // XServiceInfo - SVX_DLLPRIVATE virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - SVX_DLLPRIVATE virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // XLayoutConstrains SVX_DLLPRIVATE virtual ::com::sun::star::awt::Size SAL_CALL getMinimumSize() throw (::com::sun::star::uno::RuntimeException, @@ -167,10 +162,6 @@ public: SVX_DLLPRIVATE virtual void SAL_CALL setPropertiesToDefault( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; SVX_DLLPRIVATE virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyDefaults( const ::com::sun::star::uno::Sequence< OUString >& aPropertyNames ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; - // XFastPropertySet - SVX_DLLPRIVATE virtual void SAL_CALL setFastPropertyValue( ::sal_Int32 nHandle, 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); - SVX_DLLPRIVATE virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue( ::sal_Int32 nHandle ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - // XText SVX_DLLPRIVATE virtual void SAL_CALL insertTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >& xRange, const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >& xContent, sal_Bool bAbsorb ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; SVX_DLLPRIVATE virtual void SAL_CALL removeTextContent( const ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextContent >& xContent ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; -- cgit