summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2017-08-11 00:45:59 +0200
committerTamás Bunth <btomi96@gmail.com>2017-08-10 22:27:23 +0200
commitb946ab02b246e85c34f8fa77d99e19dacda07fe5 (patch)
treeb1a97f5f50c2a735437e31a7d02f4ee3a23969c8 /sc/inc
parenttdf#107858 oovbaapi: Autofilter always has header (diff)
downloadcore-b946ab02b246e85c34f8fa77d99e19dacda07fe5.tar.gz
core-b946ab02b246e85c34f8fa77d99e19dacda07fe5.zip
tdf#107797 UpdateAutoFilter handle more entries
Prepare UpdateAutoFilterFromMenu to handle more entries. Filter items can be hold by more than one entries. In that case we have to remove all the old entries before updating. E.g. setting AutoFilter from vba script results in more than one entries. Change-Id: I4f18f26281d0b8e689cd331f9a66f4c344fb6c6b Reviewed-on: https://gerrit.libreoffice.org/40967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/queryparam.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx
index a96375a8002e..3b406bb49bc5 100644
--- a/sc/inc/queryparam.hxx
+++ b/sc/inc/queryparam.hxx
@@ -59,7 +59,8 @@ struct ScQueryParamBase
SC_DLLPUBLIC ScQueryEntry& AppendEntry();
ScQueryEntry* FindEntryByField(SCCOLROW nField, bool bNew);
std::vector<ScQueryEntry*> FindAllEntriesByField(SCCOLROW nField);
- SC_DLLPUBLIC void RemoveEntryByField(SCCOLROW nField);
+ SC_DLLPUBLIC bool RemoveEntryByField(SCCOLROW nField);
+ SC_DLLPUBLIC void RemoveAllEntriesByField(SCCOLROW nField);
void Resize(size_t nNew);
void FillInExcelSyntax( svl::SharedStringPool& rPool, const OUString& aCellStr, SCSIZE nIndex,
SvNumberFormatter* pFormatter );