LibreOffice Module svl (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ImpSvNumberformatScan Class Reference

#include <zforscan.hxx>

Collaboration diagram for ImpSvNumberformatScan:
[legend]

Public Types

enum class  KeywordLocalization {
  LocaleLegacy ,
  EnglishOnly ,
  AllowEnglish
}
 Specify what keyword localization is allowed when scanning the format code. More...
 

Public Member Functions

 ImpSvNumberformatScan (SvNumberFormatter *pFormatter)
 
 ~ImpSvNumberformatScan ()
 
void ChangeIntl (KeywordLocalization eKeywordLocalization=KeywordLocalization::AllowEnglish)
 
void ChangeNullDate (sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear)
 
void ChangeStandardPrec (sal_uInt16 nPrec)
 
sal_Int32 ScanFormat (OUString &rString)
 
void CopyInfo (ImpSvNumberformatInfo *pInfo, sal_uInt16 nCnt)
 
sal_uInt16 GetResultStringsCnt () const
 
const CharClassGetChrCls () const
 
const LocaleDataWrapperGetLoc () const
 
CalendarWrapperGetCal () const
 
const NfKeywordTableGetKeywords () const
 
const OUString & GetSpecialKeyword (NfKeywordIndex eIdx) const
 
const OUString & GetTrueString () const
 
const OUString & GetFalseString () const
 
const OUString & GetRedString () const
 
const OUString & GetBooleanString () const
 
const DateGetNullDate () const
 
const OUString & GetStandardName () const
 
sal_uInt16 GetStandardPrec () const
 
const ColorGetColor (OUString &sStr) const
 
const OUString & GetCurSymbol () const
 
const OUString & GetCurAbbrev () const
 
const OUString & GetCurString () const
 
bool ReplaceBooleanEquivalent (OUString &rString)
 Replace Boolean equivalent format codes with proper Boolean format. More...
 
void SetConvertMode (LanguageType eTmpLge, LanguageType eNewLge, bool bSystemToSystem, bool bConvertDateOrder)
 
void SetConvertMode (bool bMode)
 
bool GetConvertMode () const
 
LanguageType GetNewLnge () const
 
LanguageType GetTmpLnge () const
 
void SetNewLnge (LanguageType e)
 
sal_uInt8 GetNatNumModifier () const
 get Thai T speciality More...
 
void SetNatNumModifier (sal_uInt8 n)
 set Thai T speciality More...
 
SvNumberFormatterGetNumberformatter ()
 
SvNumFormatType GetScannedType () const
 Get type scanned (so far). More...
 

Static Public Member Functions

static const NfKeywordTableGetEnglishKeywords ()
 
static const ::std::vector< Color > & GetStandardColors ()
 
static size_t GetMaxDefaultColors ()
 
static const ColorGetRedColor ()
 

Static Public Attributes

static constexpr OUStringLiteral sErrStr = u"#FMT"
 

Private Member Functions

 ImpSvNumberformatScan (const ImpSvNumberformatScan &)=delete
 
ImpSvNumberformatScanoperator= (const ImpSvNumberformatScan &)=delete
 
void InitKeywords () const
 
void InitSpecialKeyword (NfKeywordIndex eIdx) const
 
void InitCompatCur () const
 
void SetDependentKeywords ()
 
void SkipStrings (sal_uInt16 &i, sal_Int32 &nPos) const
 
sal_uInt16 PreviousKeyword (sal_uInt16 i) const
 
sal_uInt16 NextKeyword (sal_uInt16 i) const
 
sal_Unicode PreviousChar (sal_uInt16 i) const
 
sal_Unicode NextChar (sal_uInt16 i) const
 
short PreviousType (sal_uInt16 i) const
 
bool IsLastBlankBeforeFrac (sal_uInt16 i) const
 
void Reset ()
 
short GetKeyWord (const OUString &sSymbol, sal_Int32 nPos, bool &rbFoundEnglish) const
 Determine keyword at nPos. More...
 
bool IsAmbiguousE (short nKey) const
 
bool Is100SecZero (sal_uInt16 i, bool bHadDecSep) const
 
short Next_Symbol (const OUString &rStr, sal_Int32 &nPos, OUString &sSymbol) const
 
sal_Int32 Symbol_Division (const OUString &rString)
 
sal_Int32 ScanType ()
 
sal_Int32 FinalScan (OUString &rString)
 
int FinalScanGetCalendar (sal_Int32 &nPos, sal_uInt16 &i, sal_uInt16 &nResultStringsCnt)
 
bool InsertSymbol (sal_uInt16 &nPos, svt::NfSymbolType eType, const OUString &rStr)
 Insert symbol into nTypeArray and sStrArray, e.g. More...
 
bool IsDateFragment (size_t nPos1, size_t nPos2) const
 Whether two key symbols are adjacent separated by date separator. More...
 
void SwapArrayElements (size_t nPos1, size_t nPos2)
 Swap nTypeArray and sStrArray elements at positions. More...
 

Static Private Member Functions

static bool StringEqualsChar (std::u16string_view rStr, sal_Unicode ch)
 
static sal_Int32 RemoveQuotes (OUString &rStr)
 

Private Attributes

NfKeywordTable sKeyword
 
Date maNullDate
 
OUString sNameStandardFormat
 
sal_uInt16 nStandardPrec
 
SvNumberFormatterpFormatter
 
css::uno::Reference< css::i18n::XNumberFormatCode > xNFC
 
OUString sStrArray [NF_MAX_FORMAT_SYMBOLS]
 
short nTypeArray [NF_MAX_FORMAT_SYMBOLS]
 
sal_uInt16 nResultStringsCnt
 
SvNumFormatType eScannedType
 
bool bThousand
 
sal_uInt16 nThousand
 
sal_uInt16 nCntPre
 
sal_uInt16 nCntPost
 
sal_uInt16 nCntExp
 
sal_uInt16 nStringsCnt
 
sal_uInt16 nExpPos
 
sal_uInt16 nBlankPos
 
short nDecPos
 
bool bExp
 
bool bFrac
 
bool bBlank
 
bool bDecSep
 
bool bKeywordsNeedInit
 
bool bCompatCurNeedInit
 
OUString sCurSymbol
 
OUString sCurString
 
OUString sCurAbbrev
 
OUString sBooleanEquivalent1
 
OUString sBooleanEquivalent2
 
bool bConvertMode
 
bool mbConvertDateOrder
 
LanguageType eNewLnge
 
LanguageType eTmpLnge
 
bool bConvertSystemToSystem
 
sal_Int32 nCurrPos
 
sal_uInt8 nNatNumModifier
 
KeywordLocalization meKeywordLocalization
 which keywords localization to scan More...
 

Static Private Attributes

static const NfKeywordTable sEnglishKeyword
 
static const ::std::vector< ColorStandardColor
 

Detailed Description

Definition at line 41 of file zforscan.hxx.

Member Enumeration Documentation

◆ KeywordLocalization

Specify what keyword localization is allowed when scanning the format code.

Enumerator
LocaleLegacy 

unfortunately localized in few locales, otherwise English

EnglishOnly 

only English, no localized keywords

AllowEnglish 

allow English keywords as well as localized keywords

Definition at line 46 of file zforscan.hxx.

Constructor & Destructor Documentation

◆ ImpSvNumberformatScan() [1/2]

ImpSvNumberformatScan::ImpSvNumberformatScan ( SvNumberFormatter pFormatter)
explicit

◆ ~ImpSvNumberformatScan()

ImpSvNumberformatScan::~ImpSvNumberformatScan ( )

Definition at line 149 of file zforscan.cxx.

References Reset().

◆ ImpSvNumberformatScan() [2/2]

ImpSvNumberformatScan::ImpSvNumberformatScan ( const ImpSvNumberformatScan )
privatedelete

Member Function Documentation

◆ ChangeIntl()

void ImpSvNumberformatScan::ChangeIntl ( KeywordLocalization  eKeywordLocalization = KeywordLocalization::AllowEnglish)

◆ ChangeNullDate()

void ImpSvNumberformatScan::ChangeNullDate ( sal_uInt16  nDay,
sal_uInt16  nMonth,
sal_Int16  nYear 
)

◆ ChangeStandardPrec()

void ImpSvNumberformatScan::ChangeStandardPrec ( sal_uInt16  nPrec)

Definition at line 536 of file zforscan.cxx.

References nStandardPrec.

◆ CopyInfo()

void ImpSvNumberformatScan::CopyInfo ( ImpSvNumberformatInfo pInfo,
sal_uInt16  nCnt 
)

◆ FinalScan()

sal_Int32 ImpSvNumberformatScan::FinalScan ( OUString &  rString)
private

pointer may have changed

init new keywords

Definition at line 1731 of file zforscan.cxx.

References utl::DigitGroupingIterator::advance(), bBlank, bConvertMode, bConvertSystemToSystem, bDecSep, bExp, bFrac, bThousand, SvNumberFormatter::ChangeIntl(), cNarrowNoBreakSpace, cNoBreakSpace, CURRENCY, DATE, DATETIME, DBG_ASSERT, DEFINED, eNewLnge, eScannedType, FinalScanGetCalendar(), FLAG_STANDARD_IN_FORMAT, FRACTION, SvNumberFormatter::GetCharClass(), GetCurString(), GetCurSymbol(), LocaleDataWrapper::getDateOrder(), SvNumberFormatter::GetDateSep(), LocaleDataWrapper::getDigitGrouping(), GetKeyWord(), getLength(), SvNumberFormatter::GetLocaleData(), GetNatNumModifier(), SvNumberFormatter::GetNumDecimalSep(), SvNumberFormatter::GetNumThousandSep(), utl::DigitGroupingIterator::getPos(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeSep(), i, InitKeywords(), InsertSymbol(), Is100SecZero(), IsDateFragment(), IsLastBlankBeforeFrac(), MaxCntPost, mbConvertDateOrder, nBlankPos, nCntExp, nCntPost, nCntPre, nCount, nCurrPos, nDecPos, nExpPos, NextChar(), NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_AMPM, NF_KEY_AP, NF_KEY_CCC, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_E, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, NF_KEY_GENERAL, NF_KEY_GG, NF_KEY_GGG, NF_KEY_H, NF_KEY_HH, NF_KEY_M, NF_KEY_MI, NF_KEY_MM, NF_KEY_MMI, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_NN, NF_KEY_NNN, NF_KEY_NNNN, NF_KEY_Q, NF_KEY_QQ, NF_KEY_R, NF_KEY_RR, NF_KEY_S, NF_KEY_SS, NF_KEY_THAI_T, NF_KEY_WW, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRDEL, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_CURREXT, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_EMPTY, svt::NF_SYMBOLTYPE_EXP, svt::NF_SYMBOLTYPE_FRAC, svt::NF_SYMBOLTYPE_FRAC_FDIV, svt::NF_SYMBOLTYPE_FRACBLANK, svt::NF_SYMBOLTYPE_PERCENT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, nPos, nResultStringsCnt, nStringsCnt, nThousand, nTypeArray, NUMBER, PERCENT, pFormatter, PreviousChar(), PreviousType(), RemoveQuotes(), SAL_MAX_UINT16, SAL_WARN, SCIENTIFIC, SetNatNumModifier(), sKeyword, sNameStandardFormat, sStrArray, StringEqualsChar(), SwapArrayElements(), TEXT, TIME, and CharClass::uppercase().

Referenced by ScanFormat().

◆ FinalScanGetCalendar()

int ImpSvNumberformatScan::FinalScanGetCalendar ( sal_Int32 &  nPos,
sal_uInt16 &  i,
sal_uInt16 &  nResultStringsCnt 
)
private

◆ GetBooleanString()

const OUString & ImpSvNumberformatScan::GetBooleanString ( ) const
inline

Definition at line 96 of file zforscan.hxx.

References GetKeywords(), and NF_KEY_BOOLEAN.

◆ GetCal()

CalendarWrapper & ImpSvNumberformatScan::GetCal ( ) const
inline

Definition at line 68 of file zforscan.hxx.

References SvNumberFormatter::GetCalendar(), and pFormatter.

Referenced by SvNumberformat::GetCal().

◆ GetChrCls()

const CharClass & ImpSvNumberformatScan::GetChrCls ( ) const
inline

Definition at line 66 of file zforscan.hxx.

References SvNumberFormatter::GetCharClass(), and pFormatter.

Referenced by SvNumberformat::rChrCls().

◆ GetColor()

const Color * ImpSvNumberformatScan::GetColor ( OUString &  sStr) const

◆ GetConvertMode()

bool ImpSvNumberformatScan::GetConvertMode ( ) const
inline

Definition at line 163 of file zforscan.hxx.

References bConvertMode.

Referenced by SvNumberformat::SvNumberformat().

◆ GetCurAbbrev()

const OUString & ImpSvNumberformatScan::GetCurAbbrev ( ) const
inline

◆ GetCurString()

const OUString & ImpSvNumberformatScan::GetCurString ( ) const
inline

Definition at line 140 of file zforscan.hxx.

References bCompatCurNeedInit, InitCompatCur(), and sCurString.

Referenced by FinalScan(), and Symbol_Division().

◆ GetCurSymbol()

const OUString & ImpSvNumberformatScan::GetCurSymbol ( ) const
inline

Definition at line 120 of file zforscan.hxx.

References bCompatCurNeedInit, InitCompatCur(), and sCurSymbol.

Referenced by FinalScan().

◆ GetEnglishKeywords()

static const NfKeywordTable & ImpSvNumberformatScan::GetEnglishKeywords ( )
inlinestatic

Definition at line 79 of file zforscan.hxx.

References sEnglishKeyword.

Referenced by SvNumberFormatter::GetEnglishKeywords().

◆ GetFalseString()

const OUString & ImpSvNumberformatScan::GetFalseString ( ) const
inline

◆ GetKeyWord()

short ImpSvNumberformatScan::GetKeyWord ( const OUString &  sSymbol,
sal_Int32  nPos,
bool &  rbFoundEnglish 
) const
private

Determine keyword at nPos.

Parameters
rbFoundEnglishset if English instead of locale's keyword found, never cleared, thus init with false.
Returns
0 if not found, else keyword enumeration.

Definition at line 656 of file zforscan.cxx.

References AllowEnglish, bConvertMode, eNewLnge, eTmpLnge, SvNumberFormatter::GetCharClass(), GetKeywords(), MsLangId::getRealLanguage(), i, LANGUAGE_ENGLISH_US, LANGUAGE_THAI, meKeywordLocalization, NF_KEY_GENERAL, NF_KEY_LASTKEYWORD, NF_KEY_THAI_T, nPos, pFormatter, sEnglishKeyword, and CharClass::uppercase().

Referenced by FinalScan(), and Next_Symbol().

◆ GetKeywords()

const NfKeywordTable & ImpSvNumberformatScan::GetKeywords ( ) const
inline

◆ GetLoc()

const LocaleDataWrapper & ImpSvNumberformatScan::GetLoc ( ) const
inline

Definition at line 67 of file zforscan.hxx.

References SvNumberFormatter::GetLocaleData(), and pFormatter.

Referenced by SvNumberformat::rLoc().

◆ GetMaxDefaultColors()

static size_t ImpSvNumberformatScan::GetMaxDefaultColors ( )
inlinestatic

Definition at line 101 of file zforscan.hxx.

References NF_MAX_DEFAULT_COLORS.

Referenced by SvNumberFormatter::GetMaxDefaultColors().

◆ GetNatNumModifier()

sal_uInt8 ImpSvNumberformatScan::GetNatNumModifier ( ) const
inline

get Thai T speciality

Definition at line 169 of file zforscan.hxx.

References nNatNumModifier.

Referenced by FinalScan(), and SvNumberformat::SvNumberformat().

◆ GetNewLnge()

LanguageType ImpSvNumberformatScan::GetNewLnge ( ) const
inline

Definition at line 164 of file zforscan.hxx.

References eNewLnge.

Referenced by SvNumberformat::SvNumberformat().

◆ GetNullDate()

const Date & ImpSvNumberformatScan::GetNullDate ( ) const
inline

◆ GetNumberformatter()

SvNumberFormatter * ImpSvNumberformatScan::GetNumberformatter ( )
inline

Definition at line 173 of file zforscan.hxx.

References pFormatter.

Referenced by SvNumberformat::GetFormatter(), and SvNumberformat::SvNumberformat().

◆ GetRedColor()

static const Color & ImpSvNumberformatScan::GetRedColor ( )
inlinestatic

Definition at line 116 of file zforscan.hxx.

References StandardColor.

Referenced by SvNumberformat::GetFormatSpecialInfo().

◆ GetRedString()

const OUString & ImpSvNumberformatScan::GetRedString ( ) const
inline

Definition at line 95 of file zforscan.hxx.

References GetKeywords(), and NF_KEY_RED.

◆ GetResultStringsCnt()

sal_uInt16 ImpSvNumberformatScan::GetResultStringsCnt ( ) const
inline

Definition at line 64 of file zforscan.hxx.

References nResultStringsCnt.

Referenced by SvNumberformat::SvNumberformat().

◆ GetScannedType()

SvNumFormatType ImpSvNumberformatScan::GetScannedType ( ) const
inline

Get type scanned (so far).

Definition at line 176 of file zforscan.hxx.

References eScannedType.

Referenced by SvNumberformat::SvNumberformat().

◆ GetSpecialKeyword()

const OUString & ImpSvNumberformatScan::GetSpecialKeyword ( NfKeywordIndex  eIdx) const
inline

Definition at line 85 of file zforscan.hxx.

References InitSpecialKeyword(), and sKeyword.

Referenced by GetFalseString(), and GetTrueString().

◆ GetStandardColors()

static const ::std::vector< Color > & ImpSvNumberformatScan::GetStandardColors ( )
inlinestatic

Definition at line 97 of file zforscan.hxx.

References StandardColor.

Referenced by SvNumberFormatter::GetStandardColors().

◆ GetStandardName()

const OUString & ImpSvNumberformatScan::GetStandardName ( ) const
inline

Definition at line 107 of file zforscan.hxx.

References bKeywordsNeedInit, InitKeywords(), and sNameStandardFormat.

Referenced by SvNumberformat::SvNumberformat().

◆ GetStandardPrec()

sal_uInt16 ImpSvNumberformatScan::GetStandardPrec ( ) const
inline

◆ GetTmpLnge()

LanguageType ImpSvNumberformatScan::GetTmpLnge ( ) const
inline

Definition at line 165 of file zforscan.hxx.

References eTmpLnge.

Referenced by SvNumberformat::SvNumberformat().

◆ GetTrueString()

const OUString & ImpSvNumberformatScan::GetTrueString ( ) const
inline

◆ InitCompatCur()

void ImpSvNumberformatScan::InitCompatCur ( ) const
private

◆ InitKeywords()

void ImpSvNumberformatScan::InitKeywords ( ) const
private

◆ InitSpecialKeyword()

void ImpSvNumberformatScan::InitSpecialKeyword ( NfKeywordIndex  eIdx) const
private

◆ InsertSymbol()

bool ImpSvNumberformatScan::InsertSymbol ( sal_uInt16 &  nPos,
svt::NfSymbolType  eType,
const OUString &  rStr 
)
private

Insert symbol into nTypeArray and sStrArray, e.g.

grouping separator. If at nPos-1 a symbol type NF_SYMBOLTYPE_EMPTY is present, that is reused instead of shifting all one up and nPos is decremented!

Definition at line 1644 of file zforscan.cxx.

References eType, i, NF_MAX_FORMAT_SYMBOLS, svt::NF_SYMBOLTYPE_EMPTY, nPos, nResultStringsCnt, nStringsCnt, nTypeArray, and sStrArray.

Referenced by FinalScan().

◆ Is100SecZero()

bool ImpSvNumberformatScan::Is100SecZero ( sal_uInt16  i,
bool  bHadDecSep 
) const
private

Definition at line 1240 of file zforscan.cxx.

References i, NF_KEY_S, NF_KEY_SS, svt::NF_SYMBOLTYPE_STRING, nTypeArray, and PreviousKeyword().

Referenced by FinalScan(), and ScanType().

◆ IsAmbiguousE()

bool ImpSvNumberformatScan::IsAmbiguousE ( short  nKey) const
inlineprivate

Definition at line 262 of file zforscan.hxx.

References GetKeywords(), NF_KEY_E, and NF_KEY_EC.

Referenced by Next_Symbol().

◆ IsDateFragment()

bool ImpSvNumberformatScan::IsDateFragment ( size_t  nPos1,
size_t  nPos2 
) const
private

Whether two key symbols are adjacent separated by date separator.

This can only be used at the end of FinalScan() after NF_SYMBOLTYPE_DATESEP has already been set.

Definition at line 1720 of file zforscan.cxx.

References svt::NF_SYMBOLTYPE_DATESEP, and nTypeArray.

Referenced by FinalScan().

◆ IsLastBlankBeforeFrac()

bool ImpSvNumberformatScan::IsLastBlankBeforeFrac ( sal_uInt16  i) const
private

Definition at line 1186 of file zforscan.cxx.

References i, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_STRING, nStringsCnt, nTypeArray, and sStrArray.

Referenced by FinalScan().

◆ Next_Symbol()

short ImpSvNumberformatScan::Next_Symbol ( const OUString &  rStr,
sal_Int32 &  nPos,
OUString &  sSymbol 
) const
private

◆ NextChar()

sal_Unicode ImpSvNumberformatScan::NextChar ( sal_uInt16  i) const
private

◆ NextKeyword()

sal_uInt16 ImpSvNumberformatScan::NextKeyword ( sal_uInt16  i) const
private

Definition at line 1110 of file zforscan.cxx.

References i, nStringsCnt, and nTypeArray.

Referenced by ScanType().

◆ operator=()

ImpSvNumberformatScan & ImpSvNumberformatScan::operator= ( const ImpSvNumberformatScan )
privatedelete

◆ PreviousChar()

sal_Unicode ImpSvNumberformatScan::PreviousChar ( sal_uInt16  i) const
private

◆ PreviousKeyword()

sal_uInt16 ImpSvNumberformatScan::PreviousKeyword ( sal_uInt16  i) const
private

Definition at line 1092 of file zforscan.cxx.

References i, nStringsCnt, and nTypeArray.

Referenced by Is100SecZero(), and ScanType().

◆ PreviousType()

short ImpSvNumberformatScan::PreviousType ( sal_uInt16  i) const
private

Definition at line 1128 of file zforscan.cxx.

References i, svt::NF_SYMBOLTYPE_EMPTY, nStringsCnt, and nTypeArray.

Referenced by FinalScan().

◆ RemoveQuotes()

sal_Int32 ImpSvNumberformatScan::RemoveQuotes ( OUString &  rStr)
staticprivate

Definition at line 3261 of file zforscan.cxx.

References n.

Referenced by FinalScan().

◆ ReplaceBooleanEquivalent()

bool ImpSvNumberformatScan::ReplaceBooleanEquivalent ( OUString &  rString)

Replace Boolean equivalent format codes with proper Boolean format.

Definition at line 3318 of file zforscan.cxx.

References GetKeywords(), InitKeywords(), NF_KEY_BOOLEAN, sBooleanEquivalent1, and sBooleanEquivalent2.

Referenced by SvNumberformat::SvNumberformat().

◆ Reset()

void ImpSvNumberformatScan::Reset ( void  )
private

◆ ScanFormat()

sal_Int32 ImpSvNumberformatScan::ScanFormat ( OUString &  rString)

Definition at line 3281 of file zforscan.cxx.

References FinalScan(), ScanType(), and Symbol_Division().

Referenced by SvNumberformat::SvNumberformat().

◆ ScanType()

sal_Int32 ImpSvNumberformatScan::ScanType ( )
private

◆ SetConvertMode() [1/2]

void ImpSvNumberformatScan::SetConvertMode ( bool  bMode)
inline

Definition at line 162 of file zforscan.hxx.

References bConvertMode.

◆ SetConvertMode() [2/2]

void ImpSvNumberformatScan::SetConvertMode ( LanguageType  eTmpLge,
LanguageType  eNewLge,
bool  bSystemToSystem,
bool  bConvertDateOrder 
)
inline

Definition at line 152 of file zforscan.hxx.

References bConvertMode, bConvertSystemToSystem, eNewLnge, eTmpLnge, and mbConvertDateOrder.

◆ SetDependentKeywords()

void ImpSvNumberformatScan::SetDependentKeywords ( )
private

all capital letters

Definition at line 256 of file zforscan.cxx.

References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), EnglishOnly, GermanColorName(), SvNumberFormatter::GetCharClass(), LanguageTag::getLanguageType(), LocaleDataWrapper::getLoadedLanguageTag(), LanguageTag::getLocale(), SvNumberFormatter::GetLocaleData(), InitCompatCur(), InitSpecialKeyword(), LANGUAGE_DANISH, LANGUAGE_DUTCH, LANGUAGE_DUTCH_BELGIAN, LANGUAGE_FINNISH, LANGUAGE_FRENCH, LANGUAGE_FRENCH_BELGIAN, LANGUAGE_FRENCH_CANADIAN, LANGUAGE_FRENCH_LUXEMBOURG, LANGUAGE_FRENCH_MONACO, LANGUAGE_FRENCH_SWISS, LANGUAGE_GERMAN, LANGUAGE_GERMAN_AUSTRIAN, LANGUAGE_GERMAN_LIECHTENSTEIN, LANGUAGE_GERMAN_LUXEMBOURG, LANGUAGE_GERMAN_SWISS, LANGUAGE_ITALIAN, LANGUAGE_ITALIAN_SWISS, LANGUAGE_NORWEGIAN, LANGUAGE_NORWEGIAN_BOKMAL, LANGUAGE_NORWEGIAN_NYNORSK, LANGUAGE_PORTUGUESE, LANGUAGE_PORTUGUESE_BRAZILIAN, LANGUAGE_SPANISH_ARGENTINA, LANGUAGE_SPANISH_BOLIVIA, LANGUAGE_SPANISH_CHILE, LANGUAGE_SPANISH_COLOMBIA, LANGUAGE_SPANISH_COSTARICA, LANGUAGE_SPANISH_DATED, LANGUAGE_SPANISH_DOMINICAN_REPUBLIC, LANGUAGE_SPANISH_ECUADOR, LANGUAGE_SPANISH_EL_SALVADOR, LANGUAGE_SPANISH_GUATEMALA, LANGUAGE_SPANISH_HONDURAS, LANGUAGE_SPANISH_MEXICAN, LANGUAGE_SPANISH_MODERN, LANGUAGE_SPANISH_NICARAGUA, LANGUAGE_SPANISH_PANAMA, LANGUAGE_SPANISH_PARAGUAY, LANGUAGE_SPANISH_PERU, LANGUAGE_SPANISH_PUERTO_RICO, LANGUAGE_SPANISH_URUGUAY, LANGUAGE_SPANISH_VENEZUELA, LANGUAGE_SWEDISH, LANGUAGE_SWEDISH_FINLAND, LANGUAGE_THAI, lcl_extractStandardGeneralName(), meKeywordLocalization, NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_BLACK, NF_KEY_BLUE, NF_KEY_BOOLEAN, NF_KEY_BROWN, NF_KEY_COLOR, NF_KEY_CYAN, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_FALSE, NF_KEY_G, NF_KEY_GENERAL, NF_KEY_GG, NF_KEY_GGG, NF_KEY_GREEN, NF_KEY_GREY, NF_KEY_H, NF_KEY_HH, NF_KEY_M, NF_KEY_MAGENTA, NF_KEY_MM, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_RED, NF_KEY_THAI_T, NF_KEY_TRUE, NF_KEY_WHITE, NF_KEY_YELLOW, NF_KEY_YY, NF_KEY_YYYY, NF_NUMBER_STANDARD, pFormatter, sBooleanEquivalent1, sBooleanEquivalent2, sEnglishKeyword, sKeyword, sNameStandardFormat, CharClass::uppercase(), and xNFC.

Referenced by InitKeywords().

◆ SetNatNumModifier()

void ImpSvNumberformatScan::SetNatNumModifier ( sal_uInt8  n)
inline

set Thai T speciality

Definition at line 171 of file zforscan.hxx.

References n, and nNatNumModifier.

Referenced by FinalScan().

◆ SetNewLnge()

void ImpSvNumberformatScan::SetNewLnge ( LanguageType  e)
inline

Definition at line 166 of file zforscan.hxx.

References eNewLnge.

Referenced by SvNumberformat::SvNumberformat().

◆ SkipStrings()

void ImpSvNumberformatScan::SkipStrings ( sal_uInt16 &  i,
sal_Int32 &  nPos 
) const
private

◆ StringEqualsChar()

static bool ImpSvNumberformatScan::StringEqualsChar ( std::u16string_view  rStr,
sal_Unicode  ch 
)
inlinestaticprivate

Definition at line 295 of file zforscan.hxx.

References ch.

Referenced by FinalScan(), and Next_Symbol().

◆ SwapArrayElements()

void ImpSvNumberformatScan::SwapArrayElements ( size_t  nPos1,
size_t  nPos2 
)
private

Swap nTypeArray and sStrArray elements at positions.

Definition at line 1725 of file zforscan.cxx.

References nTypeArray, and sStrArray.

Referenced by FinalScan().

◆ Symbol_Division()

sal_Int32 ImpSvNumberformatScan::Symbol_Division ( const OUString &  rString)
private

Member Data Documentation

◆ bBlank

bool ImpSvNumberformatScan::bBlank
private

Definition at line 207 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ bCompatCurNeedInit

bool ImpSvNumberformatScan::bCompatCurNeedInit
mutableprivate

◆ bConvertMode

bool ImpSvNumberformatScan::bConvertMode
private

◆ bConvertSystemToSystem

bool ImpSvNumberformatScan::bConvertSystemToSystem
private

Definition at line 223 of file zforscan.hxx.

Referenced by FinalScan(), ImpSvNumberformatScan(), and SetConvertMode().

◆ bDecSep

bool ImpSvNumberformatScan::bDecSep
private

Definition at line 208 of file zforscan.hxx.

Referenced by FinalScan(), Reset(), and ScanType().

◆ bExp

bool ImpSvNumberformatScan::bExp
private

Definition at line 205 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ bFrac

bool ImpSvNumberformatScan::bFrac
private

Definition at line 206 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ bKeywordsNeedInit

bool ImpSvNumberformatScan::bKeywordsNeedInit
mutableprivate

◆ bThousand

bool ImpSvNumberformatScan::bThousand
private

Definition at line 195 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), and Reset().

