22 #include <rtl/ustring.hxx>
151 const char*
p,
size_t n,
char dsep,
char gsep,
double& rVal);
static bool parseSimpleNumber(const OUString &rStr, sal_Unicode dsep, sal_Unicode gsep, sal_Unicode dsepa, double &rVal)
Check if a given string is a simple decimal number (e.g.
Store parameters used in the ScDocument::SetString() method.
bool mbHandleApostrophe
When true, treat input with a leading apostrophe as an escape character for a numeric value content...
void setTextInput()
Call this whenever you need to unconditionally set input as text, no matter what the input is...
SvNumberFormatter * mpNumFormatter
Stores the pointer to the number formatter instance to be used during number format detection...
bool mbCheckLinkFormula
When true and the string results in a compiled formula, check the formula tokens for presence of func...
TextFormatPolicy meSetTextNumFormat
Determine when to set the 'Text' number format to the cell where the input string is being set...
TextFormatPolicy
Enum settings that take effect if mbDetectNumberFormat=false or if true a number was not detected...
static ScInputStringType parseInputString(SvNumberFormatter &rFormatter, const OUString &rStr, LanguageType eLang)
Set Text number format only when the input string is considered a special number but we only want to ...
Keep an existing number format, do not set Text number format and do not set another number format...
static bool SC_DLLPUBLIC isMultiline(std::u16string_view rStr)
bool mbDetectNumberFormat
When true, we try to detect special number format (dates etc) from the input string, when false, we only try to detect a basic decimal number format.
static OUString SC_DLLPUBLIC GetQuotedToken(const OUString &rIn, sal_Int32 nToken, const OUString &rQuotedPairs, sal_Unicode cTok, sal_Int32 &rIndex)
Set Text number format if the input string can be parsed as a number or formula text.
sc::StartListeningType meStartListening
void setNumericInput()
Call this whenever you need to maximize the chance of input being detected as a numeric value (number...