summaryrefslogtreecommitdiffstats
path: root/sc/inc/queryparam.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-16 16:59:18 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-18 14:13:20 -0500
commit965d933ed94371b3c96695a58ecc9b69742c660b (patch)
tree535c5561e0a14ffec870a3cb2a166fb8af76148d /sc/inc/queryparam.hxx
parentNow the new popup works somewhat as expected. (diff)
downloadcore-965d933ed94371b3c96695a58ecc9b69742c660b.tar.gz
core-965d933ed94371b3c96695a58ecc9b69742c660b.zip
Remove the query entry when all items are selected.
Diffstat (limited to 'sc/inc/queryparam.hxx')
-rw-r--r--sc/inc/queryparam.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index 4935ebeadf73..6c1c09a040a4 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -54,6 +54,7 @@ struct ScQueryParamBase
SC_DLLPUBLIC const ScQueryEntry& GetEntry(SCSIZE n) const;
SC_DLLPUBLIC ScQueryEntry& GetEntry(SCSIZE n);
ScQueryEntry* FindEntryByField(SCCOLROW nField, bool bNew);
+ void RemoveEntryByField(SCCOLROW nField);
void Resize(size_t nNew);
SC_DLLPUBLIC void DeleteQuery(size_t nPos);
void FillInExcelSyntax(const rtl::OUString& aCellStr, SCSIZE nIndex);
@@ -62,7 +63,8 @@ protected:
ScQueryParamBase();
ScQueryParamBase(const ScQueryParamBase& r);
- boost::ptr_vector<ScQueryEntry> maEntries;
+ typedef boost::ptr_vector<ScQueryEntry> EntriesType;
+ EntriesType maEntries;
};
// ============================================================================