summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-12-07 07:42:52 +0200
committerEike Rathke <erack@redhat.com>2021-12-13 22:18:06 +0100
commitb93a6964e0466c1b67d2c233040357a8f6c75214 (patch)
treec6b202f46e537dbc59fbc739d69fa9d702079382 /sc/inc
parent6a9cf64ea7509aac258f290cc1f204fd1ce1f974 (diff)
tdf#92010 sc autoFormula: prefer MRU formulas
Prior to 4.3, only MRU formulas were auto-completed. Then it changed to suggest all formulas - alphabetically for the most part. That 4.3 commit 5b0b7553241bb5150b12bbf7625b4b0b36970272 completely removed all reference to MRU. But it makes sense to prefer an MRU over a strictly alphabetical match. This patch depends on LO 7.4 patch "new ScTypedStrData: typically missed argument in CTOR" Change-Id: Id5d860d1401693f43833719977d1c1e4c386385c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126499 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/typedstrdata.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/inc/typedstrdata.hxx b/sc/inc/typedstrdata.hxx
index 7c7b1c7e45d4..c1a3738ce7fe 100644
--- a/sc/inc/typedstrdata.hxx
+++ b/sc/inc/typedstrdata.hxx
@@ -17,11 +17,12 @@ class ScTypedStrData
{
public:
enum StringType {
- Value = 0,
- Standard = 1,
- Name = 2,
- DbName = 3,
- Header = 4
+ Value,
+ MRU,
+ Standard,
+ Name,
+ DbName,
+ Header
};
ScTypedStrData( const OUString& rStr, double fVal = 0.0, double fRVal = 0.0, StringType eType = Standard,