diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-21 00:10:57 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-02-21 07:52:25 +0100 |
commit | f96926c1c22a1bceea42f4ebd5ec610d48833c18 (patch) | |
tree | f973bfcf2ba0ab4ebab7671e202bd6efa3fcb615 /sc/source/ui/vba/vbaglobals.cxx | |
parent | 65a43d682f979bfb6189dfc4e138ad9ac34adcae (diff) |
vbaobj: One more ctor feature for ScVbaGlobals.
Change-Id: I741d1e0af1d6f631b321b76172b988262c0f709f
Diffstat (limited to 'sc/source/ui/vba/vbaglobals.cxx')
-rw-r--r-- | sc/source/ui/vba/vbaglobals.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx index 919da33f88e0..334338c5d37a 100644 --- a/sc/source/ui/vba/vbaglobals.cxx +++ b/sc/source/ui/vba/vbaglobals.cxx @@ -16,7 +16,6 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <vbahelper/helperdecl.hxx> #include "vbaglobals.hxx" #include <sal/macros.h> @@ -288,14 +287,12 @@ ScVbaGlobals::getServiceNames() return aServiceNames; } -namespace globals +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +ScVbaGlobals_get_implementation( + css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &arguments) { -namespace sdecl = comphelper::service_decl; -sdecl::vba_service_class_<ScVbaGlobals, sdecl::with_args<true> > serviceImpl; -extern sdecl::ServiceDecl const serviceDecl( - serviceImpl, - "ScVbaGlobals", - "ooo.vba.excel.Globals" ); + return cppu::acquire(new ScVbaGlobals(arguments, context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |