Kaydet (Commit) 78afd7f6 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Michael Meeks

sidebar: Kill DrawBevelBorder(), nobody uses that now.

Change-Id: I7901ad17515002c8568a46f9a11c0c9919c0841e
üst 956aae27
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include <vcl/lineinfo.hxx> #include <vcl/lineinfo.hxx>
namespace sfx2 { namespace sidebar { namespace sfx2 { namespace sidebar {
void DrawHelper::DrawBorder ( void DrawHelper::DrawBorder (
...@@ -65,70 +64,6 @@ void DrawHelper::DrawBorder ( ...@@ -65,70 +64,6 @@ void DrawHelper::DrawBorder (
rVerticalPaint); 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( void DrawHelper::DrawHorizontalLine(
OutputDevice& rDevice, OutputDevice& rDevice,
const sal_Int32 nLeft, const sal_Int32 nLeft,
...@@ -165,9 +100,6 @@ void DrawHelper::DrawHorizontalLine( ...@@ -165,9 +100,6 @@ void DrawHelper::DrawHorizontalLine(
} }
} }
void DrawHelper::DrawVerticalLine( void DrawHelper::DrawVerticalLine(
OutputDevice& rDevice, OutputDevice& rDevice,
const sal_Int32 nTop, const sal_Int32 nTop,
...@@ -204,9 +136,6 @@ void DrawHelper::DrawVerticalLine( ...@@ -204,9 +136,6 @@ void DrawHelper::DrawVerticalLine(
} }
} }
void DrawHelper::DrawRoundedRectangle ( void DrawHelper::DrawRoundedRectangle (
OutputDevice& rDevice, OutputDevice& rDevice,
const Rectangle& rBox, const Rectangle& rBox,
...@@ -238,7 +167,4 @@ void DrawHelper::DrawRoundedRectangle ( ...@@ -238,7 +167,4 @@ void DrawHelper::DrawRoundedRectangle (
} }
} }
} } // end of namespace sfx2::sidebar } } // end of namespace sfx2::sidebar
...@@ -39,13 +39,6 @@ public: ...@@ -39,13 +39,6 @@ public:
const SvBorder aBorderSize, const SvBorder aBorderSize,
const Paint& rHorizontalPaint, const Paint& rHorizontalPaint,
const Paint& rVerticalPaint); 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( static void DrawHorizontalLine(
OutputDevice& rDevice, OutputDevice& rDevice,
const sal_Int32 nLeft, const sal_Int32 nLeft,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment