diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-20 08:22:02 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:25:32 +0100 |
commit | 42bb6baae411dcef47fbe8555412960be2c0dfad (patch) | |
tree | 547f04e789bc2b9ad9eef903ab6ba7ffd2c411d2 /sc/source/ui/inc/namemgrtable.hxx | |
parent | b5a509e21704e6dba31eabac689c35efd8dda973 (diff) |
ManageNames: make Multiselection work in the table
Diffstat (limited to 'sc/source/ui/inc/namemgrtable.hxx')
-rw-r--r-- | sc/source/ui/inc/namemgrtable.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/inc/namemgrtable.hxx b/sc/source/ui/inc/namemgrtable.hxx index efe7bc297f49..8331a731dc80 100644 --- a/sc/source/ui/inc/namemgrtable.hxx +++ b/sc/source/ui/inc/namemgrtable.hxx @@ -28,6 +28,8 @@ #include <svtools/headbar.hxx> #include <svtools/svtabbx.hxx> +#include <vector> + struct ScRangeNameLine { rtl::OUString aName; @@ -46,14 +48,20 @@ private: ScRangeName* mpGlobalRangeName; std::map<rtl::OUString, ScRangeName*> maTabRangeNames; rtl::OUString maGlobalString; + + void GetLine(ScRangeNameLine& aLine, SvLBoxEntry* pEntry); + public: ScRangeManagerTable( Window* pParent, ScRangeName* pGlobalRangeName, std::map<rtl::OUString, ScRangeName*> aTabRangeNames ); ~ScRangeManagerTable() {}; void addEntry( const ScRangeNameLine& rLine ); + void DeleteSelectedEntries(); void GetCurrentLine(ScRangeNameLine& rLine); void UpdateEntries(); + bool IsMultiSelection(); + std::vector<ScRangeNameLine> GetSelectedEntries(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |