[Libreoffice-commits] .: Branch 'feature/calc-xml-source' - svtools/inc svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Nov 27 09:11:48 PST 2012
svtools/inc/svtools/treelistbox.hxx | 13 +------------
svtools/source/contnr/treelistbox.cxx | 15 +++++++++++++++
2 files changed, 16 insertions(+), 12 deletions(-)
New commits:
commit 9ae6187d89ec0929939dfe2c565b53f3c43ce6c7
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Tue Nov 27 12:11:42 2012 -0500
Hide these, and don't expose method definitions of exported class.
Change-Id: I755e03448f089653a1441b066df231c43800ed00
diff --git a/svtools/inc/svtools/treelistbox.hxx b/svtools/inc/svtools/treelistbox.hxx
index a7e05d3..558e670 100644
--- a/svtools/inc/svtools/treelistbox.hxx
+++ b/svtools/inc/svtools/treelistbox.hxx
@@ -407,7 +407,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;
bool IsInplaceEditingEnabled() const { return ((nImpFlags & SVLBOX_EDT_ENABLED) != 0); }
@@ -829,17 +829,6 @@ public:
void Hide();
};
-inline SvViewDataItem* SvTreeListBox::GetViewDataItem( SvTreeListEntry* pEntry,
- SvLBoxItem* pItem) const
-{
- SvViewDataEntry* pEntryData =
- (SvViewDataEntry*)SvListView::GetViewData(pEntry);
- DBG_ASSERT(pEntryData,"Entry not in View");
- DBG_ASSERT(pEntryData->pItemData,"No ItemData");
- sal_uInt16 nItemPos = pEntry->GetPos(pItem);
- return (pEntryData->pItemData+nItemPos);
-}
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 167035b..114b902 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -973,6 +973,21 @@ 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 ) const
+{
+ SvViewDataEntry* pEntryData =
+ (SvViewDataEntry*)SvListView::GetViewData(pEntry);
+ DBG_ASSERT(pEntryData,"Entry not in View");
+ DBG_ASSERT(pEntryData->pItemData,"No ItemData");
+ sal_uInt16 nItemPos = pEntry->GetPos(pItem);
+ return (pEntryData->pItemData+nItemPos);
+}
+
SvViewData* SvTreeListBox::CreateViewData( SvTreeListEntry* )
{
DBG_CHKTHIS(SvTreeListBox,0);
More information about the Libreoffice-commits
mailing list