LibreOffice Module sc (master)  1
Public Member Functions | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
XclNumFmtBuffer Class Reference

#include <xlstyle.hxx>

Inheritance diagram for XclNumFmtBuffer:
[legend]
Collaboration diagram for XclNumFmtBuffer:
[legend]

Public Member Functions

 XclNumFmtBuffer (const XclRoot &rRoot)
 
sal_uInt32 GetStdScNumFmt () const
 Returns the core index of the current standard number format. More...
 

Protected Types

typedef ::std::map< sal_uInt16, XclNumFmtXclNumFmtMap
 

Protected Member Functions

void InitializeImport ()
 Clears all buffered data, used to set up for a new sheet. More...
 
const XclNumFmtMapGetFormatMap () const
 Returns the current number format map. More...
 
void InsertFormat (sal_uInt16 nXclNumFmt, const OUString &rFormat)
 Inserts a new number format for the specified Excel format index. More...
 

Private Member Functions

void InsertBuiltinFormats ()
 Inserts built-in number formats for the current system language. More...
 

Private Attributes

XclNumFmtMap maFmtMap
 
const LanguageType meSysLang
 Map containing all default and user-defined formats. More...
 
const sal_uInt32 mnStdScNumFmt
 Current system language. More...
 

Detailed Description

Definition at line 445 of file xlstyle.hxx.

Member Typedef Documentation

typedef ::std::map< sal_uInt16, XclNumFmt > XclNumFmtBuffer::XclNumFmtMap
protected

Definition at line 454 of file xlstyle.hxx.

Constructor & Destructor Documentation

XclNumFmtBuffer::XclNumFmtBuffer ( const XclRoot rRoot)
explicit

Definition at line 1453 of file xlstyle.cxx.

References EXC_BIFF5, XclRoot::GetBiff(), and InsertBuiltinFormats().

Member Function Documentation

const XclNumFmtMap& XclNumFmtBuffer::GetFormatMap ( ) const
inlineprotected

Returns the current number format map.

Definition at line 460 of file xlstyle.hxx.

References maFmtMap.

Referenced by XclImpNumFmtBuffer::CreateScFormats().

sal_uInt32 XclNumFmtBuffer::GetStdScNumFmt ( ) const
inline

Returns the core index of the current standard number format.

Definition at line 451 of file xlstyle.hxx.

References mnStdScNumFmt.

Referenced by XclImpNumFmtBuffer::FillToItemSet(), and XclImpXFRangeBuffer::Finalize().

void XclNumFmtBuffer::InitializeImport ( )
protected

Clears all buffered data, used to set up for a new sheet.

Definition at line 1463 of file xlstyle.cxx.

References maFmtMap.

Referenced by XclImpNumFmtBuffer::Initialize().

void XclNumFmtBuffer::InsertBuiltinFormats ( )
private

Inserts built-in number formats for the current system language.

Definition at line 1477 of file xlstyle.cxx.

References EMPTY_OUSTRING, EXC_FORMAT_NOTFOUND, LANGUAGE_DONTKNOW, LANGUAGE_SYSTEM, maFmtMap, XclNumFmt::maFormat, XclNumFmt::meLanguage, XclNumFmt::meOffset, meSysLang, and SAL_WARN.

Referenced by XclNumFmtBuffer().

void XclNumFmtBuffer::InsertFormat ( sal_uInt16  nXclNumFmt,
const OUString &  rFormat 
)
protected

Inserts a new number format for the specified Excel format index.

Definition at line 1468 of file xlstyle.cxx.

References LANGUAGE_SYSTEM, maFmtMap, XclNumFmt::maFormat, XclNumFmt::meLanguage, XclNumFmt::meOffset, and NF_NUMBER_STANDARD.

Referenced by XclImpNumFmtBuffer::ReadCFFormat(), and XclImpNumFmtBuffer::ReadFormat().

Member Data Documentation

XclNumFmtMap XclNumFmtBuffer::maFmtMap
private

Definition at line 469 of file xlstyle.hxx.

Referenced by GetFormatMap(), InitializeImport(), InsertBuiltinFormats(), and InsertFormat().

const LanguageType XclNumFmtBuffer::meSysLang
private

Map containing all default and user-defined formats.

Definition at line 470 of file xlstyle.hxx.

Referenced by InsertBuiltinFormats().

const sal_uInt32 XclNumFmtBuffer::mnStdScNumFmt
private

Current system language.

Definition at line 471 of file xlstyle.hxx.

Referenced by GetStdScNumFmt().


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