XclExpNumFmtBuffer Class Reference

Stores all number formats used in the document. More...

#include <xestyle.hxx>

Inheritance diagram for XclExpNumFmtBuffer:

Inheritance graph
[legend]
Collaboration diagram for XclExpNumFmtBuffer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 XclExpNumFmtBuffer (const XclExpRoot &rRoot)
virtual ~XclExpNumFmtBuffer ()
ULONG GetStandardFormat () const
 Returns the core index of the current standard number format.
sal_uInt16 Insert (ULONG nScNumFmt)
 Inserts a number format into the format buffer.
virtual void Save (XclExpStream &rStrm)
 Writes all FORMAT records contained in this buffer.
virtual void SaveXml (XclExpXmlStream &rStrm)
 XclExpNumFmtBuffer (const XclExpRoot &rRoot)
virtual ~XclExpNumFmtBuffer ()
ULONG GetStandardFormat () const
 Returns the core index of the current standard number format.
sal_uInt16 Insert (ULONG nScNumFmt)
 Inserts a number format into the format buffer.
virtual void Save (XclExpStream &rStrm)
 Writes all FORMAT records contained in this buffer.
virtual void SaveXml (XclExpXmlStream &rStrm)

Private Types

typedef ::std::auto_ptr
< SvNumberFormatter
SvNumberFormatterPtr
typedef ::std::vector
< XclExpNumFmt
XclExpNumFmtVec
typedef NfKeywordTable * NfKeywordTablePtr
typedef ::std::auto_ptr
< SvNumberFormatter
SvNumberFormatterPtr
typedef ::std::vector
< XclExpNumFmt
XclExpNumFmtVec
typedef NfKeywordTable * NfKeywordTablePtr

Private Member Functions

void WriteFormatRecord (XclExpStream &rStrm, sal_uInt16 nXclNumFmt, const String &rFormatStr)
 Writes the FORMAT record with index nXclIx and format string rFormatStr.
void WriteFormatRecord (XclExpStream &rStrm, const XclExpNumFmt &rFormat)
 Writes the FORMAT record represented by rFormat.
String GetFormatCode (const XclExpNumFmt &rFormat)
void WriteFormatRecord (XclExpStream &rStrm, sal_uInt16 nXclNumFmt, const String &rFormatStr)
 Writes the FORMAT record with index nXclIx and format string rFormatStr.
void WriteFormatRecord (XclExpStream &rStrm, const XclExpNumFmt &rFormat)
 Writes the FORMAT record represented by rFormat.
String GetFormatCode (const XclExpNumFmt &rFormat)

Private Attributes

SvNumberFormatterPtr mxFormatter
XclExpNumFmtVec maFormatMap
 Special number formatter for conversion.
NfKeywordTablePtr mpKeywordTable
 Maps core formats to Excel indexes.
ULONG mnStdFmt
 Replacement table.
sal_uInt16 mnXclOffset
 Key for standard number format.


Detailed Description

Stores all number formats used in the document.

Definition at line 294 of file inc/xestyle.hxx.


Member Typedef Documentation

typedef ::std::auto_ptr< SvNumberFormatter > XclExpNumFmtBuffer::SvNumberFormatterPtr [private]

Definition at line 321 of file inc/xestyle.hxx.

Definition at line 322 of file inc/xestyle.hxx.

typedef NfKeywordTable* XclExpNumFmtBuffer::NfKeywordTablePtr [private]

Definition at line 323 of file inc/xestyle.hxx.

typedef ::std::auto_ptr< SvNumberFormatter > XclExpNumFmtBuffer::SvNumberFormatterPtr [private]

Definition at line 299 of file xlsx/xestyle.hxx.

Definition at line 300 of file xlsx/xestyle.hxx.

typedef NfKeywordTable* XclExpNumFmtBuffer::NfKeywordTablePtr [private]

Definition at line 301 of file xlsx/xestyle.hxx.


Constructor & Destructor Documentation

XclExpNumFmtBuffer::XclExpNumFmtBuffer ( const XclExpRoot rRoot  )  [explicit]

XclExpNumFmtBuffer::~XclExpNumFmtBuffer (  )  [virtual]

Definition at line 1234 of file xestyle.cxx.

References mpKeywordTable.

XclExpNumFmtBuffer::XclExpNumFmtBuffer ( const XclExpRoot rRoot  )  [explicit]

virtual XclExpNumFmtBuffer::~XclExpNumFmtBuffer (  )  [virtual]


Member Function Documentation

ULONG XclExpNumFmtBuffer::GetStandardFormat (  )  const [inline]

Returns the core index of the current standard number format.

Definition at line 301 of file inc/xestyle.hxx.

References mnStdFmt.

Referenced by XclExpFormulaCell::XclExpFormulaCell().

sal_uInt16 XclExpNumFmtBuffer::Insert ( ULONG  nScNumFmt  ) 

Inserts a number format into the format buffer.

Parameters:
nScNumFmt The core index of the number format.
Returns:
The resulting Excel format index.

Definition at line 1239 of file xestyle.cxx.

References maFormatMap, and mnXclOffset.

Referenced by XclExpChSourceLink::ConvertNumFmt(), and XclExpXF::Init().

void XclExpNumFmtBuffer::Save ( XclExpStream rStrm  )  [virtual]

Writes all FORMAT records contained in this buffer.

Reimplemented from XclExpRecordBase.

Definition at line 1257 of file xestyle.cxx.

References maFormatMap, and WriteFormatRecord().

void XclExpNumFmtBuffer::SaveXml ( XclExpXmlStream rStrm  )  [virtual]

void XclExpNumFmtBuffer::WriteFormatRecord ( XclExpStream rStrm,
sal_uInt16  nXclNumFmt,
const String &  rFormatStr 
) [private]

void XclExpNumFmtBuffer::WriteFormatRecord ( XclExpStream rStrm,
const XclExpNumFmt rFormat 
) [private]

Writes the FORMAT record represented by rFormat.

Definition at line 1295 of file xestyle.cxx.

References GetFormatCode(), XclExpNumFmt::mnXclNumFmt, and WriteFormatRecord().

String XclExpNumFmtBuffer::GetFormatCode ( const XclExpNumFmt rFormat  )  [private]

ULONG XclExpNumFmtBuffer::GetStandardFormat (  )  const [inline]

Returns the core index of the current standard number format.

Definition at line 279 of file xlsx/xestyle.hxx.

References mnStdFmt.

sal_uInt16 XclExpNumFmtBuffer::Insert ( ULONG  nScNumFmt  ) 

Inserts a number format into the format buffer.

Parameters:
nScNumFmt The core index of the number format.
Returns:
The resulting Excel format index.

virtual void XclExpNumFmtBuffer::Save ( XclExpStream rStrm  )  [virtual]

Writes all FORMAT records contained in this buffer.

Reimplemented from XclExpRecordBase.

virtual void XclExpNumFmtBuffer::SaveXml ( XclExpXmlStream rStrm  )  [virtual]

Reimplemented from XclExpRecordBase.

void XclExpNumFmtBuffer::WriteFormatRecord ( XclExpStream rStrm,
sal_uInt16  nXclNumFmt,
const String &  rFormatStr 
) [private]

Writes the FORMAT record with index nXclIx and format string rFormatStr.

void XclExpNumFmtBuffer::WriteFormatRecord ( XclExpStream rStrm,
const XclExpNumFmt rFormat 
) [private]

Writes the FORMAT record represented by rFormat.

String XclExpNumFmtBuffer::GetFormatCode ( const XclExpNumFmt rFormat  )  [private]


Member Data Documentation

Definition at line 325 of file inc/xestyle.hxx.

Referenced by GetFormatCode(), and XclExpNumFmtBuffer().

Special number formatter for conversion.

Definition at line 326 of file inc/xestyle.hxx.

Referenced by Insert(), Save(), and SaveXml().

Maps core formats to Excel indexes.

Definition at line 327 of file inc/xestyle.hxx.

Referenced by GetFormatCode(), XclExpNumFmtBuffer(), and ~XclExpNumFmtBuffer().

Replacement table.

Definition at line 328 of file inc/xestyle.hxx.

Referenced by GetStandardFormat().

sal_uInt16 XclExpNumFmtBuffer::mnXclOffset [private]

Key for standard number format.

Definition at line 329 of file inc/xestyle.hxx.

Referenced by Insert(), and XclExpNumFmtBuffer().


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

Generated on Thu Apr 29 18:51:22 2010 for ooo-build Module sc (ooo/OOO320_m15) by  doxygen 1.5.6