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 > xNumberFormats
 
SvXMLExportpExport
 
const OUString sAttrValue
 
const OUString sAttrDateValue
 
const OUString sAttrTimeValue
 
const OUString sAttrBooleanValue
 
const OUString sAttrStringValue
 
const OUString sAttrCurrency
 
XMLNumberFormatSet 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(), nNamespace, pExport, 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

◆ aNumberFormats

XMLNumberFormatSet XMLNumberFormatAttributesExportHelper::aNumberFormats
private

Definition at line 72 of file numehelp.hxx.

Referenced by GetCellType().

◆ pExport

SvXMLExport* XMLNumberFormatAttributesExportHelper::pExport
private

◆ sAttrBooleanValue

const OUString XMLNumberFormatAttributesExportHelper::sAttrBooleanValue
private

Definition at line 69 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ sAttrCurrency

const OUString XMLNumberFormatAttributesExportHelper::sAttrCurrency
private

Definition at line 71 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ sAttrDateValue

const OUString XMLNumberFormatAttributesExportHelper::sAttrDateValue
private

Definition at line 67 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ sAttrStringValue

const OUString XMLNumberFormatAttributesExportHelper::sAttrStringValue
private

Definition at line 70 of file numehelp.hxx.

Referenced by SetNumberFormatAttributes().

◆ sAttrTimeValue

const OUString XMLNumberFormatAttributesExportHelper::sAttrTimeValue
private

Definition at line 68 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ sAttrValue

const OUString XMLNumberFormatAttributesExportHelper::sAttrValue
private

Definition at line 66 of file numehelp.hxx.

Referenced by WriteAttributes().

◆ xNumberFormats

css::uno::Reference< css::util::XNumberFormats > XMLNumberFormatAttributesExportHelper::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: