#include <xestyle.hxx>


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. | |
Definition at line 294 of file inc/xestyle.hxx.
typedef ::std::auto_ptr< SvNumberFormatter > XclExpNumFmtBuffer::SvNumberFormatterPtr [private] |
Definition at line 321 of file inc/xestyle.hxx.
typedef ::std::vector< XclExpNumFmt > XclExpNumFmtBuffer::XclExpNumFmtVec [private] |
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.
typedef ::std::vector< XclExpNumFmt > XclExpNumFmtBuffer::XclExpNumFmtVec [private] |
Definition at line 300 of file xlsx/xestyle.hxx.
typedef NfKeywordTable* XclExpNumFmtBuffer::NfKeywordTablePtr [private] |
Definition at line 301 of file xlsx/xestyle.hxx.
| XclExpNumFmtBuffer::XclExpNumFmtBuffer | ( | const XclExpRoot & | rRoot | ) | [explicit] |
Definition at line 1208 of file xestyle.cxx.
References DBG_ERROR_BIFF, EXC_BIFF5, EXC_BIFF8, EXC_FORMAT_OFFSET5, EXC_FORMAT_OFFSET8, XclRoot::GetBiff(), mnXclOffset, mpKeywordTable, mxFormatter, NF_KEY_NN, NF_KEY_NNN, NF_KEY_NNNN, and NF_KEY_THAI_T.
| XclExpNumFmtBuffer::~XclExpNumFmtBuffer | ( | ) | [virtual] |
| XclExpNumFmtBuffer::XclExpNumFmtBuffer | ( | const XclExpRoot & | rRoot | ) | [explicit] |
| virtual XclExpNumFmtBuffer::~XclExpNumFmtBuffer | ( | ) | [virtual] |
| 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.
| nScNumFmt | The core index of the number format. |
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] |
Reimplemented from XclExpRecordBase.
Definition at line 1263 of file xestyle.cxx.
References XclExpXmlStream::GetCurrentStream(), GetFormatCode(), getStr(), maFormatMap, and XclXmlUtils::ToOString().
| void XclExpNumFmtBuffer::WriteFormatRecord | ( | XclExpStream & | rStrm, | |
| sal_uInt16 | nXclNumFmt, | |||
| const String & | rFormatStr | |||
| ) | [private] |
Writes the FORMAT record with index nXclIx and format string rFormatStr.
Definition at line 1282 of file xestyle.cxx.
References XclExpString::Assign(), XclExpString::AssignByte(), XclExpStream::EndRecord(), EXC_BIFF5, EXC_ID4_FORMAT, EXC_STR_8BITLENGTH, XclRoot::GetBiff(), XclExpString::GetSize(), XclRoot::GetTextEncoding(), and XclExpStream::StartRecord().
Referenced by Save(), and WriteFormatRecord().
| 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] |
Definition at line 1300 of file xestyle.cxx.
References XclRoot::GetFormatter(), XclExpNumFmt::mnScNumFmt, mpKeywordTable, mxFormatter, nType, NUMBERFORMAT_DEFINED, NUMBERFORMAT_LOGICAL, and pEntry.
Referenced by SaveXml(), and WriteFormatRecord().
| 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.
| nScNumFmt | The core index of the number format. |
| virtual void XclExpNumFmtBuffer::Save | ( | XclExpStream & | rStrm | ) | [virtual] |
| 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] |
Definition at line 325 of file inc/xestyle.hxx.
Referenced by GetFormatCode(), and XclExpNumFmtBuffer().
Maps core formats to Excel indexes.
Definition at line 327 of file inc/xestyle.hxx.
Referenced by GetFormatCode(), XclExpNumFmtBuffer(), and ~XclExpNumFmtBuffer().
ULONG XclExpNumFmtBuffer::mnStdFmt [private] |
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().
1.5.6