◆ eNewLnge

LanguageType ImpSvNumberformatScan::eNewLnge
private

Definition at line 220 of file zforscan.hxx.

Referenced by FinalScan(), GetColor(), GetKeyWord(), GetNewLnge(), SetConvertMode(), and SetNewLnge().

◆ eScannedType

SvNumFormatType ImpSvNumberformatScan::eScannedType
private

Definition at line 194 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), GetScannedType(), Reset(), and ScanType().

◆ eTmpLnge

LanguageType ImpSvNumberformatScan::eTmpLnge
private

Definition at line 221 of file zforscan.hxx.

Referenced by GetColor(), GetKeyWord(), GetTmpLnge(), and SetConvertMode().

◆ maNullDate

Date ImpSvNumberformatScan::maNullDate
private

Definition at line 184 of file zforscan.hxx.

Referenced by ChangeNullDate(), and GetNullDate().

◆ mbConvertDateOrder

bool ImpSvNumberformatScan::mbConvertDateOrder
private

Definition at line 218 of file zforscan.hxx.

Referenced by FinalScan(), ImpSvNumberformatScan(), and SetConvertMode().

◆ meKeywordLocalization

KeywordLocalization ImpSvNumberformatScan::meKeywordLocalization
private

which keywords localization to scan

Definition at line 230 of file zforscan.hxx.

Referenced by ChangeIntl(), GetColor(), GetKeyWord(), and SetDependentKeywords().

◆ nBlankPos

sal_uInt16 ImpSvNumberformatScan::nBlankPos
private

Definition at line 203 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ nCntExp

sal_uInt16 ImpSvNumberformatScan::nCntExp
private

Definition at line 199 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), and Reset().

◆ nCntPost

sal_uInt16 ImpSvNumberformatScan::nCntPost
private

Definition at line 198 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), and Reset().

◆ nCntPre

sal_uInt16 ImpSvNumberformatScan::nCntPre
private

Definition at line 197 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), and Reset().

◆ nCurrPos

sal_Int32 ImpSvNumberformatScan::nCurrPos
private

Definition at line 226 of file zforscan.hxx.

Referenced by FinalScan(), Next_Symbol(), ScanType(), and Symbol_Division().

◆ nDecPos

short ImpSvNumberformatScan::nDecPos
private

Definition at line 204 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ nExpPos

sal_uInt16 ImpSvNumberformatScan::nExpPos
private

Definition at line 202 of file zforscan.hxx.

Referenced by FinalScan(), and Reset().

◆ nNatNumModifier

sal_uInt8 ImpSvNumberformatScan::nNatNumModifier
private

Definition at line 228 of file zforscan.hxx.

Referenced by GetNatNumModifier(), Reset(), and SetNatNumModifier().

◆ nResultStringsCnt

sal_uInt16 ImpSvNumberformatScan::nResultStringsCnt
private

Definition at line 193 of file zforscan.hxx.

Referenced by FinalScan(), GetResultStringsCnt(), InsertSymbol(), and Reset().

◆ nStandardPrec

sal_uInt16 ImpSvNumberformatScan::nStandardPrec
private

Definition at line 186 of file zforscan.hxx.

Referenced by ChangeStandardPrec(), GetStandardPrec(), and ImpSvNumberformatScan().

◆ nStringsCnt

sal_uInt16 ImpSvNumberformatScan::nStringsCnt
private

◆ nThousand

sal_uInt16 ImpSvNumberformatScan::nThousand
private

Definition at line 196 of file zforscan.hxx.

Referenced by CopyInfo(), FinalScan(), and Reset().

◆ nTypeArray

short ImpSvNumberformatScan::nTypeArray[NF_MAX_FORMAT_SYMBOLS]
private

◆ pFormatter

SvNumberFormatter* ImpSvNumberformatScan::pFormatter
private

◆ sBooleanEquivalent1

OUString ImpSvNumberformatScan::sBooleanEquivalent1
private

Definition at line 214 of file zforscan.hxx.

Referenced by ReplaceBooleanEquivalent(), and SetDependentKeywords().

◆ sBooleanEquivalent2

OUString ImpSvNumberformatScan::sBooleanEquivalent2
private

Definition at line 215 of file zforscan.hxx.

Referenced by ReplaceBooleanEquivalent(), and SetDependentKeywords().

◆ sCurAbbrev

OUString ImpSvNumberformatScan::sCurAbbrev
private

Definition at line 213 of file zforscan.hxx.

Referenced by GetCurAbbrev(), and InitCompatCur().

◆ sCurString

OUString ImpSvNumberformatScan::sCurString
private

Definition at line 212 of file zforscan.hxx.

Referenced by GetCurString(), InitCompatCur(), and Next_Symbol().

◆ sCurSymbol

OUString ImpSvNumberformatScan::sCurSymbol
private

Definition at line 211 of file zforscan.hxx.

Referenced by GetCurSymbol(), and InitCompatCur().

◆ sEnglishKeyword

const NfKeywordTable ImpSvNumberformatScan::sEnglishKeyword
staticprivate

◆ sErrStr

constexpr OUStringLiteral ImpSvNumberformatScan::sErrStr = u"#FMT"
staticconstexpr

◆ sKeyword

NfKeywordTable ImpSvNumberformatScan::sKeyword
private

