LibreOffice Module xmloff (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
XMLNumberFormatAttributesExportHelper Class Reference

#include <numehelp.hxx>

Collaboration diagram for XMLNumberFormatAttributesExportHelper:
[legend]

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
 
SvXMLExportm_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
 

Detailed Description

Definition at line 62 of file numehelp.hxx.

Constructor & Destructor Documentation

◆ XMLNumberFormatAttributesExportHelper() [1/2]

XMLNumberFormatAttributesExportHelper::XMLNumberFormatAttributesExportHelper ( css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier)

Definition at line 46 of file numehelp.cxx.

References getNumberFormats(), and Reference.

◆ XMLNumberFormatAttributesExportHelper() [2/2]

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::~XMLNumberFormatAttributesExportHelper ( )

Definition at line 67 of file numehelp.cxx.

Member Function Documentation

◆ GetCellType() [1/3]

sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
bool &  bIsStandard 
)

◆ GetCellType() [2/3]

static sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
bool &  bIsStandard,
css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier 
)
static

◆ GetCellType() [3/3]

sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
OUString &  sCurrency,
bool &  bIsStandard 
)

◆ GetCurrencySymbol() [1/2]

bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol ( const sal_Int32  nNumberFormat,
OUString &  rCurrencySymbol 
)

◆ GetCurrencySymbol() [2/2]

static bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol ( const sal_Int32  nNumberFormat,
OUString &  rCurrencySymbol,
css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier 
)
static

◆ SetNumberFormatAttributes() [1/4]

void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( const OUString &  rValue,
std::u16string_view  rCharacters,
bool  bExportValue = true,
sal_uInt16  nNamespace = XML_NAMESPACE_OFFICE 
)

◆ SetNumberFormatAttributes() [2/4]

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().

◆ SetNumberFormatAttributes() [3/4]

void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( SvXMLExport rXMLExport,
const OUString &  rValue,
std::u16string_view  rCharacters,
bool  bExportValue,
bool  bExportTypeAttribute = true 
)
static

◆ SetNumberFormatAttributes() [4/4]

void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( SvXMLExport rXMLExport,
const sal_Int32  nNumberFormat,
const double &  rValue,
bool  bExportValue = true 
)
static

◆ WriteAttributes() [1/2]

void XMLNumberFormatAttributesExportHelper::WriteAttributes ( const sal_Int16  nTypeKey,
const double &  rValue,
const OUString &  rCurrencySymbol,
bool  bExportValue,
sal_uInt16  nNamespace = XML_NAMESPACE_OFFICE 
)

◆ WriteAttributes() [2/2]

void XMLNumberFormatAttributesExportHelper::WriteAttributes ( SvXMLExport rXMLExport,
const sal_Int16  nTypeKey,
const double &  rValue,
const OUString &  rCurrencySymbol,
bool  bExportValue 
)
static

Member Data Documentation

◆ m_aNumberFormats

XMLNumberFormatSet XMLNumberFormatAttributesExportHelper::m_aNumberFormats
private

Definition at line 72 of file numehelp.hxx.

Referenced by GetCellType().

◆ m_pExport

SvXMLExport* XMLNumberFormatAttributesExportHelper::m_pExport
private

◆ m_sAttrBooleanValue

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrBooleanValue
private

Definition at line 69 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ m_sAttrCurrency

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrCurrency
private

Definition at line 71 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ m_sAttrDateValue

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrDateValue
private

Definition at line 67 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ m_sAttrStringValue

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrStringValue
private

Definition at line 70 of file numehelp.hxx.

Referenced by SetNumberFormatAttributes().

◆ m_sAttrTimeValue

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrTimeValue
private

Definition at line 68 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ m_sAttrValue

const OUString XMLNumberFormatAttributesExportHelper::m_sAttrValue
private

Definition at line 66 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ m_xNumberFormats

css::uno::Reference< css::util::XNumberFormats > XMLNumberFormatAttributesExportHelper::m_xNumberFormats
private

Definition at line 64 of file numehelp.hxx.

Referenced by GetCellType(), and GetCurrencySymbol().


The documentation for this class was generated from the following files: