diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-06 14:35:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-07 08:27:26 +0200 |
commit | b700e3426ecbeadf1c8f5fad590101354706e227 (patch) | |
tree | f0b78c866d9f37b50b2024dd9b31d727dd8a52db /framework/inc | |
parent | 3fbc3adefd0b2140ff7697cbc3d4b71ed92aa5ff (diff) |
loplugin:mergeclasses
Change-Id: I131d192a0029ec3eebacb72341ba3113de0e19ac
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/uielement/spinfieldtoolbarcontroller.hxx | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx index b2f5efe2339e..a09663a064a7 100644 --- a/framework/inc/uielement/spinfieldtoolbarcontroller.hxx +++ b/framework/inc/uielement/spinfieldtoolbarcontroller.hxx @@ -35,26 +35,7 @@ namespace framework class SpinfieldControl; -class ISpinfieldListener -{ - public: - virtual void Up() = 0; - virtual void Down() = 0; - virtual void First() = 0; - virtual void Last() = 0; - virtual void KeyInput( const KeyEvent& rKEvt ) = 0; - virtual void Modify() = 0; - virtual void GetFocus() = 0; - virtual void StateChanged( StateChangedType nType ) = 0; - virtual void DataChanged( const DataChangedEvent& rDCEvt ) = 0; - virtual bool PreNotify( NotifyEvent& rNEvt ) = 0; - - protected: - ~ISpinfieldListener() {} -}; - -class SpinfieldToolbarController : public ISpinfieldListener, - public ComplexToolbarController +class SpinfieldToolbarController : public ComplexToolbarController { public: @@ -69,17 +50,17 @@ class SpinfieldToolbarController : public ISpinfieldListener, // XComponent virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - // ISpinfieldListener - virtual void Up() SAL_OVERRIDE; - virtual void Down() SAL_OVERRIDE; - virtual void First() SAL_OVERRIDE; - virtual void Last() SAL_OVERRIDE; - virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; - virtual void Modify() SAL_OVERRIDE; - virtual void GetFocus() SAL_OVERRIDE; - virtual void StateChanged( StateChangedType nType ) SAL_OVERRIDE; - virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE; - virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE; + // called from SpinfieldControl + void Up(); + void Down(); + void First(); + void Last(); + void KeyInput( const KeyEvent& rKEvt ); + void Modify(); + void GetFocus(); + void StateChanged( StateChangedType nType ); + void DataChanged( const DataChangedEvent& rDCEvt ); + bool PreNotify( NotifyEvent& rNEvt ); protected: virtual void executeControlCommand( const ::com::sun::star::frame::ControlCommand& rControlCommand ) SAL_OVERRIDE; |