20#ifndef INCLUDED_XMLOFF_XMLNUMFE_HXX
21#define INCLUDED_XMLOFF_XMLNUMFE_HXX
26#include <com/sun/star/uno/Sequence.h>
27#include <rtl/ustrbuf.hxx>
58 SAL_DLLPRIVATE
void AddCalendarAttr_Impl(
const OUString& rCalendar );
59 SAL_DLLPRIVATE
void AddStyleAttr_Impl(
bool bLong );
60 SAL_DLLPRIVATE
void AddLanguageAttr_Impl(
LanguageType nLang );
62 SAL_DLLPRIVATE
void AddToTextElement_Impl( std::u16string_view rString );
63 SAL_DLLPRIVATE
void FinishTextElement_Impl(
bool bUseExtensionNS =
false);
65 SAL_DLLPRIVATE
void WriteColorElement_Impl(
const Color& rColor );
66 SAL_DLLPRIVATE
void WriteIntegerElement_Impl( sal_Int32 nInteger, sal_Int32 nBlankInteger,
bool bGrouping );
68 SAL_DLLPRIVATE
void WriteNumberElement_Impl( sal_Int32 nDecimals, sal_Int32 nMinDecimals,
69 sal_Int32 nInteger, sal_Int32 nBlankInteger,
const OUString& rDashStr,
70 bool bGrouping, sal_Int32 nTrailingThousands,
72 SAL_DLLPRIVATE
void WriteScientificElement_Impl( sal_Int32 nDecimals, sal_Int32 nMinDecimals, sal_Int32 nInteger, sal_Int32 nBlankInteger,
73 bool bGrouping, sal_Int32 nExp, sal_Int32 nExpInterval,
bool bExpSign,
75 SAL_DLLPRIVATE
void WriteFractionElement_Impl( sal_Int32 nInteger, sal_Int32 nBlankInteger,
bool bGrouping,
77 SAL_DLLPRIVATE
void WriteCurrencyElement_Impl(
const OUString& rString,
78 std::u16string_view rExt );
79 SAL_DLLPRIVATE
void WriteBooleanElement_Impl();
80 SAL_DLLPRIVATE
void WriteTextContentElement_Impl();
81 SAL_DLLPRIVATE
void WriteDayElement_Impl(
const OUString& rCalendar,
bool bLong );
82 SAL_DLLPRIVATE
void WriteMonthElement_Impl(
const OUString& rCalendar,
bool bLong,
bool bText );
83 SAL_DLLPRIVATE
void WriteYearElement_Impl(
const OUString& rCalendar,
bool bLong );
84 SAL_DLLPRIVATE
void WriteEraElement_Impl(
const OUString& rCalendar,
bool bLong );
85 SAL_DLLPRIVATE
void WriteDayOfWeekElement_Impl(
const OUString& rCalendar,
bool bLong );
86 SAL_DLLPRIVATE
void WriteWeekElement_Impl(
const OUString& rCalendar );
87 SAL_DLLPRIVATE
void WriteQuarterElement_Impl(
const OUString& rCalendar,
bool bLong );
88 SAL_DLLPRIVATE
void WriteHoursElement_Impl(
bool bLong );
89 SAL_DLLPRIVATE
void WriteMinutesElement_Impl(
bool bLong );
90 SAL_DLLPRIVATE
void WriteSecondsElement_Impl(
bool bLong, sal_uInt16 nDecimals );
91 SAL_DLLPRIVATE
void WriteAMPMElement_Impl();
92 SAL_DLLPRIVATE
void WriteMapElement_Impl( sal_Int32 nOp,
double fLimit,
93 sal_Int32 nKey, sal_Int32 nPart );
95 SAL_DLLPRIVATE
void WriteRepeatedElement_Impl(
sal_Unicode ch );
96 SAL_DLLPRIVATE
bool WriteTextWithCurrency_Impl(
const OUString& rString,
97 const css::lang::Locale& rLocale );
98 SAL_DLLPRIVATE
void ExportPart_Impl(
const SvNumberformat& rFormat, sal_uInt32 nKey, sal_uInt32 nRealKey,
99 sal_uInt16 nPart,
bool bDefPart );
101 SAL_DLLPRIVATE
void ExportFormat_Impl(
const SvNumberformat& rFormat, sal_uInt32 nKey, sal_uInt32 nRealKey );
105 const css::uno::Reference< css::util::XNumberFormatsSupplier >& rSupp );
107 const css::uno::Reference< css::util::XNumberFormatsSupplier >& rSupp,
113 void Export(
bool bIsAutoStyle);
116 void SetUsed( sal_uInt32 nKey );
119 OUString GetStyleName( sal_uInt32 nKey );
121 css::uno::Sequence<sal_Int32> GetWasUsed()
const;
122 void SetWasUsed(
const css::uno::Sequence<sal_Int32>& rWasUsed);
129 sal_uInt32 ForceSystemLanguage( sal_uInt32 nKey );
OUStringBuffer m_sTextContent
std::unique_ptr< LocaleDataWrapper > m_pLocaleData
std::unique_ptr< SvXMLNumUsedList_Impl > m_pUsedList
SvXMLNumFmtExport(SvXMLExport &rExport, const css::uno::Reference< css::util::XNumberFormatsSupplier > &rSupp)
SvNumberFormatter * m_pFormatter
constexpr OUStringLiteral XML_WRITTENNUMBERSTYLES