From 3099c70b11c7e5b80fe4dbe3dc99171fb38c6fc2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 17 Mar 2015 12:25:11 +0100 Subject: Fix various XServiceInfo implementations ...to match what is recorded in the .component files Change-Id: Ie548cd37872d3b8540222201afaac73040e65c8f --- .../source/component/documentdigitalsignatures.cxx | 22 +++++++++++++++++++++- .../source/component/documentdigitalsignatures.hxx | 17 ++++++++++++++--- 2 files changed, 35 insertions(+), 4 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index b476d80fcff4..acaac53e3e43 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -41,7 +41,7 @@ #include #include #include - +#include #include #include @@ -89,6 +89,26 @@ void DocumentDigitalSignatures::initialize( const Sequence< Any >& aArguments) } } +OUString DocumentDigitalSignatures::getImplementationName() + throw (css::uno::RuntimeException, std::exception) +{ + return GetImplementationName(); +} + +sal_Bool DocumentDigitalSignatures::supportsService( + OUString const & ServiceName) + throw (css::uno::RuntimeException, std::exception) +{ + return cppu::supportsService(this, ServiceName); +} + +css::uno::Sequence +DocumentDigitalSignatures::getSupportedServiceNames() + throw (css::uno::RuntimeException, std::exception) +{ + return GetSupportedServiceNames(); +} + sal_Bool DocumentDigitalSignatures::signDocumentContent( const Reference< css::embed::XStorage >& rxStorage, const Reference< css::io::XStream >& xSignStream) diff --git a/xmlsecurity/source/component/documentdigitalsignatures.hxx b/xmlsecurity/source/component/documentdigitalsignatures.hxx index 7102f6e5179f..ab674f367638 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.hxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.hxx @@ -20,9 +20,10 @@ #ifndef INCLUDED_XMLSECURITY_SOURCE_COMPONENT_DOCUMENTDIGITALSIGNATURES_HXX #define INCLUDED_XMLSECURITY_SOURCE_COMPONENT_DOCUMENTDIGITALSIGNATURES_HXX -#include +#include #include +#include #include #include #include @@ -35,10 +36,11 @@ namespace com { namespace sun { namespace star { } }}} -class DocumentDigitalSignatures : public cppu::WeakImplHelper2 +class DocumentDigitalSignatures : public cppu::WeakImplHelper < com::sun::star::security::XDocumentDigitalSignatures, - com::sun::star::lang::XInitialization + com::sun::star::lang::XInitialization, + css::lang::XServiceInfo > { private: @@ -65,6 +67,15 @@ public: void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + OUString SAL_CALL getImplementationName() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + + css::uno::Sequence SAL_CALL getSupportedServiceNames() + throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + // XDocumentDigitalSignatures sal_Bool SAL_CALL signDocumentContent( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xSignStream ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; ::com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignatureInformation > SAL_CALL verifyDocumentContentSignatures( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xSignInStream ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; -- cgit