From ac7acb0ab1329913b0cec79790adcde0263960be Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 11 Oct 2012 16:13:12 -0400 Subject: Merged SvTreeListBox and SvLBox. There is no reason to keep SvLBox separate. Change-Id: I0b34aa8f8ca539d4f4f0f9cea9fa9b8faec241e8 --- cui/source/customize/acccfg.cxx | 14 ++++---------- cui/source/customize/cfg.cxx | 3 ++- cui/source/customize/macropg.cxx | 5 +++-- 3 files changed, 9 insertions(+), 13 deletions(-) (limited to 'cui/source/customize') diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index a3dbed09dabd..1bfbfd48853f 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -628,10 +628,8 @@ class SfxAccCfgLBoxString_Impl : public SvLBoxString virtual ~SfxAccCfgLBoxString_Impl(); - virtual void Paint(const Point& aPos , - SvLBox& rDevice, - sal_uInt16 nFlags , - SvLBoxEntry* pEntry ); + virtual void Paint( + const Point& aPos, SvTreeListBox& rDevice, sal_uInt16 nFlags, SvLBoxEntry* pEntry); }; //----------------------------------------------- @@ -647,13 +645,9 @@ SfxAccCfgLBoxString_Impl::~SfxAccCfgLBoxString_Impl() { } -//----------------------------------------------- -void SfxAccCfgLBoxString_Impl::Paint(const Point& aPos , - SvLBox& rDevice, - sal_uInt16 /*nFlags*/, - SvLBoxEntry* pEntry ) +void SfxAccCfgLBoxString_Impl::Paint( + const Point& aPos, SvTreeListBox& rDevice, sal_uInt16 /*nFlags*/, SvLBoxEntry* pEntry) { - if (!pEntry) return; diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 2f1945c6cd36..50e21ff19710 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -43,6 +43,7 @@ #include #include #include +#include #include #include @@ -1358,7 +1359,7 @@ public: ~PopupPainter() { } - void Paint( const Point& rPos, SvLBox& rOutDev, + void Paint( const Point& rPos, SvTreeListBox& rOutDev, sal_uInt16 nViewDataEntryFlags, SvLBoxEntry* pEntry ) { SvLBoxString::Paint( rPos, rOutDev, nViewDataEntryFlags, pEntry ); diff --git a/cui/source/customize/macropg.cxx b/cui/source/customize/macropg.cxx index c4d90cfdd529..7aa0c95e3101 100644 --- a/cui/source/customize/macropg.cxx +++ b/cui/source/customize/macropg.cxx @@ -22,6 +22,7 @@ #include "macropg.hxx" #include #include +#include #include #include #include @@ -434,7 +435,7 @@ class IconLBoxString : public SvLBoxString public: IconLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags, const String& sText, Image* pMacroImg, Image* pComponentImg ); - virtual void Paint(const Point& aPos, SvLBox& aDevice, sal_uInt16 nFlags, SvLBoxEntry* pEntry ); + virtual void Paint(const Point& aPos, SvTreeListBox& aDevice, sal_uInt16 nFlags, SvLBoxEntry* pEntry ); }; @@ -448,7 +449,7 @@ IconLBoxString::IconLBoxString( SvLBoxEntry* pEntry, sal_uInt16 nFlags, const St } //=============================================== -void IconLBoxString::Paint( const Point& aPos, SvLBox& aDevice, +void IconLBoxString::Paint( const Point& aPos, SvTreeListBox& aDevice, sal_uInt16 /*nFlags*/, SvLBoxEntry* /*pEntry*/ ) { String aTxt( GetText() ); -- cgit v1.2.1