LibreOffice Module svx (master) 1
|
#include <numfmtsh.hxx>
Public Member Functions | |
SvxNumberFormatShell (SvNumberFormatter *pNumFormatter, sal_uInt32 nFormatKey, SvxNumberValueType eNumValType, const OUString &rNumStr) | |
SvxNumberFormatShell (SvNumberFormatter *pNumFormatter, sal_uInt32 nFormatKey, SvxNumberValueType eNumValType, double nNumVal, const OUString *pNumStr) | |
~SvxNumberFormatShell () | |
void | GetInitSettings (sal_uInt16 &nCatLbPos, LanguageType &rLangType, sal_uInt16 &nFmtLbSelPos, std::vector< OUString > &rFmtEntries, OUString &rPrevString, const Color *&rpPrevColor) |
void | CategoryChanged (sal_uInt16 nCatLbPos, short &rFmtSelPos, std::vector< OUString > &rFmtEntries) |
void | LanguageChanged (LanguageType eLangType, short &rFmtSelPos, std::vector< OUString > &rFmtEntries) |
void | FormatChanged (sal_uInt16 nFmtLbPos, OUString &rPreviewStr, const Color *&rpFontColor) |
bool | AddFormat (OUString &rFormat, sal_Int32 &rErrPos, sal_uInt16 &rCatLbSelPos, short &rFmtSelPos, std::vector< OUString > &rFmtEntries) |
void | RemoveFormat (std::u16string_view rFormat, sal_uInt16 &rCatLbSelPos, short &rFmtSelPos, std::vector< OUString > &rFmtEntries) |
void | MakeFormat (OUString &rFormat, bool bThousand, bool bNegRed, sal_uInt16 nPrecision, sal_uInt16 nLeadingZeroes, sal_uInt16 nCurrencyEntryPos) |
void | GetOptions (const OUString &rFormat, bool &rThousand, bool &rNegRed, sal_uInt16 &rPrecision, sal_uInt16 &rLeadingZeroes, sal_uInt16 &rCatLbPos) |
sal_uInt16 | GetFormatIntegerDigits (std::u16string_view rFormat) const |
bool | IsNatNum12 (std::u16string_view rFormat) const |
void | MakePreviewString (const OUString &rFormatStr, OUString &rPreviewStr, const Color *&rpFontColor) |
void | MakePrevStringFromVal (const OUString &rFormatStr, OUString &rPreviewStr, const Color *&rpFontColor, double nValue) |
bool | IsUserDefined (const OUString &rFmtString) |
bool | IsTmpCurrencyFormat (const OUString &rFmtString) |
bool | FindEntry (const OUString &rFmtString, sal_uInt32 *pAt=nullptr) |
void | ValidateNewEntries () |
std::vector< sal_uInt32 > const & | GetUpdateData () const |
void | SetCurNumFmtKey (sal_uInt32 nNew) |
sal_uInt32 | GetCurNumFmtKey () const |
LanguageType | GetCurLanguage () const |
OUString | GetStandardName () const |
Returns the name of Standard, General, ... for the current language. More... | |
OUString | GetComment4Entry (short nEntry) |
short | GetCategory4Entry (short nEntry) const |
bool | GetUserDefined4Entry (short nEntry) |
OUString | GetFormat4Entry (short nEntry) |
void | SetComment4Entry (short nEntry, const OUString &aCommentString) |
void | SetCurrencySymbol (sal_uInt32 nPos) |
sal_uInt32 | GetCurrencySymbol () const |
sal_uInt16 | FindCurrencyFormat (const OUString &rFmtString) |
sal_uInt16 | FindCurrencyFormat (const NfCurrencyEntry *pTmpCurrencyEntry, bool bTmpBanking) |
void | SetCurCurrencyEntry (NfCurrencyEntry *) |
short | GetListPos4Entry (sal_uInt32 nIdx, std::u16string_view rFmtString) |
void | GetCurrencySymbols (std::vector< OUString > &rList, sal_uInt16 *pPos) |
sal_uInt16 | FindCurrencyTableEntry (const OUString &rFmtString, bool &bTestBanking) |
bool | IsInTable (sal_uInt16 nPos, bool bTmpBanking, std::u16string_view rFmtString) const |
void | SetUseStarFormat (bool bUse) |
Static Public Member Functions | |
static SvxNumberFormatShell * | Create (SvNumberFormatter *pNumFormatter, sal_uInt32 nFormatKey, SvxNumberValueType eNumValType, const OUString &rNumStr) |
static SvxNumberFormatShell * | Create (SvNumberFormatter *pNumFormatter, sal_uInt32 nFormatKey, SvxNumberValueType eNumValType, double nNumVal, const OUString *pNumStr) |
Private Member Functions | |
SVX_DLLPRIVATE short | FillEntryList_Impl (std::vector< OUString > &rList) |
SVX_DLLPRIVATE void | FillEListWithStd_Impl (std::vector< OUString > &rList, SvNumFormatType eCategory, short &Pos, bool bSuppressDuplicates=false) |
SVX_DLLPRIVATE short | FillEListWithFormats_Impl (std::vector< OUString > &rList, short nSelPos, NfIndexTableOffset eOffsetStart, NfIndexTableOffset eOffsetEnd, bool bSuppressDuplicates) |
SVX_DLLPRIVATE short | FillEListWithDateTime_Impl (std::vector< OUString > &rList, short nSelPos, bool bSuppressDuplicates) |
SVX_DLLPRIVATE void | FillEListWithOneFormat_Impl (std::vector< OUString > &rList, short &nSelPos, bool bSuppressDuplicates, NfIndexTableOffset nOffset, bool bSuppressIsoDateTime) |
SVX_DLLPRIVATE short | FillEListWithCurrency_Impl (std::vector< OUString > &rList, short nSelPos) |
SVX_DLLPRIVATE short | FillEListWithSysCurrencys (std::vector< OUString > &rList, short nSelPos) |
SVX_DLLPRIVATE short | FillEListWithUserCurrencys (std::vector< OUString > &rList, short nSelPos) |
SVX_DLLPRIVATE short | FillEListWithUsD_Impl (std::vector< OUString > &rList, SvNumFormatType eCategory, short Pos) |
SVX_DLLPRIVATE bool | IsEssentialFormat_Impl (SvNumFormatType eType, sal_uInt32 nKey) |
SVX_DLLPRIVATE::std::vector< sal_uInt32 >::iterator | GetRemoved_Impl (size_t nKey) |
SVX_DLLPRIVATE bool | IsRemoved_Impl (size_t nKey) |
SVX_DLLPRIVATE::std::vector< sal_uInt32 >::iterator | GetAdded_Impl (size_t nKey) |
SVX_DLLPRIVATE void | GetPreviewString_Impl (OUString &rString, const Color *&rpColor) |
Static Private Member Functions | |
static SVX_DLLPRIVATE void | PosToCategory_Impl (sal_uInt16 nPos, SvNumFormatType &rCategory) |
static SVX_DLLPRIVATE void | CategoryToPos_Impl (SvNumFormatType nCategory, sal_uInt16 &rPos) |
Private Attributes | |
SvNumberFormatter * | pFormatter |
SvNumberFormatTable * | pCurFmtTable |
SvxNumberValueType | eValType |
OUString | aValStr |
double | nValNum |
bool | bUndoAddList |
std::vector< sal_uInt32 > | aAddList |
std::vector< sal_uInt32 > | aDelList |
std::vector< sal_uInt32 > | aCurEntryList |
sal_uInt32 | nCurFormatKey |
SvNumFormatType | nCurCategory |
LanguageType | eCurLanguage |
std::vector< sal_uInt16 > | aCurCurrencyList |
NfCurrencyEntry * | pCurCurrencyEntry |
bool | bBankingSymbol |
sal_uInt32 | nCurCurrencyEntryPos |
std::vector< OUString > | aCurrencyFormatList |
bool | bUseStarFormat |
bool | bIsDefaultValNum |
Definition at line 61 of file numfmtsh.hxx.
SvxNumberFormatShell::SvxNumberFormatShell | ( | SvNumberFormatter * | pNumFormatter, |
sal_uInt32 | nFormatKey, | ||
SvxNumberValueType | eNumValType, | ||
const OUString & | rNumStr | ||
) |
Definition at line 82 of file numfmtsh.cxx.
References ALL, aValStr, eValType, SvNumberFormatter::GetType(), LANGUAGE_NONE, nCurFormatKey, Number, nValNum, pFormatter, String, and Undefined.
Referenced by Create().
SvxNumberFormatShell::SvxNumberFormatShell | ( | SvNumberFormatter * | pNumFormatter, |
sal_uInt32 | nFormatKey, | ||
SvxNumberValueType | eNumValType, | ||
double | nNumVal, | ||
const OUString * | pNumStr | ||
) |
Definition at line 116 of file numfmtsh.cxx.
References ALL, aValStr, bIsDefaultValNum, eValType, LANGUAGE_NONE, Number, nValNum, String, and Undefined.
SvxNumberFormatShell::~SvxNumberFormatShell | ( | ) |
Definition at line 151 of file numfmtsh.cxx.
References aAddList, bUndoAddList, SvNumberFormatter::DeleteEntry(), and pFormatter.
bool SvxNumberFormatShell::AddFormat | ( | OUString & | rFormat, |
sal_Int32 & | rErrPos, | ||
sal_uInt16 & | rCatLbSelPos, | ||
short & | rFmtSelPos, | ||
std::vector< OUString > & | rFmtEntries | ||
) |
Definition at line 215 of file numfmtsh.cxx.
References aAddList, aDelList, CategoryToPos_Impl(), DBG_ASSERT, eCurLanguage, FillEntryList_Impl(), GetAdded_Impl(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetEntryTable(), SvNumberformat::GetLanguage(), GetRemoved_Impl(), SvNumberFormatter::GetType(), nCurCategory, nCurFormatKey, nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, pCurFmtTable, pFormatter, and SvNumberFormatter::PutEntry().
Referenced by MakeFormat().
void SvxNumberFormatShell::CategoryChanged | ( | sal_uInt16 | nCatLbPos, |
short & | rFmtSelPos, | ||
std::vector< OUString > & | rFmtEntries | ||
) |
Definition at line 173 of file numfmtsh.cxx.
References eCurLanguage, FillEntryList_Impl(), SvNumberFormatter::GetEntryTable(), nCurCategory, nCurFormatKey, pCurCurrencyEntry, pCurFmtTable, pFormatter, and PosToCategory_Impl().
|
staticprivate |
Definition at line 1167 of file numfmtsh.cxx.
References CAT_ALL, CAT_BOOLEAN, CAT_CURRENCY, CAT_DATE, CAT_FRACTION, CAT_NUMBER, CAT_PERCENT, CAT_SCIENTIFIC, CAT_TEXT, CAT_TIME, and CAT_USERDEFINED.
Referenced by AddFormat(), FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), GetCategory4Entry(), GetInitSettings(), GetOptions(), and RemoveFormat().
|
static |
Definition at line 66 of file numfmtsh.cxx.
References SvxNumberFormatShell().
|
static |
Definition at line 74 of file numfmtsh.cxx.
References SvxNumberFormatShell().
|
private |
Definition at line 739 of file numfmtsh.cxx.
References DBG_ASSERT, FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), SvNumberFormatter::GetNewCurrencySymbolString(), nCurCategory, nCurFormatKey, pCurCurrencyEntry, pCurFmtTable, and pFormatter.
Referenced by FillEListWithStd_Impl().
|
private |
Definition at line 650 of file numfmtsh.cxx.
References FillEListWithFormats_Impl(), FillEListWithOneFormat_Impl(), NF_DATETIME_END, NF_DATETIME_ISO_YYYYMMDD_HHMMSS, NF_DATETIME_ISO_YYYYMMDDTHHMMSS000, NF_DATETIME_START, NF_DATETIME_SYS_DDMMYYYY_HHMM, and nIndex.
Referenced by FillEntryList_Impl().
|
private |
Definition at line 632 of file numfmtsh.cxx.
References FillEListWithOneFormat_Impl(), and nIndex.
Referenced by FillEListWithDateTime_Impl(), and FillEListWithStd_Impl().
|
private |
Definition at line 674 of file numfmtsh.cxx.
References aCurEntryList, CategoryToPos_Impl(), eCurLanguage, SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatIndex(), SvNumberformat::GetFormatstring(), SvNumberformat::GetMaskedType(), IsEssentialFormat_Impl(), IsRemoved_Impl(), nCurFormatKey, pFormatter, and SELPOS_NONE.
Referenced by FillEListWithDateTime_Impl(), and FillEListWithFormats_Impl().
|
private |
Definition at line 564 of file numfmtsh.cxx.
References aCurrencyFormatList, FillEListWithCurrency_Impl(), FillEListWithFormats_Impl(), NF_BOOLEAN, NF_DATE_END, NF_DATE_START, NF_FRACTION_100, NF_FRACTION_3D, NF_FRACTION_END, NF_FRACTION_START, NF_NUMBER_END, NF_NUMBER_START, NF_PERCENT_END, NF_PERCENT_START, NF_SCIENTIFIC_END, NF_SCIENTIFIC_START, NF_TEXT, NF_TIME_END, NF_TIME_START, and pCurFmtTable.
Referenced by FillEntryList_Impl().
|
private |
Definition at line 770 of file numfmtsh.cxx.
References aCurEntryList, CategoryToPos_Impl(), DBG_ASSERT, eCurLanguage, SvNumberFormatter::GetEntry(), SvNumberFormatter::GetFormatIndex(), SvNumberformat::GetFormatstring(), SvNumberformat::GetMaskedType(), SvNumberFormatter::GetNewCurrencySymbolString(), SvNumberformat::GetType(), SvNumberformat::HasNewCurrency(), IsRemoved_Impl(), nCurCategory, nCurCurrencyEntryPos, nCurFormatKey, NF_CURRENCY_END, NF_CURRENCY_START, nIndex, pCurFmtTable, pFormatter, and SELPOS_NONE.
Referenced by FillEListWithCurrency_Impl().
|
private |
Definition at line 1033 of file numfmtsh.cxx.
References aCurEntryList, FindCurrencyTableEntry(), SvNumberformat::GetFormatstring(), SvNumberformat::GetMaskedType(), SvNumberformat::GetType(), SvNumberformat::HasNewCurrency(), SvNumberformat::IsAdditionalBuiltin(), IsInTable(), IsRemoved_Impl(), nCurFormatKey, nPos, and pCurFmtTable.
Referenced by FillEntryList_Impl().
|
private |
Definition at line 852 of file numfmtsh.cxx.
References aCurEntryList, aCurrencyFormatList, bBankingSymbol, CategoryToPos_Impl(), DBG_ASSERT, eCurLanguage, FindCurrencyFormat(), SvNumberFormatter::GetCurrencyFormatStrings(), SvNumberformat::GetFormatstring(), SvNumberformat::GetMaskedType(), SvNumberFormatter::GetNewCurrencySymbolString(), MsLangId::getRealLanguage(), SvNumberFormatter::GetTheCurrencyTable(), SvNumberformat::GetType(), SvNumberformat::HasNewCurrency(), i, SvNumberformat::IsAdditionalBuiltin(), IsRemoved_Impl(), nCurCategory, nCurCurrencyEntryPos, nCurFormatKey, nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, pCurCurrencyEntry, pCurFmtTable, pFormatter, SELPOS_NONE, and NfCurrencyTable::size().
Referenced by FillEListWithCurrency_Impl().
|
private |
Definition at line 510 of file numfmtsh.cxx.
References aCurEntryList, FillEListWithDateTime_Impl(), FillEListWithStd_Impl(), FillEListWithUsD_Impl(), nCurCategory, and SELPOS_NONE.
Referenced by AddFormat(), CategoryChanged(), GetInitSettings(), LanguageChanged(), and RemoveFormat().
sal_uInt16 SvxNumberFormatShell::FindCurrencyFormat | ( | const NfCurrencyEntry * | pTmpCurrencyEntry, |
bool | bTmpBanking | ||
) |
Definition at line 1549 of file numfmtsh.cxx.
References aCurCurrencyList, SvNumberFormatter::GetTheCurrencyTable(), i, nCount, nPos, and NfCurrencyTable::size().
sal_uInt16 SvxNumberFormatShell::FindCurrencyFormat | ( | const OUString & | rFmtString | ) |
Definition at line 1467 of file numfmtsh.cxx.
References aCurCurrencyList, FindCurrencyTableEntry(), SvNumberFormatter::GetTheCurrencyTable(), nCount, nPos, and NfCurrencyTable::size().
Referenced by FillEListWithUserCurrencys().
sal_uInt16 SvxNumberFormatShell::FindCurrencyTableEntry | ( | const OUString & | rFmtString, |
bool & | bTestBanking | ||
) |
Definition at line 1492 of file numfmtsh.cxx.
References eCurLanguage, SvNumberFormatter::GetCurrencyEntry(), SvNumberFormatter::GetEntry(), SvNumberformat::GetLanguage(), SvNumberformat::GetNewCurrencySymbol(), SvNumberFormatter::GetTheCurrencyTable(), i, nCount, nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, pFormatter, NfCurrencyTable::size(), and SvNumberFormatter::TestNewString().
Referenced by FillEListWithUsD_Impl(), FindCurrencyFormat(), FindEntry(), GetOptions(), and IsUserDefined().
bool SvxNumberFormatShell::FindEntry | ( | const OUString & | rFmtString, |
sal_uInt32 * | pAt = nullptr |
||
) |
Definition at line 444 of file numfmtsh.cxx.
References eCurLanguage, FindCurrencyTableEntry(), SvNumberFormatter::GetEntry(), SvNumberformat::GetFormatstring(), SvNumberformat::GetLanguage(), IsInTable(), IsRemoved_Impl(), nCurFormatKey, nPos, NUMBERFORMAT_ENTRY_NEW_CURRENCY, NUMBERFORMAT_ENTRY_NOT_FOUND, pFormatter, and SvNumberFormatter::TestNewString().
Referenced by IsTmpCurrencyFormat().
void SvxNumberFormatShell::FormatChanged | ( | sal_uInt16 | nFmtLbPos, |
OUString & | rPreviewStr, | ||
const Color *& | rpFontColor | ||
) |
Definition at line 193 of file numfmtsh.cxx.
References aCurEntryList, aCurrencyFormatList, GetPreviewString_Impl(), MakePrevStringFromVal(), nCurCategory, nCurFormatKey, NUMBERFORMAT_ENTRY_NOT_FOUND, and nValNum.
|
private |
Definition at line 1119 of file numfmtsh.cxx.
References aAddList.
Referenced by AddFormat(), and RemoveFormat().
short SvxNumberFormatShell::GetCategory4Entry | ( | short | nEntry | ) | const |
Definition at line 1264 of file numfmtsh.cxx.
References aCurEntryList, aCurrencyFormatList, CAT_CURRENCY, CategoryToPos_Impl(), SvNumberFormatter::GetEntry(), SvNumberformat::GetMaskedType(), o3tl::make_unsigned(), NUMBERFORMAT_ENTRY_NOT_FOUND, and pFormatter.
OUString SvxNumberFormatShell::GetComment4Entry | ( | short | nEntry | ) |
Definition at line 1243 of file numfmtsh.cxx.
References aCurEntryList, SvNumberformat::GetComment(), SvNumberFormatter::GetEntry(), o3tl::make_unsigned(), and pFormatter.
|
inline |
Definition at line 156 of file numfmtsh.hxx.
|
inline |
Definition at line 155 of file numfmtsh.hxx.
|
inline |
Definition at line 169 of file numfmtsh.hxx.
void SvxNumberFormatShell::GetCurrencySymbols | ( | std::vector< OUString > & | rList, |
sal_uInt16 * | pPos | ||
) |
Definition at line 1394 of file numfmtsh.cxx.
References aCurCurrencyList, SvNumberFormatter::GetTheCurrencyTable(), i, SvNumberFormatter::MatchSystemCurrency(), nCount, nCurCurrencyEntryPos, and NfCurrencyTable::size().
OUString SvxNumberFormatShell::GetFormat4Entry | ( | short | nEntry | ) |
Definition at line 1323 of file numfmtsh.cxx.
References aCurEntryList, aCurrencyFormatList, SvNumberFormatter::GetEntry(), SvNumberformat::GetFormatstring(), o3tl::make_unsigned(), and pFormatter.
sal_uInt16 SvxNumberFormatShell::GetFormatIntegerDigits | ( | std::u16string_view | rFormat | ) | const |
Definition at line 342 of file numfmtsh.cxx.
References eCurLanguage, SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetFormatIntegerDigits(), and pFormatter.
void SvxNumberFormatShell::GetInitSettings | ( | sal_uInt16 & | nCatLbPos, |
LanguageType & | rLangType, | ||
sal_uInt16 & | nFmtLbSelPos, | ||
std::vector< OUString > & | rFmtEntries, | ||
OUString & | rPrevString, | ||
const Color *& | rpPrevColor | ||
) |
Definition at line 481 of file numfmtsh.cxx.
References CAT_ALL, CategoryToPos_Impl(), DBG_ASSERT, eCurLanguage, eValType, FillEntryList_Impl(), SvNumberFormatter::GetFirstEntryTable(), GetPreviewString_Impl(), nCurCategory, nCurFormatKey, pCurFmtTable, pFormatter, PosToCategory_Impl(), SELPOS_NONE, and Undefined.
short SvxNumberFormatShell::GetListPos4Entry | ( | sal_uInt32 | nIdx, |
std::u16string_view | rFmtString | ||
) |
Definition at line 1352 of file numfmtsh.cxx.
References aCurEntryList, aCurrencyFormatList, i, o3tl::make_unsigned(), NUMBERFORMAT_ENTRY_NEW_CURRENCY, and SELPOS_NONE.
void SvxNumberFormatShell::GetOptions | ( | const OUString & | rFormat, |
bool & | rThousand, | ||
bool & | rNegRed, | ||
sal_uInt16 & | rPrecision, | ||
sal_uInt16 & | rLeadingZeroes, | ||
sal_uInt16 & | rCatLbPos | ||
) |
Definition at line 356 of file numfmtsh.cxx.
References CAT_CURRENCY, CAT_USERDEFINED, CategoryToPos_Impl(), eCurLanguage, FindCurrencyTableEntry(), SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetFormatSpecialInfo(), SvNumberFormatter::GetType(), IsInTable(), nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, and pFormatter.
|
private |
Definition at line 1090 of file numfmtsh.cxx.
References aValStr, bUseStarFormat, eValType, SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetType(), nCurFormatKey, nValNum, pFormatter, and String.
Referenced by FormatChanged(), and GetInitSettings().
|
private |
Definition at line 1109 of file numfmtsh.cxx.
References aDelList.
Referenced by AddFormat(), and IsRemoved_Impl().
OUString SvxNumberFormatShell::GetStandardName | ( | ) | const |
Returns the name of Standard, General, ... for the current language.
Definition at line 1389 of file numfmtsh.cxx.
References eCurLanguage, SvNumberFormatter::GetStandardName(), and pFormatter.
std::vector< sal_uInt32 > const & SvxNumberFormatShell::GetUpdateData | ( | ) | const |
Definition at line 171 of file numfmtsh.cxx.
References aDelList.
bool SvxNumberFormatShell::GetUserDefined4Entry | ( | short | nEntry | ) |
Definition at line 1298 of file numfmtsh.cxx.
References aCurEntryList, SvNumberFormatter::GetEntry(), SvNumberformat::GetType(), o3tl::make_unsigned(), and pFormatter.
|
private |
Definition at line 711 of file numfmtsh.cxx.
References eCurLanguage, eType, SvNumberFormatter::GetIndexTableOffset(), SvNumberFormatter::GetStandardFormat(), nCurFormatKey, NF_DATE_ISO_YYYYMMDD, NF_DATE_SYS_DDMMYYYY, NF_DATETIME_ISO_YYYYMMDD_HHMMSS, NF_DATETIME_ISO_YYYYMMDD_HHMMSS000, NF_DATETIME_ISO_YYYYMMDDTHHMMSS, NF_DATETIME_ISO_YYYYMMDDTHHMMSS000, NF_DATETIME_SYS_DDMMYYYY_HHMM, NF_DATETIME_SYS_DDMMYYYY_HHMMSS, NF_TIME_HH_MMSS, NF_TIME_HH_MMSS00, NF_TIME_MMSS00, nIndex, and pFormatter.
Referenced by FillEListWithOneFormat_Impl().
bool SvxNumberFormatShell::IsInTable | ( | sal_uInt16 | nPos, |
bool | bTmpBanking, | ||
std::u16string_view | rFmtString | ||
) | const |
Definition at line 1578 of file numfmtsh.cxx.
References SvNumberFormatter::GetCurrencyFormatStrings(), SvNumberFormatter::GetTheCurrencyTable(), nPos, pFormatter, and NfCurrencyTable::size().
Referenced by FillEListWithUsD_Impl(), FindEntry(), GetOptions(), and IsUserDefined().
bool SvxNumberFormatShell::IsNatNum12 | ( | std::u16string_view | rFormat | ) | const |
Definition at line 349 of file numfmtsh.cxx.
References eCurLanguage, SvNumberFormatter::GetEntryKey(), SvNumberFormatter::IsNatNum12(), and pFormatter.
|
private |
Definition at line 1114 of file numfmtsh.cxx.
References aDelList, and GetRemoved_Impl().
Referenced by FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUsD_Impl(), FillEListWithUserCurrencys(), FindEntry(), and RemoveFormat().
bool SvxNumberFormatShell::IsTmpCurrencyFormat | ( | const OUString & | rFmtString | ) |
Definition at line 1460 of file numfmtsh.cxx.
References FindEntry(), and NUMBERFORMAT_ENTRY_NEW_CURRENCY.
bool SvxNumberFormatShell::IsUserDefined | ( | const OUString & | rFmtString | ) |
Definition at line 420 of file numfmtsh.cxx.
References eCurLanguage, FindCurrencyTableEntry(), SvNumberFormatter::GetEntry(), SvNumberFormatter::GetEntryKey(), SvNumberformat::HasNewCurrency(), IsInTable(), SvNumberFormatter::IsUserDefined(), nPos, NUMBERFORMAT_ENTRY_NOT_FOUND, and pFormatter.
void SvxNumberFormatShell::LanguageChanged | ( | LanguageType | eLangType, |
short & | rFmtSelPos, | ||
std::vector< OUString > & | rFmtEntries | ||
) |
Definition at line 185 of file numfmtsh.cxx.
References SvNumberFormatter::ChangeCL(), eCurLanguage, FillEntryList_Impl(), nCurCategory, nCurFormatKey, pCurFmtTable, and pFormatter.
void SvxNumberFormatShell::MakeFormat | ( | OUString & | rFormat, |
bool | bThousand, | ||
bool | bNegRed, | ||
sal_uInt16 | nPrecision, | ||
sal_uInt16 | nLeadingZeroes, | ||
sal_uInt16 | nCurrencyEntryPos | ||
) |
Definition at line 309 of file numfmtsh.cxx.
References aCurrencyFormatList, AddFormat(), eCurLanguage, SvNumberFormatter::GenerateFormat(), nCurFormatKey, NUMBERFORMAT_ENTRY_NOT_FOUND, pFormatter, and SvNumberFormatter::TestNewString().
void SvxNumberFormatShell::MakePreviewString | ( | const OUString & | rFormatStr, |
OUString & | rPreviewStr, | ||
const Color *& | rpFontColor | ||
) |
Definition at line 385 of file numfmtsh.cxx.
References aValStr, bIsDefaultValNum, bUseStarFormat, eCurLanguage, eValType, SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetOutputString(), SvNumberFormatter::GetPreviewString(), SvNumberFormatter::GetType(), NUMBERFORMAT_ENTRY_NOT_FOUND, nValNum, pFormatter, and String.
void SvxNumberFormatShell::MakePrevStringFromVal | ( | const OUString & | rFormatStr, |
OUString & | rPreviewStr, | ||
const Color *& | rpFontColor, | ||
double | nValue | ||
) |
Definition at line 1215 of file numfmtsh.cxx.
References eCurLanguage, SvNumberFormatter::GetPreviewString(), nValue, and pFormatter.
Referenced by FormatChanged().
|
staticprivate |
Definition at line 1125 of file numfmtsh.cxx.
References CAT_ALL, CAT_BOOLEAN, CAT_CURRENCY, CAT_DATE, CAT_FRACTION, CAT_NUMBER, CAT_PERCENT, CAT_SCIENTIFIC, CAT_TEXT, CAT_TIME, CAT_USERDEFINED, and nPos.
Referenced by CategoryChanged(), and GetInitSettings().
void SvxNumberFormatShell::RemoveFormat | ( | std::u16string_view | rFormat, |
sal_uInt16 & | rCatLbSelPos, | ||
short & | rFmtSelPos, | ||
std::vector< OUString > & | rFmtEntries | ||
) |
Definition at line 281 of file numfmtsh.cxx.
References aAddList, aDelList, CategoryToPos_Impl(), DBG_ASSERT, eCurLanguage, FillEntryList_Impl(), GetAdded_Impl(), SvNumberFormatter::GetEntryKey(), SvNumberFormatter::GetEntryTable(), SvNumberFormatter::GetStandardFormat(), SvNumberFormatter::GetType(), IsRemoved_Impl(), nCurCategory, nCurFormatKey, NUMBERFORMAT_ENTRY_NOT_FOUND, pCurFmtTable, and pFormatter.
void SvxNumberFormatShell::SetComment4Entry | ( | short | nEntry, |
const OUString & | aCommentString | ||
) |
Definition at line 1227 of file numfmtsh.cxx.
References aCurEntryList, SvNumberFormatter::GetEntry(), pFormatter, and SvNumberformat::SetComment().
void SvxNumberFormatShell::SetCurCurrencyEntry | ( | NfCurrencyEntry * | pCEntry | ) |
Definition at line 1455 of file numfmtsh.cxx.
References pCurCurrencyEntry.
|
inline |
Definition at line 154 of file numfmtsh.hxx.
void SvxNumberFormatShell::SetCurrencySymbol | ( | sal_uInt32 | nPos | ) |
Definition at line 1431 of file numfmtsh.cxx.
References aCurCurrencyList, bBankingSymbol, eCurLanguage, SvNumberFormatter::GetFormatIndex(), SvNumberFormatter::GetTheCurrencyTable(), nCount, nCurCurrencyEntryPos, nCurFormatKey, NF_CURRENCY_1000DEC2_RED, nPos, pCurCurrencyEntry, pFormatter, and NfCurrencyTable::size().
|
inline |
Definition at line 181 of file numfmtsh.hxx.
|
inline |
Definition at line 151 of file numfmtsh.hxx.
|
private |
Definition at line 189 of file numfmtsh.hxx.
Referenced by AddFormat(), GetAdded_Impl(), RemoveFormat(), and ~SvxNumberFormatShell().
|
private |
Definition at line 195 of file numfmtsh.hxx.
Referenced by FindCurrencyFormat(), GetCurrencySymbols(), and SetCurrencySymbol().
|
private |
Definition at line 191 of file numfmtsh.hxx.
Referenced by FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUsD_Impl(), FillEListWithUserCurrencys(), FillEntryList_Impl(), FormatChanged(), GetCategory4Entry(), GetComment4Entry(), GetFormat4Entry(), GetListPos4Entry(), GetUserDefined4Entry(), and SetComment4Entry().
|
private |
Definition at line 199 of file numfmtsh.hxx.
Referenced by FillEListWithStd_Impl(), FillEListWithUserCurrencys(), FormatChanged(), GetCategory4Entry(), GetFormat4Entry(), GetListPos4Entry(), and MakeFormat().
|
private |
Definition at line 190 of file numfmtsh.hxx.
Referenced by AddFormat(), GetRemoved_Impl(), GetUpdateData(), IsRemoved_Impl(), and RemoveFormat().
|
private |
Definition at line 186 of file numfmtsh.hxx.
Referenced by GetPreviewString_Impl(), MakePreviewString(), and SvxNumberFormatShell().
|
private |
Definition at line 197 of file numfmtsh.hxx.
Referenced by FillEListWithUserCurrencys(), and SetCurrencySymbol().
|
private |
Definition at line 201 of file numfmtsh.hxx.
Referenced by MakePreviewString(), and SvxNumberFormatShell().
|
private |
Definition at line 188 of file numfmtsh.hxx.
Referenced by ~SvxNumberFormatShell().
|
private |
Definition at line 200 of file numfmtsh.hxx.
Referenced by GetPreviewString_Impl(), and MakePreviewString().
|
private |
Definition at line 194 of file numfmtsh.hxx.
Referenced by AddFormat(), CategoryChanged(), FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), FindCurrencyTableEntry(), FindEntry(), GetFormatIntegerDigits(), GetInitSettings(), GetOptions(), GetStandardName(), IsEssentialFormat_Impl(), IsNatNum12(), IsUserDefined(), LanguageChanged(), MakeFormat(), MakePreviewString(), MakePrevStringFromVal(), RemoveFormat(), and SetCurrencySymbol().
|
private |
Definition at line 185 of file numfmtsh.hxx.
Referenced by GetInitSettings(), GetPreviewString_Impl(), MakePreviewString(), and SvxNumberFormatShell().
|
private |
Definition at line 193 of file numfmtsh.hxx.
Referenced by AddFormat(), CategoryChanged(), FillEListWithCurrency_Impl(), FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), FillEntryList_Impl(), FormatChanged(), GetInitSettings(), LanguageChanged(), and RemoveFormat().
|
private |
Definition at line 198 of file numfmtsh.hxx.
Referenced by FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), GetCurrencySymbols(), and SetCurrencySymbol().
|
private |
Definition at line 192 of file numfmtsh.hxx.
Referenced by AddFormat(), CategoryChanged(), FillEListWithCurrency_Impl(), FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUsD_Impl(), FillEListWithUserCurrencys(), FindEntry(), FormatChanged(), GetInitSettings(), GetPreviewString_Impl(), IsEssentialFormat_Impl(), LanguageChanged(), MakeFormat(), RemoveFormat(), SetCurrencySymbol(), and SvxNumberFormatShell().
|
private |
Definition at line 187 of file numfmtsh.hxx.
Referenced by FormatChanged(), GetPreviewString_Impl(), MakePreviewString(), and SvxNumberFormatShell().
|
private |
Definition at line 196 of file numfmtsh.hxx.
Referenced by CategoryChanged(), FillEListWithCurrency_Impl(), FillEListWithUserCurrencys(), SetCurCurrencyEntry(), and SetCurrencySymbol().
|
private |
Definition at line 184 of file numfmtsh.hxx.
Referenced by AddFormat(), CategoryChanged(), FillEListWithCurrency_Impl(), FillEListWithStd_Impl(), FillEListWithSysCurrencys(), FillEListWithUsD_Impl(), FillEListWithUserCurrencys(), GetInitSettings(), LanguageChanged(), and RemoveFormat().
|
private |
Definition at line 183 of file numfmtsh.hxx.
Referenced by AddFormat(), CategoryChanged(), FillEListWithCurrency_Impl(), FillEListWithOneFormat_Impl(), FillEListWithSysCurrencys(), FillEListWithUserCurrencys(), FindCurrencyTableEntry(), FindEntry(), GetCategory4Entry(), GetComment4Entry(), GetFormat4Entry(), GetFormatIntegerDigits(), GetInitSettings(), GetOptions(), GetPreviewString_Impl(), GetStandardName(), GetUserDefined4Entry(), IsEssentialFormat_Impl(), IsInTable(), IsNatNum12(), IsUserDefined(), LanguageChanged(), MakeFormat(), MakePreviewString(), MakePrevStringFromVal(), RemoveFormat(), SetComment4Entry(), SetCurrencySymbol(), SvxNumberFormatShell(), and ~SvxNumberFormatShell().