diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-08 15:44:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-09 11:02:45 +0200 |
commit | 3cff8c64e916eac04332c91d0bd424d4459a960b (patch) | |
tree | 33a73ff33e5f3fa4f6b30f572494fb0f72d54460 /unotools/source/misc/ServiceDocumenter.hxx | |
parent | 57fedb272cfcad3436142dbe9eac2870e3c3e3d2 (diff) |
unotools: create instances with uno constructors
See tdf#74608 for motivation
Change-Id: I7a68484564aea9b416c12d5364d20ff8af77f40b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98380
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/misc/ServiceDocumenter.hxx')
-rw-r--r-- | unotools/source/misc/ServiceDocumenter.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unotools/source/misc/ServiceDocumenter.hxx b/unotools/source/misc/ServiceDocumenter.hxx index cad333ddb59a..3d5e4d75f7c4 100644 --- a/unotools/source/misc/ServiceDocumenter.hxx +++ b/unotools/source/misc/ServiceDocumenter.hxx @@ -11,13 +11,14 @@ #include <cppuhelper/implbase.hxx> #include <com/sun/star/script/XServiceDocumenter.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> namespace com::sun::star::uno { class XComponentContext; } namespace unotools::misc { class ServiceDocumenter : public ::cppu::WeakImplHelper< - css::script::XServiceDocumenter> + css::script::XServiceDocumenter, css::lang::XServiceInfo> { public: ServiceDocumenter(css::uno::Reference< css::uno::XComponentContext> const& xContext) @@ -25,6 +26,12 @@ class ServiceDocumenter : public ::cppu::WeakImplHelper< , m_sCoreBaseUrl("http://example.com") , m_sServiceBaseUrl("https://api.libreoffice.org/docs/idl/ref") {}; + + // XServiceInfo + virtual sal_Bool SAL_CALL supportsService(const OUString& sServiceName) override; + virtual OUString SAL_CALL getImplementationName() override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + // XServiceDocumenter virtual OUString SAL_CALL getCoreBaseUrl() override { return m_sCoreBaseUrl; }; |