filters

Swinder::DateModeRecord Class Reference

#include <excel.h>

Inheritance diagram for Swinder::DateModeRecord:

Swinder::Record List of all members.

Detailed Description

Date reference.

Class DateModeRecord represents DateMode record, which specifies reference date for displaying date value of given serial number. If base1904 is true, the reference date is 1st of January, 1904 (in which serial number 1 means 2nd of January, 1904). Otherwise, the reference date is 31st of December, 1899 (in which serial number 1 means 1st of January, 1900).

Definition at line 955 of file excel.h.


Public Member Functions

unsigned int rtti ()
 DateModeRecord ()
 ~DateModeRecord ()
bool base1904 () const
void setBase1904 (bool r)
virtual void setData (unsigned size, const unsigned char *data)
virtual const char * name ()
virtual void dump (std::ostream &out) const

Static Public Attributes

static const unsigned int id

Constructor & Destructor Documentation

Swinder::DateModeRecord::DateModeRecord  ) 
 

Creates a new DateMode record.

Swinder::DateModeRecord::~DateModeRecord  ) 
 

Destroy the record.


Member Function Documentation

bool Swinder::DateModeRecord::base1904  )  const
 

Returns true if the reference date is 1st of January, 1904 or false if the reference date is 31st of December, 1899.

See also:
setBase1904

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

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

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

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 993 of file excel.h.

void Swinder::DateModeRecord::setBase1904 bool  r  ) 
 

If r is true, sets the reference date to 1st of January, 1904.

Else, sets the reference date to 31st of December, 1899.

See also:
base1904

virtual void Swinder::DateModeRecord::setData unsigned  size,
const unsigned char *  data
[virtual]
 

Sets the data for this record.

Reimplemented from Swinder::Record.


Member Data Documentation

const unsigned int Swinder::DateModeRecord::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 959 of file excel.h.


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