diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-27 14:00:27 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 10:01:32 -0500 |
commit | c391ebbf8c8472911af52bbf3ff028ccee5155be (patch) | |
tree | d3fa5969171ccc69a8c5437971b2691ac604651f /svtools/source | |
parent | 22040a74cc0a598b54cc33259b5f39b6bd5ada5d (diff) |
Make SvViewDataItem a struct, with only one public data member...
Change-Id: Ib6b710f87fcdfe465fb78a397100f82da11b3611
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/contnr/svlbitm.cxx | 8 | ||||
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/viewdataentry.cxx | 12 | ||||
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 12 |
4 files changed, 11 insertions, 23 deletions
diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx index 1545543bcbc7..138ae3b5bef2 100644 --- a/svtools/source/contnr/svlbitm.cxx +++ b/svtools/source/contnr/svlbitm.cxx @@ -245,7 +245,7 @@ void SvLBoxString::InitViewData( DBG_CHKTHIS(SvLBoxString,0); if( !pViewData ) pViewData = pView->GetViewDataItem( pEntry, this ); - pViewData->aSize = Size(pView->GetTextWidth(maText), pView->GetTextHeight()); + pViewData->maSize = Size(pView->GetTextWidth(maText), pView->GetTextHeight()); } // *************************************************************** @@ -276,7 +276,7 @@ void SvLBoxBmp::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntry, DBG_CHKTHIS(SvLBoxBmp,0); if( !pViewData ) pViewData = pView->GetViewDataItem( pEntry, this ); - pViewData->aSize = aBmp.GetSizePixel(); + pViewData->maSize = aBmp.GetSizePixel(); } void SvLBoxBmp::Paint( const Point& rPos, SvTreeListBox& rDev, sal_uInt16 /* nFlags */, @@ -447,7 +447,7 @@ void SvLBoxButton::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntry, ControlType eCtrlType = (pData->IsRadio())? CTRL_RADIOBUTTON : CTRL_CHECKBOX; if ( eKind != SvLBoxButtonKind_staticImage && pView ) ImplAdjustBoxSize( aSize, eCtrlType, pView ); - pViewData->aSize = aSize; + pViewData->maSize = aSize; } bool SvLBoxButton::CheckModification() const @@ -525,7 +525,7 @@ void SvLBoxContextBmp::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntr DBG_CHKTHIS(SvLBoxContextBmp,0); if( !pViewData ) pViewData = pView->GetViewDataItem( pEntry, this ); - pViewData->aSize = m_pImpl->m_aImage1.GetSizePixel(); + pViewData->maSize = m_pImpl->m_aImage1.GetSizePixel(); } void SvLBoxContextBmp::Paint( const Point& _rPos, SvTreeListBox& _rDev, diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 5f8a40b1a3f6..f7fe4d8f42bc 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -363,7 +363,7 @@ const Size& SvLBoxItem::GetSize(const SvTreeListBox* pView, const SvTreeListEntr { DBG_CHKTHIS(SvLBoxItem,0); const SvViewDataItem* pViewData = pView->GetViewDataItem( pEntry, this ); - return pViewData->aSize; + return pViewData->maSize; } struct SvTreeListBoxImpl diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx index 544bb030cc7d..3b35c7578d1d 100644 --- a/svtools/source/contnr/viewdataentry.cxx +++ b/svtools/source/contnr/viewdataentry.cxx @@ -116,16 +116,4 @@ SvViewDataEntry::~SvViewDataEntry() delete [] pItemData; } -DBG_NAME(SvViewDataItem); - -SvViewDataItem::SvViewDataItem() -{ - DBG_CTOR(SvViewDataItem,0); -} - -SvViewDataItem::~SvViewDataItem() -{ - DBG_DTOR(SvViewDataItem,0); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index cd9e13f8c812..8a409090f500 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -1673,18 +1673,18 @@ void UnoTreeListItem::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntry if( !pViewData ) pViewData = pView->GetViewDataItem( pEntry, this ); - pViewData->aSize = maImage.GetSizePixel(); + pViewData->maSize = maImage.GetSizePixel(); const Size aTextSize(pView->GetTextWidth( maText ), pView->GetTextHeight()); - if( pViewData->aSize.Width() ) + if( pViewData->maSize.Width() ) { - pViewData->aSize.Width() += 6 + aTextSize.Width(); - if( pViewData->aSize.Height() < aTextSize.Height() ) - pViewData->aSize.Height() = aTextSize.Height(); + pViewData->maSize.Width() += 6 + aTextSize.Width(); + if( pViewData->maSize.Height() < aTextSize.Height() ) + pViewData->maSize.Height() = aTextSize.Height(); } else { - pViewData->aSize = aTextSize; + pViewData->maSize = aTextSize; } } |