diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-26 01:58:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-26 07:51:43 +0000 |
commit | 532c2bba7d9985a10b112c880f21691f6b66c19c (patch) | |
tree | edf7975558d11d99cbf9c864b1b5304759cc9019 | |
parent | ef699b4d41cc602322d980027956aab636c776d5 (diff) |
remove SvLBoxBmp class
not used by anything
Change-Id: I35d12bdd29c5aef43296ce4709e69b29f4685acc
Reviewed-on: https://gerrit.libreoffice.org/28398
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/svtools/svlbitm.hxx | 15 | ||||
-rw-r--r-- | include/svtools/treelistbox.hxx | 3 | ||||
-rw-r--r-- | svtools/source/contnr/svlbitm.cxx | 43 |
3 files changed, 1 insertions, 60 deletions
diff --git a/include/svtools/svlbitm.hxx b/include/svtools/svlbitm.hxx index 2e5f83e107ec..f520f8682625 100644 --- a/include/svtools/svlbitm.hxx +++ b/include/svtools/svlbitm.hxx @@ -133,21 +133,6 @@ public: virtual void Clone(SvLBoxItem* pSource) override; }; -class SvLBoxBmp : public SvLBoxItem -{ - Image aBmp; -public: - SvLBoxBmp(); - virtual ~SvLBoxBmp(); - virtual SvLBoxItemType GetType() const override; - virtual void InitViewData( SvTreeListBox* ,SvTreeListEntry*, SvViewDataItem* = nullptr ) override; - virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext, - const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override; - virtual SvLBoxItem* Create() const override; - virtual void Clone( SvLBoxItem* pSource ) override; -}; - - class SVT_DLLPUBLIC SvLBoxButton : public SvLBoxItem { bool isVis; diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 9898716dddd4..25bbf74b8e91 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -50,7 +50,6 @@ class SvInplaceEdit2; class SvLBoxString; class SvLBoxButton; class SvLBoxContextBmp; -class SvLBoxBmp; class SvImpLBox; class SvLBoxButtonData; struct SvLBoxDDInfo; @@ -125,7 +124,7 @@ typedef sal_Int64 ExtendedWinBits; // disable the behavior of automatically selecting a "CurEntry" upon painting the control #define EWB_NO_AUTO_CURENTRY 0x00000001 -enum class SvLBoxItemType {String, Bmp, Button, ContextBmp}; +enum class SvLBoxItemType {String, Button, ContextBmp}; class SvLBoxTab { 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 @@ -238,49 +238,6 @@ void SvLBoxString::InitViewData( } // *************************************************************** -// 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<SvLBoxBmp*>(pSource)->aBmp; -} - -// *************************************************************** // class SvLBoxButton // *************************************************************** |