summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r--vcl/source/window/toolbox.cxx181
1 files changed, 0 insertions, 181 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 61204c9bac0d..b8d4841e0b4f 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
-
#include <tools/debug.hxx>
#include <tools/rc.h>
#include <tools/poly.hxx>
@@ -50,19 +48,12 @@
#include <vector>
#include <math.h>
-
-
-
-
-
#define SMALLBUTTON_HSIZE 7
#define SMALLBUTTON_VSIZE 7
#define SMALLBUTTON_OFF_NORMAL_X 3
#define SMALLBUTTON_OFF_NORMAL_Y 3
-
-
#define TB_TEXTOFFSET 2
#define TB_IMAGETEXTOFFSET 3
#define TB_LINESPACING 3
@@ -91,11 +82,8 @@
#define DOCK_LINETOP ((sal_uInt16)0x8000)
#define DOCK_LINEOFFSET 3
-
-
static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, bool bChecked, bool bEnabled, bool bIsWindow );
-
typedef ::std::vector< ToolBox* > ImplTBList;
class ImplTBDragMgr
@@ -150,8 +138,6 @@ public:
bool IsResizeMode() { return mbResizeMode; }
};
-
-
static ImplTBDragMgr* ImplGetTBDragMgr()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -160,8 +146,6 @@ static ImplTBDragMgr* ImplGetTBDragMgr()
return pSVData->maCtrlData.mpTBDragMgr;
}
-
-
int ToolBox::ImplGetDragWidth( ToolBox* pThis )
{
#define TB_DRAGWIDTH 8 // the default width of the grip
@@ -199,8 +183,6 @@ ButtonType determineButtonType( ImplToolItem* pItem, ButtonType defaultType )
return tmpButtonType;
}
-
-
void ToolBox::ImplUpdateDragArea( ToolBox *pThis )
{
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis );
@@ -218,8 +200,6 @@ void ToolBox::ImplUpdateDragArea( ToolBox *pThis )
}
}
-
-
void ToolBox::ImplCalcBorder( WindowAlign eAlign, long& rLeft, long& rTop,
long& rRight, long& rBottom, const ToolBox *pThis )
{
@@ -268,8 +248,6 @@ void ToolBox::ImplCalcBorder( WindowAlign eAlign, long& rLeft, long& rTop,
}
}
-
-
static void ImplCheckUpdate( ToolBox *pThis )
{
// remove any pending invalidates to avoid
@@ -282,8 +260,6 @@ static void ImplCheckUpdate( ToolBox *pThis )
pThis->Update();
}
-
-
void ToolBox::ImplDrawGrip( ToolBox* pThis )
{
ImplDockingWindowWrapper *pWrapper = ImplGetDockingManager()->GetDockingWindowWrapper( pThis );
@@ -519,7 +495,6 @@ void ToolBox::ImplDrawConstantBackground( ToolBox* pThis, const Region &rRegion,
}
}
-
void ToolBox::ImplDrawBackground( ToolBox* pThis, const Rectangle &rRect )
{
// execute pending paint requests
@@ -537,7 +512,6 @@ void ToolBox::ImplDrawBackground( ToolBox* pThis, const Rectangle &rRect )
pThis->Push( PUSH_CLIPREGION );
pThis->IntersectClipRegion( aPaintRegion );
-
if( !pWrapper /*|| bIsInPopupMode*/ )
{
// no gradient for ordinary toolbars (not dockable)
@@ -653,7 +627,6 @@ void ToolBox::ImplDrawBorder( ToolBox* pWin )
}
}
-
if ( pWin->meAlign == WINDOWALIGN_BOTTOM || pWin->meAlign == WINDOWALIGN_TOP )
{
// draw right border
@@ -664,8 +637,6 @@ void ToolBox::ImplDrawBorder( ToolBox* pWin )
}
}
-
-
static bool ImplIsFixedControl( const ImplToolItem *pItem )
{
return ( pItem->mpWindow &&
@@ -674,8 +645,6 @@ static bool ImplIsFixedControl( const ImplToolItem *pItem )
pItem->mpWindow->GetType() == WINDOW_GROUPBOX) );
}
-
-
const ImplToolItem *ToolBox::ImplGetFirstClippedItem( const ToolBox* pThis )
{
std::vector< ImplToolItem >::const_iterator it;
@@ -689,8 +658,6 @@ const ImplToolItem *ToolBox::ImplGetFirstClippedItem( const ToolBox* pThis )
return NULL;
}
-
-
Size ToolBox::ImplCalcSize( const ToolBox* pThis, sal_uInt16 nCalcLines, sal_uInt16 nCalcMode )
{
long nMax;
@@ -807,8 +774,6 @@ Size ToolBox::ImplCalcSize( const ToolBox* pThis, sal_uInt16 nCalcLines, sal_uIn
return aSize;
}
-
-
void ToolBox::ImplCalcFloatSizes( ToolBox* pThis )
{
if ( !pThis->maFloatSizes.empty() )
@@ -874,8 +839,6 @@ void ToolBox::ImplCalcFloatSizes( ToolBox* pThis )
}
}
-
-
Size ToolBox::ImplCalcFloatSize( ToolBox* pThis, sal_uInt16& rLines )
{
ImplCalcFloatSizes( pThis );
@@ -901,8 +864,6 @@ Size ToolBox::ImplCalcFloatSize( ToolBox* pThis, sal_uInt16& rLines )
return aSize;
}
-
-
void ToolBox::ImplCalcMinMaxFloatSize( ToolBox* pThis, Size& rMinSize, Size& rMaxSize )
{
ImplCalcFloatSizes( pThis );
@@ -943,9 +904,6 @@ void ToolBox::ImplSetMinMaxFloatSize( ToolBox *pThis )
}
}
-
-
-
sal_uInt16 ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize )
{
long nLineHeight;
@@ -977,8 +935,6 @@ sal_uInt16 ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize )
return static_cast<sal_uInt16>(nLines);
}
-
-
sal_uInt16 ToolBox::ImplTestLineSize( ToolBox* pThis, const Point& rPos )
{
if ( !pThis->ImplIsFloatingMode() &&
@@ -1011,8 +967,6 @@ sal_uInt16 ToolBox::ImplTestLineSize( ToolBox* pThis, const Point& rPos )
return 0;
}
-
-
void ToolBox::ImplLineSizing( ToolBox* pThis, const Point& rPos, Rectangle& rRect,
sal_uInt16 nLineMode )
{
@@ -1107,8 +1061,6 @@ void ToolBox::ImplLineSizing( ToolBox* pThis, const Point& rPos, Rectangle& rRec
pThis->mnDockLines = i;
}
-
-
sal_uInt16 ToolBox::ImplFindItemPos( ToolBox* pBox, const Point& rPos )
{
sal_uInt16 nPos = 0;
@@ -1193,8 +1145,6 @@ ImplTBDragMgr::~ImplTBDragMgr()
delete mpBoxList;
}
-
-
ToolBox* ImplTBDragMgr::FindToolBox( const Rectangle& rRect )
{
for ( size_t i = 0, n = mpBoxList->size(); i < n; ++i )
@@ -1224,8 +1174,6 @@ ToolBox* ImplTBDragMgr::FindToolBox( const Rectangle& rRect )
return NULL;
}
-
-
void ImplTBDragMgr::StartDragging( ToolBox* pToolBox,
const Point& rPos, const Rectangle& rRect,
sal_uInt16 nDragLineMode, bool bResizeItem,
@@ -1269,8 +1217,6 @@ void ImplTBDragMgr::StartDragging( ToolBox* pToolBox,
pToolBox->ShowTracking( maRect );
}
-
-
void ImplTBDragMgr::Dragging( const Point& rPos )
{
if ( mnLineMode )
@@ -1303,8 +1249,6 @@ void ImplTBDragMgr::Dragging( const Point& rPos )
}
}
-
-
void ImplTBDragMgr::EndDragging( bool bOK )
{
mpDragBox->HideTracking();
@@ -1391,8 +1335,6 @@ void ImplTBDragMgr::EndDragging( bool bOK )
mpDragBox = NULL;
}
-
-
void ImplTBDragMgr::UpdateDragRect()
{
// Only update if we're already dragging
@@ -1402,8 +1344,6 @@ void ImplTBDragMgr::UpdateDragRect()
mpDragBox->ShowTracking( maRect );
}
-
-
IMPL_LINK( ImplTBDragMgr, SelectHdl, Accelerator*, pAccel )
{
if ( pAccel->GetCurItemId() == KEY_ESCAPE )
@@ -1414,8 +1354,6 @@ IMPL_LINK( ImplTBDragMgr, SelectHdl, Accelerator*, pAccel )
return (long) true;
}
-
-
void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
{
@@ -1483,7 +1421,6 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
DockingWindow::ImplInit( pParent, nStyle & ~(WB_BORDER) );
-
// always set WB_TABSTOP for ToolBars !!! if( mnWinStyle & WB_TABSTOP )
{
// dockingwindow's ImplInit removes some bits, so restore them here
@@ -1495,8 +1432,6 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
ImplInitSettings( true, true, true );
}
-
-
void ToolBox::ImplInitSettings( bool bFont,
bool bForeground, bool bBackground )
{
@@ -1562,8 +1497,6 @@ void ToolBox::ImplInitSettings( bool bFont,
}
}
-
-
void ToolBox::ImplLoadRes( const ResId& rResId )
{
ResMgr* pMgr = rResId.GetResMgr();
@@ -1619,16 +1552,12 @@ void ToolBox::ImplLoadRes( const ResId& rResId )
}
}
-
-
ToolBox::ToolBox( Window* pParent, WinBits nStyle ) :
DockingWindow( WINDOW_TOOLBOX )
{
ImplInit( pParent, nStyle );
}
-
-
ToolBox::ToolBox( Window* pParent, const ResId& rResId ) :
DockingWindow( WINDOW_TOOLBOX )
{
@@ -1650,8 +1579,6 @@ ToolBox::ToolBox( Window* pParent, const ResId& rResId ) :
Show();
}
-
-
ToolBox::~ToolBox()
{
// custom menu event still running?
@@ -1687,8 +1614,6 @@ ToolBox::~ToolBox()
}
}
-
-
ImplToolItem* ToolBox::ImplGetItem( sal_uInt16 nItemId ) const
{
std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin();
@@ -1702,7 +1627,6 @@ ImplToolItem* ToolBox::ImplGetItem( sal_uInt16 nItemId ) const
return NULL;
}
-
static void ImplAddButtonBorder( long &rWidth, long& rHeight, bool bNativeButtons )
{
rWidth += SMALLBUTTON_HSIZE;
@@ -1716,8 +1640,6 @@ static void ImplAddButtonBorder( long &rWidth, long& rHeight, bool bNativeButton
}
}
-
-
bool ToolBox::ImplCalcItem()
{
@@ -2004,8 +1926,6 @@ bool ToolBox::ImplCalcItem()
return false;
}
-
-
sal_uInt16 ToolBox::ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalcHorz )
{
sal_uLong nLineStart = 0;
@@ -2136,7 +2056,6 @@ sal_uInt16 ToolBox::ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalc
++it;
}
-
if ( pMaxLineWidth )
{
if ( nLineWidth > nMaxLineWidth )
@@ -2155,8 +2074,6 @@ sal_uInt16 ToolBox::ImplCalcBreaks( long nWidth, long* pMaxLineWidth, bool bCalc
return nLines;
}
-
-
Size ToolBox::ImplGetOptimalFloatingSize()
{
if( !ImplIsFloatingMode() )
@@ -2290,7 +2207,6 @@ void ToolBox::ImplFormat( bool bResize )
else
bMustFullPaint = false;
-
// calculate new size during interactive resize or
// set computed size when formatting only
if ( ImplIsFloatingMode() )
@@ -2620,7 +2536,6 @@ void ToolBox::ImplFormat( bool bResize )
// we have no toolbox items
mnCurLines = 1;
-
if( IsMenuEnabled() && ImplIsFloatingMode() && !ImplHasExternalMenubutton() && !bIsInPopupMode )
{
// custom menu will be the last button in floating mode
@@ -2644,7 +2559,6 @@ void ToolBox::ImplFormat( bool bResize )
}
}
-
// if toolbox visible trigger paint for changed regions
if ( IsVisible() && !mbFullPaint )
{
@@ -2705,8 +2619,6 @@ void ToolBox::ImplFormat( bool bResize )
mbFormat = false;
}
-
-
IMPL_LINK_NOARG(ToolBox, ImplDropdownLongClickHdl)
{
if( mnCurPos != TOOLBOX_ITEM_NOTFOUND &&
@@ -2736,8 +2648,6 @@ IMPL_LINK_NOARG(ToolBox, ImplDropdownLongClickHdl)
return 0;
}
-
-
IMPL_LINK_NOARG(ToolBox, ImplUpdateHdl)
{
@@ -2747,7 +2657,6 @@ IMPL_LINK_NOARG(ToolBox, ImplUpdateHdl)
return 0;
}
-
static void ImplDrawMoreIndicator( ToolBox *pBox, const Rectangle& rRect, bool bSetColor, bool bRotate )
{
Color aOldFillColor = pBox->GetFillColor();
@@ -2875,8 +2784,6 @@ static void ImplDrawDropdownArrow( ToolBox *pBox, const Rectangle& rDropDownRect
pBox->SetLineColor( );
}
-
-
void ToolBox::ImplDrawMenubutton( ToolBox *pThis, bool bHighlight )
{
if( !pThis->mpData->maMenubuttonItem.maRect.IsEmpty() )
@@ -2917,8 +2824,6 @@ void ToolBox::ImplDrawMenubutton( ToolBox *pThis, bool bHighlight )
}
}
-
-
void ToolBox::ImplDrawSpin( bool bUpperIn, bool bLowerIn )
{
@@ -2948,8 +2853,6 @@ void ToolBox::ImplDrawSpin( bool bUpperIn, bool bLowerIn )
bUpperIn, bLowerIn, bTmpUpper, bTmpLower, !mbHorz );
}
-
-
void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
{
bool bNativeOk = false;
@@ -2997,8 +2900,6 @@ void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
}
}
-
-
static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 highlight, bool bChecked, bool bEnabled, bool bIsWindow )
{
// draws toolbar button background either native or using a coloured selection
@@ -3016,7 +2917,6 @@ static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, sal_uInt16 h
aControlValue.setTristateVal( bChecked ? BUTTONVALUE_ON : BUTTONVALUE_OFF );
-
bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
rRect, nState, aControlValue, OUString() );
}
@@ -3353,8 +3253,6 @@ void ToolBox::ImplDrawItem( sal_uInt16 nPos, sal_uInt16 nHighlight, bool bPaint,
pMgr->UpdateDragRect();
}
-
-
void ToolBox::ImplDrawFloatwinBorder( ImplToolItem* pItem )
{
if ( !pItem->maRect.IsEmpty() )
@@ -3412,7 +3310,6 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow )
// draw current item with highlight and keep old state
bool bWasKeyboardActivate = mpData->mbDropDownByKeyboard;
-
if ( mnCurPos != TOOLBOX_ITEM_NOTFOUND )
ImplDrawItem( mnCurPos, bWasKeyboardActivate ? 2 : 0 );
Deactivate();
@@ -3428,8 +3325,6 @@ void ToolBox::ImplFloatControl( bool bStart, FloatingWindow* pFloatWindow )
}
}
-
-
void ToolBox::ShowLine( bool bNext )
{
@@ -3463,8 +3358,6 @@ void ToolBox::ShowLine( bool bNext )
ImplFormat();
}
-
-
bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
{
Point aMousePos = rMEvt.GetPosPixel();
@@ -3525,8 +3418,6 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
return false;
}
-
-
bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel )
{
ImplDisableFlatButtons();
@@ -3643,8 +3534,6 @@ bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel )
return false;
}
-
-
void ToolBox::MouseMove( const MouseEvent& rMEvt )
{
// pressing a modifier generates synthetic mouse moves
@@ -3864,8 +3753,6 @@ void ToolBox::MouseMove( const MouseEvent& rMEvt )
DockingWindow::MouseMove( rMEvt );
}
-
-
void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
{
// only trigger toolbox for left mouse button and when
@@ -3937,7 +3824,6 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
return;
}
-
// update actual data
sal_uInt16 nTrackFlags = 0;
mnCurPos = i;
@@ -3948,7 +3834,6 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
if ( it->mnBits & TIB_REPEAT )
nTrackFlags |= STARTTRACK_BUTTONREPEAT;
-
if ( mbSelection )
{
ImplDrawItem( mnCurPos, 1 );
@@ -3965,7 +3850,6 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
if ( rMEvt.GetClicks() == 2 )
DoubleClick();
-
if ( mbDrag )
{
ImplDrawItem( mnCurPos, 1 );
@@ -4004,7 +3888,6 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
mpData->maDropdownTimer.Start();
}
-
// call Click handler
if ( rMEvt.GetClicks() != 2 )
Click();
@@ -4090,8 +3973,6 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
DockingWindow::MouseButtonDown( rMEvt );
}
-
-
void ToolBox::MouseButtonUp( const MouseEvent& rMEvt )
{
if ( ImplHandleMouseButtonUp( rMEvt ) )
@@ -4108,8 +3989,6 @@ void ToolBox::MouseButtonUp( const MouseEvent& rMEvt )
DockingWindow::MouseButtonUp( rMEvt );
}
-
-
void ToolBox::Tracking( const TrackingEvent& rTEvt )
{
ImplDelData aDelData;
@@ -4127,8 +4006,6 @@ void ToolBox::Tracking( const TrackingEvent& rTEvt )
DockingWindow::Tracking( rTEvt );
}
-
-
void ToolBox::Paint( const Rectangle& rPaintRect )
{
if( mpData->mbIsPaintLocked )
@@ -4138,7 +4015,6 @@ void ToolBox::Paint( const Rectangle& rPaintRect )
ImplFormat();
mbFullPaint = false;
-
ImplDrawBackground( this, rPaintRect );
if ( (mnWinStyle & WB_BORDER) && !ImplIsFloatingMode() )
@@ -4182,15 +4058,11 @@ void ToolBox::Paint( const Rectangle& rPaintRect )
ImplShowFocus();
}
-
-
void ToolBox::Move()
{
DockingWindow::Move();
}
-
-
void ToolBox::Resize()
{
Size aSize = GetOutputSizePixel();
@@ -4299,7 +4171,6 @@ void ToolBox::Resize()
}
}
-
const OUString& ToolBox::ImplGetHelpText( sal_uInt16 nItemId ) const
{
ImplToolItem* pItem = ImplGetItem( nItemId );
@@ -4321,8 +4192,6 @@ const OUString& ToolBox::ImplGetHelpText( sal_uInt16 nItemId ) const
return pItem->maHelpText;
}
-
-
void ToolBox::RequestHelp( const HelpEvent& rHEvt )
{
sal_uInt16 nItemId;
@@ -4398,8 +4267,6 @@ void ToolBox::RequestHelp( const HelpEvent& rHEvt )
DockingWindow::RequestHelp( rHEvt );
}
-
-
bool ToolBox::Notify( NotifyEvent& rNEvt )
{
if ( rNEvt.GetType() == EVENT_KEYINPUT )
@@ -4483,8 +4350,6 @@ bool ToolBox::Notify( NotifyEvent& rNEvt )
return DockingWindow::Notify( rNEvt );
}
-
-
void ToolBox::Command( const CommandEvent& rCEvt )
{
if ( maCommandHandler.IsSet() )
@@ -4549,8 +4414,6 @@ void ToolBox::Command( const CommandEvent& rCEvt )
DockingWindow::Command( rCEvt );
}
-
-
void ToolBox::StateChanged( StateChangedType nType )
{
DockingWindow::StateChanged( nType );
@@ -4587,8 +4450,6 @@ void ToolBox::StateChanged( StateChangedType nType )
maStateChangedHandler.Call( &nType );
}
-
-
void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
{
DockingWindow::DataChanged( rDCEvt );
@@ -4609,15 +4470,11 @@ void ToolBox::DataChanged( const DataChangedEvent& rDCEvt )
maDataChangedHandler.Call( (void*)&rDCEvt );
}
-
-
bool ToolBox::PrepareToggleFloatingMode()
{
return DockingWindow::PrepareToggleFloatingMode();
}
-
-
void ToolBox::ToggleFloatingMode()
{
DockingWindow::ToggleFloatingMode();
@@ -4660,8 +4517,6 @@ void ToolBox::ToggleFloatingMode()
ImplFormat();
}
-
-
void ToolBox::StartDocking()
{
meDockAlign = meAlign;
@@ -4670,8 +4525,6 @@ void ToolBox::StartDocking()
DockingWindow::StartDocking();
}
-
-
bool ToolBox::Docking( const Point& rPos, Rectangle& rRect )
{
// do nothing during dragging, it was calculated before
@@ -4796,8 +4649,6 @@ bool ToolBox::Docking( const Point& rPos, Rectangle& rRect )
return bFloatMode;
}
-
-
void ToolBox::EndDocking( const Rectangle& rRect, bool bFloatMode )
{
if ( !IsDockingCanceled() )
@@ -4811,8 +4662,6 @@ void ToolBox::EndDocking( const Rectangle& rRect, bool bFloatMode )
DockingWindow::EndDocking( rRect, bFloatMode );
}
-
-
void ToolBox::Resizing( Size& rSize )
{
sal_uInt16 nCalcLines;
@@ -4957,8 +4806,6 @@ Size ToolBox::CalcFloatingWindowSizePixel( sal_uInt16 nCalcLines ) const
return aSize;
}
-
-
Size ToolBox::CalcMinimumWindowSizePixel() const
{
if( ImplIsFloatingMode() )
@@ -5000,8 +4847,6 @@ Size ToolBox::CalcMinimumWindowSizePixel() const
}
}
-
-
void ToolBox::EnableCustomize( bool bEnable )
{
if ( bEnable != mbCustomize )
@@ -5016,15 +4861,11 @@ void ToolBox::EnableCustomize( bool bEnable )
}
}
-
-
void ToolBox::GetFocus()
{
DockingWindow::GetFocus();
}
-
-
void ToolBox::LoseFocus()
{
ImplChangeHighlight( NULL, true );
@@ -5032,8 +4873,6 @@ void ToolBox::LoseFocus()
DockingWindow::LoseFocus();
}
-
-
// performs the action associated with an item, ie simulates clicking the item
void ToolBox::TriggerItem( sal_uInt16 nItemId, bool bShift, bool bCtrl )
{
@@ -5047,8 +4886,6 @@ void ToolBox::TriggerItem( sal_uInt16 nItemId, bool bShift, bool bCtrl )
ImplActivateItem( aKeyCode );
}
-
-
// calls the button's action handler
// returns true if action was called
bool ToolBox::ImplActivateItem( KeyCode aKeyCode )
@@ -5111,8 +4948,6 @@ bool ToolBox::ImplActivateItem( KeyCode aKeyCode )
return bRet;
}
-
-
bool ImplCloseLastPopup( Window *pParent )
{
// close last popup toolbox (see also:
@@ -5178,8 +5013,6 @@ bool ToolBox::ImplOpenItem( KeyCode aKeyCode )
return bRet;
}
-
-
void ToolBox::KeyInput( const KeyEvent& rKEvt )
{
KeyCode aKeyCode = rKEvt.GetKeyCode();
@@ -5368,8 +5201,6 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
DockingWindow::KeyInput( rKEvt );
}
-
-
// returns the current toolbox line of the item
sal_uInt16 ToolBox::ImplGetItemLine( ImplToolItem* pCurrentItem )
{
@@ -5418,8 +5249,6 @@ ImplToolItem* ToolBox::ImplGetFirstValidItem( sal_uInt16 nLine )
return (it == mpData->m_aItems.end()) ? NULL : &(*it);
}
-
-
sal_uInt16 ToolBox::ImplFindItemPos( const ImplToolItem* pItem, const std::vector< ImplToolItem >& rList )
{
if( pItem )
@@ -5516,8 +5345,6 @@ void ToolBox::ImplChangeHighlight( ImplToolItem* pItem, bool bNoGrabFocus )
mbChangingHighlight = false;
}
-
-
// check for keyboard accessible items
static bool ImplIsValidItem( const ImplToolItem* pItem, bool bNotClipped )
{
@@ -5527,8 +5354,6 @@ static bool ImplIsValidItem( const ImplToolItem* pItem, bool bNotClipped )
return bValid;
}
-
-
bool ToolBox::ImplChangeHighlightUpDn( bool bUp, bool bNoCycle )
{
ImplToolItem* pToolItem = ImplGetItem( mnHighItemId );
@@ -5690,8 +5515,6 @@ bool ToolBox::ImplChangeHighlightUpDn( bool bUp, bool bNoCycle )
return true;
}
-
-
void ToolBox::ImplShowFocus()
{
if( mnHighItemId && HasFocus() )
@@ -5706,8 +5529,6 @@ void ToolBox::ImplShowFocus()
}
}
-
-
void ToolBox::ImplHideFocus()
{
if( mnHighItemId )
@@ -5728,8 +5549,6 @@ void ToolBox::ImplHideFocus()
}
}
-
-
void ToolBox::ImplDisableFlatButtons()
{
#ifdef WNT // Check in the Windows registry if an AT tool wants no flat toolboxes