diff options
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 ) |