filters

Swinder::FormatRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::FormatRecord:

Swinder::Record List of all members.

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.


Public Member Functions

unsigned int rtti ()
 FormatRecord ()
 ~FormatRecord ()
 FormatRecord (const FormatRecord &fr)
FormatRecordoperator= (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

Static Public Attributes

static const unsigned int id

Constructor & Destructor Documentation

Swinder::FormatRecord::FormatRecord (  ) 

Creates a new Format record.

Swinder::FormatRecord::~FormatRecord (  ) 

Destroys the Format record.

Swinder::FormatRecord::FormatRecord ( const FormatRecord fr  ) 

Creates a copy of Format record.


Member Function Documentation

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

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

UString Swinder::FormatRecord::formatString (  )  const

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

See also:
setFormatString

unsigned Swinder::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

virtual const char* Swinder::FormatRecord::name (  )  [inline, virtual]

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 1569 of file excel.h.

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

Assigns from another Format record.

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

Sets the data for this record.

Reimplemented from Swinder::Record.

void Swinder::FormatRecord::setFormatString ( const UString fs  ) 

Sets the formatting string of the format.

See also:
formatString

void Swinder::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


Member Data Documentation

const unsigned int Swinder::FormatRecord::id [static]

Static ID of the record.

Subclasses should override this value with the id of the record they handle.

Reimplemented from Swinder::Record.

Definition at line 1512 of file excel.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys