Hide this, and don't expose method definitions of exported class.

Change-Id: I52ff833c9b552f4593dedf771f6370bdeedf2b7d
This commit is contained in:
Kohei Yoshida 2012-11-27 12:57:47 -05:00
parent 3f662c726d
commit 3bf14d2983
2 changed files with 6 additions and 1 deletions

View file

@ -411,7 +411,7 @@ public:
sal_uLong GetChildCount( SvTreeListEntry* pParent ) const;
sal_uLong GetLevelChildCount( SvTreeListEntry* pParent ) const;
SvViewDataEntry* GetViewDataEntry( SvTreeListEntry* pEntry ) const { return (SvViewDataEntry*)SvListView::GetViewData(pEntry); }
SvViewDataEntry* GetViewDataEntry( SvTreeListEntry* pEntry ) const;
SvViewDataItem* GetViewDataItem(SvTreeListEntry*, SvLBoxItem*);
const SvViewDataItem* GetViewDataItem(const SvTreeListEntry*, const SvLBoxItem*) const;

View file

@ -964,6 +964,11 @@ sal_uLong SvTreeListBox::GetLevelChildCount( SvTreeListEntry* _pParent ) const
return nCount;
}
SvViewDataEntry* SvTreeListBox::GetViewDataEntry( SvTreeListEntry* pEntry ) const
{
return (SvViewDataEntry*)SvListView::GetViewData(pEntry);
}
SvViewDataItem* SvTreeListBox::GetViewDataItem(SvTreeListEntry* pEntry, SvLBoxItem* pItem)
{
return const_cast<SvViewDataItem*>(static_cast<const SvTreeListBox*>(this)->GetViewDataItem(pEntry, pItem));