From c3a89936abc7967ebe8916ca83cb38f6837f9aa1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 2 Apr 2014 15:18:03 +0200 Subject: sfx2/tbxctrl.hxx: sal_Bool->bool and clean up the mess around the two different Select methods which just led to confusion in the overriding classes. Change-Id: Iea0ea85752180d0dc50d2b4ddb3d861e8447fb0a --- include/sfx2/tbxctrl.hxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'include/sfx2/tbxctrl.hxx') diff --git a/include/sfx2/tbxctrl.hxx b/include/sfx2/tbxctrl.hxx index 906d2271bf6e..8dfe773b0b0e 100644 --- a/include/sfx2/tbxctrl.hxx +++ b/include/sfx2/tbxctrl.hxx @@ -195,8 +195,7 @@ protected: // old SfxToolBoxControl methods virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); - virtual void Select( bool bMod1 = false ); - virtual void Select( sal_uInt16 nModifier ); + virtual void Select( sal_uInt16 nSelectModifier ); virtual void DoubleClick(); virtual void Click(); @@ -311,8 +310,7 @@ public: SFX_DECL_TOOLBOX_CONTROL(); SfxDragToolBoxControl_Impl( sal_uInt16 nId, ToolBox& rBox ); virtual Window* CreateItemWindow( Window *pParent ) SAL_OVERRIDE; - using SfxToolBoxControl::Select; - virtual void Select( bool bMod1 = false ) SAL_OVERRIDE; + virtual void Select(sal_uInt16 nSelectModifier) SAL_OVERRIDE; }; @@ -341,8 +339,7 @@ protected: class SfxReloadToolBoxControl_Impl : public SfxToolBoxControl { protected: - using SfxToolBoxControl::Select; - virtual void Select( sal_uInt16 nSelectModifier ) SAL_OVERRIDE; + virtual void Select(sal_uInt16 nSelectModifier ) SAL_OVERRIDE; public: SFX_DECL_TOOLBOX_CONTROL(); @@ -365,8 +362,7 @@ class SfxAddonsToolBoxControl_Impl : public SfxToolBoxControl protected: virtual void Click() SAL_OVERRIDE; - using SfxToolBoxControl::Select; - virtual void Select( bool ) SAL_OVERRIDE; + virtual void Select(sal_uInt16 nSelectModifier) SAL_OVERRIDE; virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) SAL_OVERRIDE; DECL_LINK( Activate, Menu * ); public: -- cgit v1.2.3