From 78afd7f6579eff4c3d8688b38d3b9d025be2098b Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 17 May 2013 23:29:31 +0200 Subject: sidebar: Kill DrawBevelBorder(), nobody uses that now. Change-Id: I7901ad17515002c8568a46f9a11c0c9919c0841e --- sfx2/source/sidebar/DrawHelper.cxx | 74 -------------------------------------- sfx2/source/sidebar/DrawHelper.hxx | 7 ---- 2 files changed, 81 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx index f8172b2cf52c..85dbe372da60 100644 --- a/sfx2/source/sidebar/DrawHelper.cxx +++ b/sfx2/source/sidebar/DrawHelper.cxx @@ -21,7 +21,6 @@ #include - namespace sfx2 { namespace sidebar { void DrawHelper::DrawBorder ( @@ -65,70 +64,6 @@ void DrawHelper::DrawBorder ( rVerticalPaint); } - - - -void DrawHelper::DrawBevelBorder ( - OutputDevice& rDevice, - const Rectangle rBox, - const SvBorder aBorderSize, - const Paint& rTopLeftPaint, - const Paint& rCenterPaint, - const Paint& rBottomRightPaint) -{ - // Draw top line. - DrawHorizontalLine( - rDevice, - rBox.Left(), - rBox.Right() - aBorderSize.Right(), - rBox.Top(), - aBorderSize.Top(), - rTopLeftPaint); - // Draw bottom line. - DrawHorizontalLine( - rDevice, - rBox.Left()+aBorderSize.Left(), - rBox.Right(), - rBox.Bottom()-aBorderSize.Bottom()+1, - aBorderSize.Bottom(), - rBottomRightPaint); - // Draw left line. - DrawVerticalLine( - rDevice, - rBox.Top()+aBorderSize.Top(), - rBox.Bottom() - aBorderSize.Bottom(), - rBox.Left(), - aBorderSize.Left(), - rTopLeftPaint); - // Draw right line. - DrawVerticalLine( - rDevice, - rBox.Top()+aBorderSize.Top(), - rBox.Bottom()-aBorderSize.Bottom(), - rBox.Right()-aBorderSize.Right()+1, - aBorderSize.Right(), - rBottomRightPaint); - // Draw top right corner. - DrawVerticalLine( - rDevice, - rBox.Top(), - rBox.Top()+aBorderSize.Top()-1, - rBox.Right()-aBorderSize.Right()+1, - aBorderSize.Right(), - rCenterPaint); - // Draw bottom right corner. - DrawVerticalLine( - rDevice, - rBox.Bottom() - aBorderSize.Bottom()+1, - rBox.Bottom(), - rBox.Left(), - aBorderSize.Left(), - rCenterPaint); -} - - - - void DrawHelper::DrawHorizontalLine( OutputDevice& rDevice, const sal_Int32 nLeft, @@ -165,9 +100,6 @@ void DrawHelper::DrawHorizontalLine( } } - - - void DrawHelper::DrawVerticalLine( OutputDevice& rDevice, const sal_Int32 nTop, @@ -204,9 +136,6 @@ void DrawHelper::DrawVerticalLine( } } - - - void DrawHelper::DrawRoundedRectangle ( OutputDevice& rDevice, const Rectangle& rBox, @@ -238,7 +167,4 @@ void DrawHelper::DrawRoundedRectangle ( } } - - - } } // end of namespace sfx2::sidebar diff --git a/sfx2/source/sidebar/DrawHelper.hxx b/sfx2/source/sidebar/DrawHelper.hxx index 45bf7ea9c25b..c17c9ed6a1b0 100644 --- a/sfx2/source/sidebar/DrawHelper.hxx +++ b/sfx2/source/sidebar/DrawHelper.hxx @@ -39,13 +39,6 @@ public: const SvBorder aBorderSize, const Paint& rHorizontalPaint, const Paint& rVerticalPaint); - static void DrawBevelBorder ( - OutputDevice& rDevice, - const Rectangle rBox, - const SvBorder aBorderSize, - const Paint& rTopLeftPaint, - const Paint& rCenterPaint, - const Paint& rBottomRightPaint); static void DrawHorizontalLine( OutputDevice& rDevice, const sal_Int32 nLeft, -- cgit