summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/namedlg/namemgrtable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/namedlg/namemgrtable.cxx')
-rw-r--r--sc/source/ui/namedlg/namemgrtable.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/ui/namedlg/namemgrtable.cxx b/sc/source/ui/namedlg/namemgrtable.cxx
index 40bd5aa459e9..99b1ea0367ba 100644
--- a/sc/source/ui/namedlg/namemgrtable.cxx
+++ b/sc/source/ui/namedlg/namemgrtable.cxx
@@ -209,6 +209,18 @@ std::vector<ScRangeNameLine> ScRangeManagerTable::GetSelectedEntries()
return aSelectedEntries;
}
+void ScRangeManagerTable::SetEntry(const ScRangeNameLine& rLine)
+{
+ for (SvLBoxEntry* pEntry = First(); pEntry; pEntry = Next(pEntry))
+ {
+ if (rLine.aName == rtl::OUString(GetEntryText(pEntry, 0))
+ && rLine.aScope == rtl::OUString(GetEntryText(pEntry, 2)))
+ {
+ SetCurEntry(pEntry);
+ }
+ }
+}
+
namespace {
//ensure that the minimum column size is respected