diff options
Diffstat (limited to 'sfx2/source/sidebar/SidebarToolBox.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index 95acd31ab303..dfebb0e23645 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -54,7 +54,6 @@ namespace sfx2 { namespace sidebar { SidebarToolBox::SidebarToolBox (vcl::Window* pParentWindow) : ToolBox(pParentWindow, 0), - maItemSeparator(Theme::GetImage(Theme::Image_ToolBoxItemSeparator)), maControllers(), mbAreHandlersRegistered(false) { @@ -118,28 +117,6 @@ void SidebarToolBox::InsertItem(const OUString& rCommand, RegisterHandlers(); } -void SidebarToolBox::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) -{ - ToolBox::Paint(rRenderContext, rRect); - - if (Theme::GetBoolean(Theme::Bool_UseToolBoxItemSeparator)) - { - const sal_Int32 nSeparatorY((GetSizePixel().Height() - maItemSeparator.GetSizePixel().Height()) / 2); - const sal_uInt16 nItemCount(GetItemCount()); - int nLastRight(-1); - for (sal_uInt16 nIndex = 0; nIndex < nItemCount; ++nIndex) - { - const Rectangle aItemBoundingBox (GetItemPosRect(nIndex)); - if (nLastRight >= 0) - { - const int nSeparatorX((nLastRight + aItemBoundingBox.Left() - 1) / 2); - rRenderContext.DrawImage(Point(nSeparatorX, nSeparatorY), maItemSeparator); - } - nLastRight = aItemBoundingBox.Right(); - } - } -} - bool SidebarToolBox::Notify (NotifyEvent& rEvent) { if (rEvent.GetType() == MouseNotifyEvent::KEYINPUT) |