Kaydet (Commit) 482182fd authored tarafından Eike Rathke's avatar Eike Rathke

Prepare ImpSvNumberformatScan with KeywordLocalization context, tdf#114185

Change-Id: I3942a7de52bcedf491da83407791fcd0080aaf4d
üst 62b08a7c
This diff is collapsed.
......@@ -40,9 +40,17 @@ class ImpSvNumberformatScan
{
public:
/** Specify what keyword localization is allowed when scanning the format code. */
enum class KeywordLocalization
{
LocaleLegacy, ///< unfortunately localized in few locales, otherwise English
EnglishOnly, ///< only English, no localized keywords
AllowEnglish ///< allow English keywords as well as localized keywords
};
explicit ImpSvNumberformatScan( SvNumberFormatter* pFormatter );
~ImpSvNumberformatScan();
void ChangeIntl(); // Replaces Keywords
void ChangeIntl( KeywordLocalization eKeywordLocalization = KeywordLocalization::AllowEnglish ); // Replaces Keywords
void ChangeNullDate(sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear); // Replaces reference date
void ChangeStandardPrec(sal_uInt16 nPrec); // Replaces standard precision
......@@ -210,6 +218,8 @@ private: // Private section
sal_uInt8 nNatNumModifier; // Thai T speciality
KeywordLocalization meKeywordLocalization; ///< which keywords localization to scan
// Copy assignment is forbidden and not implemented.
ImpSvNumberformatScan (const ImpSvNumberformatScan &) = delete;
ImpSvNumberformatScan & operator= (const ImpSvNumberformatScan &) = delete;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment