summaryrefslogtreecommitdiff
path: root/forms/source/component/imgprod.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/imgprod.cxx')
-rw-r--r--forms/source/component/imgprod.cxx14
1 files changed, 14 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*,