summaryrefslogtreecommitdiff
path: root/framework/inc
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/inc
parentfb20f52279c8c13d2417e3232efe4fcbb52a4cc6 (diff)
fwk: Use constructor feature for StatusIndicatorFactory.
Change-Id: I0595ec98df7bf4114dfb4c21aedd2d2744fda11e
Diffstat (limited to 'framework/inc')
-rw-r--r--framework/inc/helper/statusindicatorfactory.hxx29
1 files changed, 20 insertions, 9 deletions
diff --git a/framework/inc/helper/statusindicatorfactory.hxx b/framework/inc/helper/statusindicatorfactory.hxx
index 79ae934d5398..4d8b486f184b 100644
--- a/framework/inc/helper/statusindicatorfactory.hxx
+++ b/framework/inc/helper/statusindicatorfactory.hxx
@@ -48,11 +48,9 @@
#include <com/sun/star/awt/WindowEvent.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/frame/XFrame.hpp>
-
#include <com/sun/star/util/XUpdatable.hpp>
-//_______________________________________________
-// include others
+#include <cppuhelper/supportsservice.hxx>
#include <vcl/status.hxx>
#include <cppuhelper/implbase4.hxx>
#include <osl/thread.hxx>
@@ -208,14 +206,27 @@ class StatusIndicatorFactory : private ThreadHelpBase
// interface
public:
-
- //---------------------------------------
- // ctor
StatusIndicatorFactory(const css::uno::Reference< css::uno::XComponentContext >& xContext);
- //---------------------------------------
- // XInterface, XTypeProvider, XServiceInfo
- DECLARE_XSERVICEINFO
+ virtual OUString SAL_CALL getImplementationName()
+ throw (css::uno::RuntimeException)
+ {
+ return OUString("com.sun.star.comp.framework.StatusIndicatorFactory");
+ }
+
+ virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
+ throw (css::uno::RuntimeException)
+ {
+ return cppu::supportsService(this, ServiceName);
+ }
+
+ virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
+ throw (css::uno::RuntimeException)
+ {
+ css::uno::Sequence< OUString > aSeq(1);
+ aSeq[0] = OUString("com.sun.star.task.StatusIndicatorFactory");
+ return aSeq;
+ }
//---------------------------------------
// XInitialization