diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-30 10:54:41 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-31 13:25:49 +0100 |
commit | 01739fc69fa91e58331d0edbf7282e8e25f124d1 (patch) | |
tree | 34815b11fed6071d5d8a3dc6e2f0bed0bf1daae0 /svx | |
parent | 2929847516a597bc20e696fdd1a260d750560584 (diff) |
svx: Use constructor feature for uno search controllers.
Change-Id: If84ee775c5172eb40361b93aece920ab94c9e15c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/tbunosearchcontrollers.hxx | 55 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbunosearchcontrollers.cxx | 200 | ||||
-rw-r--r-- | svx/source/unodraw/unoctabl.cxx | 50 | ||||
-rw-r--r-- | svx/util/svx.component | 21 |
4 files changed, 143 insertions, 183 deletions
diff --git a/svx/inc/tbunosearchcontrollers.hxx b/svx/inc/tbunosearchcontrollers.hxx index 5f33b603cd4a..51d31de94fc8 100644 --- a/svx/inc/tbunosearchcontrollers.hxx +++ b/svx/inc/tbunosearchcontrollers.hxx @@ -40,8 +40,7 @@ #include <map> #include <vector> -namespace svx -{ +namespace { class FindTextFieldControl : public ComboBox { @@ -105,13 +104,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static() throw() - { - return OUString("com.sun.star.svx.FindTextToolboxController"); - } - - static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XComponent virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException ); @@ -153,13 +145,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static( ) throw() - { - return OUString( "com.sun.star.svx.ExitFindbarToolboxController" ); - } - - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XComponent virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException ); @@ -192,14 +177,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static( Type eType ) throw() - { - return eType == UP? OUString( "com.sun.star.svx.UpSearchToolboxController" ) : - OUString( "com.sun.star.svx.DownSearchToolboxController" ); - } - - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XComponent virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException ); @@ -233,13 +210,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static( ) throw() - { - return OUString( "com.sun.star.svx.MatchCaseToolboxController" ); - } - - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XComponent virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException ); @@ -274,13 +244,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static( ) throw() - { - return OUString( "com.sun.star.svx.FindAllToolboxController" ); - } - - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XComponent virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException ); @@ -317,13 +280,6 @@ public: virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException ); - static OUString getImplementationName_Static() throw() - { - return OUString("com.sun.star.comp.svx.Impl.FindbarDispatcher"); - } - - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - // XInitialization virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) throw ( css::uno::Exception, css::uno::RuntimeException ); @@ -342,15 +298,6 @@ private: }; -// createInstance -css::uno::Reference< css::uno::XInterface > SAL_CALL FindTextToolbarController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL DownSearchToolboxController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL UpSearchToolboxController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL MatchCaseToolboxController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL FindAllToolboxController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL ExitFindbarToolboxController_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); -css::uno::Reference< css::uno::XInterface > SAL_CALL FindbarDispatcher_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ); - } #endif // INCLUDED_SVX_INC_TBUNOSEARCHCONTROLLERS_HXX diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx index 6089e39f5423..aecea5c5a5c0 100644 --- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx +++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include "tbunosearchcontrollers.hxx" +#include <tbunosearchcontrollers.hxx> #include <svx/dialogs.hrc> #include <svx/dialmgr.hxx> @@ -41,8 +41,9 @@ #include <osl/mutex.hxx> #include <rtl/instance.hxx> -namespace svx -{ +using namespace css; + +namespace { static const char SEARCHITEM_COMMAND[] = "SearchItem.Command"; static const char SEARCHITEM_SEARCHSTRING[] = "SearchItem.SearchString"; @@ -379,7 +380,7 @@ void SAL_CALL FindTextToolbarController::release() throw () // XServiceInfo OUString SAL_CALL FindTextToolbarController::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static(); + return OUString("com.sun.star.svx.FindTextToolboxController"); } sal_Bool SAL_CALL FindTextToolbarController::supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ) @@ -389,11 +390,6 @@ sal_Bool SAL_CALL FindTextToolbarController::supportsService( const OUString& Se css::uno::Sequence< OUString > SAL_CALL FindTextToolbarController::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > FindTextToolbarController::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 1 ); aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; @@ -545,7 +541,9 @@ void SAL_CALL UpDownSearchToolboxController::release() throw () // XServiceInfo OUString SAL_CALL UpDownSearchToolboxController::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static( meType ); + return meType == UpDownSearchToolboxController::UP? + OUString( "com.sun.star.svx.UpSearchToolboxController" ) : + OUString( "com.sun.star.svx.DownSearchToolboxController" ); } sal_Bool SAL_CALL UpDownSearchToolboxController::supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ) @@ -555,11 +553,6 @@ sal_Bool SAL_CALL UpDownSearchToolboxController::supportsService( const OUString css::uno::Sequence< OUString > SAL_CALL UpDownSearchToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > UpDownSearchToolboxController::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 1 ); aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; @@ -646,7 +639,7 @@ void SAL_CALL MatchCaseToolboxController::release() throw () // XServiceInfo OUString SAL_CALL MatchCaseToolboxController::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static(); + return OUString( "com.sun.star.svx.MatchCaseToolboxController" ); } sal_Bool SAL_CALL MatchCaseToolboxController::supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ) @@ -656,11 +649,6 @@ sal_Bool SAL_CALL MatchCaseToolboxController::supportsService( const OUString& S css::uno::Sequence< OUString > SAL_CALL MatchCaseToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > MatchCaseToolboxController::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 1 ); aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; @@ -757,7 +745,7 @@ void SAL_CALL FindAllToolboxController::release() throw () // XServiceInfo OUString SAL_CALL FindAllToolboxController::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static( ); + return OUString( "com.sun.star.svx.FindAllToolboxController" ); } @@ -768,11 +756,6 @@ sal_Bool SAL_CALL FindAllToolboxController::supportsService( const OUString& Ser css::uno::Sequence< OUString > SAL_CALL FindAllToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > FindAllToolboxController::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 1 ); aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; @@ -852,7 +835,7 @@ void SAL_CALL ExitSearchToolboxController::release() throw () // XServiceInfo OUString SAL_CALL ExitSearchToolboxController::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static( ); + return OUString( "com.sun.star.svx.ExitFindbarToolboxController" ); } @@ -863,11 +846,6 @@ sal_Bool SAL_CALL ExitSearchToolboxController::supportsService( const OUString& css::uno::Sequence< OUString > SAL_CALL ExitSearchToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > ExitSearchToolboxController::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 1 ); aSNS[0] = "com.sun.star.frame.ToolbarController"; return aSNS; @@ -961,7 +939,7 @@ void SAL_CALL FindbarDispatcher::release() throw() // XServiceInfo OUString SAL_CALL FindbarDispatcher::getImplementationName() throw( css::uno::RuntimeException ) { - return getImplementationName_Static(); + return OUString("com.sun.star.comp.svx.Impl.FindbarDispatcher"); } sal_Bool SAL_CALL FindbarDispatcher::supportsService( const OUString& ServiceName ) throw( css::uno::RuntimeException ) @@ -971,11 +949,6 @@ sal_Bool SAL_CALL FindbarDispatcher::supportsService( const OUString& ServiceNam css::uno::Sequence< OUString > SAL_CALL FindbarDispatcher::getSupportedServiceNames() throw( css::uno::RuntimeException ) { - return getSupportedServiceNames_Static(); -} - -css::uno::Sequence< OUString > FindbarDispatcher::getSupportedServiceNames_Static() throw() -{ css::uno::Sequence< OUString > aSNS( 2 ); aSNS[0] = "com.sun.star.comp.svx.FindbarDispatcher"; aSNS[1] = "com.sun.star.frame.ProtocolHandler"; @@ -1074,59 +1047,142 @@ void SAL_CALL FindbarDispatcher::removeStatusListener( const css::uno::Reference { } -//----------------------------------------------------------------------------------------------------------- -// create Instance - -css::uno::Reference< css::uno::XInterface > SAL_CALL FindTextToolbarController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) -{ - return static_cast< cppu::OWeakObject * >( - new FindTextToolbarController( comphelper::getComponentContext(rSMgr) ) ); } -css::uno::Reference< css::uno::XInterface > SAL_CALL DownSearchToolboxController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_FindTextToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return static_cast< cppu::OWeakObject * >( - new UpDownSearchToolboxController( - comphelper::getComponentContext(rSMgr), UpDownSearchToolboxController::DOWN ) ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new FindTextToolbarController(context))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -css::uno::Reference< css::uno::XInterface > SAL_CALL UpSearchToolboxController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_ExitFindbarToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return static_cast< cppu::OWeakObject * >( - new UpDownSearchToolboxController( - comphelper::getComponentContext(rSMgr), UpDownSearchToolboxController::UP ) ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new ExitSearchToolboxController(context))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -css::uno::Reference< css::uno::XInterface > SAL_CALL MatchCaseToolboxController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_UpSearchToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return static_cast< cppu::OWeakObject * >( - new MatchCaseToolboxController( comphelper::getComponentContext(rSMgr) ) ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new UpDownSearchToolboxController( + context, UpDownSearchToolboxController::UP ))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -css::uno::Reference< css::uno::XInterface > SAL_CALL FindAllToolboxController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_DownSearchToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return static_cast< cppu::OWeakObject * >( - new FindAllToolboxController( comphelper::getComponentContext(rSMgr) ) ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new UpDownSearchToolboxController( + context, UpDownSearchToolboxController::DOWN ))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -css::uno::Reference< css::uno::XInterface > SAL_CALL ExitFindbarToolboxController_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_MatchCaseToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return *new ExitSearchToolboxController( comphelper::getComponentContext(rSMgr) ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new MatchCaseToolboxController(context))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -css::uno::Reference< css::uno::XInterface > SAL_CALL FindbarDispatcher_createInstance( - const css::uno::Reference< css::lang::XMultiServiceFactory >& ) +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_svx_FindAllToolboxController_implementation_getFactory( + css::uno::XComponentContext *context, uno_Sequence * arguments) { - return static_cast< cppu::OWeakObject * >( new FindbarDispatcher ); + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new FindAllToolboxController(context))); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } -//----------------------------------------------------------------------------------------------------------- +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL +com_sun_star_comp_svx_Impl_FindbarDispatcher_implementation_getFactory( + SAL_UNUSED_PARAMETER css::uno::XComponentContext *, + uno_Sequence * arguments) +{ + assert(arguments != 0); + css::uno::Reference<css::uno::XInterface> x( + static_cast<cppu::OWeakObject *>(new FindbarDispatcher)); + x->acquire(); + css::uno::Reference< css::lang::XInitialization > xx(x, css::uno::UNO_QUERY); + if (xx.is()) + { + css::uno::Sequence<css::uno::Any> aArgs( + reinterpret_cast<css::uno::Any *>(arguments->elements), + arguments->nElements); + xx->initialize(aArgs); + } + return x.get(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx index 8f990b7c9268..6e4575d7ad97 100644 --- a/svx/source/unodraw/unoctabl.cxx +++ b/svx/source/unodraw/unoctabl.cxx @@ -28,7 +28,6 @@ #include "svx/unoshcol.hxx" #include "recoveryui.hxx" #include "tbunocontroller.hxx" -#include "tbunosearchcontrollers.hxx" using namespace ::com::sun::star; using namespace ::rtl; @@ -281,55 +280,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL svx_component_getFactory ( svx::FontHeightToolBoxControl_createInstance, svx::FontHeightToolBoxControl::getSupportedServiceNames_Static() ); } - else if ( svx::FindTextToolbarController::getImplementationName_Static().equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::FindTextToolbarController::getImplementationName_Static(), - svx::FindTextToolbarController_createInstance, - svx::FindTextToolbarController::getSupportedServiceNames_Static() ); - } - else if ( svx::UpDownSearchToolboxController::getImplementationName_Static( svx::UpDownSearchToolboxController::DOWN ).equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::UpDownSearchToolboxController::getImplementationName_Static( svx::UpDownSearchToolboxController::DOWN ), - svx::DownSearchToolboxController_createInstance, - svx::UpDownSearchToolboxController::getSupportedServiceNames_Static() ); - } - else if ( svx::UpDownSearchToolboxController::getImplementationName_Static( svx::UpDownSearchToolboxController::UP ).equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::UpDownSearchToolboxController::getImplementationName_Static( svx::UpDownSearchToolboxController::UP ), - svx::UpSearchToolboxController_createInstance, - svx::UpDownSearchToolboxController::getSupportedServiceNames_Static() ); - } - else if ( svx::MatchCaseToolboxController::getImplementationName_Static().equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::MatchCaseToolboxController::getImplementationName_Static(), - svx::MatchCaseToolboxController_createInstance, - svx::MatchCaseToolboxController::getSupportedServiceNames_Static() ); - } - else if ( svx::FindAllToolboxController::getImplementationName_Static().equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::FindAllToolboxController::getImplementationName_Static(), - svx::FindAllToolboxController_createInstance, - svx::FindAllToolboxController::getSupportedServiceNames_Static() ); - } - else if ( svx::ExitSearchToolboxController::getImplementationName_Static().equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::ExitSearchToolboxController::getImplementationName_Static(), - svx::ExitFindbarToolboxController_createInstance, - svx::ExitSearchToolboxController::getSupportedServiceNames_Static() ); - } - else if ( svx::FindbarDispatcher::getImplementationName_Static().equalsAscii( pImplName ) ) - { - xFactory = createSingleFactory( reinterpret_cast< lang::XMultiServiceFactory * >( pServiceManager ), - svx::FindbarDispatcher::getImplementationName_Static(), - svx::FindbarDispatcher_createInstance, - svx::FindbarDispatcher::getSupportedServiceNames_Static() ); - } if( xFactory.is()) { diff --git a/svx/util/svx.component b/svx/util/svx.component index fbc4eed0df6f..b3b4df04410f 100644 --- a/svx/util/svx.component +++ b/svx/util/svx.component @@ -26,7 +26,8 @@ constructor="com_sun_star_comp_gallery_GalleryThemeProvider_implementation_getFactory"> <service name="com.sun.star.gallery.GalleryThemeProvider"/> </implementation> - <implementation name="com.sun.star.comp.svx.Impl.FindbarDispatcher"> + <implementation name="com.sun.star.comp.svx.Impl.FindbarDispatcher" + constructor="com_sun_star_comp_svx_Impl_FindbarDispatcher_implementation_getFactory"> <service name="com.sun.star.comp.svx.FindbarDispatcher"/> <service name="com.sun.star.frame.ProtocolHandler"/> </implementation> @@ -42,25 +43,31 @@ <implementation name="com.sun.star.drawing.SvxUnoColorTable"> <service name="com.sun.star.drawing.ColorTable"/> </implementation> - <implementation name="com.sun.star.svx.DownSearchToolboxController"> + <implementation name="com.sun.star.svx.DownSearchToolboxController" + constructor="com_sun_star_svx_DownSearchToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> - <implementation name="com.sun.star.svx.FindTextToolboxController"> + <implementation name="com.sun.star.svx.FindTextToolboxController" + constructor="com_sun_star_svx_FindTextToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> - <implementation name="com.sun.star.svx.MatchCaseToolboxController"> + <implementation name="com.sun.star.svx.MatchCaseToolboxController" + constructor="com_sun_star_svx_MatchCaseToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> - <implementation name="com.sun.star.svx.FindAllToolboxController"> + <implementation name="com.sun.star.svx.FindAllToolboxController" + constructor="com_sun_star_svx_FindAllToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> <implementation name="com.sun.star.svx.FontHeightToolBoxController"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> - <implementation name="com.sun.star.svx.UpSearchToolboxController"> + <implementation name="com.sun.star.svx.UpSearchToolboxController" + constructor="com_sun_star_svx_UpSearchToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> - <implementation name="com.sun.star.svx.ExitFindbarToolboxController"> + <implementation name="com.sun.star.svx.ExitFindbarToolboxController" + constructor="com_sun_star_svx_ExitFindbarToolboxController_implementation_getFactory"> <service name="com.sun.star.frame.ToolbarController"/> </implementation> <implementation name="org.apache.openoffice.comp.svx.sidebar.PanelFactory" |