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, const OUString &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, const OUString &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 61 of file numehelp.hxx.

Constructor & Destructor Documentation

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

Definition at line 46 of file numehelp.cxx.

References getNumberFormats(), Reference, and util.

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

Definition at line 54 of file numehelp.cxx.

References getNumberFormats(), Reference, and util.

XMLNumberFormatAttributesExportHelper::~XMLNumberFormatAttributesExportHelper ( )

Definition at line 69 of file numehelp.cxx.

Member Function Documentation

sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
OUString &  sCurrency,
bool &  bIsStandard 
)
static sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
bool &  bIsStandard,
css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier 
)
static
sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType ( const sal_Int32  nNumberFormat,
bool &  bIsStandard 
)
static bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol ( const sal_Int32  nNumberFormat,
OUString &  rCurrencySymbol,
css::uno::Reference< css::util::XNumberFormatsSupplier > const &  xNumberFormatsSupplier 
)
static
bool XMLNumberFormatAttributesExportHelper::GetCurrencySymbol ( const sal_Int32  nNumberFormat,
OUString &  rCurrencySymbol 
)
void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( SvXMLExport rXMLExport,
const sal_Int32  nNumberFormat,
const double &  rValue,
bool  bExportValue = true 
)
static
void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( SvXMLExport rXMLExport,
const OUString &  rValue,
const OUString &  rCharacters,
bool  bExportValue,
bool  bExportTypeAttribute = true 
)
static
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 477 of file numehelp.cxx.

References GetCellType(), pExport, and WriteAttributes().

void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes ( const OUString &  rValue,
const OUString &  rCharacters,
bool  bExportValue = true,
sal_uInt16  nNamespace = XML_NAMESPACE_OFFICE 
)
void XMLNumberFormatAttributesExportHelper::WriteAttributes ( SvXMLExport rXMLExport,
const sal_Int16  nTypeKey,
const double &  rValue,
const OUString &  rCurrencySymbol,
bool  bExportValue 
)
static
void XMLNumberFormatAttributesExportHelper::WriteAttributes ( const sal_Int16  nTypeKey,
const double &  rValue,
const OUString &  rCurrencySymbol,
bool  bExportValue,
sal_uInt16  nNamespace = XML_NAMESPACE_OFFICE 
)

Member Data Documentation

XMLNumberFormatSet XMLNumberFormatAttributesExportHelper::aNumberFormats
private

Definition at line 71 of file numehelp.hxx.

Referenced by GetCellType().

SvXMLExport* XMLNumberFormatAttributesExportHelper::pExport
private
const OUString XMLNumberFormatAttributesExportHelper::sAttrBooleanValue
private

Definition at line 68 of file numehelp.hxx.

Referenced by WriteAttributes().

const OUString XMLNumberFormatAttributesExportHelper::sAttrCurrency
private

Definition at line 70 of file numehelp.hxx.

Referenced by WriteAttributes().

const OUString XMLNumberFormatAttributesExportHelper::sAttrDateValue
private

Definition at line 66 of file numehelp.hxx.

Referenced by WriteAttributes().

const OUString XMLNumberFormatAttributesExportHelper::sAttrStringValue
private

Definition at line 69 of file numehelp.hxx.

Referenced by SetNumberFormatAttributes().

const OUString XMLNumberFormatAttributesExportHelper::sAttrTimeValue
private

Definition at line 67 of file numehelp.hxx.

Referenced by WriteAttributes().

const OUString XMLNumberFormatAttributesExportHelper::sAttrValue
private

Definition at line 65 of file numehelp.hxx.

Referenced by WriteAttributes().

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

Definition at line 63 of file numehelp.hxx.

Referenced by GetCellType(), and GetCurrencySymbol().


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