diff options
author | Eike Rathke <erack@redhat.com> | 2020-09-25 23:26:19 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-09-26 11:30:21 +0200 |
commit | ebe4bbb25a9bcb4263b079a50d932384c7c7fb3e (patch) | |
tree | d9fa1ff01b56ece6f0b1f453dd55a2e0b3a6a718 /sc/inc/validat.hxx | |
parent | 4f963b6502674b73ecbc0ced201d15456724e977 (diff) |
Consolidate, factor out common duplicated code, tdf#128797 follow-up
Change-Id: I939c9f88a6cf09e1caa87131562ad67e389c2710
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103470
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc/validat.hxx')
-rw-r--r-- | sc/inc/validat.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/validat.hxx b/sc/inc/validat.hxx index 19f88ddce34a..7ab014f0f92f 100644 --- a/sc/inc/validat.hxx +++ b/sc/inc/validat.hxx @@ -34,6 +34,7 @@ struct RefUpdateContext; class ScPatternAttr; class ScTokenArray; class ScTypedStrData; +struct ScValidationDataIsNumeric; enum ScValidationMode { @@ -183,6 +184,15 @@ private: /** Tests, if contents of pCell occur in cell range referenced by own formula, or in a string list. */ bool IsListValid( ScRefCellValue& rCell, const ScAddress& rPos ) const; + + /** Tests, if string or numeric data has valid text length. + @param pDataNumeric + nullptr if string data to be tested, else for numeric data a + properly initialized ScValidationDataIsNumeric struct, see + implementation. + */ + bool IsDataValidTextLen( const OUString& rTest, const ScAddress& rPos, + ScValidationDataIsNumeric* pDataNumeric ) const; }; // list of conditions: |