summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-22 11:27:50 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-22 15:33:50 +0100
commitb769901d5a09d7c8bd9ef666a863ff5e7fce4c1e (patch)
tree9a4ac45203f9bf465625ca2d636eda0abc1f8163 /sd
parent9856dfd3cccc145130c7e5e7c4c1571a3d2068aa (diff)
unusedcode: remove various unused classes
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/view/SlsButtonBar.cxx137
1 files changed, 0 insertions, 137 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
index d2fa7c775982..23f98ac513b5 100644
--- a/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
+++ b/sd/source/ui/slidesorter/view/SlsButtonBar.cxx
@@ -100,26 +100,6 @@ private:
namespace {
- /** Rectangular button bar that covers the whole width of the preview.
- */
- class RectangleBackgroundTheme : public ButtonBar::BackgroundTheme
- {
- public:
- RectangleBackgroundTheme(
- const ::boost::shared_ptr<Theme>& rpTheme,
- const ::std::vector<SharedButton>& rButtons);
- virtual ~RectangleBackgroundTheme() { }
- virtual BitmapEx CreateBackground (
- const OutputDevice& rTemplateDevice,
- const bool bIsButtonDown) const;
- virtual Point GetBackgroundLocation (void);
- virtual Rectangle GetButtonArea (void);
- protected:
- virtual void Layout (void);
- private:
- sal_Int32 mnBarHeight;
- };
-
/** Button bar is composed of three images, the left and right end of
the bar and the center image. Buttons are only placed over the
center image. The center image is painted as is, it is not scaled.
@@ -826,123 +806,6 @@ Button::IconSize ButtonBar::BackgroundTheme::GetIconSize (void) const
-
-//===== RectangleBackgroundTheme ============================================
-
-RectangleBackgroundTheme::RectangleBackgroundTheme (
- const ::boost::shared_ptr<Theme>& rpTheme,
- const ::std::vector<SharedButton>& rButtons)
- : BackgroundTheme(rpTheme, rButtons),
- mnBarHeight(0)
-{
-}
-
-
-
-
-BitmapEx RectangleBackgroundTheme::CreateBackground (
- const OutputDevice& rTemplateDevice,
- const bool bIsButtonDown) const
-{
- OSL_ASSERT(mpTheme);
-
- // Setup background color.
- Color aTopFillColor (mpTheme->GetGradientColor(
- Theme::Gradient_ButtonBackground,
- Theme::Fill1));
- Color aTopBorderColor (mpTheme->GetGradientColor(
- Theme::Gradient_ButtonBackground,
- Theme::Border1));
- Color aBottomFillColor (mpTheme->GetGradientColor(
- Theme::Gradient_ButtonBackground,
- Theme::Fill2));
- Color aBottomBorderColor (mpTheme->GetGradientColor(
- Theme::Gradient_ButtonBackground,
- Theme::Border2));
- if (bIsButtonDown)
- {
- aTopFillColor.DecreaseLuminance(50);
- aTopBorderColor.DecreaseLuminance(50);
- aBottomFillColor.DecreaseLuminance(50);
- aBottomBorderColor.DecreaseLuminance(50);
- }
-
- const int nWidth (maPreviewBoundingBox.GetWidth()+2);
- const int nHeight (mnBarHeight);
- const int nCenter (nHeight / 2);
-
- VirtualDevice aDevice (rTemplateDevice, 0, 8);
- aDevice.SetOutputSizePixel(Size(nWidth,nHeight));
-
- // Fill upper and lower half.
- aDevice.SetLineColor();
- aDevice.SetFillColor(aTopFillColor);
- aDevice.DrawRect(Rectangle(0,0,nWidth-1,nCenter));
- aDevice.SetFillColor(aBottomFillColor);
- aDevice.DrawRect(Rectangle(0,nCenter,nWidth-1,nHeight-1));
-
- // Draw border.
- aDevice.SetFillColor();
- aDevice.SetLineColor(aTopBorderColor);
- aDevice.DrawLine(Point(0,nCenter),Point(0,0));
- aDevice.DrawLine(Point(0,0), Point(nWidth-1,0));
- aDevice.DrawLine(Point(nWidth-1,0),Point(nWidth-1,nCenter));
- aDevice.SetLineColor(aBottomBorderColor);
- aDevice.DrawLine(Point(0,nCenter),Point(0,nHeight-1));
- aDevice.DrawLine(Point(0,nHeight-1), Point(nWidth-1,nHeight-1));
- aDevice.DrawLine(Point(nWidth-1,nHeight-1),Point(nWidth-1,nCenter));
-
- return aDevice.GetBitmapEx(Point(0,0), Size(nWidth,nHeight));
-}
-
-
-
-
-Point RectangleBackgroundTheme::GetBackgroundLocation (void)
-{
- return Point(
- maPreviewBoundingBox.Left()-1,
- maPreviewBoundingBox.Bottom() - mnBarHeight + 2);
-}
-
-
-
-
-Rectangle RectangleBackgroundTheme::GetButtonArea (void)
-{
- return Rectangle(
- maPreviewBoundingBox.Left(),
- maPreviewBoundingBox.Bottom() - mnBarHeight + 2,
- maPreviewBoundingBox.Right(),
- maPreviewBoundingBox.Bottom());
-}
-
-
-
-
-void RectangleBackgroundTheme::Layout (void)
-{
- if (maPreviewBoundingBox.GetWidth() < maMinimumLargeButtonAreaSize.Width())
- if (maPreviewBoundingBox.GetWidth() < maMinimumMediumButtonAreaSize.Width())
- {
- meIconSize = Button::IconSize_Small;
- mnBarHeight = maMinimumSmallButtonAreaSize.Height();
- }
- else
- {
- meIconSize = Button::IconSize_Medium;
- mnBarHeight = maMinimumMediumButtonAreaSize.Height();
- }
- else
- {
- meIconSize = Button::IconSize_Large;
- mnBarHeight = maMinimumLargeButtonAreaSize.Height();
- }
-}
-
-
-
-
//===== BitmapBackgroundTheme =================================================
BitmapBackgroundTheme::BitmapBackgroundTheme (