filters
Swinder::FontRecord Class Reference
#include <excel.h>
Inheritance diagram for Swinder::FontRecord:

Detailed Description
Font information.Class FontRecord represents Font record, which has the information about specific font used in the document. Several Font records creates a font table, whose index will be referred in XFormat records.
A note about weirdness: font index #4 is never used. Hence, the first Font record will be index #0, the second is #1, the third is #2, the fourth is #3, but the fourth will be index #5.
- See also:
- XFRecord
Definition at line 1232 of file excel.h.
Public Types | |
enum | { Normal = 0, Superscript = 1, Subscript = 2 } |
enum | { None = 0, Single = 1, Double = 2, SingleAccounting = 0x21, DoubleAccounting = 0x22 } |
Public Member Functions | |
unsigned int | rtti () |
FontRecord () | |
FontRecord (const FontRecord &fr) | |
FontRecord & | operator= (const FontRecord &fr) |
virtual | ~FontRecord () |
unsigned | height () const |
void | setHeight (unsigned h) |
UString | fontName () const |
void | setFontName (const UString &fn) |
unsigned | fontFamily () const |
void | setFontFamily (unsigned f) |
unsigned | characterSet () const |
void | setCharacterSet (unsigned s) |
unsigned | colorIndex () const |
void | setColorIndex (unsigned c) |
unsigned | boldness () const |
void | setBoldness (unsigned b) |
bool | italic () const |
void | setItalic (bool i) |
bool | strikeout () const |
void | setStrikeout (bool s) |
unsigned | escapement () const |
void | setEscapement (unsigned s) |
unsigned | underline () const |
void | setUnderline (unsigned u) |
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
|
Creates a new Font record.
|
|
Creates a copy of another Font record.
|
|
Destroy the record.
|
Member Function Documentation
|
Returns the boldness of the font. Standard values are 400 for normal and 700 for bold.
|
|
Returns index of the color of the font.
|
|
Dumps record information to output stream. For debugging only. Reimplemented from Swinder::Record. |
|
Returns Font::Superscript if superscript is set, or Font::Subscript if subscript is set, or Font::Normal in other case.
|
|
Returns the name of font, e.g "Arial".
|
|
Returns true if italic has been set.
|
|
Returns the name of the record. For debugging only. Reimplemented from Swinder::Record. |
|
Assigns from another Font record.
|
|
Sets the boldness of the font. Standard values are 400 for normal and 700 for bold.
|
|
Sets the index of the color of the font.
|
|
Sets the data for this record.
Reimplemented from Swinder::Record. |
|
Sets the superscript or subscript. If s is Font::Superscript, then superscript is set. If s is Font::Subscript, then subscript is set.
|
|
Sets the name of the font.
|
|
If i is true, italic is set on; otherwise italic is set off.
|
|
If s is true, strikeout is set on; otherwise strikeout is set off.
|
|
Sets the underline style of the font. Possible values are Font::None, Font::Single, Font::Double, Font::SingleAccounting and Font::DoubleAccounting.
|
|
Returns true if strikeout has been set.
|
|
Returns the underline style of the font. Possible values are Font::None, Font::Single, Font::Double, Font::SingleAccounting and Font::DoubleAccounting.
|
Member Data Documentation
|
Static ID of the record. Subclasses should override this value with the id of the record they handle. Reimplemented from Swinder::Record. |
The documentation for this class was generated from the following file: