summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorAlexandre Vicenzi <vicenzi.alexandre@gmail.com>2014-01-31 03:09:23 -0200
committerMarcos Souza <marcos.souza.org@gmail.com>2014-02-02 18:53:03 +0000
commit32b8c5c4a9fd03b4e05dff2a77ec186973c126b3 (patch)
treeb00ed1cacd475a297e60168b664146ae4e6f8849 /sdext
parent018500a73f3b1082b6662b7c123dfe5158ae5752 (diff)
fdo#54938 Convert basctl, mysqlc, sdext, svgio, writerp. to cppu::supportsSer.
Change-Id: I60128dbb5bf83f25eea847fe655d7126c9077414 Reviewed-on: https://gerrit.libreoffice.org/7756 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com> Tested-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/pppoptimizerdialog.cxx33
1 files changed, 2 insertions, 31 deletions
diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx
index aa9787813e18..479896de1dfd 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.cxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.cxx
@@ -29,28 +29,19 @@ using namespace ::com::sun::star::frame;
using namespace ::com::sun::star::beans;
#define SERVICE_NAME "com.sun.star.comp.PresentationMinimizer"
+#include <cppuhelper/supportsservice.hxx>
#include <rtl/ustrbuf.hxx>
-// ----------------------
-// - PPPOptimizerDialog -
-// ----------------------
-
PPPOptimizerDialog::PPPOptimizerDialog( const Reference< XComponentContext > &xContext ) :
mxContext( xContext ),
mpOptimizerDialog( NULL )
{
}
-// -----------------------------------------------------------------------------
-
PPPOptimizerDialog::~PPPOptimizerDialog()
{
}
-// -----------------------------------------------------------------------------
-// XInitialization
-// -----------------------------------------------------------------------------
-
void SAL_CALL PPPOptimizerDialog::initialize( const Sequence< Any >& aArguments )
throw ( Exception, RuntimeException )
{
@@ -62,10 +53,6 @@ void SAL_CALL PPPOptimizerDialog::initialize( const Sequence< Any >& aArguments
mxController = mxFrame->getController();
}
-// -----------------------------------------------------------------------------
-// XServiceInfo
-// -----------------------------------------------------------------------------
-
OUString SAL_CALL PPPOptimizerDialog::getImplementationName()
throw (RuntimeException)
{
@@ -75,7 +62,7 @@ OUString SAL_CALL PPPOptimizerDialog::getImplementationName()
sal_Bool SAL_CALL PPPOptimizerDialog::supportsService( const OUString& ServiceName )
throw ( RuntimeException )
{
- return ServiceName == SERVICE_NAME;
+ return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL PPPOptimizerDialog::getSupportedServiceNames()
@@ -84,10 +71,6 @@ Sequence< OUString > SAL_CALL PPPOptimizerDialog::getSupportedServiceNames()
return PPPOptimizerDialog_getSupportedServiceNames();
}
-// -----------------------------------------------------------------------------
-// XDispatchProvider
-// -----------------------------------------------------------------------------
-
Reference< com::sun::star::frame::XDispatch > SAL_CALL PPPOptimizerDialog::queryDispatch(
const URL& aURL, const OUString& /* aTargetFrameName */, sal_Int32 /* nSearchFlags */ ) throw( RuntimeException )
{
@@ -98,8 +81,6 @@ Reference< com::sun::star::frame::XDispatch > SAL_CALL PPPOptimizerDialog::query
return xRet;
}
-//------------------------------------------------------------------------------
-
Sequence< Reference< com::sun::star::frame::XDispatch > > SAL_CALL PPPOptimizerDialog::queryDispatches(
const Sequence< com::sun::star::frame::DispatchDescriptor >& aDescripts ) throw( RuntimeException )
{
@@ -113,10 +94,6 @@ Sequence< Reference< com::sun::star::frame::XDispatch > > SAL_CALL PPPOptimizerD
return aReturn;
}
-// -----------------------------------------------------------------------------
-// XDispatch
-// -----------------------------------------------------------------------------
-
void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL,
const Sequence< PropertyValue >& rArguments )
throw( RuntimeException )
@@ -165,7 +142,6 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL,
}
}
-//===============================================
void SAL_CALL PPPOptimizerDialog::addStatusListener( const Reference< XStatusListener >&, const URL& )
throw( RuntimeException )
{
@@ -173,7 +149,6 @@ void SAL_CALL PPPOptimizerDialog::addStatusListener( const Reference< XStatusLis
// OSL_FAIL( "PPPOptimizerDialog::addStatusListener()\nNot implemented yet!" );
}
-//===============================================
void SAL_CALL PPPOptimizerDialog::removeStatusListener( const Reference< XStatusListener >&, const URL& )
throw( RuntimeException )
{
@@ -181,8 +156,6 @@ void SAL_CALL PPPOptimizerDialog::removeStatusListener( const Reference< XStatus
// OSL_FAIL( "PPPOptimizerDialog::removeStatusListener()\nNot implemented yet!" );
}
-// -----------------------------------------------------------------------------
-
OUString PPPOptimizerDialog_getImplementationName()
{
return OUString( "com.sun.star.comp.PresentationMinimizerImp" );
@@ -202,6 +175,4 @@ Reference< XInterface > PPPOptimizerDialog_createInstance( const Reference< XCom
return (cppu::OWeakObject*) new PPPOptimizerDialog( rSMgr );
}
-// -----------------------------------------------------------------------------
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */