From e1879e6a377fba9ec0f21554de16be8a983553da Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 19 Feb 2015 21:21:41 +0100 Subject: stocservices.component: The rest of the services + cleanup. Change-Id: I5156318afde0f56cf3eb8d1c74c6db8d5e378600 --- .../UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx | 33 ++++++---------------- 1 file changed, 8 insertions(+), 25 deletions(-) (limited to 'stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx') diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx index 777651a6ea9a..0157f78bb7f9 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx @@ -19,8 +19,6 @@ #include -#include "stocservices.hxx" - #include #include @@ -184,8 +182,7 @@ private: OUString Parser::getImplementationName() throw (css::uno::RuntimeException, std::exception) { - return ::stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTexpand:: - getImplementationName(); + return OUString("com.sun.star.comp.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand"); } sal_Bool Parser::supportsService(OUString const & serviceName) @@ -197,8 +194,9 @@ sal_Bool Parser::supportsService(OUString const & serviceName) css::uno::Sequence< OUString > Parser::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { - return ::stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTexpand:: - getSupportedServiceNames(); + css::uno::Sequence< OUString > s(1); + s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand"; + return s; } css::uno::Reference< css::uri::XUriReference > Parser::parse( @@ -213,27 +211,12 @@ css::uno::Reference< css::uri::XUriReference > Parser::parse( } -namespace stoc_services { namespace UriSchemeParser_vndDOTsunDOTstarDOTexpand { - -css::uno::Reference< css::uno::XInterface > create( - SAL_UNUSED_PARAMETER css::uno::Reference< css::uno::XComponentContext > - const &) +extern "C" SAL_DLLPUBLIC_EXPORT ::com::sun::star::uno::XInterface* SAL_CALL +com_sun_star_comp_uri_UriSchemeParser_vndDOTsunDOTstarDOTexpand_get_implementation(::com::sun::star::uno::XComponentContext*, + ::com::sun::star::uno::Sequence const &) { //TODO: single instance - return static_cast< ::cppu::OWeakObject * >(new Parser); -} - -OUString getImplementationName() { - return OUString( - "com.sun.star.comp.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand"); + return ::cppu::acquire(new Parser()); } -css::uno::Sequence< OUString > getSupportedServiceNames() { - css::uno::Sequence< OUString > s(1); - s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand"; - return s; -} - -} } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit