22#include <config_options.h>
153 void SetFieldText(
const OUString& rText,
const Selection& rNewSelection);
165 virtual void SetMinValue(
double dMin);
170 virtual void SetMaxValue(
double dMax);
178 void SetTextValue(
const OUString& rText);
182 void EnableEmptyField(
bool bEnable);
185 void SetDefaultValue(
double dDefault) { m_dDefaultValue = dDefault; m_ValueState = valueDirty; m_bDefaultValueSet =
true; }
202 bool GetThousandsSep()
const;
203 void SetThousandsSep(
bool _bUseSeparator);
206 void DisableRemainderFactor();
211 sal_uInt16 GetDecimalDigits()
const;
212 void SetDecimalDigits(sal_uInt16 _nPrecision);
246 void SetTextFormatted(
const OUString& rText);
247 OUString
const & GetTextValue()
const;
266 void SetAutoColor(
bool _bAutomatic);
282 void EnableNotANumber(
bool _bEnable );
288 void UseInputStringForFormatting();
291 void Modify(
bool makeValueDirty =
true);
293 void EntryLostFocus();
303 virtual bool CheckText(
const OUString&)
const {
return true; }
305 void ImplSetTextImpl(
const OUString& rNew,
Selection const * pNewSel);
306 void ImplSetValue(
double dValue,
bool bForce);
307 bool ImplGetValue(
double& dNewVal);
309 void ImplSetFormatKey(
sal_uLong nFormatKey);
bool implValidateNormalized(const OUString &_rText)
TransitionTable m_aTransitions
bool isValidNumericFragment(std::u16string_view _rText)
NumberValidator(const sal_Unicode _cThSep, const sal_Unicode _cDecSep)
virtual SotClipboardFormatId GetFormat(const TransferableDataHelper &aHelper) override
virtual void SetValue(tools::Long nNew) override
StateTransitions::value_type Transition
::std::map< State, StateTransitions > TransitionTable
::std::map< sal_Unicode, State > StateTransitions