summaryrefslogtreecommitdiff
path: root/framework/source/helper
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-01-09 14:28:16 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-01-17 12:24:51 +0100
commit10074976b70c9a3586c0ed584767cfb844d11287 (patch)
tree3587703c0829aa9ff5e7eb557dbbaff59a6d0a21 /framework/source/helper
parentfb20f52279c8c13d2417e3232efe4fcbb52a4cc6 (diff)
fwk: Use constructor feature for StatusIndicatorFactory.
Change-Id: I0595ec98df7bf4114dfb4c21aedd2d2744fda11e
Diffstat (limited to 'framework/source/helper')
-rw-r--r--framework/source/helper/statusindicatorfactory.cxx28
1 files changed, 11 insertions, 17 deletions
diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx
index 6f9746046d9f..a81aacfe9440 100644
--- a/framework/source/helper/statusindicatorfactory.cxx
+++ b/framework/source/helper/statusindicatorfactory.cxx
@@ -44,6 +44,7 @@
#include <unotools/mediadescriptor.hxx>
#include <vcl/svapp.hxx>
#include <osl/mutex.hxx>
+#include <rtl/ref.hxx>
#include <officecfg/Office/Common.hxx>
@@ -54,23 +55,6 @@ sal_Int32 StatusIndicatorFactory::m_nInReschedule = 0; /// static counter for r
const char PROGRESS_RESOURCE[] = "private:resource/progressbar/progressbar";
//-----------------------------------------------
-
-DEFINE_XSERVICEINFO_MULTISERVICE_2(StatusIndicatorFactory ,
- ::cppu::OWeakObject ,
- OUString("com.sun.star.task.StatusIndicatorFactory"),
- OUString("com.sun.star.comp.framework.StatusIndicatorFactory"))
-
-DEFINE_INIT_SERVICE(StatusIndicatorFactory,
- {
- /*Attention
- I think we don't need any mutex or lock here ... because we are called by our own static method impl_createInstance()
- to create a new instance of this class by our own supported service factory.
- see macro DEFINE_XSERVICEINFO_MULTISERVICE and "impl_initService()" for further information!
- */
- }
- )
-
-//-----------------------------------------------
StatusIndicatorFactory::StatusIndicatorFactory(const css::uno::Reference< css::uno::XComponentContext >& xContext)
: ThreadHelpBase ( )
, m_xContext (xContext )
@@ -619,4 +603,14 @@ void StatusIndicatorFactory::impl_stopWakeUpThread()
} // namespace framework
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
+com_sun_star_comp_framework_StatusIndicatorFactory_get_implementation(
+ css::uno::XComponentContext *context,
+ css::uno::Sequence<css::uno::Any> const &)
+{
+ rtl::Reference<framework::StatusIndicatorFactory> x(new framework::StatusIndicatorFactory(context));
+ x->acquire();
+ return static_cast<cppu::OWeakObject *>(x.get());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */