summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/progressmonitor.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-07-03 19:39:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-07-04 08:32:56 +0200
commit78639945dab254e2de5315c49e82c333e1056170 (patch)
treec043c0d237ae9257aadfcd755cefc9df0a786208 /UnoControls/source/controls/progressmonitor.cxx
parent7dcc18b5ac79d9a3e7564492428a275bf9b386db (diff)
UnoControl: create instances with uno constructors
See tdf#74608 for motivation. Change-Id: I3df173e3c7064d3d925d3abe5c652b8cbe6c8ea5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'UnoControls/source/controls/progressmonitor.cxx')
-rw-r--r--UnoControls/source/controls/progressmonitor.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/UnoControls/source/controls/progressmonitor.cxx b/UnoControls/source/controls/progressmonitor.cxx
index 78278250942d..46f6fda8bcec 100644
--- a/UnoControls/source/controls/progressmonitor.cxx
+++ b/UnoControls/source/controls/progressmonitor.cxx
@@ -530,18 +530,6 @@ void SAL_CALL ProgressMonitor::setPosSize ( sal_Int32 nX, sal_Int32 nY, sal_Int3
}
}
-// impl but public method to register service
-Sequence< OUString > ProgressMonitor::impl_getStaticSupportedServiceNames()
-{
- return css::uno::Sequence<OUString>();
-}
-
-// impl but public method to register service
-OUString ProgressMonitor::impl_getStaticImplementationName()
-{
- return "stardiv.UnoControls.ProgressMonitor";
-}
-
// protected method
void ProgressMonitor::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< XGraphics > & rGraphics )
{
@@ -865,4 +853,10 @@ bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic )
} // namespace unocontrols
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+stardiv_UnoControls_ProgressMonitor_get_implementation(
+ css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const&)
+{
+ return cppu::acquire(new unocontrols::ProgressMonitor(context));
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */