filters

Swinder::FormatRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::FormatRecord:
Swinder::Record

Public Member Functions

unsigned int rtti ()
 FormatRecord ()
 ~FormatRecord ()
 FormatRecord (const FormatRecord &fr)
FormatRecord & operator= (const FormatRecord &fr)
unsigned index () const
void setIndex (unsigned i)
UString formatString () const
void setFormatString (const UString &fs)
virtual const char * name ()
virtual void setData (unsigned size, const unsigned char *data)
virtual void dump (std::ostream &out) const
Public Member Functions inherited from Swinder::Record
 Record ()
virtual ~Record ()
void setVersion (unsigned v)
unsigned version ()
void setPosition (unsigned pos)
unsigned position () const

Static Public Attributes

static const unsigned int id = 0x041e
Static Public Attributes inherited from Swinder::Record
static const unsigned int id = 0

Additional Inherited Members

Static Public Member Functions inherited from Swinder::Record
static Record * create (unsigned type)
Protected Attributes inherited from Swinder::Record
unsigned stream_position
unsigned ver

Detailed Description

Number formatting string.

Class FormatRecord contains information about a number format. All Format records occur together in a sequential list. An XFRecord might refer to the specific Format record using an index to that list.

See also
XFRecord

Definition at line 1508 of file excel.h.

Constructor & Destructor Documentation

◆ FormatRecord() [1/2]

FormatRecord::FormatRecord ( )

Creates a new Format record.

Definition at line 2811 of file excel.cpp.

◆ ~FormatRecord()

FormatRecord::~FormatRecord ( )

Destroys the Format record.

Definition at line 2818 of file excel.cpp.

◆ FormatRecord() [2/2]

FormatRecord::FormatRecord ( const FormatRecord & fr)

Creates a copy of Format record.

Definition at line 2823 of file excel.cpp.

Member Function Documentation

◆ dump()

void FormatRecord::dump ( std::ostream & out) const
virtual

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2869 of file excel.cpp.

◆ formatString()

UString FormatRecord::formatString ( ) const

Returns the formatting string of the format, e.g "0.00" for 2 decimal places number formatting.

See also
setFormatString

Definition at line 2847 of file excel.cpp.

◆ index()

unsigned FormatRecord::index ( ) const

Returns the index of the format.

Each format specified by Format record has unique index which will be referred by XF Record.

See also
setIndex

Definition at line 2837 of file excel.cpp.

◆ name()

virtual const char * Swinder::FormatRecord::name ( )
inlinevirtual

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 1569 of file excel.h.

◆ operator=()

FormatRecord & FormatRecord::operator= ( const FormatRecord & fr)

Assigns from another Format record.

Definition at line 2830 of file excel.cpp.

◆ rtti()

unsigned int Swinder::FormatRecord::rtti ( )
inlinevirtual

Reimplemented from Swinder::Record.

Definition at line 1514 of file excel.h.

◆ setData()

void FormatRecord::setData ( unsigned size,
const unsigned char * data )
virtual

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 2857 of file excel.cpp.

◆ setFormatString()

void FormatRecord::setFormatString ( const UString & fs)

Sets the formatting string of the format.

See also
formatString

Definition at line 2852 of file excel.cpp.

◆ setIndex()

void FormatRecord::setIndex ( unsigned i)

Sets the index of the format.

Each format specified by Format record has unique index which will be referred by XF Record.

See also
index

Definition at line 2842 of file excel.cpp.

Member Data Documentation

◆ id

const unsigned int FormatRecord::id = 0x041e
static

Definition at line 1512 of file excel.h.


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