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 444 of file xlstyle.hxx.

Member Typedef Documentation

◆ XclNumFmtMap

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

Definition at line 453 of file xlstyle.hxx.

Constructor & Destructor Documentation

◆ XclNumFmtBuffer()

XclNumFmtBuffer::XclNumFmtBuffer ( const XclRoot rRoot)
explicit

Definition at line 1458 of file xlstyle.cxx.

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

Member Function Documentation

◆ GetFormatMap()

const XclNumFmtMap & XclNumFmtBuffer::GetFormatMap ( ) const
inlineprotected

Returns the current number format map.

Definition at line 459 of file xlstyle.hxx.

References maFmtMap.

Referenced by XclImpNumFmtBuffer::CreateScFormats().

◆ GetStdScNumFmt()

sal_uInt32 XclNumFmtBuffer::GetStdScNumFmt ( ) const
inline

Returns the core index of the current standard number format.

Definition at line 450 of file xlstyle.hxx.

References mnStdScNumFmt.

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

◆ InitializeImport()

void XclNumFmtBuffer::InitializeImport ( )
protected

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

Definition at line 1468 of file xlstyle.cxx.

References maFmtMap.

Referenced by XclImpNumFmtBuffer::Initialize().

◆ InsertBuiltinFormats()

void XclNumFmtBuffer::InsertBuiltinFormats ( )
private

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

Definition at line 1482 of file xlstyle.cxx.

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

Referenced by XclNumFmtBuffer().

◆ InsertFormat()

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

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

Definition at line 1473 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

◆ maFmtMap

XclNumFmtMap XclNumFmtBuffer::maFmtMap
private

Definition at line 468 of file xlstyle.hxx.

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

◆ meSysLang

const LanguageType XclNumFmtBuffer::meSysLang
private

Map containing all default and user-defined formats.

Definition at line 469 of file xlstyle.hxx.

Referenced by InsertBuiltinFormats().

◆ mnStdScNumFmt

const sal_uInt32 XclNumFmtBuffer::mnStdScNumFmt
private

Current system language.

Definition at line 470 of file xlstyle.hxx.

Referenced by GetStdScNumFmt().


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