diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-24 01:18:57 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-09-24 03:52:33 +0200 |
commit | 4e83a42e431c1ab640703afec356e791af35d830 (patch) | |
tree | 8376fadb3b3f5c4751c70e1e8b014769b63f18c6 /sc | |
parent | fix crash, various button problems, memory leak (diff) | |
download | core-4e83a42e431c1ab640703afec356e791af35d830.tar.gz core-4e83a42e431c1ab640703afec356e791af35d830.zip |
show only relevant range names
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index e2ab1332b973..3cf7027d0b73 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -147,24 +147,30 @@ void ScRangeManagerTable::UpdateEntries() for (ScRangeName::iterator itr = mpGlobalRangeName->begin(); itr != mpGlobalRangeName->end(); ++itr) { - ScRangeNameLine aLine; - aLine.aName = itr->GetName(); - aLine.aScope = maGlobalString; - itr->GetSymbol(aLine.aExpression); - addEntry(aLine); + if (!itr->HasType(RT_DATABASE) && !itr->HasType(RT_SHARED)) + { + ScRangeNameLine aLine; + aLine.aName = itr->GetName(); + aLine.aScope = maGlobalString; + itr->GetSymbol(aLine.aExpression); + addEntry(aLine); + } } for (std::map<rtl::OUString, ScRangeName*>::iterator itr = maTabRangeNames.begin(); itr != maTabRangeNames.end(); ++itr) { ScRangeName* pLocalRangeName = itr->second; + ScRangeNameLine aLine; + aLine.aScope = itr->first; for (ScRangeName::iterator it = pLocalRangeName->begin(); it != pLocalRangeName->end(); ++it) { - ScRangeNameLine aLine; - aLine.aName = it->GetName(); - aLine.aScope = itr->first; - it->GetSymbol(aLine.aExpression); - addEntry(aLine); + if (!it->HasType(RT_DAZABASE) && !it->HasType(RT_SHARED)) + { + aLine.aName = it->GetName(); + it->GetSymbol(aLine.aExpression); + addEntry(aLine); + } } } } |