diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-23 22:40:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-25 14:19:01 +0100 |
commit | efa55cfd745843990503dea40995e78907611c6e (patch) | |
tree | d10e078639acf171f69065edce335dabd0d55af6 /vcl/source/window | |
parent | 467926acd3bfff2975f330d3550abf161dc5b4f5 (diff) |
callcatcher: update unused code
Change-Id: I65c19a21ae9b6deb1601adf2f3fe8fe8faa7e9ed
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/syschild.cxx | 14 | ||||
-rw-r--r-- | vcl/source/window/toolbox.cxx | 95 |
2 files changed, 0 insertions, 109 deletions
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx index 752bf43009bc..4022f2cefd7f 100644 --- a/vcl/source/window/syschild.cxx +++ b/vcl/source/window/syschild.cxx @@ -152,20 +152,6 @@ SystemChildWindow::SystemChildWindow( Window* pParent, WinBits nStyle, SystemWin // ----------------------------------------------------------------------- -SystemChildWindow::SystemChildWindow( Window* pParent, const ResId& rResId ) : - Window( WINDOW_SYSTEMCHILDWINDOW ) -{ - rResId.SetRT( RSC_WINDOW ); - WinBits nStyle = ImplInitRes( rResId ); - ImplInitSysChild( pParent, nStyle, NULL ); - ImplLoadRes( rResId ); - - if ( !(nStyle & WB_HIDE) ) - Show(); -} - -// ----------------------------------------------------------------------- - SystemChildWindow::~SystemChildWindow() { Hide(); diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 5ddafaf769dd..be3ddb296207 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2924,101 +2924,6 @@ static void ImplDrawDropdownArrow( ToolBox *pBox, const Rectangle& rDropDownRect pBox->SetLineColor( ); } -void ToolBox::ImplDrawToolArrow( ToolBox* pBox, long nX, long nY, sal_Bool bBlack, sal_Bool bColTransform, - sal_Bool bLeft, sal_Bool bTop, long nSize ) -{ - Color aOldFillColor = pBox->GetFillColor(); - WindowAlign eAlign = pBox->meAlign; - long n = 0; - long nHalfSize; - if ( bLeft ) - eAlign = WINDOWALIGN_RIGHT; - else if ( bTop ) - eAlign = WINDOWALIGN_BOTTOM; - - nHalfSize = nSize/2; - - switch ( eAlign ) - { - case WINDOWALIGN_LEFT: - if ( bBlack ) - pBox->SetFillColor( Color( bColTransform ? COL_WHITE : COL_BLACK ) ); - while ( n <= nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+n, nY+n, nX+n, nY+nSize-n ) ); - n++; - } - if ( bBlack ) - { - pBox->SetFillColor( aOldFillColor ); - n = 1; - while ( n < nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+n, nY+1+n, nX+n, nY+nSize-1-n ) ); - n++; - } - } - break; - case WINDOWALIGN_TOP: - if ( bBlack ) - pBox->SetFillColor( Color( bColTransform ? COL_WHITE : COL_BLACK ) ); - while ( n <= nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+n, nY+n, nX+nSize-n, nY+n ) ); - n++; - } - if ( bBlack ) - { - pBox->SetFillColor( aOldFillColor ); - n = 1; - while ( n < nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+1+n, nY+n, nX+nSize-1-n, nY+n ) ); - n++; - } - } - break; - case WINDOWALIGN_RIGHT: - if ( bBlack ) - pBox->SetFillColor( Color( bColTransform ? COL_WHITE : COL_BLACK ) ); - while ( n <= nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+nHalfSize-n, nY+n, nX+nHalfSize-n, nY+nSize-n ) ); - n++; - } - if ( bBlack ) - { - pBox->SetFillColor( aOldFillColor ); - n = 1; - while ( n < nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+nHalfSize-n, nY+1+n, nX+nHalfSize-n, nY+nSize-1-n ) ); - n++; - } - } - break; - case WINDOWALIGN_BOTTOM: - if ( bBlack ) - pBox->SetFillColor( Color( bColTransform ? COL_WHITE : COL_BLACK ) ); - while ( n <= nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+n, nY+nHalfSize-n, nX+nSize-n, nY+nHalfSize-n ) ); - n++; - } - if ( bBlack ) - { - pBox->SetFillColor( aOldFillColor ); - n = 1; - while ( n < nHalfSize ) - { - pBox->DrawRect( Rectangle( nX+1+n, nY+nHalfSize-n, nX+nSize-1-n, nY+nHalfSize-n ) ); - n++; - } - } - break; - } -} - // ----------------------------------------------------------------------- void ToolBox::ImplDrawMenubutton( ToolBox *pThis, sal_Bool bHighlight ) |