LibreOffice Module svl (master) 1
|
#include <zformat.hxx>
Classes | |
struct | FormatterPrivateAccess |
Read/write access on a special sal_uInt16 component, may only be used on the standard format 0, 10000, ... and only by the number formatter! More... | |
struct | LocaleType |
Public Member Functions | |
SvNumberformat (OUString &rString, ImpSvNumberformatScan *pSc, ImpSvNumberInputScan *pISc, sal_Int32 &nCheckPos, LanguageType &eLan, bool bReplaceBooleanEquivalent=true) | |
SvNumberformat (SvNumberformat const &rFormat) | |
SvNumberformat (SvNumberformat const &rFormat, ImpSvNumberformatScan &rSc) | |
~SvNumberformat () | |
SvNumFormatType | GetType () const |
Get type of format, may include css::util::NumberFormat::DEFINED bit. More... | |
SvNumFormatType | GetMaskedType () const |
Get type of format, does not include css::util::NumberFormat::DEFINED. More... | |
void | SetType (SvNumFormatType eSetType) |
void | SetStandard () |
bool | IsStandard () const |
void | SetAdditionalBuiltin () |
bool | IsAdditionalBuiltin () const |
LanguageType | GetLanguage () const |
bool | IsSubstituted () const |
If the format is a placeholder and needs to be substituted. More... | |
bool | IsSystemTimeFormat () const |
If the format is a placeholder for the system time format and needs to be substituted during formatting time. More... | |
bool | IsSystemLongDateFormat () const |
If the format is a placeholder for the system long date format and needs to be substituted during formatting time. More... | |
bool | IsMinuteSecondFormat () const |
If the format is a MM:SS or [MM]:SS format, or MM:[SS] (sic!) or even MM:SS.00 or [MM]:SS.00 or MM:[SS].00. More... | |
const OUString & | GetFormatstring () const |
OUString | GetMappedFormatstring (const NfKeywordTable &rKeywords, const LocaleDataWrapper &rLoc, LanguageType nOriginalLang=LANGUAGE_DONTKNOW, bool bSystemLanguage=false) const |
void | SetStarFormatSupport (bool b) |
bool | GetOutputString (double fNumber, sal_uInt16 nCharCount, OUString &rOutString) const |
Get output string from a numeric value that fits the number of characters specified. More... | |
bool | GetOutputString (double fNumber, OUString &OutString, const Color **ppColor) |
void | GetOutputString (std::u16string_view sString, OUString &OutString, const Color **ppColor) |
bool | IsTextFormat () const |
bool | HasTextFormat () const |
void | GetFormatSpecialInfo (bool &bThousand, bool &IsRed, sal_uInt16 &nPrecision, sal_uInt16 &nLeadingCnt) const |
sal_uInt16 | GetSubformatIndex (double fNumber) const |
Get index of subformat (0..3) according to conditions and fNumber value. More... | |
sal_uInt16 | GetFormatPrecision (sal_uInt16 nIx=0) const |
Count of decimal precision. More... | |
sal_uInt16 | GetFormatIntegerDigits (sal_uInt16 nIx=0) const |
Count of integer digits. More... | |
sal_uInt16 | GetThousandDivisorPrecision (sal_uInt16 nIx=0) const |
Count of hidden integer digits with thousands divisor: formats like "0," to show only thousands. More... | |
sal_uInt16 | GetLastInsertKey (const FormatterPrivateAccess &) const |
void | SetLastInsertKey (sal_uInt16 nKey, const FormatterPrivateAccess &) |
void | ConvertLanguage (SvNumberFormatter &rConverter, LanguageType eConvertFrom, LanguageType eConvertTo) |
Only onLoad: convert from stored to current system language/country. More... | |
const OUString * | GetNumForString (sal_uInt16 nNumFor, sal_uInt16 nPos, bool bString=false) const |
short | GetNumForType (sal_uInt16 nNumFor, sal_uInt16 nPos) const |
OUString | GetPercentString (sal_uInt16 nNumFor=0) const |
OUString | GetDenominatorString (sal_uInt16 nNumFor) const |
OUString | GetNumeratorString (sal_uInt16 nNumFor) const |
OUString | GetIntegerFractionDelimiterString (sal_uInt16 nNumFor) const |
double | GetRoundFractionValue (double fNumber) const |
Round fNumber to its fraction representation. More... | |
OUString | GetFormatStringForTimePrecision (int nPrecision) const |
Create a format string for time with a new precision. More... | |
bool | IsNumForStringElementCountEqual (sal_uInt16 nNumFor, sal_uInt16 nAllCount, sal_uInt16 nNumCount) const |
If the count of string elements (substrings, ignoring [modifiers] and so on) in a subformat code nNumFor (0..3) is equal to the given number. More... | |
sal_uInt16 | GetNumForNumberElementCount (sal_uInt16 nNumFor) const |
Get the count of numbers among string elements. More... | |
SvNumFormatType | GetNumForInfoScannedType (sal_uInt16 nNumFor) const |
Get the scanned type of the specified subformat. More... | |
bool | IsSecondSubformatRealNegative () const |
bool | IsFirstSubformatRealNegative () const |
bool | IsNegativeWithoutSign () const |
bool | IsNegativeInBracket () const |
bool | HasPositiveBracketPlaceholder () const |
bool | HasNewCurrency () const |
bool | GetNewCurrencySymbol (OUString &rSymbol, OUString &rExtension) const |
void | SetComment (const OUString &rStr) |
const OUString & | GetComment () const |
DateOrder | GetDateOrder () const |
One of YMD,DMY,MDY if date format. More... | |
sal_uInt32 | GetExactDateOrder () const |
A coded value of the exact YMD combination used, if date format. More... | |
void | GetConditions (SvNumberformatLimitOps &rOper1, double &rVal1, SvNumberformatLimitOps &rOper2, double &rVal2) const |
const Color * | GetColor (sal_uInt16 nNumFor) const |
void | GetNumForInfo (sal_uInt16 nNumFor, SvNumFormatType &rScannedType, bool &bThousand, sal_uInt16 &nPrecision, sal_uInt16 &nLeadingCnt) const |
void | GetNatNumXml (css::i18n::NativeNumberXmlAttributes2 &rAttr, sal_uInt16 nNumFor) const |
OUString | GetNatNumModifierString (sal_uInt16 nNumFor=0) const |
Return empty string if no NatNum modifier or invalid nNumFor otherwise return "[NatNum1]" or "[NatNum12 ...]". More... | |
void | SwitchToOtherCalendar (OUString &rOrgCalendar, double &fOrgDateTime) const |
Switches to the first non-"gregorian" calendar, but only if the current calendar is "gregorian"; original calendar name and date/time returned, but only if calendar switched and rOrgCalendar was empty. More... | |
void | SwitchToGregorianCalendar (std::u16string_view rOrgCalendar, double fOrgDateTime) const |
Switches to the "gregorian" calendar, but only if the current calendar is non-"gregorian" and rOrgCalendar is not empty. More... | |
bool | IsIso8601 (sal_uInt16 nNumFor) const |
Whether it's a (YY)YY-M(M)-D(D) format. More... | |
Static Public Member Functions | |
static OUString | StripNewCurrencyDelimiters (const OUString &rStr) |
static bool | HasStringNegativeSign (const OUString &rStr) |
static bool | IsInQuote (const OUString &rString, sal_Int32 nPos, sal_Unicode cQuote='"', sal_Unicode cEscIn = '\0', sal_Unicode cEscOut = '\\' ) |
Whether a character at position nPos is somewhere between two matching cQuote or not. More... | |
static sal_Int32 | GetQuoteEnd (const OUString &rString, sal_Int32 nPos, sal_Unicode cQuote='"', sal_Unicode cEscIn = '\0' ) |
Return the position of a matching closing cQuote if the character at position nPos is between two matching cQuote, otherwise return -1. More... | |
static sal_Int32 | InsertBlanks (OUString &r, sal_Int32 nPos, sal_Unicode c) |
Insert the number of blanks into the string that is needed to simulate the width of character c for underscore formats. More... | |
static sal_Int32 | InsertBlanks (OUStringBuffer &r, sal_Int32 nPos, sal_Unicode c) |
Insert the number of blanks into the string that is needed to simulate the width of character c for underscore formats. More... | |
Private Member Functions | |
SVL_DLLPRIVATE sal_uInt16 | ImpGetNumForStringElementCount (sal_uInt16 nNumFor) const |
SVL_DLLPRIVATE bool | ImpIsOtherCalendar (const ImpSvNumFor &rNumFor) const |
SVL_DLLPRIVATE bool | ImpIsIso8601 (const ImpSvNumFor &rNumFor) const |
Whether it's a (YY)YY-M(M)-D(D) format. More... | |
const CharClass & | rChrCls () const |
const LocaleDataWrapper & | rLoc () const |
CalendarWrapper & | GetCal () const |
const SvNumberFormatter & | GetFormatter () const |
SVL_DLLPRIVATE short | ImpNextSymbol (OUStringBuffer &rString, sal_Int32 &nPos, OUString &sSymbol) const |
SVL_DLLPRIVATE OUString | ImpObtainCalendarAndNumerals (OUStringBuffer &rString, sal_Int32 nPos, LanguageType &nLang, const LocaleType &aTmpLocale) |
Obtain calendar and numerals from a LocaleType that was parsed from a LCID with ImpGetLocaleType(). More... | |
SVL_DLLPRIVATE void | ImpGetOutputStandard (double &fNumber, OUString &OutString) const |
SVL_DLLPRIVATE void | ImpGetOutputStandard (double &fNumber, OUStringBuffer &OutString) const |
SVL_DLLPRIVATE void | ImpGetOutputStdToPrecision (double &rNumber, OUString &rOutString, sal_uInt16 nPrecision) const |
SVL_DLLPRIVATE void | ImpGetOutputInputLine (double fNumber, OUString &OutString) const |
SVL_DLLPRIVATE bool | ImpNumberFill (OUStringBuffer &sStr, double &rNumber, sal_Int32 &k, sal_uInt16 &j, sal_uInt16 nIx, short eSymbolType, bool bInsertRightBlank=false) |
SVL_DLLPRIVATE bool | ImpNumberFillWithThousands (OUStringBuffer &sStr, double &rNumber, sal_Int32 k, sal_uInt16 j, sal_uInt16 nIx, sal_Int32 nDigCnt, bool bAddDecSep=true) |
SVL_DLLPRIVATE void | ImpDigitFill (OUStringBuffer &sStr, sal_Int32 nStart, sal_Int32 &k, sal_uInt16 nIx, sal_Int32 &nDigitCount, utl::DigitGroupingIterator &) |
SVL_DLLPRIVATE bool | ImpDecimalFill (OUStringBuffer &sStr, double &rNumber, sal_Int32 nDecPos, sal_uInt16 j, sal_uInt16 nIx, bool bInteger) |
SVL_DLLPRIVATE void | ImpGetFractionElements (double &fNumber, sal_uInt16 nIx, double &fIntPart, sal_Int64 &nFrac, sal_Int64 &nDiv) const |
Calculate each element of fraction: integer part, numerator part, denominator part. More... | |
SVL_DLLPRIVATE bool | ImpGetFractionOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpGetScientificOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpGetDateOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpGetTimeOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpGetDateTimeOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpFallBackToGregorianCalendar (OUString &rOrgCalendar, double &fOrgDateTime) |
SVL_DLLPRIVATE bool | ImpGetLogicalOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE bool | ImpGetNumberOutput (double fNumber, sal_uInt16 nIx, OUStringBuffer &OutString) |
SVL_DLLPRIVATE void | ImpCopyNumberformat (const SvNumberformat &rFormat) |
SVL_DLLPRIVATE OUString | ImpGetNatNumString (const SvNumberNatNum &rNum, sal_Int64 nVal, sal_uInt16 nMinDigits) const |
OUString | ImpIntToString (sal_uInt16 nIx, sal_Int64 nVal, sal_uInt16 nMinDigits=0) const |
SVL_DLLPRIVATE sal_uInt16 | ImpGetFractionOfSecondString (OUStringBuffer &rBuf, double fFractionOfSecond, int nFractionDecimals, bool bAddOneRoundingDecimal, sal_uInt16 nIx, sal_uInt16 nMinimumInputLineDecimals) |
SVL_DLLPRIVATE OUString | impTransliterateImpl (const OUString &rStr, const SvNumberNatNum &rNum) const |
SVL_DLLPRIVATE void | impTransliterateImpl (OUStringBuffer &rStr, const SvNumberNatNum &rNum) const |
SVL_DLLPRIVATE OUString | impTransliterateImpl (const OUString &rStr, const SvNumberNatNum &rNum, sal_uInt16 nDateKey) const |
OUString | impTransliterate (const OUString &rStr, const SvNumberNatNum &rNum) const |
SVL_DLLPRIVATE void | impTransliterate (OUStringBuffer &rStr, const SvNumberNatNum &rNum) const |
OUString | impTransliterate (const OUString &rStr, const SvNumberNatNum &rNum, sal_uInt16 nDateKey) const |
Static Private Member Functions | |
static SVL_DLLPRIVATE sal_Int32 | ImpUseMonthCase (int &io_nState, const ImpSvNumFor &rNumFor, NfKeywordIndex eCodeType) |
Whether to use possessive genitive case month name, or partitive case month name, instead of nominative name (noun). More... | |
static SVL_DLLPRIVATE sal_Int32 | ImpGetNumber (OUStringBuffer &rString, sal_Int32 &nPos, OUString &sSymbol) |
static SVL_DLLPRIVATE LocaleType | ImpGetLocaleType (std::u16string_view rString, sal_Int32 &nPos) |
Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the locale type from it. More... | |
static SVL_DLLPRIVATE short | ImpCheckCondition (double fNumber, double fLimit, SvNumberformatLimitOps eOp) |
static SVL_DLLPRIVATE void | ImpAppendEraG (OUStringBuffer &OutStringBuffer, const CalendarWrapper &rCal, sal_Int16 nNatNum) |
Private Attributes | |
ImpSvNumFor | NumFor [4] |
OUString | sFormatstring |
OUString | sComment |
double | fLimit1 |
double | fLimit2 |
ImpSvNumberformatScan & | rScan |
LocaleType | maLocale |
SvNumberformatLimitOps | eOp1 |
SvNumberformatLimitOps | eOp2 |
SvNumFormatType | eType |
bool | bAdditionalBuiltin |
bool | bStarFlag |
bool | bStandard |
bool | bIsUsed |
Definition at line 144 of file zformat.hxx.
SvNumberformat::SvNumberformat | ( | OUString & | rString, |
ImpSvNumberformatScan * | pSc, | ||
ImpSvNumberInputScan * | pISc, | ||
sal_Int32 & | nCheckPos, | ||
LanguageType & | eLan, | ||
bool | bReplaceBooleanEquivalent = true |
||
) |
eSymbolType is negative
eSymbolType is negative
Definition at line 750 of file zformat.cxx.
References aStr, bIsUsed, bStandard, SvNumberFormatter::ChangeIntl(), ImpSvNumberformatScan::CopyInfo(), CURRENCY, DATE, DEFINED, EMPTY, ImpSvNumFor::Enlarge(), eOp1, eOp2, ImpSvNumberformatInfo::eScannedType, eType, fLimit1, fLimit2, SvNumberformat::LocaleType::generateCode(), ImpSvNumberformatScan::GetColor(), GetColor(), ImpSvNumberformatScan::GetConvertMode(), ImpSvNumFor::GetCount(), GetFormatter(), SvNumberFormatter::GetLangDecimalSep(), ImpSvNumFor::GetNatNum(), ImpSvNumberformatScan::GetNatNumModifier(), ImpSvNumberformatScan::GetNewLnge(), ImpSvNumberformatScan::GetNumberformatter(), SvNumberFormatter::GetNumDecimalSep(), SvNumberFormatter::GetNumThousandSep(), MsLangId::getRealLanguage(), ImpSvNumberformatScan::GetResultStringsCnt(), ImpSvNumberformatScan::GetScannedType(), ImpSvNumberformatScan::GetStandardName(), ImpSvNumberformatScan::GetTmpLnge(), ImpGetLocaleType(), ImpGetNumber(), ImpNextSymbol(), ImpObtainCalendarAndNumerals(), Info, ImpSvNumFor::Info(), SvNumberFormatter::IsLocaleInstalled(), ImpSvNumberInputScan::IsNumberFormat(), SvNumberformat::LocaleType::isPlainLocale(), SvNumberNatNum::IsSet(), IsSubstituted(), IsSystemLongDateFormat(), IsSystemTimeFormat(), LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, LANGUAGE_THAI, lcl_isNatNum12Currency(), lcl_SvNumberformat_IsBracketedPrefix(), maLocale, SvNumberformat::LocaleType::meLanguage, SvNumberformat::LocaleType::meLanguageWithoutLocaleData, NF_KEY_GENERAL, nIndex, NONE, nPos, ImpSvNumberformatInfo::nTypeArray, NUMBER, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LT, NUMBERFORMAT_OP_NO, NumFor, ImpSvNumberformatScan::ReplaceBooleanEquivalent(), rLoc(), rScan, ImpSvNumberformatScan::ScanFormat(), SCIENTIFIC, ImpSvNumFor::SetColor(), ImpSvNumFor::SetNatNumDate(), ImpSvNumFor::SetNatNumLang(), ImpSvNumFor::SetNatNumNum(), ImpSvNumFor::SetNatNumParams(), ImpSvNumberformatScan::SetNewLnge(), sFormatstring, TEXT, TIME, o3tl::trim(), and UNDEFINED.
SvNumberformat::SvNumberformat | ( | SvNumberformat const & | rFormat | ) |
Definition at line 364 of file zformat.cxx.
References ImpCopyNumberformat().
SvNumberformat::SvNumberformat | ( | SvNumberformat const & | rFormat, |
ImpSvNumberformatScan & | rSc | ||
) |
Definition at line 370 of file zformat.cxx.
References ImpCopyNumberformat().
SvNumberformat::~SvNumberformat | ( | ) |
Definition at line 1371 of file zformat.cxx.
void SvNumberformat::ConvertLanguage | ( | SvNumberFormatter & | rConverter, |
LanguageType | eConvertFrom, | ||
LanguageType | eConvertTo | ||
) |
Only onLoad: convert from stored to current system language/country.
Definition at line 1939 of file zformat.cxx.
References DBG_ASSERT, eType, ImpSvNumberformatScan::GetColor(), SvNumberFormatter::GetEntry(), ImpCopyNumberformat(), nType, NumFor, SvNumberFormatter::PutandConvertEntry(), rScan, and sFormatstring.
|
private |
Definition at line 6071 of file zformat.cxx.
References ImpSvNumberformatScan::GetCal(), and rScan.
Referenced by ImpFallBackToGregorianCalendar(), ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetTimeOutput(), ImpIsOtherCalendar(), SwitchToGregorianCalendar(), and SwitchToOtherCalendar().
const Color * SvNumberformat::GetColor | ( | sal_uInt16 | nNumFor | ) | const |
Definition at line 5156 of file zformat.cxx.
References ImpSvNumFor::GetColor(), and NumFor.
Referenced by SvNumberFormatter::GetCalcCellReturn(), and SvNumberformat().
|
inline |
Definition at line 424 of file zformat.hxx.
Referenced by SvNumberFormatObj::getPropertyValue(), and SvNumberFormatObj::getPropertyValues().
void SvNumberformat::GetConditions | ( | SvNumberformatLimitOps & | rOper1, |
double & | rVal1, | ||
SvNumberformatLimitOps & | rOper2, | ||
double & | rVal2 | ||
) | const |
DateOrder SvNumberformat::GetDateOrder | ( | ) | const |
One of YMD,DMY,MDY if date format.
Definition at line 5069 of file zformat.cxx.
References DATE, eType, ImpSvNumFor::GetCount(), LocaleDataWrapper::getDateOrder(), ImpSvNumFor::Info(), NF_KEY_D, NF_KEY_DD, NF_KEY_EC, NF_KEY_EEC, NF_KEY_M, NF_KEY_MM, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_R, NF_KEY_RR, NF_KEY_YY, NF_KEY_YYYY, ImpSvNumberformatInfo::nTypeArray, NumFor, rLoc(), and SAL_WARN.
Referenced by ImpSvNumberInputScan::GetDateOrder(), ImpSvNumberInputScan::GetDateRef(), and ImpSvNumberInputScan::IsAcceptableIso8601().
OUString SvNumberformat::GetDenominatorString | ( | sal_uInt16 | nNumFor | ) | const |
Definition at line 2381 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), and NumFor.
Referenced by GetNumForInfo().
sal_uInt32 SvNumberformat::GetExactDateOrder | ( | ) | const |
A coded value of the exact YMD combination used, if date format.
For example: YYYY-MM-DD => ('Y' << 16) | ('M' << 8) | 'D' or: MM/YY => ('M' << 8) | 'Y'
Definition at line 5105 of file zformat.cxx.
References DATE, eType, ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), NF_KEY_D, NF_KEY_DD, NF_KEY_EC, NF_KEY_EEC, NF_KEY_M, NF_KEY_MM, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_R, NF_KEY_RR, NF_KEY_YY, NF_KEY_YYYY, ImpSvNumberformatInfo::nTypeArray, NumFor, and SAL_WARN.
Referenced by ImpSvNumberInputScan::GetDateRef(), ImpSvNumberInputScan::GetMiddleMonthLongDateOrder(), and ImpSvNumberInputScan::ScanMidString().
|
inline |
Count of integer digits.
Definition at line 271 of file zformat.hxx.
Referenced by SvNumberFormatter::GetFormatIntegerDigits().
|
inline |
Count of decimal precision.
Definition at line 267 of file zformat.hxx.
Referenced by SvNumberFormatter::GetFormatPrecision(), and SvNumberFormatter::GetInputLineString().
void SvNumberformat::GetFormatSpecialInfo | ( | bool & | bThousand, |
bool & | IsRed, | ||
sal_uInt16 & | nPrecision, | ||
sal_uInt16 & | nLeadingCnt | ||
) | const |
Definition at line 4889 of file zformat.cxx.
References fLimit1, fLimit2, ImpSvNumFor::GetColor(), GetNumForInfo(), ImpSvNumberformatScan::GetRedColor(), and NumFor.
Referenced by SvNumberFormatter::GetCalcCellReturn(), SvNumberFormatter::GetFormatSpecialInfo(), SvNumberFormatObj::getPropertyValue(), and SvNumberFormatObj::getPropertyValues().
|
inline |
Definition at line 230 of file zformat.hxx.
Referenced by SvNumberFormatter::GenerateFormat(), SvNumberFormatter::GetCalcCellReturn(), SvNumberFormatter::GetPreviewString(), SvNumberFormatter::GetPreviewStringGuess(), SvNumberFormatObj::getPropertyValue(), SvNumberFormatObj::getPropertyValues(), and SvNumberFormatter::TestNewString().
OUString SvNumberformat::GetFormatStringForTimePrecision | ( | int | nPrecision | ) | const |
Create a format string for time with a new precision.
Definition at line 6002 of file zformat.cxx.
References ImpSvNumFor::GetCount(), Info, ImpSvNumFor::Info(), NF_KEY_S, NF_KEY_SS, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, ImpSvNumberformatInfo::nTypeArray, NumFor, padToLength(), comphelper::string::padToLength(), and rLoc().
Referenced by SvNumberFormatter::GenerateFormat().
|
private |
Definition at line 6076 of file zformat.cxx.
References ImpSvNumberformatScan::GetNumberformatter(), and rScan.
Referenced by GetNatNumXml(), GetOutputString(), ImpDigitFill(), ImpGetOutputInputLine(), ImpGetOutputStandard(), ImpGetOutputStdToPrecision(), ImpNumberFillWithThousands(), impTransliterateImpl(), and SvNumberformat().
OUString SvNumberformat::GetIntegerFractionDelimiterString | ( | sal_uInt16 | nNumFor | ) | const |
Definition at line 2395 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), and NumFor.
Referenced by SvNumberFormatter::GenerateFormat().
|
inline |
Definition at line 201 of file zformat.hxx.
Referenced by ImpSvNumberInputScan::GetCurrency(), SvNumberFormatter::GetEditFormat(), SvNumberFormatter::GetEntryTable(), SvNumberFormatter::GetFirstEntryTable(), SvNumberFormatter::GetFormatDecimalSep(), SvNumberFormatter::GetInputLineString(), SvNumberFormatter::GetKeywords(), SvNumberFormatter::GetNewCurrencySymbolString(), SvNumberFormatter::GetOutputString(), SvNumberFormatObj::getPropertyValue(), SvNumberFormatObj::getPropertyValues(), SvNumberFormatter::GetUsedLanguages(), SvNumberFormatter::ImpGetCLOffset(), ImpSvNumberInputScan::IsAcceptedDatePattern(), SvNumberFormatter::IsNumberFormat(), and SvNumberFormatter::MergeFormatter().
|
inline |
Definition at line 288 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpGenerateAdditionalFormats(), SvNumberFormatter::MergeFormatter(), and SvNumberFormatter::PutEntry().
OUString SvNumberformat::GetMappedFormatstring | ( | const NfKeywordTable & | rKeywords, |
const LocaleDataWrapper & | rLoc, | ||
LanguageType | nOriginalLang = LANGUAGE_DONTKNOW , |
||
bool | bSystemLanguage = false |
||
) | const |
Definition at line 5235 of file zformat.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), aStr, eOp1, eOp2, fLimit1, fLimit2, SvNumberformat::LocaleType::generateCode(), ImpSvNumFor::GetColorName(), ImpSvNumFor::GetCount(), LocaleDataWrapper::getDateSep(), SvNumberNatNum::GetDBNum(), ImpSvNumberformatScan::GetKeywords(), SvNumberNatNum::GetLang(), getLength(), LocaleDataWrapper::getLongDateDayOfWeekSep(), SvNumberNatNum::GetNatNum(), ImpSvNumFor::GetNatNum(), LocaleDataWrapper::getNumDecimalSep(), LocaleDataWrapper::getNumThousandSep(), MsLangId::getRealLanguage(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeSep(), i, Info, ImpSvNumFor::Info(), SvNumberNatNum::IsComplete(), LANGUAGE_ARABIC_PRIMARY_ONLY, LANGUAGE_BENGALI, LANGUAGE_BURMESE, LANGUAGE_CHINESE, LANGUAGE_CHINESE_HONGKONG, LANGUAGE_CHINESE_MACAU, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_DONTKNOW, LANGUAGE_ENGLISH_US, LANGUAGE_FARSI, LANGUAGE_GUJARATI, LANGUAGE_HINDI, LANGUAGE_JAPANESE, LANGUAGE_KANNADA, LANGUAGE_KHMER, LANGUAGE_KOREAN, LANGUAGE_LAO, LANGUAGE_MALAYALAM, LANGUAGE_MARATHI, LANGUAGE_MONGOLIAN_CYRILLIC_LSO, LANGUAGE_MONGOLIAN_CYRILLIC_MONGOLIA, LANGUAGE_MONGOLIAN_MONGOLIAN_MONGOLIA, LANGUAGE_NEPALI, LANGUAGE_ODIA, LANGUAGE_PUNJABI, LANGUAGE_PUNJABI_ARABIC_LSO, LANGUAGE_SYSTEM, LANGUAGE_TAMIL, LANGUAGE_TELUGU, LANGUAGE_THAI, LANGUAGE_TIBETAN, LANGUAGE_TIGRIGNA_ETHIOPIA, lcl_incrementAlphabetWithNatNum(), lcl_insertLCID(), lcl_SvNumberformat_AddLimitStringImpl(), maLocale, SvNumberformat::LocaleType::meLanguageWithoutLocaleData, SvNumberformat::LocaleType::meSubstitute, n, NF_KEY_E, NF_KEY_EC, NF_KEY_EEC, NF_KEY_FIRSTCOLOR, NF_KEY_LASTCOLOR, NF_KEY_NNNN, NF_KEY_R, NF_KEY_RR, NF_KEY_THAI_T, NF_KEYWORD_ENTRIES_COUNT, svt::NF_SYMBOLTYPE_CALDEL, svt::NF_SYMBOLTYPE_CURREXT, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_EXP, svt::NF_SYMBOLTYPE_FRACBLANK, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, SvNumberformat::LocaleType::NONE, ImpSvNumberformatInfo::nTypeArray, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LT, NUMBERFORMAT_OP_NO, NumFor, primary(), rScan, SvNumberNatNum::SetLang(), ImpSvNumberformatInfo::sStrArray, and UNDEFINED.
|
inline |
Get type of format, does not include css::util::NumberFormat::DEFINED.
Definition at line 190 of file zformat.hxx.
References DEFINED, and eType.
Referenced by SvNumberFormatter::GenerateFormat(), SvNumberFormatter::GetCalcCellReturn(), SvNumberFormatter::GetFirstEntryTable(), SvNumberFormatter::GetInputLineString(), SvNumberFormatter::GetType(), SvNumberFormatter::ImpGetDefaultFormat(), IsMinuteSecondFormat(), and SvNumberFormatter::IsNumberFormat().
OUString SvNumberformat::GetNatNumModifierString | ( | sal_uInt16 | nNumFor = 0 | ) | const |
Return empty string if no NatNum modifier or invalid nNumFor otherwise return "[NatNum1]" or "[NatNum12 ...]".
Definition at line 5762 of file zformat.cxx.
References SvNumberNatNum::GetNatNum(), ImpSvNumFor::GetNatNum(), SvNumberNatNum::GetParams(), SvNumberNatNum::IsSet(), and NumFor.
Referenced by SvNumberFormatter::GenerateFormat(), and SvNumberFormatter::IsNatNum12().
void SvNumberformat::GetNatNumXml | ( | css::i18n::NativeNumberXmlAttributes2 & | rAttr, |
sal_uInt16 | nNumFor | ||
) | const |
Definition at line 5717 of file zformat.cxx.
References GetFormatter(), SvNumberNatNum::GetLang(), LanguageTag::getLocale(), SvNumberNatNum::GetNatNum(), ImpSvNumFor::GetNatNum(), SvNumberNatNum::GetParams(), SvNumberNatNum::IsSet(), and NumFor.
bool SvNumberformat::GetNewCurrencySymbol | ( | OUString & | rSymbol, |
OUString & | rExtension | ||
) | const |
Definition at line 1977 of file zformat.cxx.
References NumFor.
Referenced by ImpSvNumberInputScan::GetCurrency(), SvNumberFormatter::GetNewCurrencySymbolString(), SvNumberFormatObj::getPropertyValue(), and SvNumberFormatObj::getPropertyValues().
OUString SvNumberformat::GetNumeratorString | ( | sal_uInt16 | nNumFor | ) | const |
Definition at line 2388 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), and NumFor.
Referenced by SvNumberFormatter::GenerateFormat().
void SvNumberformat::GetNumForInfo | ( | sal_uInt16 | nNumFor, |
SvNumFormatType & | rScannedType, | ||
bool & | bThousand, | ||
sal_uInt16 & | nPrecision, | ||
sal_uInt16 & | nLeadingCnt | ||
) | const |
Definition at line 4906 of file zformat.cxx.
References bStandard, ImpSvNumberformatInfo::bThousand, ImpSvNumberformatInfo::eScannedType, FRACTION, ImpSvNumFor::GetCount(), GetDenominatorString(), i, if(), ImpSvNumFor::Info(), ImpSvNumberformatInfo::nCntExp, ImpSvNumberformatInfo::nCntPost, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_EXP, svt::NF_SYMBOLTYPE_FRACBLANK, nType, ImpSvNumberformatInfo::nTypeArray, NUMBER, NumFor, p, and ImpSvNumberformatInfo::sStrArray.
Referenced by GetFormatSpecialInfo().
|
inline |
Get the scanned type of the specified subformat.
Definition at line 346 of file zformat.hxx.
References UNDEFINED.
Referenced by SvNumberFormatter::GetInputLineString(), and ImpSvNumberInputScan::IsNumberFormatMain().
sal_uInt16 SvNumberformat::GetNumForNumberElementCount | ( | sal_uInt16 | nNumFor | ) | const |
Get the count of numbers among string elements.
Definition at line 5890 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpGetNumForStringElementCount(), and NumFor.
const OUString * SvNumberformat::GetNumForString | ( | sal_uInt16 | nNumFor, |
sal_uInt16 | nPos, | ||
bool | bString = false |
||
) | const |
Definition at line 4964 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_STRING, nPos, ImpSvNumberformatInfo::nTypeArray, NumFor, and ImpSvNumberformatInfo::sStrArray.
Referenced by SvNumberFormatter::GenerateFormat(), IsNegativeWithoutSign(), and ImpSvNumberInputScan::ScanStringNumFor().
short SvNumberformat::GetNumForType | ( | sal_uInt16 | nNumFor, |
sal_uInt16 | nPos | ||
) | const |
Definition at line 5017 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), nPos, ImpSvNumberformatInfo::nTypeArray, and NumFor.
bool SvNumberformat::GetOutputString | ( | double | fNumber, |
OUString & | OutString, | ||
const Color ** | ppColor | ||
) |
Definition at line 2475 of file zformat.cxx.
References bStandard, bStarFlag, CURRENCY, DATE, DATETIME, DEFINED, EMPTY, ImpSvNumberformatInfo::eScannedType, eType, FRACTION, ImpSvNumFor::GetColor(), ImpSvNumFor::GetCount(), ImpSvNumberformatScan::GetFalseString(), GetFormatter(), ImpSvNumberformatScan::GetKeywords(), ImpSvNumberformatScan::GetStandardPrec(), GetSubformatIndex(), ImpSvNumberformatScan::GetTrueString(), i, ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetFractionOutput(), ImpGetLogicalOutput(), ImpGetNumberOutput(), ImpGetOutputInputLine(), ImpGetOutputStandard(), ImpGetScientificOutput(), ImpGetTimeOutput(), ImpSvNumFor::Info(), SvNumberFormatter::INPUTSTRING_PRECISION, InsertBlanks(), IsFirstSubformatRealNegative(), IsSecondSubformatRealNegative(), lcl_appendStarFillChar(), LOGICAL, NF_KEY_BOOLEAN, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, ImpSvNumberformatInfo::nThousand, ImpSvNumberformatInfo::nTypeArray, NUMBER, NumFor, OutString(), PERCENT, rScan, SCIENTIFIC, sFormatstring, ImpSvNumberformatInfo::sStrArray, TEXT, TIME, and SvNumberFormatter::UNLIMITED_PRECISION.
bool SvNumberformat::GetOutputString | ( | double | fNumber, |
sal_uInt16 | nCharCount, | ||
OUString & | rOutString | ||
) | const |
Get output string from a numeric value that fits the number of characters specified.
Definition at line 2402 of file zformat.cxx.
References eType, GetFormatter(), ImpGetOutputStdToPrecision(), and NUMBER.
Referenced by SvNumberFormatter::GetInputLineString(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetPreviewString(), and lcl_buildBooleanStringFormat().
void SvNumberformat::GetOutputString | ( | std::u16string_view | sString, |
OUString & | OutString, | ||
const Color ** | ppColor | ||
) |
Definition at line 2198 of file zformat.cxx.
References bStarFlag, ImpSvNumberformatInfo::eScannedType, eType, ImpSvNumFor::GetColor(), ImpSvNumFor::GetCount(), i, ImpSvNumFor::Info(), InsertBlanks(), lcl_appendStarFillChar(), NF_KEY_GENERAL, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_STAR, ImpSvNumberformatInfo::nTypeArray, NumFor, OutString(), ImpSvNumberformatInfo::sStrArray, and TEXT.
OUString SvNumberformat::GetPercentString | ( | sal_uInt16 | nNumFor = 0 | ) | const |
Definition at line 2374 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), and NumFor.
Referenced by SvNumberFormatter::GenerateFormat().
|
static |
Return the position of a matching closing cQuote if the character at position nPos is between two matching cQuote, otherwise return -1.
If nPos points to an opening cQuote the position of the matching closing cQuote is returned. If nPos points to a closing cQuote nPos is returned. If nPos points into a part which starts with an opening cQuote but has no closing cQuote, rString.Len() is returned. Uses <method>IsInQuote</method> internally, so you don't have to call that prior to a call of this method.
Definition at line 5856 of file zformat.cxx.
References IsInQuote(), nPos, and p.
Referenced by StripNewCurrencyDelimiters(), and ImpSvNumberformatScan::Symbol_Division().
double SvNumberformat::GetRoundFractionValue | ( | double | fNumber | ) | const |
Round fNumber to its fraction representation.
Definition at line 2811 of file zformat.cxx.
References GetSubformatIndex(), and ImpGetFractionElements().
sal_uInt16 SvNumberformat::GetSubformatIndex | ( | double | fNumber | ) | const |
Get index of subformat (0..3) according to conditions and fNumber value.
Definition at line 2450 of file zformat.cxx.
References eOp1, eOp2, fLimit1, fLimit2, and ImpCheckCondition().
Referenced by GetOutputString(), and GetRoundFractionValue().
sal_uInt16 SvNumberformat::GetThousandDivisorPrecision | ( | sal_uInt16 | nIx = 0 | ) | const |
Count of hidden integer digits with thousands divisor: formats like "0," to show only thousands.
Works only with SvNumFormatType::NUMBER and SvNumFormatType::CURRENCY, returns 0 otherwise.
Returns SvNumberFormatter::UNLIMITED_PRECISION for formats that contain the General keyword.
Definition at line 6045 of file zformat.cxx.
References CURRENCY, ImpSvNumberformatInfo::eScannedType, FLAG_STANDARD_IN_FORMAT, ImpSvNumFor::Info(), ImpSvNumberformatInfo::nThousand, NUMBER, NumFor, and SvNumberFormatter::UNLIMITED_PRECISION.
|
inline |
Get type of format, may include css::util::NumberFormat::DEFINED bit.
Definition at line 187 of file zformat.hxx.
References eType.
Referenced by ImpSvNumberInputScan::GetDateRef(), SvNumberFormatter::GetEntryTable(), SvNumberFormatObj::getPropertyValue(), SvNumberFormatObj::getPropertyValues(), SvNumberFormatter::ImpGenerateFormats(), SvNumberFormatter::ImpGetDefaultCurrencyFormat(), ImpSvNumberInputScan::IsAcceptableIso8601(), SvNumberFormatter::IsUserDefined(), SvNumberFormatter::PutandConvertEntry(), and ImpSvNumberInputScan::ScanMidString().
bool SvNumberformat::HasNewCurrency | ( | ) | const |
Definition at line 1965 of file zformat.cxx.
References NumFor.
Referenced by SvNumberFormatter::GetIndexPuttingAndConverting().
bool SvNumberformat::HasPositiveBracketPlaceholder | ( | ) | const |
Definition at line 5063 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), NumFor, and ImpSvNumberformatInfo::sStrArray.
Referenced by SvNumberFormatter::GenerateFormat().
|
static |
Definition at line 5781 of file zformat.cxx.
References p.
Referenced by IsNegativeWithoutSign(), and ImpSvNumberInputScan::ScanStringNumFor().
|
inline |
Definition at line 252 of file zformat.hxx.
References TEXT.
Referenced by SvNumberFormatter::GetOutputString(), and SvNumberFormatter::GetPreviewString().
|
staticprivate |
Definition at line 3534 of file zformat.cxx.
References CalendarWrapper::getDisplayString(), CalendarWrapper::getUniqueID(), CalendarWrapper::getValue(), nNatNum, and OutString().
Referenced by ImpGetDateOutput(), and ImpGetDateTimeOutput().
|
staticprivate |
Definition at line 2149 of file zformat.cxx.
References NUMBERFORMAT_OP_EQ, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LE, NUMBERFORMAT_OP_LT, NUMBERFORMAT_OP_NE, and NUMBERFORMAT_OP_NO.
Referenced by GetSubformatIndex().
|
private |
Definition at line 341 of file zformat.cxx.
References bAdditionalBuiltin, bIsUsed, bStandard, ImpSvNumFor::Copy(), eOp1, eOp2, eType, fLimit1, fLimit2, i, maLocale, NumFor, rScan, sComment, and sFormatstring.
Referenced by ConvertLanguage(), and SvNumberformat().
|
private |
Definition at line 4464 of file zformat.cxx.
References bStarFlag, ImpSvNumberformatScan::GetCurAbbrev(), ImpGetOutputStandard(), ImpNumberFillWithThousands(), ImpSvNumFor::Info(), InsertBlanks(), lcl_insertStarFillChar(), ImpSvNumberformatInfo::nCntPost, ImpSvNumberformatInfo::nCntPre, NF_KEY_CCC, NF_KEY_GENERAL, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_PERCENT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, ImpSvNumberformatInfo::nThousand, nType, ImpSvNumberformatInfo::nTypeArray, NumFor, p, rScan, and ImpSvNumberformatInfo::sStrArray.
Referenced by ImpGetNumberOutput(), and ImpGetScientificOutput().
|
private |
Definition at line 4746 of file zformat.cxx.
References utl::DigitGroupingIterator::advance(), GetFormatter(), SvNumberFormatter::GetNumThousandSep(), utl::DigitGroupingIterator::getPos(), Info, and NumFor.
Referenced by ImpNumberFillWithThousands().
|
private |
Definition at line 3475 of file zformat.cxx.
References GetCal(), CalendarWrapper::getDateTime(), getLanguageTag(), CalendarWrapper::getLoadedCalendar(), getLocale(), CalendarWrapper::getUniqueID(), CalendarWrapper::getValue(), CalendarWrapper::loadCalendar(), rLoc(), and CalendarWrapper::setDateTime().
Referenced by ImpGetDateOutput(), and ImpGetDateTimeOutput().
|
private |
Definition at line 3702 of file zformat.cxx.
References aBuf, aStr, bStarFlag, GetCal(), ImpSvNumFor::GetCount(), CalendarWrapper::getDateTime(), CalendarWrapper::getDisplayString(), CalendarWrapper::getEpochStart(), getLanguageTag(), LocaleDataWrapper::getLanguageTag(), getLocale(), LanguageTag::getLocale(), SvNumberNatNum::GetNatNum(), ImpSvNumFor::GetNatNum(), ImpSvNumberformatScan::GetNullDate(), SvNumberNatNum::GetParams(), CalendarWrapper::getUniqueID(), CalendarWrapper::getValue(), i, ImpAppendEraG(), ImpFallBackToGregorianCalendar(), ImpIntToString(), ImpIsOtherCalendar(), impTransliterate(), ImpUseMonthCase(), ImpSvNumFor::Info(), InsertBlanks(), lcl_appendStarFillChar(), lcl_getValidDate(), lcl_hasEra(), lcl_isSignedYear(), CalendarWrapper::loadCalendar(), NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, NF_KEY_GG, NF_KEY_GGG, NF_KEY_M, NF_KEY_MM, 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_WW, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CALENDAR, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, nNatNum, ImpSvNumberformatInfo::nTypeArray, NumFor, padToLength(), rLoc(), rScan, ImpSvNumberformatScan::sErrStr, CalendarWrapper::setDateTime(), CalendarWrapper::setLocalDateTime(), ImpSvNumberformatInfo::sStrArray, SwitchToGregorianCalendar(), and SwitchToOtherCalendar().
Referenced by GetOutputString().
|
private |
Definition at line 3972 of file zformat.cxx.
References aBuf, bStarFlag, ImpSvNumberformatInfo::bThousand, GetCal(), tools::Time::GetClock(), ImpSvNumFor::GetCount(), CalendarWrapper::getDateTime(), CalendarWrapper::getDisplayName(), CalendarWrapper::getDisplayString(), CalendarWrapper::getEpochStart(), getLanguageTag(), LocaleDataWrapper::getLanguageTag(), getLocale(), LanguageTag::getLocale(), SvNumberNatNum::GetNatNum(), ImpSvNumFor::GetNatNum(), ImpSvNumberformatScan::GetNullDate(), ImpSvNumberformatScan::GetStandardPrec(), CalendarWrapper::getUniqueID(), CalendarWrapper::getValue(), i, ImpAppendEraG(), ImpFallBackToGregorianCalendar(), ImpGetFractionOfSecondString(), ImpIntToString(), ImpIsOtherCalendar(), impTransliterate(), ImpUseMonthCase(), ImpSvNumFor::Info(), SvNumberFormatter::INPUTSTRING_PRECISION, InsertBlanks(), lcl_appendStarFillChar(), lcl_getValidDate(), lcl_hasEra(), lcl_isSignedYear(), CalendarWrapper::loadCalendar(), ImpSvNumberformatInfo::nCntExp, ImpSvNumberformatInfo::nCntPost, NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_AMPM, NF_KEY_AP, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, 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_WW, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CALENDAR, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, nNatNum, ImpSvNumberformatInfo::nThousand, ImpSvNumberformatInfo::nTypeArray, NumFor, padToLength(), rLoc(), rScan, ImpSvNumberformatScan::sErrStr, CalendarWrapper::setDateTime(), CalendarWrapper::setLocalDateTime(), ImpSvNumberformatInfo::sStrArray, SwitchToGregorianCalendar(), and SwitchToOtherCalendar().
Referenced by GetOutputString().
|
private |
Calculate each element of fraction: integer part, numerator part, denominator part.
fNumber | value to be represented as fraction. Will contain absolute fractional part |
nIx | subformat number 0..3 |
fIntPart | integral part of fraction |
nFrac | numerator of fraction |
nDic | denominator of fraction |
Definition at line 2825 of file zformat.cxx.
References ImpSvNumFor::Info(), ImpSvNumberformatInfo::nCntExp, and NumFor.
Referenced by GetRoundFractionValue(), and ImpGetFractionOutput().
|
private |
Definition at line 3052 of file zformat.cxx.
References impTransliterate(), index, and NumFor.
Referenced by ImpGetDateTimeOutput(), and ImpGetTimeOutput().
|
private |
Definition at line 2895 of file zformat.cxx.
References aBuf, D_MAX_INTEGER, D_MAX_U_INT32, ImpSvNumFor::GetCount(), i, ImpGetFractionElements(), ImpIntToString(), ImpNumberFill(), ImpNumberFillWithThousands(), impTransliterate(), ImpSvNumFor::Info(), ImpSvNumberformatInfo::nCntExp, ImpSvNumberformatInfo::nCntPre, svt::NF_SYMBOLTYPE_FRAC, svt::NF_SYMBOLTYPE_FRACBLANK, ImpSvNumberformatInfo::nTypeArray, NumFor, SAL_WARN, ImpSvNumberformatScan::sErrStr, o3tl::sprintf(), and ImpSvNumberformatInfo::sStrArray.
Referenced by GetOutputString().
|
staticprivate |
Parse the content of '[$-xxx] or '[$-xxxxxxxx]' and extract the locale type from it.
Given the string, start parsing at position specified by nPos, and store the end position with nPos when the parsing is complete. The nPos should point to the '$' before the parsing, and to the closing bracket after the parsing. When the content is [$-xxx], the xxx part represents the language type (aka LCID) in hex numerals. When the content is [$-xxxxxxxx] the last 4 digits represent the LCID (again in hex), the next 2 digits represent the calendar type, and the 2 highest digits (if exists) is the numeral shape.
@reference http://office.microsoft.com/en-us/excel-help/creating-international-number-formats-HA001034635.aspx
rString | input string |
nPos | position (see above). |
Definition at line 1607 of file zformat.cxx.
References nPos.
Referenced by SvNumberformat().
|
private |
Definition at line 4326 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumberformatScan::GetFalseString(), ImpSvNumberformatScan::GetTrueString(), impTransliterate(), ImpSvNumFor::Info(), NF_KEY_BOOLEAN, svt::NF_SYMBOLTYPE_STRING, ImpSvNumberformatInfo::nTypeArray, NumFor, rScan, and ImpSvNumberformatInfo::sStrArray.
Referenced by GetOutputString().
|
private |
Definition at line 5615 of file zformat.cxx.
References aBuf, aStr, impTransliterate(), index, and SAL_N_ELEMENTS.
|
staticprivate |
|
private |
Definition at line 4349 of file zformat.cxx.
References D_MAX_D_BY_100, D_MIN_M_BY_1000, ImpSvNumberformatInfo::eScannedType, FLAG_STANDARD_IN_FORMAT, ImpSvNumFor::GetCount(), GetPrecExp(), i, ImpDecimalFill(), impTransliterate(), ImpSvNumFor::Info(), ImpSvNumberformatInfo::nCntPost, ImpSvNumberformatInfo::nThousand, NumFor, p, PERCENT, and ImpSvNumberformatScan::sErrStr.
Referenced by GetOutputString().
|
private |
Definition at line 5900 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_PERCENT, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, ImpSvNumberformatInfo::nTypeArray, and NumFor.
Referenced by GetNumForNumberElementCount().
|
private |
Definition at line 2118 of file zformat.cxx.
References D_MAX_D_BY_100, eType, GetFormatter(), OutString(), and PERCENT.
Referenced by GetOutputString().
|
private |
Definition at line 2060 of file zformat.cxx.
References GetFormatter(), ImpSvNumberformatScan::GetStandardPrec(), ImpGetOutputStdToPrecision(), and rScan.
Referenced by GetOutputString(), ImpDecimalFill(), ImpGetOutputStandard(), ImpNumberFill(), and ImpNumberFillWithThousands().
|
private |
Definition at line 2053 of file zformat.cxx.
References ImpGetOutputStandard().
|
private |
Definition at line 2098 of file zformat.cxx.
References GetFormatter(), impTransliterate(), NumFor, and comphelper::string::stripStart().
Referenced by GetOutputString(), and ImpGetOutputStandard().
|
private |
Definition at line 2664 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpDecimalFill(), ImpNumberFill(), index, ImpSvNumFor::Info(), ImpSvNumberformatInfo::nCntPost, ImpSvNumberformatInfo::nCntPre, svt::NF_SYMBOLTYPE_EXP, ImpSvNumberformatInfo::nTypeArray, NumFor, and ImpSvNumberformatInfo::sStrArray.
Referenced by GetOutputString().
|
private |
Definition at line 3083 of file zformat.cxx.
References bStarFlag, ImpSvNumberformatInfo::bThousand, D_MAX_U_INT32, GetCal(), tools::Time::GetClock(), ImpSvNumFor::GetCount(), ImpSvNumberformatScan::GetNullDate(), ImpSvNumberformatScan::GetStandardPrec(), i, ImpGetFractionOfSecondString(), ImpIntToString(), ImpSvNumFor::Info(), SvNumberFormatter::INPUTSTRING_PRECISION, InsertBlanks(), lcl_appendStarFillChar(), ImpSvNumberformatInfo::nCntExp, ImpSvNumberformatInfo::nCntPost, NF_KEY_AMPM, NF_KEY_AP, NF_KEY_H, NF_KEY_HH, NF_KEY_MI, NF_KEY_MMI, NF_KEY_S, NF_KEY_SS, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, ImpSvNumberformatInfo::nThousand, ImpSvNumberformatInfo::nTypeArray, NumFor, rScan, ImpSvNumberformatScan::sErrStr, CalendarWrapper::setLocalDateTime(), ImpSvNumberformatInfo::sStrArray, and DateTime::Sub().
Referenced by GetOutputString().
|
inlineprivate |
Definition at line 717 of file zformat.hxx.
References ImpSvNumFor::GetNatNum(), and SvNumberNatNum::IsComplete().
Referenced by ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetFractionOutput(), and ImpGetTimeOutput().
|
private |
Whether it's a (YY)YY-M(M)-D(D) format.
Definition at line 3572 of file zformat.cxx.
References DATE, eType, ImpSvNumFor::GetCount(), i, ImpSvNumFor::Info(), NF_KEY_D, NF_KEY_DD, NF_KEY_M, NF_KEY_MM, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_STRING, ImpSvNumberformatInfo::nTypeArray, SAL_WARN, and ImpSvNumberformatInfo::sStrArray.
|
private |
Definition at line 3406 of file zformat.cxx.
References GetCal(), ImpSvNumFor::GetCount(), i, ImpSvNumFor::Info(), NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, NF_KEY_GG, NF_KEY_GGG, NF_KEY_R, NF_KEY_RR, svt::NF_SYMBOLTYPE_CALENDAR, and ImpSvNumberformatInfo::nTypeArray.
Referenced by ImpGetDateOutput(), and ImpGetDateTimeOutput().
|
private |
SymbolType is negative
SymbolType is negative
Definition at line 1658 of file zformat.cxx.
References ImpSvNumberformatScan::GetKeywords(), lcl_matchKeywordAndGetNumber(), NF_KEY_H, NF_KEY_MI, NF_KEY_S, nPos, NUMBERFORMAT_OP_EQ, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LE, NUMBERFORMAT_OP_LT, NUMBERFORMAT_OP_NE, rChrCls(), rScan, u, and CharClass::uppercase().
Referenced by SvNumberformat().
|
private |
Definition at line 4773 of file zformat.cxx.
References bStarFlag, ImpSvNumberformatScan::GetCurAbbrev(), ImpGetOutputStandard(), ImpSvNumFor::Info(), InsertBlanks(), lcl_insertStarFillChar(), NF_KEY_CCC, NF_KEY_GENERAL, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_EXP, svt::NF_SYMBOLTYPE_FRAC_FDIV, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_THSEP, ImpSvNumberformatInfo::nThousand, nType, ImpSvNumberformatInfo::nTypeArray, NumFor, p, rScan, and ImpSvNumberformatInfo::sStrArray.
Referenced by ImpGetFractionOutput(), and ImpGetScientificOutput().
|
private |
Definition at line 4585 of file zformat.cxx.
References utl::DigitGroupingIterator::advance(), bStarFlag, ImpSvNumberformatScan::GetCurAbbrev(), GetFormatter(), GetLocaleData(), ImpDigitFill(), ImpGetOutputStandard(), ImpSvNumFor::Info(), InsertBlanks(), lcl_insertStarFillChar(), NF_KEY_CCC, NF_KEY_GENERAL, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_PERCENT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, ImpSvNumberformatInfo::nThousand, ImpSvNumberformatInfo::nTypeArray, NumFor, p, utl::DigitGroupingIterator::reset(), rScan, and ImpSvNumberformatInfo::sStrArray.
Referenced by ImpDecimalFill(), and ImpGetFractionOutput().
|
private |
Obtain calendar and numerals from a LocaleType that was parsed from a LCID with ImpGetLocaleType().
Import extended LCID from Excel.
Inserts a NatNum modifier to rString at nPos if needed as determined from the numeral code.
@ATTENTION: may modify <member>maLocale</member> to make it follow aTmpLocale, in which case also nLang is adapted.
Reference language for each numeral ID
Definition at line 423 of file zformat.cxx.
References MsLangId::getRealLanguage(), LANGUAGE_ARABIC_PRIMARY_ONLY, LANGUAGE_ARABIC_SAUDI_ARABIA, LANGUAGE_BENGALI, LANGUAGE_BURMESE, LANGUAGE_CHINESE_HONGKONG, LANGUAGE_CHINESE_LSO, LANGUAGE_CHINESE_MACAU, LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_CHINESE_SINGAPORE, LANGUAGE_CHINESE_TRADITIONAL, LANGUAGE_DONTKNOW, LANGUAGE_ENGLISH_US, LANGUAGE_FARSI, LANGUAGE_GUJARATI, LANGUAGE_HINDI, LANGUAGE_JAPANESE, LANGUAGE_KANNADA, LANGUAGE_KHMER, LANGUAGE_KOREAN, LANGUAGE_LAO, LANGUAGE_MALAYALAM, LANGUAGE_MARATHI, LANGUAGE_MONGOLIAN_MONGOLIAN_CHINA, LANGUAGE_MONGOLIAN_MONGOLIAN_LSO, LANGUAGE_MONGOLIAN_MONGOLIAN_MONGOLIA, LANGUAGE_NEPALI, LANGUAGE_ODIA, LANGUAGE_PUNJABI, LANGUAGE_PUNJABI_ARABIC_LSO, LANGUAGE_TAMIL, LANGUAGE_TELUGU, LANGUAGE_THAI, LANGUAGE_TIBETAN, LANGUAGE_TIGRIGNA_ETHIOPIA, maLocale, SvNumberformat::LocaleType::meLanguage, SvNumberformat::LocaleType::mnCalendarType, SvNumberformat::LocaleType::mnNumeralShape, nNatNum, nPos, and primary().
Referenced by SvNumberformat().
|
inlineprivate |
Definition at line 741 of file zformat.hxx.
References SvNumberNatNum::IsComplete().
Referenced by ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetFractionOfSecondString(), ImpGetFractionOutput(), ImpGetLogicalOutput(), ImpGetNatNumString(), ImpGetNumberOutput(), and ImpGetOutputStdToPrecision().
|
inlineprivate |
Definition at line 754 of file zformat.hxx.
References SvNumberNatNum::IsComplete().
|
inlineprivate |
Definition at line 746 of file zformat.hxx.
References SvNumberNatNum::IsComplete().
|
private |
Definition at line 5662 of file zformat.cxx.
References GetFormatter(), SvNumberNatNum::GetLang(), LanguageTag::getLocale(), SvNumberFormatter::GetNatNum(), SvNumberNatNum::GetNatNum(), and SvNumberNatNum::GetParams().
Referenced by impTransliterateImpl().
|
private |
Definition at line 5679 of file zformat.cxx.
References GetFormatter(), ImpSvNumberformatScan::GetKeywords(), SvNumberNatNum::GetLang(), LanguageTag::getLocale(), SvNumberFormatter::GetNatNum(), SvNumberNatNum::GetNatNum(), SvNumberNatNum::GetParams(), impTransliterateImpl(), and rScan.
|
private |
Definition at line 5670 of file zformat.cxx.
References GetFormatter(), SvNumberNatNum::GetLang(), LanguageTag::getLocale(), SvNumberFormatter::GetNatNum(), SvNumberNatNum::GetNatNum(), and SvNumberNatNum::GetParams().
|
staticprivate |
Whether to use possessive genitive case month name, or partitive case month name, instead of nominative name (noun).
If a day of month occurs within the format, the month name is in possessive genitive case if the day follows the month, and partitive case if the day precedes the month.
io_nState | 0: execute check set to 1 if nominative case is returned, set to 2 if genitive case is returned, set to 3 if partitive case is returned 1: don't execute check, return nominative case 2: don't execute check, return genitive case 3: don't execute check, return partitive case |
eCodeType | a NfKeywordIndex, must designate a month type code |
If there is no day of month the nominative case (noun) is returned. Also if the month is immediately preceded or followed by a literal string other than space and not followed by a comma, the nominative name is used, this prevents duplicated casing for MMMM\tand such in documents imported from (e.g. Finnish) Excel or older LibO/OOo releases.
Definition at line 3300 of file zformat.cxx.
References ImpSvNumFor::GetCount(), i, ImpSvNumFor::Info(), nCount, NF_KEY_D, NF_KEY_DD, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, svt::NF_SYMBOLTYPE_STRING, ImpSvNumberformatInfo::nTypeArray, SAL_WARN, and ImpSvNumberformatInfo::sStrArray.
Referenced by ImpGetDateOutput(), and ImpGetDateTimeOutput().
|
inlinestatic |
Insert the number of blanks into the string that is needed to simulate the width of character c for underscore formats.
Definition at line 428 of file zformat.hxx.
Referenced by GetOutputString(), ImpDecimalFill(), ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetTimeOutput(), ImpNumberFill(), and ImpNumberFillWithThousands().
|
static |
Insert the number of blanks into the string that is needed to simulate the width of character c for underscore formats.
Definition at line 85 of file zformat.cxx.
References cCharWidths, n, and nPos.
|
inline |
Definition at line 199 of file zformat.hxx.
|
inline |
Definition at line 363 of file zformat.hxx.
References NUMBERFORMAT_OP_EQ, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LE, NUMBERFORMAT_OP_LT, and NUMBERFORMAT_OP_NO.
Referenced by GetOutputString().
|
static |
Whether a character at position nPos is somewhere between two matching cQuote or not.
If nPos points to a cQuote, a true is returned on an opening cQuote, a false is returned on a closing cQuote. A cQuote between quotes may be escaped by a cEscIn, a cQuote outside of quotes may be escaped by a cEscOut. The default '\0' results in no escapement possible. Defaults are set right according to the "unlogic" of the Numberformatter
Definition at line 5815 of file zformat.cxx.
Referenced by GetQuoteEnd().
|
inline |
Whether it's a (YY)YY-M(M)-D(D) format.
Definition at line 497 of file zformat.hxx.
Referenced by SvNumberFormatter::GetEditFormat().
bool SvNumberformat::IsMinuteSecondFormat | ( | ) | const |
If the format is a MM:SS or [MM]:SS format, or MM:[SS] (sic!) or even MM:SS.00 or [MM]:SS.00 or MM:[SS].00.
Definition at line 5922 of file zformat.cxx.
References ImpSvNumFor::GetCount(), GetMaskedType(), HAS_MINUTE_SECOND, ImpSvNumFor::Info(), NF_KEY_MI, NF_KEY_MMI, NF_KEY_S, NF_KEY_SS, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, nState, ImpSvNumberformatInfo::nTypeArray, NumFor, ImpSvNumberformatInfo::sStrArray, and TIME.
Referenced by ImpSvNumberInputScan::GetTimeRef().
bool SvNumberformat::IsNegativeInBracket | ( | ) | const |
Definition at line 5052 of file zformat.cxx.
References ImpSvNumFor::GetCount(), ImpSvNumFor::Info(), NumFor, and ImpSvNumberformatInfo::sStrArray.
Referenced by SvNumberFormatter::GenerateFormat().
bool SvNumberformat::IsNegativeWithoutSign | ( | ) | const |
Definition at line 5039 of file zformat.cxx.
References GetNumForString(), HasStringNegativeSign(), and IsSecondSubformatRealNegative().
Referenced by ImpSvNumberInputScan::ScanStringNumFor().
|
inline |
If the count of string elements (substrings, ignoring [modifiers] and so on) in a subformat code nNumFor (0..3) is equal to the given number.
Used by ImpSvNumberInputScan::IsNumberFormatMain() to detect a matched format.
Definition at line 323 of file zformat.hxx.
Referenced by ImpSvNumberInputScan::IsNumberFormatMain().
|
inline |
Definition at line 353 of file zformat.hxx.
References NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LT, and NUMBERFORMAT_OP_NO.
Referenced by GetOutputString(), IsNegativeWithoutSign(), and ImpSvNumberInputScan::ScanStringNumFor().
|
inline |
Definition at line 195 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpGetDefaultCurrencyFormat(), and SvNumberFormatter::ImpGetDefaultFormat().
|
inline |
If the format is a placeholder and needs to be substituted.
Definition at line 204 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpSubstituteEntry(), and SvNumberformat().
|
inline |
If the format is a placeholder for the system long date format and needs to be substituted during formatting time.
Definition at line 220 of file zformat.hxx.
References LANGUAGE_SYSTEM.
Referenced by SvNumberFormatter::ImpSubstituteEntry(), and SvNumberformat().
|
inline |
If the format is a placeholder for the system time format and needs to be substituted during formatting time.
Definition at line 212 of file zformat.hxx.
References LANGUAGE_SYSTEM.
Referenced by SvNumberFormatter::ImpSubstituteEntry(), and SvNumberformat().
|
inline |
Definition at line 250 of file zformat.hxx.
Referenced by SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetPreviewString(), and SvNumberFormatter::IsTextFormat().
|
private |
Definition at line 6061 of file zformat.cxx.
References ImpSvNumberformatScan::GetChrCls(), and rScan.
Referenced by ImpNextSymbol().
|
private |
Definition at line 6066 of file zformat.cxx.
References ImpSvNumberformatScan::GetLoc(), and rScan.
Referenced by GetDateOrder(), GetFormatStringForTimePrecision(), ImpFallBackToGregorianCalendar(), ImpGetDateOutput(), ImpGetDateTimeOutput(), SvNumberformat(), SwitchToGregorianCalendar(), and SwitchToOtherCalendar().
|
inline |
Definition at line 198 of file zformat.hxx.
|
inline |
Definition at line 422 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpGenerateFormats().
|
inline |
Definition at line 290 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpGenerateAdditionalFormats(), SvNumberFormatter::ImpGenerateFormats(), SvNumberFormatter::MergeFormatter(), SvNumberFormatter::PutEntry(), and SvNumberFormatter::ReplaceSystemCL().
|
inline |
Definition at line 194 of file zformat.hxx.
Referenced by SvNumberFormatter::ImpGenerateFormats(), and SvNumberFormatter::ImpGetDefaultCurrencyFormat().
|
inline |
Definition at line 238 of file zformat.hxx.
Referenced by SvNumberFormatter::GetOutputString(), and SvNumberFormatter::GetPreviewString().
|
inline |
Definition at line 192 of file zformat.hxx.
References eType.
Referenced by SvNumberFormatter::ImpGenerateFormats().
|
static |
Definition at line 1993 of file zformat.cxx.
References GetQuoteEnd(), and nPos.
Referenced by SvNumberFormatter::ImpInsertFormat().
void SvNumberformat::SwitchToGregorianCalendar | ( | std::u16string_view | rOrgCalendar, |
double | fOrgDateTime | ||
) | const |
Switches to the "gregorian" calendar, but only if the current calendar is non-"gregorian" and rOrgCalendar is not empty.
Thus a preceding ImpSwitchToOtherCalendar() call should have been placed prior to calling this method.
Definition at line 3464 of file zformat.cxx.
References GetCal(), getLanguageTag(), getLocale(), CalendarWrapper::getUniqueID(), CalendarWrapper::loadCalendar(), rLoc(), and CalendarWrapper::setDateTime().
Referenced by ImpGetDateOutput(), and ImpGetDateTimeOutput().
void SvNumberformat::SwitchToOtherCalendar | ( | OUString & | rOrgCalendar, |
double & | fOrgDateTime | ||
) | const |
Switches to the first non-"gregorian" calendar, but only if the current calendar is "gregorian"; original calendar name and date/time returned, but only if calendar switched and rOrgCalendar was empty.
Definition at line 3436 of file zformat.cxx.
References CalendarWrapper::getAllCalendars(), GetCal(), CalendarWrapper::getDateTime(), getLanguageTag(), getLocale(), CalendarWrapper::getUniqueID(), CalendarWrapper::loadCalendar(), rLoc(), and CalendarWrapper::setDateTime().
Referenced by ImpSvNumberInputScan::GetDateRef(), ImpGetDateOutput(), and ImpGetDateTimeOutput().
|
private |
Definition at line 515 of file zformat.hxx.
Referenced by ImpCopyNumberformat().
|
private |
Definition at line 518 of file zformat.hxx.
Referenced by ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 517 of file zformat.hxx.
Referenced by GetNumForInfo(), GetOutputString(), ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 516 of file zformat.hxx.
Referenced by GetOutputString(), ImpDecimalFill(), ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetTimeOutput(), ImpNumberFill(), and ImpNumberFillWithThousands().
|
private |
Definition at line 512 of file zformat.hxx.
Referenced by GetConditions(), GetMappedFormatstring(), GetSubformatIndex(), ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 513 of file zformat.hxx.
Referenced by GetConditions(), GetMappedFormatstring(), GetSubformatIndex(), ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 514 of file zformat.hxx.
Referenced by ConvertLanguage(), GetDateOrder(), GetExactDateOrder(), GetOutputString(), ImpCopyNumberformat(), ImpGetOutputInputLine(), ImpIsIso8601(), and SvNumberformat().
|
private |
Definition at line 508 of file zformat.hxx.
Referenced by GetConditions(), GetFormatSpecialInfo(), GetMappedFormatstring(), GetSubformatIndex(), ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 509 of file zformat.hxx.
Referenced by GetConditions(), GetFormatSpecialInfo(), GetMappedFormatstring(), GetSubformatIndex(), ImpCopyNumberformat(), and SvNumberformat().
|
private |
Definition at line 511 of file zformat.hxx.
Referenced by GetMappedFormatstring(), ImpCopyNumberformat(), ImpObtainCalendarAndNumerals(), and SvNumberformat().
|
private |
Definition at line 505 of file zformat.hxx.
Referenced by ConvertLanguage(), GetColor(), GetDateOrder(), GetDenominatorString(), GetExactDateOrder(), GetFormatSpecialInfo(), GetFormatStringForTimePrecision(), GetIntegerFractionDelimiterString(), GetMappedFormatstring(), GetNatNumModifierString(), GetNatNumXml(), GetNewCurrencySymbol(), GetNumeratorString(), GetNumForInfo(), GetNumForNumberElementCount(), GetNumForString(), GetNumForType(), GetOutputString(), GetPercentString(), GetThousandDivisorPrecision(), HasNewCurrency(), HasPositiveBracketPlaceholder(), ImpCopyNumberformat(), ImpDecimalFill(), ImpDigitFill(), ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetFractionElements(), ImpGetFractionOfSecondString(), ImpGetFractionOutput(), ImpGetLogicalOutput(), ImpGetNumberOutput(), ImpGetNumForStringElementCount(), ImpGetOutputStdToPrecision(), ImpGetScientificOutput(), ImpGetTimeOutput(), ImpNumberFill(), ImpNumberFillWithThousands(), IsMinuteSecondFormat(), IsNegativeInBracket(), and SvNumberformat().
|
private |
Definition at line 510 of file zformat.hxx.
Referenced by ConvertLanguage(), GetCal(), GetFormatter(), GetMappedFormatstring(), GetOutputString(), ImpCopyNumberformat(), ImpDecimalFill(), ImpGetDateOutput(), ImpGetDateTimeOutput(), ImpGetLogicalOutput(), ImpGetOutputStandard(), ImpGetTimeOutput(), ImpNextSymbol(), ImpNumberFill(), ImpNumberFillWithThousands(), impTransliterateImpl(), rChrCls(), rLoc(), and SvNumberformat().
|
private |
Definition at line 507 of file zformat.hxx.
Referenced by ImpCopyNumberformat().
|
private |
Definition at line 506 of file zformat.hxx.
Referenced by ConvertLanguage(), GetOutputString(), ImpCopyNumberformat(), and SvNumberformat().