|
LibreOffice Module xmloff (master) 1
|
#include <numehelp.hxx>
Public Member Functions | |
| XMLNumberFormatAttributesExportHelper (css::uno::Reference< css::util::XNumberFormatsSupplier > const &xNumberFormatsSupplier) | |
| XMLNumberFormatAttributesExportHelper (css::uno::Reference< css::util::XNumberFormatsSupplier > const &xNumberFormatsSupplier, SvXMLExport &rExport) | |
| ~XMLNumberFormatAttributesExportHelper () | |
| sal_Int16 | GetCellType (const sal_Int32 nNumberFormat, OUString &sCurrency, bool &bIsStandard) |
| bool | GetCurrencySymbol (const sal_Int32 nNumberFormat, OUString &rCurrencySymbol) |
| sal_Int16 | GetCellType (const sal_Int32 nNumberFormat, bool &bIsStandard) |
| void | WriteAttributes (const sal_Int16 nTypeKey, const double &rValue, const OUString &rCurrencySymbol, bool bExportValue, sal_uInt16 nNamespace=XML_NAMESPACE_OFFICE) |
| void | SetNumberFormatAttributes (const sal_Int32 nNumberFormat, const double &rValue, bool bExportValue=true, sal_uInt16 nNamespace=XML_NAMESPACE_OFFICE, bool bExportCurrencySymbol=true) |
| void | SetNumberFormatAttributes (const OUString &rValue, std::u16string_view rCharacters, bool bExportValue=true, sal_uInt16 nNamespace=XML_NAMESPACE_OFFICE) |
Static Public Member Functions | |
| static void | WriteAttributes (SvXMLExport &rXMLExport, const sal_Int16 nTypeKey, const double &rValue, const OUString &rCurrencySymbol, bool bExportValue) |
| static bool | GetCurrencySymbol (const sal_Int32 nNumberFormat, OUString &rCurrencySymbol, css::uno::Reference< css::util::XNumberFormatsSupplier > const &xNumberFormatsSupplier) |
| static sal_Int16 | GetCellType (const sal_Int32 nNumberFormat, bool &bIsStandard, css::uno::Reference< css::util::XNumberFormatsSupplier > const &xNumberFormatsSupplier) |
| static void | SetNumberFormatAttributes (SvXMLExport &rXMLExport, const sal_Int32 nNumberFormat, const double &rValue, bool bExportValue=true) |
| static void | SetNumberFormatAttributes (SvXMLExport &rXMLExport, const OUString &rValue, std::u16string_view rCharacters, bool bExportValue, bool bExportTypeAttribute=true) |
Private Attributes | |
| css::uno::Reference< css::util::XNumberFormats > | m_xNumberFormats |
| SvXMLExport * | m_pExport |
| const OUString | m_sAttrValue |
| const OUString | m_sAttrDateValue |
| const OUString | m_sAttrTimeValue |
| const OUString | m_sAttrBooleanValue |
| const OUString | m_sAttrStringValue |
| const OUString | m_sAttrCurrency |
| XMLNumberFormatSet | m_aNumberFormats |
Definition at line 62 of file numehelp.hxx.
| XMLNumberFormatAttributesExportHelper::XMLNumberFormatAttributesExportHelper | ( | css::uno::Reference< css::util::XNumberFormatsSupplier > const & | xNumberFormatsSupplier | ) |
Definition at line 46 of file numehelp.cxx.
References getNumberFormats(), and Reference.
| XMLNumberFormatAttributesExportHelper::XMLNumberFormatAttributesExportHelper | ( | css::uno::Reference< css::util::XNumberFormatsSupplier > const & | xNumberFormatsSupplier, |
| SvXMLExport & | rExport | ||
| ) |
Definition at line 53 of file numehelp.cxx.
References getNumberFormats(), and Reference.
| XMLNumberFormatAttributesExportHelper::~XMLNumberFormatAttributesExportHelper | ( | ) |
Definition at line 67 of file numehelp.cxx.
| sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType | ( | const sal_Int32 | nNumberFormat, |
| bool & | bIsStandard | ||
| ) |
Definition at line 328 of file numehelp.cxx.
References SvXMLExport::GetNumberFormatsSupplier(), gsStandardFormat(), gsType(), m_pExport, and m_xNumberFormats.
|
static |
| sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType | ( | const sal_Int32 | nNumberFormat, |
| OUString & | sCurrency, | ||
| bool & | bIsStandard | ||
| ) |
Definition at line 71 of file numehelp.cxx.
References XMLNumberFormat::bIsStandard, GetCellType(), GetCurrencySymbol(), m_aNumberFormats, XMLNumberFormat::nType, and XMLNumberFormat::sCurrency.
Referenced by GetCellType(), and SetNumberFormatAttributes().
| bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol | ( | const sal_Int32 | nNumberFormat, |
| OUString & | rCurrencySymbol | ||
| ) |
Definition at line 294 of file numehelp.cxx.
References SvXMLExport::GetNumberFormatsSupplier(), gsCurrencyAbbreviation(), gsCurrencySymbol(), m_pExport, and m_xNumberFormats.
|
static |
Referenced by GetCellType(), and SetNumberFormatAttributes().
| void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes | ( | const OUString & | rValue, |
| std::u16string_view | rCharacters, | ||
| bool | bExportValue = true, |
||
| sal_uInt16 | nNamespace = XML_NAMESPACE_OFFICE |
||
| ) |
Definition at line 494 of file numehelp.cxx.
References SvXMLExport::AddAttribute(), m_pExport, m_sAttrStringValue, nNamespace, xmloff::token::XML_STRING, and xmloff::token::XML_VALUE_TYPE.
| void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes | ( | const sal_Int32 | nNumberFormat, |
| const double & | rValue, | ||
| bool | bExportValue = true, |
||
| sal_uInt16 | nNamespace = XML_NAMESPACE_OFFICE, |
||
| bool | bExportCurrencySymbol = true |
||
| ) |
Definition at line 475 of file numehelp.cxx.
References GetCellType(), m_pExport, nNamespace, and WriteAttributes().
|
static |
Definition at line 284 of file numehelp.cxx.
References SvXMLExport::AddAttribute(), XML_NAMESPACE_OFFICE, xmloff::token::XML_STRING, xmloff::token::XML_STRING_VALUE, and xmloff::token::XML_VALUE_TYPE.
|
static |
Definition at line 273 of file numehelp.cxx.
References GetCellType(), GetCurrencySymbol(), SvXMLExport::GetNumberFormatsSupplier(), and WriteAttributes().
Referenced by XMLTextFieldExport::ProcessValueAndType().
| void XMLNumberFormatAttributesExportHelper::WriteAttributes | ( | const sal_Int16 | nTypeKey, |
| const double & | rValue, | ||
| const OUString & | rCurrencySymbol, | ||
| bool | bExportValue, | ||
| sal_uInt16 | nNamespace = XML_NAMESPACE_OFFICE |
||
| ) |
Definition at line 356 of file numehelp.cxx.
References SvXMLExport::AddAttribute(), SvXMLUnitConverter::convertDateTime(), sax::Converter::convertDuration(), SvXMLExport::GetMM100UnitConverter(), SvXMLExport::GetNamespaceMap(), SvXMLNamespaceMap::GetQNameByKey(), xmloff::token::GetXMLToken(), m_pExport, m_sAttrBooleanValue, m_sAttrCurrency, m_sAttrDateValue, m_sAttrTimeValue, m_sAttrValue, nNamespace, SvXMLExport::SetNullDateOnUnitConverter(), xmloff::token::XML_BOOLEAN, xmloff::token::XML_CURRENCY, xmloff::token::XML_DATE, xmloff::token::XML_FALSE, xmloff::token::XML_FLOAT, xmloff::token::XML_PERCENTAGE, xmloff::token::XML_TIME, xmloff::token::XML_TRUE, and xmloff::token::XML_VALUE_TYPE.
|
static |
Definition at line 94 of file numehelp.cxx.
References SvXMLExport::AddAttribute(), SvXMLUnitConverter::convertDateTime(), sax::Converter::convertDuration(), SvXMLExport::GetMM100UnitConverter(), SvXMLExport::SetNullDateOnUnitConverter(), xmloff::token::XML_BOOLEAN, xmloff::token::XML_BOOLEAN_VALUE, xmloff::token::XML_CURRENCY, xmloff::token::XML_DATE, xmloff::token::XML_DATE_VALUE, xmloff::token::XML_FALSE, xmloff::token::XML_FLOAT, XML_NAMESPACE_OFFICE, xmloff::token::XML_PERCENTAGE, xmloff::token::XML_TIME, xmloff::token::XML_TIME_VALUE, xmloff::token::XML_TRUE, xmloff::token::XML_VALUE, and xmloff::token::XML_VALUE_TYPE.
Referenced by SetNumberFormatAttributes().
|
private |
Definition at line 72 of file numehelp.hxx.
Referenced by GetCellType().
|
private |
Definition at line 65 of file numehelp.hxx.
Referenced by GetCellType(), GetCurrencySymbol(), SetNumberFormatAttributes(), and WriteAttributes().
|
private |
Definition at line 69 of file numehelp.hxx.
Referenced by WriteAttributes().
|
private |
Definition at line 71 of file numehelp.hxx.
Referenced by WriteAttributes().
|
private |
Definition at line 67 of file numehelp.hxx.
Referenced by WriteAttributes().
|
private |
Definition at line 70 of file numehelp.hxx.
Referenced by SetNumberFormatAttributes().
|
private |
Definition at line 68 of file numehelp.hxx.
Referenced by WriteAttributes().
|
private |
Definition at line 66 of file numehelp.hxx.
Referenced by WriteAttributes().
|
private |
Definition at line 64 of file numehelp.hxx.
Referenced by GetCellType(), and GetCurrencySymbol().