summaryrefslogtreecommitdiff
path: root/svx/source/table/cell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/table/cell.cxx')
-rw-r--r--svx/source/table/cell.cxx19
1 files changed, 2 insertions, 17 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 8685e7a647b9..09c21e2a67d6 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -26,6 +26,7 @@
#include <comphelper/string.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <svl/style.hxx>
#include <svl/itemset.hxx>
@@ -867,30 +868,17 @@ Sequence< sal_Int8 > SAL_CALL Cell::getImplementationId( ) throw (RuntimeExcept
return pId->getImplementationId();
}
-// -----------------------------------------------------------------------------
// XServiceInfo
-// -----------------------------------------------------------------------------
-
OUString SAL_CALL Cell::getImplementationName( ) throw (RuntimeException)
{
return OUString( "com.sun.star.comp.svx.table.Cell" );
}
-// -----------------------------------------------------------------------------
-
sal_Bool SAL_CALL Cell::supportsService( const OUString& ServiceName ) throw (RuntimeException)
{
- if( ServiceName == "com.sun.star.table.cell" )
- return sal_True;
-
- if( ServiceName == "com.sun.star.drawing.cell" )
- return sal_True;
-
- return SvxUnoTextBase::supportsService( ServiceName );
+ return cppu::supportsService( this, ServiceName );
}
-// -----------------------------------------------------------------------------
-
Sequence< OUString > SAL_CALL Cell::getSupportedServiceNames( ) throw (RuntimeException)
{
Sequence< OUString > aSeq( SvxUnoTextBase::getSupportedServiceNames() );
@@ -901,10 +889,7 @@ Sequence< OUString > SAL_CALL Cell::getSupportedServiceNames( ) throw (RuntimeE
return aSeq;
}
-// -----------------------------------------------------------------------------
// XLayoutConstrains
-// -----------------------------------------------------------------------------
-
::com::sun::star::awt::Size SAL_CALL Cell::getMinimumSize( ) throw (RuntimeException)
{
return ::com::sun::star::awt::Size( getMinimumWidth(), getMinimumHeight() );