diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-17 20:36:45 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-17 23:51:45 +0200 |
commit | 4b60da5d1d25b7cdef001dabac3bbd09d1686718 (patch) | |
tree | 169ae8f9c4f9060891b8ac9c1b9e0268bbaa886b /canvas/source/simplecanvas | |
parent | f3423eab7815827857149995e69d00c7b641282d (diff) |
add more component prefixes
Diffstat (limited to 'canvas/source/simplecanvas')
-rw-r--r-- | canvas/source/simplecanvas/simplecanvas.component | 2 | ||||
-rw-r--r-- | canvas/source/simplecanvas/simplecanvasimpl.cxx | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/canvas/source/simplecanvas/simplecanvas.component b/canvas/source/simplecanvas/simplecanvas.component index 3a00b407375e..ef290927a679 100644 --- a/canvas/source/simplecanvas/simplecanvas.component +++ b/canvas/source/simplecanvas/simplecanvas.component @@ -26,7 +26,7 @@ * **********************************************************************--> -<component loader="com.sun.star.loader.SharedLibrary" +<component loader="com.sun.star.loader.SharedLibrary" prefix="simplecanvas" xmlns="http://openoffice.org/2010/uno-components"> <implementation name="com.sun.star.comp.rendering.SimpleCanvas"> <service name="com.sun.star.rendering.SimpleCanvas"/> diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx index f41ee45269f2..ea61bb49f703 100644 --- a/canvas/source/simplecanvas/simplecanvasimpl.cxx +++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx @@ -398,6 +398,14 @@ namespace } // The C shared lib entry points -COMPHELPER_SERVICEDECL_EXPORTS1(simpleCanvasDecl) +extern "C" +{ +SAL_DLLPUBLIC_EXPORT void* SAL_CALL simplecanvas_component_getFactory( sal_Char const* pImplName, + ::com::sun::star::lang::XMultiServiceFactory* pServiceManager, + ::com::sun::star::registry::XRegistryKey* pRegistryKey ) +{ + return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, simpleCanvasDecl ); +} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |