19#ifndef INCLUDED_SVX_NUMFMTSH_HXX
20#define INCLUDED_SVX_NUMFMTSH_HXX
58#define NUMBERFORMAT_ENTRY_NEW_CURRENCY NUMBERFORMAT_ENTRY_NOT_FOUND-1
65 sal_uInt32 nFormatKey,
67 const OUString& rNumStr );
70 sal_uInt32 nFormatKey,
73 const OUString* pNumStr );
79 sal_uInt32 nFormatKey,
81 const OUString& rNumStr );
84 sal_uInt32 nFormatKey,
87 const OUString* pNumStr );
90 void GetInitSettings( sal_uInt16& nCatLbPos,
92 sal_uInt16& nFmtLbSelPos,
93 std::vector<OUString>& rFmtEntries,
94 OUString& rPrevString,
95 const Color*& rpPrevColor );
97 void CategoryChanged( sal_uInt16 nCatLbPos,
99 std::vector<OUString>& rFmtEntries );
103 std::vector<OUString>& rFmtEntries );
105 void FormatChanged( sal_uInt16 nFmtLbPos,
106 OUString& rPreviewStr,
107 const Color*& rpFontColor );
109 bool AddFormat( OUString& rFormat,
111 sal_uInt16& rCatLbSelPos,
113 std::vector<OUString>& rFmtEntries );
115 void RemoveFormat( std::u16string_view rFormat,
116 sal_uInt16& rCatLbSelPos,
118 std::vector<OUString>& rFmtEntries );
120 void MakeFormat( OUString& rFormat,
123 sal_uInt16 nPrecision,
124 sal_uInt16 nLeadingZeroes,
125 sal_uInt16 nCurrencyEntryPos);
127 void GetOptions(
const OUString& rFormat,
130 sal_uInt16& rPrecision,
131 sal_uInt16& rLeadingZeroes,
132 sal_uInt16& rCatLbPos );
134 sal_uInt16 GetFormatIntegerDigits( std::u16string_view rFormat )
const;
136 bool IsNatNum12( std::u16string_view rFormat )
const;
138 void MakePreviewString(
const OUString& rFormatStr,
139 OUString& rPreviewStr,
140 const Color*& rpFontColor );
142 void MakePrevStringFromVal(
const OUString& rFormatStr,
143 OUString& rPreviewStr,
144 const Color*& rpFontColor,
147 bool IsUserDefined(
const OUString& rFmtString );
148 bool IsTmpCurrencyFormat(
const OUString& rFmtString );
149 bool FindEntry(
const OUString& rFmtString, sal_uInt32* pAt =
nullptr );
152 std::vector<sal_uInt32>
const & GetUpdateData()
const;
160 OUString GetStandardName()
const;
162 OUString GetComment4Entry(
short nEntry);
163 short GetCategory4Entry(
short nEntry)
const;
164 bool GetUserDefined4Entry(
short nEntry);
165 OUString GetFormat4Entry(
short nEntry);
166 void SetComment4Entry(
short nEntry,
const OUString& aCommentString);
168 void SetCurrencySymbol(sal_uInt32 nPos);
170 sal_uInt16 FindCurrencyFormat(
const OUString& rFmtString );
171 sal_uInt16 FindCurrencyFormat(
const NfCurrencyEntry* pTmpCurrencyEntry,
bool bTmpBanking);
172 void SetCurCurrencyEntry(NfCurrencyEntry*);
173 short GetListPos4Entry( sal_uInt32 nIdx, std::u16string_view rFmtString );
175 void GetCurrencySymbols(std::vector<OUString>& rList, sal_uInt16* pPos );
177 sal_uInt16 FindCurrencyTableEntry(
const OUString& rFmtString,
bool &bTestBanking );
178 bool IsInTable(sal_uInt16 nPos,
bool bTmpBanking,
179 std::u16string_view rFmtString)
const;
203 SVX_DLLPRIVATE short FillEntryList_Impl( std::vector<OUString>& rList );
205 bool bSuppressDuplicates =
false );
206 SVX_DLLPRIVATE short FillEListWithFormats_Impl( std::vector<OUString>& rList,
short nSelPos,
209 bool bSuppressDuplicates );
210 SVX_DLLPRIVATE short FillEListWithDateTime_Impl( std::vector<OUString>& rList,
short nSelPos,
211 bool bSuppressDuplicates );
212 SVX_DLLPRIVATE void FillEListWithOneFormat_Impl( std::vector<OUString>& rList,
short & nSelPos,
214 bool bSuppressIsoDateTime );
215 SVX_DLLPRIVATE short FillEListWithCurrency_Impl( std::vector<OUString>& rList,
short nSelPos);
216 SVX_DLLPRIVATE short FillEListWithSysCurrencys( std::vector<OUString>& rList,
short nSelPos);
217 SVX_DLLPRIVATE short FillEListWithUserCurrencys( std::vector<OUString>& rList,
short nSelPos);
222 SVX_DLLPRIVATE ::std::vector<sal_uInt32>::iterator GetRemoved_Impl(
size_t nKey );
224 SVX_DLLPRIVATE ::std::vector<sal_uInt32>::iterator GetAdded_Impl(
size_t nKey );
227 const Color*& rpColor );
std::map< sal_uInt32, SvNumberformat * > SvNumberFormatTable