sd/source/ui/sidebar/PanelFactory.cxx | 13 +++++++++++++ sd/source/ui/sidebar/PanelFactory.hxx | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
New commits: commit e489200756d08fd647d3c3ce5ae4f620c3f4baa7 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Apr 5 22:58:11 2023 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 6 07:45:20 2023 +0200 Missing XServiceInfo Change-Id: I1ec148d239d6ea6ac72f820d5e5f41f1865f4b0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150069 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sd/source/ui/sidebar/PanelFactory.cxx b/sd/source/ui/sidebar/PanelFactory.cxx index 752f3db7f1ac..1e39b2ee9c79 100644 --- a/sd/source/ui/sidebar/PanelFactory.cxx +++ b/sd/source/ui/sidebar/PanelFactory.cxx @@ -35,6 +35,7 @@ #include <com/sun/star/uno/XComponentContext.hpp> #include <comphelper/namedvaluecollection.hxx> #include <comphelper/servicehelper.hxx> +#include <cppuhelper/supportsservice.hxx> #include <vcl/weldutils.hxx> using namespace css; @@ -128,6 +129,18 @@ Reference<ui::XUIElement> SAL_CALL PanelFactory::createUIElement ( aLayoutSize); } +OUString PanelFactory::getImplementationName() { + return "org.openoffice.comp.Draw.framework.PanelFactory"; +} + +sal_Bool PanelFactory::supportsService(OUString const & ServiceName) { + return cppu::supportsService(this, ServiceName); +} + +css::uno::Sequence<OUString> PanelFactory::getSupportedServiceNames() { + return {"com.sun.star.drawing.framework.PanelFactory"}; +} + } // end of namespace sd::sidebar diff --git a/sd/source/ui/sidebar/PanelFactory.hxx b/sd/source/ui/sidebar/PanelFactory.hxx index 77fc17dbcd35..3462aef11f00 100644 --- a/sd/source/ui/sidebar/PanelFactory.hxx +++ b/sd/source/ui/sidebar/PanelFactory.hxx @@ -20,12 +20,13 @@ #include <comphelper/compbase.hxx> +#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/ui/XUIElementFactory.hpp> namespace sd::sidebar { typedef comphelper::WeakComponentImplHelper < - css::ui::XUIElementFactory + css::ui::XUIElementFactory, css::lang::XServiceInfo > PanelFactoryInterfaceBase; class PanelFactory final @@ -42,6 +43,10 @@ public: css::uno::Reference<css::ui::XUIElement> SAL_CALL createUIElement ( const OUString& rsResourceURL, const css::uno::Sequence<css::beans::PropertyValue>& rArguments) override; + + OUString SAL_CALL getImplementationName() override; + sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override; + css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override; }; } // end of namespace sd::sidebar