From 532c2bba7d9985a10b112c880f21691f6b66c19c Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Fri, 26 Aug 2016 01:58:01 +0200 Subject: remove SvLBoxBmp class not used by anything Change-Id: I35d12bdd29c5aef43296ce4709e69b29f4685acc Reviewed-on: https://gerrit.libreoffice.org/28398 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/contnr/svlbitm.cxx | 43 --------------------------------------- 1 file changed, 43 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx index 4aeb7eef7b79..52c0da1fbacc 100644 --- a/svtools/source/contnr/svlbitm.cxx +++ b/svtools/source/contnr/svlbitm.cxx @@ -237,49 +237,6 @@ void SvLBoxString::InitViewData( pViewData->maSize = Size(nTextWidth, pView->GetTextHeight()); } -// *************************************************************** -// class SvLBoxBmp -// *************************************************************** - - -SvLBoxBmp::SvLBoxBmp() : SvLBoxItem() -{ -} - -SvLBoxBmp::~SvLBoxBmp() -{ -} - -SvLBoxItemType SvLBoxBmp::GetType() const -{ - return SvLBoxItemType::Bmp; -} - -void SvLBoxBmp::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntry, - SvViewDataItem* pViewData) -{ - if( !pViewData ) - pViewData = pView->GetViewDataItem( pEntry, this ); - pViewData->maSize = aBmp.GetSizePixel(); -} - -void SvLBoxBmp::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext, - const SvViewDataEntry* /*pView*/, const SvTreeListEntry& /*rEntry*/) -{ - DrawImageFlags nStyle = rDev.IsEnabled() ? DrawImageFlags::NONE : DrawImageFlags::Disable; - rRenderContext.DrawImage(rPos, aBmp ,nStyle); -} - -SvLBoxItem* SvLBoxBmp::Create() const -{ - return new SvLBoxBmp; -} - -void SvLBoxBmp::Clone( SvLBoxItem* pSource ) -{ - aBmp = static_cast(pSource)->aBmp; -} - // *************************************************************** // class SvLBoxButton // *************************************************************** -- cgit