diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-09 20:39:18 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-17 12:25:03 +0100 |
commit | 5b034290cf8a1c6465ffe51fb6ac26c546d6d179 (patch) | |
tree | bd34aa0c08267915e39019a885471e3ec7f4ac3c /framework/source/layoutmanager | |
parent | db69bd9187e3aace05803052221b8f8a064051c6 (diff) |
fwk: Use constructor feature for LayoutManager.
Change-Id: I8f5167f7e522585ce8b80ebd8a9a0031aea50d74
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 309ab5bee73e..5fdcfdd91ab3 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -20,7 +20,6 @@ #include <services/layoutmanager.hxx> #include <helpers.hxx> #include <threadhelp/resetableguard.hxx> -#include <services.h> #include <framework/sfxhelperfunctions.hxx> #include <uielement/menubarwrapper.hxx> @@ -75,6 +74,7 @@ #include <rtl/instance.hxx> #include <unotools/cmdoptions.hxx> +#include <rtl/ref.hxx> #include <rtl/strbuf.hxx> #include <algorithm> @@ -98,8 +98,6 @@ namespace framework IMPLEMENT_FORWARD_XTYPEPROVIDER2( LayoutManager, LayoutManager_Base, LayoutManager_PBase ) IMPLEMENT_FORWARD_XINTERFACE2( LayoutManager, LayoutManager_Base, LayoutManager_PBase ) -DEFINE_XSERVICEINFO_MULTISERVICE_2( LayoutManager, ::cppu::OWeakObject, "com.sun.star.frame.LayoutManager", OUString("com.sun.star.comp.framework.LayoutManager")) -DEFINE_INIT_SERVICE( LayoutManager, {} ) LayoutManager::LayoutManager( const Reference< XComponentContext >& xContext ) : LayoutManager_Base() , ThreadHelpBase( &Application::GetSolarMutex()) @@ -3224,4 +3222,14 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL LayoutManager::getPropertySet } // namespace framework +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_comp_framework_LayoutManager_get_implementation( + css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + rtl::Reference<framework::LayoutManager> x(new framework::LayoutManager(context)); + x->acquire(); + return static_cast<cppu::OWeakObject *>(x.get()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |