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 962 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 = 0x0022

Constructor & Destructor Documentation

DateModeRecord::DateModeRecord (  ) 

Creates a new DateMode record.

Definition at line 2201 of file excel.cpp.

DateModeRecord::~DateModeRecord (  ) 

Destroy the record.

Definition at line 2208 of file excel.cpp.


Member Function Documentation

bool 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

Definition at line 2213 of file excel.cpp.

void 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

Definition at line 2218 of file excel.cpp.

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

Sets the data for this record.

Reimplemented from Swinder::Record.

Definition at line 2223 of file excel.cpp.

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

Returns the name of the record.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 1000 of file excel.h.

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

Dumps record information to output stream.

For debugging only.

Reimplemented from Swinder::Record.

Definition at line 2231 of file excel.cpp.


Member Data Documentation

const unsigned int DateModeRecord::id = 0x0022 [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 966 of file excel.h.


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