summaryrefslogtreecommitdiff
path: root/sc/inc/queryiter.hxx
diff options
context:
space:
mode:
authorWinfried Donkers <winfrieddonkers@libreoffice.org>2024-02-11 16:18:44 +0100
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-02-16 11:01:17 +0100
commit88ba9fab08514b96f458bb8c0ace175b2790638e (patch)
treeddab77e2ffff2d278cc94eb83dce47883d5b65ed /sc/inc/queryiter.hxx
parentb508e4f0813b62c3e5d10a2fbacec1fb8839ece4 (diff)
Prepare search code for other functions than MATCH and XLOOKUP.
Purpose is to use one set of code for all similar lookup functions, as they now each have their own code, which is largely identical. Next steps will be to make the code used by XLOOKUP and MATCH work with each similar lookup function. This patch just changes the interface to accomodate other functions. Change-Id: I6950aa69404f3eb8acbf2d55e247058f3e798814 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163230 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'sc/inc/queryiter.hxx')
-rw-r--r--sc/inc/queryiter.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/queryiter.hxx b/sc/inc/queryiter.hxx
index 32fd1cb83898..f494b83d74a5 100644
--- a/sc/inc/queryiter.hxx
+++ b/sc/inc/queryiter.hxx
@@ -183,7 +183,7 @@ protected:
sal_uInt8 nSortedBinarySearch;
bool bAdvanceQuery;
bool bIgnoreMismatchOnLeadingStrings;
- bool bXLookUp;
+ sal_uInt16 nSearchOpCode;
SCCOL nBestFitCol;
SCROW nBestFitRow;
@@ -276,8 +276,8 @@ public:
nSearchbAscd : (nSearchMode == -2 ? nSearchbDesc : nBinarySearchDisabled));
}
- void SetXlookupMode( bool bVal )
- { bXLookUp = bVal; }
+ void SetLookupMode( sal_uInt16 nVal )
+ { nSearchOpCode = nVal; }
};
@@ -325,7 +325,7 @@ class ScQueryCellIterator
using Base::getThisResult;
using Base::nBestFitCol;
using Base::nBestFitRow;
- using Base::bXLookUp;
+ using Base::nSearchOpCode;
bool GetThis();