◆ sNameStandardFormat

OUString ImpSvNumberformatScan::sNameStandardFormat
private

Definition at line 185 of file zforscan.hxx.

Referenced by FinalScan(), GetStandardName(), Next_Symbol(), and SetDependentKeywords().

◆ sStrArray

OUString ImpSvNumberformatScan::sStrArray[NF_MAX_FORMAT_SYMBOLS]
private

◆ StandardColor

const ::std::vector< Color > ImpSvNumberformatScan::StandardColor
staticprivate
Initial value:
{
}
constexpr ::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTCYAN(0x00, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTMAGENTA(0xFF, 0x00, 0xFF)
constexpr ::Color COL_BROWN(0x80, 0x80, 0x00)
constexpr ::Color COL_YELLOW(0xFF, 0xFF, 0x00)
constexpr ::Color COL_LIGHTBLUE(0x00, 0x00, 0xFF)
constexpr ::Color COL_LIGHTGREEN(0x00, 0xFF, 0x00)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)

Definition at line 183 of file zforscan.hxx.

Referenced by GetColor(), GetRedColor(), and GetStandardColors().

◆ xNFC

css::uno::Reference< css::i18n::XNumberFormatCode > ImpSvNumberformatScan::xNFC
private

Definition at line 188 of file zforscan.hxx.

Referenced by ImpSvNumberformatScan(), and SetDependentKeywords().


The documentation for this class was generated from the following files: