diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-15 17:19:29 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-16 10:25:00 +0100 |
commit | f32f8285966a0455a7c0db71e196e5ea92390329 (patch) | |
tree | ea9a566d5aa19aced30761777c559b93c1dc1e0b /sfx2 | |
parent | de74b8c58ac516fe5f083a88cbcb89fc3ccc5eef (diff) |
sfx: TEST_HANDLERS not defined
Change-Id: If02c029114e9531951b18abeb9d0afd0a18ceca3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index b47fb0b6ac7f..778ec14f47d5 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -1693,77 +1693,6 @@ void TransformItems( sal_uInt16 nSlotId, const SfxItemSet& rSet, uno::Sequence<b rArgs = aSequ; } -#ifdef TEST_HANDLERS -#include <cppuhelper/implbase2.hxx> - -#include <com/sun/star/awt/XKeyHandler.hpp> -#include <com/sun/star/awt/XMouseClickHandler.hpp> - -class TestKeyHandler: public ::cppu::WeakImplHelper2 -< - com::sun::star::awt::XKeyHandler, - com::sun::star::lang::XServiceInfo -> -{ -public: - TestKeyHandler( const com::sun::star::uno::Reference < lang::XMultiServiceFactory >& ){} - - SFX_DECL_XSERVICEINFO - virtual sal_Bool SAL_CALL keyPressed( const awt::KeyEvent& aEvent ) throw (uno::RuntimeException); - virtual sal_Bool SAL_CALL keyReleased( const awt::KeyEvent& aEvent ) throw (uno::RuntimeException); - virtual void SAL_CALL disposing( const lang::EventObject& Source) - throw (uno::RuntimeException); -}; - -class TestMouseClickHandler: public ::cppu::WeakImplHelper2 -< - com::sun::star::awt::XMouseClickHandler, - com::sun::star::lang::XServiceInfo -> -{ -public: - TestMouseClickHandler( const com::sun::star::uno::Reference < lang::XMultiServiceFactory >& ){} - - SFX_DECL_XSERVICEINFO - virtual sal_Bool SAL_CALL mousePressed( const awt::MouseEvent& e ) throw (uno::RuntimeException); - virtual sal_Bool SAL_CALL mouseReleased( const awt::MouseEvent& e ) throw (uno::RuntimeException); - virtual void SAL_CALL disposing( const lang::EventObject& Source) - throw (uno::RuntimeException); -}; - -sal_Bool SAL_CALL TestKeyHandler::keyPressed( const awt::KeyEvent& aEvent ) throw (uno::RuntimeException) -{ - return sal_False; -} - -sal_Bool SAL_CALL TestKeyHandler::keyReleased( const awt::KeyEvent& aEvent ) throw (uno::RuntimeException) -{ - return sal_False; -} - -void SAL_CALL TestKeyHandler::disposing( const lang::EventObject& Source) throw (uno::RuntimeException) -{ -} - -sal_Bool SAL_CALL TestMouseClickHandler::mousePressed( const awt::MouseEvent& e ) throw (uno::RuntimeException) -{ - return sal_False; -} - -sal_Bool SAL_CALL TestMouseClickHandler::mouseReleased( const awt::MouseEvent& e ) throw (uno::RuntimeException) -{ - return sal_False; -} - -void SAL_CALL TestMouseClickHandler::disposing( const lang::EventObject& Source) throw (uno::RuntimeException) -{ -} - -SFX_IMPL_XSERVICEINFO( TestKeyHandler, "com.sun.star.task.Job", "com.sun.star.comp.Office.KeyHandler"); -SFX_IMPL_XSERVICEINFO( TestMouseClickHandler, "com.sun.star.task.Job", "com.sun.star.comp.Office.MouseClickHandler"); -SFX_IMPL_SINGLEFACTORY( TestKeyHandler ); -SFX_IMPL_SINGLEFACTORY( TestMouseClickHandler ); -#endif // ----------------------------------------------------------------------- extern "C" { @@ -1791,10 +1720,6 @@ SFX2_DLLPUBLIC void* SAL_CALL sfx_component_getFactory( // Write no ";" at end of line and dont forget "else" ! (see macro) //============================================================================= IF_NAME_CREATECOMPONENTFACTORY( SfxGlobalEvents_Impl ) -#ifdef TEST_HANDLERS - IF_NAME_CREATECOMPONENTFACTORY( TestKeyHandler ) - IF_NAME_CREATECOMPONENTFACTORY( TestMouseClickHandler ) -#endif // Factory is valid - service was found. |