summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/defaulthelpprovider.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-07-22 09:27:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-22 14:40:58 +0200
commit5c2b301f031ff8374fcf0e4c2ed8f9bd4300815e (patch)
tree5a7091c2939a2244dc84548c411f9095b83305bf /extensions/source/propctrlr/defaulthelpprovider.hxx
parent690b9b08373dc7cc08517c4273c777154e893bd7 (diff)
extensions/prop: create instances with uno constructors
See tdf#74608 for motivation. Change-Id: I89d2c8d0b2bf960b3de1853c69fa64ff41b484ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99185 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions/source/propctrlr/defaulthelpprovider.hxx')
-rw-r--r--extensions/source/propctrlr/defaulthelpprovider.hxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/defaulthelpprovider.hxx b/extensions/source/propctrlr/defaulthelpprovider.hxx
index 95ccc1d53d8c..e70ad124912b 100644
--- a/extensions/source/propctrlr/defaulthelpprovider.hxx
+++ b/extensions/source/propctrlr/defaulthelpprovider.hxx
@@ -22,6 +22,7 @@
#include <com/sun/star/inspection/XPropertyControlObserver.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/inspection/XObjectInspectorUI.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
@@ -38,6 +39,7 @@ namespace pcr
typedef ::cppu::WeakImplHelper < css::inspection::XPropertyControlObserver
, css::lang::XInitialization
+ , css::lang::XServiceInfo
> DefaultHelpProvider_Base;
class DefaultHelpProvider final : public DefaultHelpProvider_Base
{
@@ -49,17 +51,14 @@ namespace pcr
public:
DefaultHelpProvider();
- // XServiceInfo - static versions
- /// @throws css::uno::RuntimeException
- static OUString getImplementationName_static( );
- /// @throws css::uno::RuntimeException
- static css::uno::Sequence< OUString > getSupportedServiceNames_static( );
- static css::uno::Reference< css::uno::XInterface >
- Create(const css::uno::Reference< css::uno::XComponentContext >&);
-
private:
virtual ~DefaultHelpProvider() override;
+ // XServiceInfo
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override;
+
// XPropertyControlObserver
virtual void SAL_CALL focusGained( const css::uno::Reference< css::inspection::XPropertyControl >& Control ) override;
virtual void SAL_CALL valueChanged( const css::uno::Reference< css::inspection::XPropertyControl >& Control ) override;