summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-18 08:05:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-18 12:35:08 +0200
commit25cce7cd249379f0a98fddc63327b38bd2e48882 (patch)
tree6f724f7b04e2df6bc7547d1963cd1e87e3ac39f5 /vcl
parentb68f4ff85bc1d6e008facbc310ddbfb5d799b7a5 (diff)
Revert "loplugin:unusedmethods"
This reverts commit 7990680e92e4fba376ef4f9346d1bc53661bde30. screenshot build is failing Change-Id: Idfe4cac73edaf9be1e704c0bd734e858643defda Reviewed-on: https://gerrit.libreoffice.org/77654 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/treelist/svtabbx.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index 1b4786e01c86..e2f0c2705ed0 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -270,6 +270,12 @@ OUString SvTabListBox::GetEntryText( sal_uLong nPos, sal_uInt16 nCol ) const
return GetEntryText( pEntry, nCol );
}
+void SvTabListBox::SetEntryText(const OUString& rStr, sal_uLong nPos, sal_uInt16 nCol)
+{
+ SvTreeListEntry* pEntry = SvTreeListBox::GetEntry( nPos );
+ SetEntryText( rStr, pEntry, nCol );
+}
+
void SvTabListBox::SetEntryText(const OUString& rStr, SvTreeListEntry* pEntry, sal_uInt16 nCol)
{
DBG_ASSERT(pEntry,"SetEntryText:Invalid Entry");
@@ -321,6 +327,21 @@ OUString SvTabListBox::GetCellText( sal_uLong nPos, sal_uInt16 nCol ) const
return aResult;
}
+sal_uLong SvTabListBox::GetEntryPos( const OUString& rStr, sal_uInt16 nCol )
+{
+ sal_uLong nPos = 0;
+ SvTreeListEntry* pEntry = First();
+ while( pEntry )
+ {
+ OUString aStr( GetEntryText( pEntry, nCol ));
+ if( aStr == rStr )
+ return nPos;
+ pEntry = Next( pEntry );
+ nPos++;
+ }
+ return 0xffffffff;
+}
+
sal_uLong SvTabListBox::GetEntryPos( const SvTreeListEntry* pEntry ) const
{
sal_uLong nPos = 0;