diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-02 17:23:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-03 08:16:19 +0200 |
commit | 904c97bbdf4c76709dbcacb11292668b98a9efd8 (patch) | |
tree | 42855fdaf74aca15c6674836a8f603d22aa87744 /include | |
parent | bb1d5780226bb1b9156580972eea9aa849178742 (diff) |
move SvTreeList::*Sibling to SvTreeListEntry
since they don't depend on SvTreeList at all
Change-Id: If48c83976a95943e5cfa92490d68f74281cf4b5f
Reviewed-on: https://gerrit.libreoffice.org/56819
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/treelist.hxx | 3 | ||||
-rw-r--r-- | include/svtools/treelistbox.hxx | 2 | ||||
-rw-r--r-- | include/svtools/treelistentry.hxx | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index 7027db593da2..c246a5610ad8 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -159,9 +159,6 @@ public: SvTreeListEntry* Last() const; SvTreeListEntry* FirstChild( SvTreeListEntry* pParent ) const; - static SvTreeListEntry* NextSibling( SvTreeListEntry* pEntry ); - static SvTreeListEntry* PrevSibling( SvTreeListEntry* pEntry ); - static SvTreeListEntry* LastSibling( SvTreeListEntry* pEntry ); sal_uLong Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pPar,sal_uLong nPos = TREELIST_APPEND); sal_uLong Insert( SvTreeListEntry* pEntry,sal_uLong nRootPos = TREELIST_APPEND ) diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index 83c7b83f0490..b29908debe4a 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -365,8 +365,6 @@ public: } SvTreeListEntry* FirstChild( SvTreeListEntry* pParent ) const; - static SvTreeListEntry* NextSibling( SvTreeListEntry* pEntry ); - static SvTreeListEntry* PrevSibling( SvTreeListEntry* pEntry ); bool CopySelection( SvTreeListBox* pSource, SvTreeListEntry* pTarget ); bool MoveSelectionCopyFallbackPossible( SvTreeListBox* pSource, SvTreeListEntry* pTarget, bool bAllowCopyFallback ); diff --git a/include/svtools/treelistentry.hxx b/include/svtools/treelistentry.hxx index 899e3f8bbc96..303ebb55d643 100644 --- a/include/svtools/treelistentry.hxx +++ b/include/svtools/treelistentry.hxx @@ -112,6 +112,10 @@ public: void SetBackColor( const Color& aColor ) { maBackColor = aColor; } const Color& GetBackColor() const { return maBackColor; } SvTreeListEntry* GetParent() const { return pParent; } + + SvTreeListEntry* NextSibling() const; + SvTreeListEntry* PrevSibling() const; + SvTreeListEntry* LastSibling() const; }; #endif |