diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-24 10:48:03 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-24 12:21:22 +0100 |
commit | 60ec73ddeaaca8195fd12e072bd3dd58229ab8c5 (patch) | |
tree | d2fc5a0a1522b645da3966601e552f5f58431c04 | |
parent | 68694f360f2c3f7957a7a4907b93d4d47d3900b6 (diff) |
tk: Ctor feature for UnoScrollBarControl(Model).
Change-Id: Ie37b81de21764186ab2ee9b19ac04d801880d2f9
-rw-r--r-- | toolkit/source/controls/tkscrollbar.cxx | 16 | ||||
-rw-r--r-- | toolkit/source/helper/registerservices.cxx | 4 | ||||
-rw-r--r-- | toolkit/util/tk.component | 6 |
3 files changed, 20 insertions, 6 deletions
diff --git a/toolkit/source/controls/tkscrollbar.cxx b/toolkit/source/controls/tkscrollbar.cxx index 2f7f0dd43ddf..c541fea8a594 100644 --- a/toolkit/source/controls/tkscrollbar.cxx +++ b/toolkit/source/controls/tkscrollbar.cxx @@ -283,4 +283,20 @@ namespace toolkit } // namespace toolkit //........................................................................ +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +stardiv_Toolkit_UnoControlScrollBarModel_get_implementation( + css::uno::XComponentContext *context, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new toolkit::UnoControlScrollBarModel(context)); +} + +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +stardiv_Toolkit_UnoScrollBarControl_get_implementation( + css::uno::XComponentContext *, + css::uno::Sequence<css::uno::Any> const &) +{ + return cppu::acquire(new toolkit::UnoScrollBarControl()); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/toolkit/source/helper/registerservices.cxx b/toolkit/source/helper/registerservices.cxx index 5c7853382d6b..d7e6e2a5c6d9 100644 --- a/toolkit/source/helper/registerservices.cxx +++ b/toolkit/source/helper/registerservices.cxx @@ -102,13 +102,11 @@ using namespace toolkit; IMPL_CREATEINSTANCE( UnoControlContainer ) IMPL_CREATEINSTANCE_CTX( UnoControlContainerModel ) IMPL_CREATEINSTANCE_CTX( UnoControlFormattedFieldModel ) -IMPL_CREATEINSTANCE_CTX( UnoControlScrollBarModel ) IMPL_CREATEINSTANCE_CTX( UnoMultiPageModel ) IMPL_CREATEINSTANCE_CTX( UnoPageModel ) IMPL_CREATEINSTANCE_CTX( UnoFrameModel ) IMPL_CREATEINSTANCE_CTX( UnoDialogControl ) IMPL_CREATEINSTANCE( UnoFormattedFieldControl ) -IMPL_CREATEINSTANCE( UnoScrollBarControl ) IMPL_CREATEINSTANCE_CTX( UnoMultiPageControl ) IMPL_CREATEINSTANCE_CTX( UnoPageControl ) IMPL_CREATEINSTANCE_CTX( UnoFrameControl ) @@ -137,8 +135,6 @@ TOOLKIT_DLLPUBLIC void* SAL_CALL tk_component_getFactory( const sal_Char* sImple GET_FACTORY( UnoDialogControl, szServiceName_UnoControlDialog, szServiceName2_UnoControlDialog ) GET_FACTORY( UnoFormattedFieldControl, szServiceName_UnoControlFormattedField, szServiceName2_UnoControlFormattedField ) GET_FACTORY( UnoControlFormattedFieldModel, szServiceName_UnoControlFormattedFieldModel, szServiceName2_UnoControlFormattedFieldModel ) - GET_FACTORY( UnoScrollBarControl, szServiceName_UnoControlScrollBar, szServiceName2_UnoControlScrollBar ) - GET_FACTORY( UnoControlScrollBarModel, szServiceName_UnoControlScrollBarModel, szServiceName2_UnoControlScrollBarModel ) GET_FACTORY( VCLXPrinterServer, szServiceName_PrinterServer, szServiceName2_PrinterServer ) GET_FACTORY( UnoMultiPageModel, szServiceName_UnoMultiPageModel, NULL ) GET_FACTORY( UnoMultiPageControl, szServiceName_UnoMultiPageControl, NULL ) diff --git a/toolkit/util/tk.component b/toolkit/util/tk.component index 32a490090f0c..6448268c4e0b 100644 --- a/toolkit/util/tk.component +++ b/toolkit/util/tk.component @@ -212,7 +212,8 @@ <service name="com.sun.star.awt.UnoControlRoadmapModel"/> <service name="stardiv.vcl.controlmodel.Roadmap"/> </implementation> - <implementation name="stardiv.Toolkit.UnoControlScrollBarModel"> + <implementation name="stardiv.Toolkit.UnoControlScrollBarModel" + constructor="stardiv_Toolkit_UnoControlScrollBarModel_get_implementation"> <service name="com.sun.star.awt.UnoControlScrollBarModel"/> <service name="stardiv.vcl.controlmodel.ScrollBar"/> </implementation> @@ -305,7 +306,8 @@ <service name="com.sun.star.awt.UnoControlRoadmap"/> <service name="stardiv.vcl.control.Roadmap"/> </implementation> - <implementation name="stardiv.Toolkit.UnoScrollBarControl"> + <implementation name="stardiv.Toolkit.UnoScrollBarControl" + constructor="stardiv_Toolkit_UnoScrollBarControl_get_implementation"> <service name="com.sun.star.awt.UnoControlScrollBar"/> <service name="stardiv.vcl.control.ScrollBar"/> </implementation> |