summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/hdrcont.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/hdrcont.cxx')
-rw-r--r--sc/source/ui/view/hdrcont.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index 2fd99256b093..e63f539b56fd 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -115,7 +115,7 @@ void ScHeaderControl::DoPaint( SCCOLROW nStart, SCCOLROW nEnd )
bool bLayoutRTL = IsLayoutRTL();
long nLayoutSign = bLayoutRTL ? -1 : 1;
- Rectangle aRect( Point(0,0), GetOutputSizePixel() );
+ tools::Rectangle aRect( Point(0,0), GetOutputSizePixel() );
if ( bVertical )
{
aRect.Top() = GetScrPos( nStart )-nLayoutSign; // extra pixel for line at top of selection
@@ -224,22 +224,22 @@ void ScHeaderControl::DrawShadedRect( long nStart, long nEnd, const Color& rBase
SetLineColor();
SetFillColor( aOuter );
if (bVertical)
- DrawRect( Rectangle( 0, nStart, nCenterPos-1, nEnd ) );
+ DrawRect( tools::Rectangle( 0, nStart, nCenterPos-1, nEnd ) );
else
- DrawRect( Rectangle( nStart, 0, nEnd, nCenterPos-1 ) );
+ DrawRect( tools::Rectangle( nStart, 0, nEnd, nCenterPos-1 ) );
SetFillColor( aCenter );
if (bVertical)
- DrawRect( Rectangle( nCenterPos, nStart, nCenterPos, nEnd ) );
+ DrawRect( tools::Rectangle( nCenterPos, nStart, nCenterPos, nEnd ) );
else
- DrawRect( Rectangle( nStart, nCenterPos, nEnd, nCenterPos ) );
+ DrawRect( tools::Rectangle( nStart, nCenterPos, nEnd, nCenterPos ) );
SetFillColor( aInner );
if (bVertical)
- DrawRect( Rectangle( nCenterPos+1, nStart, nBarSize-1, nEnd ) );
+ DrawRect( tools::Rectangle( nCenterPos+1, nStart, nBarSize-1, nEnd ) );
else
- DrawRect( Rectangle( nStart, nCenterPos+1, nEnd, nBarSize-1 ) );
+ DrawRect( tools::Rectangle( nStart, nCenterPos+1, nEnd, nBarSize-1 ) );
}
-void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect )
+void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools::Rectangle& rRect )
{
// It is important for VCL to have few calls, that is why the outer lines are
// grouped together
@@ -336,7 +336,7 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
// background is different for entry area and behind the entries
- Rectangle aFillRect;
+ tools::Rectangle aFillRect;
SetLineColor();
if ( nLineEnd * nLayoutSign >= nInitScrPos * nLayoutSign )
@@ -346,9 +346,9 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
// high contrast: single-color background
SetFillColor( rStyleSettings.GetFaceColor() );
if ( bVertical )
- aFillRect = Rectangle( 0, nInitScrPos, nBarSize-1, nLineEnd );
+ aFillRect = tools::Rectangle( 0, nInitScrPos, nBarSize-1, nLineEnd );
else
- aFillRect = Rectangle( nInitScrPos, 0, nLineEnd, nBarSize-1 );
+ aFillRect = tools::Rectangle( nInitScrPos, 0, nLineEnd, nBarSize-1 );
DrawRect( aFillRect );
}
else
@@ -362,9 +362,9 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
{
SetFillColor( SC_MOD()->GetColorConfig().GetColorValue(svtools::APPBACKGROUND).nColor );
if ( bVertical )
- aFillRect = Rectangle( 0, nLineEnd+nLayoutSign, nBarSize-1, nPEnd );
+ aFillRect = tools::Rectangle( 0, nLineEnd+nLayoutSign, nBarSize-1, nPEnd );
else
- aFillRect = Rectangle( nLineEnd+nLayoutSign, 0, nPEnd, nBarSize-1 );
+ aFillRect = tools::Rectangle( nLineEnd+nLayoutSign, 0, nPEnd, nBarSize-1 );
DrawRect( aFillRect );
}
@@ -381,9 +381,9 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
SetLineColor();
SetFillColor( COL_LIGHTGRAY );
if (bVertical)
- DrawRect( Rectangle( 0, nTransStart, nBarSize-1, nTransEnd ) );
+ DrawRect( tools::Rectangle( 0, nTransStart, nBarSize-1, nTransEnd ) );
else
- DrawRect( Rectangle( nTransStart, 0, nTransEnd, nBarSize-1 ) );
+ DrawRect( tools::Rectangle( nTransStart, 0, nTransEnd, nBarSize-1 ) );
}
}
else
@@ -450,11 +450,11 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta
// The window's background color (SetBackground) has to be the background
// of the cell area, for the contrast comparison in DrawSelectionBackground.
- Rectangle aTransRect;
+ tools::Rectangle aTransRect;
if (bVertical)
- aTransRect = Rectangle( 0, nTransStart, nBarSize-1, nTransEnd );
+ aTransRect = tools::Rectangle( 0, nTransStart, nBarSize-1, nTransEnd );
else
- aTransRect = Rectangle( nTransStart, 0, nTransEnd, nBarSize-1 );
+ aTransRect = tools::Rectangle( nTransStart, 0, nTransEnd, nBarSize-1 );
SetBackground( Color( rStyleSettings.GetFaceColor() ) );
DrawSelectionBackground( aTransRect, 0, true, false );
SetBackground();
@@ -708,7 +708,7 @@ void ScHeaderControl::MouseButtonDown( const MouseEvent& rMEvt )
{
pSelEngine->SetWindow( this );
Point aPoint;
- Rectangle aVis( aPoint,GetOutputSizePixel() );
+ tools::Rectangle aVis( aPoint,GetOutputSizePixel() );
if (bVertical)
{
aVis.Left() = LONG_MIN;
@@ -949,7 +949,7 @@ void ScHeaderControl::ShowDragHelp()
Point aMousePos = OutputToScreenPixel(GetPointerPosPixel());
- Rectangle aRect;
+ tools::Rectangle aRect;
QuickHelpFlags nAlign;
if (!bVertical)
{