summaryrefslogtreecommitdiff
path: root/sc/inc/queryiter.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-05-09 12:26:57 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-05-11 11:49:24 +0200
commit5b189abc13d4a9e408c82298e4ede0fdf505002d (patch)
treecb7ddef9fe58e91dd185f76198cc63428037e15f /sc/inc/queryiter.hxx
parent4794aa29587255aaff1196e0cc6e29d136df7b76 (diff)
make ScSortedRangeCache work for also ScQueryEntry::ByString
Change-Id: Ifa769e20d91f7899fa81df537a7f3b7aeff52115 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134125 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/inc/queryiter.hxx')
-rw-r--r--sc/inc/queryiter.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/queryiter.hxx b/sc/inc/queryiter.hxx
index c27aadf92c68..545955d77963 100644
--- a/sc/inc/queryiter.hxx
+++ b/sc/inc/queryiter.hxx
@@ -188,7 +188,7 @@ protected:
or if the range is not properly sorted, with nRow in that case set to the first row or after
the last row. In that case use GetFirst().
*/
- bool BinarySearch( SCCOL col );
+ bool BinarySearch( SCCOL col, bool forEqual = false );
/** If set, iterator stops on first non-matching cell
content. May be used in SC_LESS_EQUAL queries where a
@@ -318,7 +318,7 @@ public:
SCTAB nTable, const ScQueryParam& aParam, bool bMod)
: Base( rDocument, rContext, nTable, aParam, bMod ) {}
// Returns true if this iterator can be used for the given query.
- static bool CanBeUsed(const ScQueryParam& aParam);
+ static bool CanBeUsed(const ScDocument& rDoc, const ScQueryParam& aParam);
};
@@ -366,7 +366,7 @@ public:
SCTAB nTable, const ScQueryParam& aParam, bool bMod)
: Base( rDocument, rContext, nTable, aParam, bMod ) {}
// Returns true if this iterator can be used for the given query.
- static bool CanBeUsed(const ScQueryParam& aParam);
+ static bool CanBeUsed(const ScDocument& rDoc, const ScQueryParam& aParam);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */