summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-17 21:33:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-18 07:38:29 +0200
commit7c36c5fdfdfeab9d15ea733fe2a831cd4ff25d27 (patch)
tree5142aa4d6a3a120a443c0248af38203116ee4370 /forms
parent3c4f53bc19ab90a98edb75a2dc554c917e36ab11 (diff)
Some missing XServiceInfo implementations
Change-Id: I1cf871b40f9f4020147dac0456ebeed3de0438e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150533 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/imgprod.cxx14
-rw-r--r--forms/source/component/imgprod.hxx6
2 files changed, 20 insertions, 0 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index a496f5bb4aa5..faa8663a2461 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -27,6 +27,7 @@
#include <vcl/svapp.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <cppuhelper/queryinterface.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/awt/ImageStatus.hpp>
#include <com/sun/star/io/XInputStream.hpp>
@@ -176,6 +177,7 @@ css::uno::Any ImageProducer::queryInterface( const css::uno::Type & rType )
{
css::uno::Any aRet = ::cppu::queryInterface( rType,
static_cast< css::lang::XInitialization* >(this),
+ static_cast< css::lang::XServiceInfo* >(this),
static_cast< css::awt::XImageProducer* >(this) );
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
}
@@ -481,6 +483,18 @@ void ImageProducer::initialize( const css::uno::Sequence< css::uno::Any >& aArgu
}
}
+OUString ImageProducer::getImplementationName() {
+ return "com.sun.star.form.ImageProducer";
+}
+
+sal_Bool ImageProducer::supportsService(OUString const & ServiceName) {
+ return cppu::supportsService(this, ServiceName);
+}
+
+css::uno::Sequence<OUString> ImageProducer::getSupportedServiceNames() {
+ return {"com.sun.star.awt.ImageProducer"};
+}
+
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
com_sun_star_form_ImageProducer_get_implementation(css::uno::XComponentContext*,
diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx
index 4b68a9fcfeb0..bfcb2c66b0ee 100644
--- a/forms/source/component/imgprod.hxx
+++ b/forms/source/component/imgprod.hxx
@@ -23,6 +23,7 @@
#include <com/sun/star/awt/XImageConsumer.hpp>
#include <com/sun/star/awt/XImageProducer.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/lang/XServiceInfo.hpp>
#include <cppuhelper/weak.hxx>
#include <vcl/graph.hxx>
#include <memory>
@@ -36,6 +37,7 @@ namespace com::sun::star::io { class XInputStream; }
class ImageProducer : public css::awt::XImageProducer,
public css::lang::XInitialization,
+ public css::lang::XServiceInfo,
public ::cppu::OWeakObject
{
private:
@@ -85,6 +87,10 @@ public:
// css::lang::XInitialization
void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
+ OUString SAL_CALL getImplementationName() override;
+ sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
+ css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
+
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */