#include <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 |
| 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 = 0x0031 |
| 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
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
Member Enumeration Documentation
◆ anonymous enum
◆ anonymous enum
Constructor & Destructor Documentation
◆ FontRecord() [1/2]
◆ FontRecord() [2/2]
| FontRecord::FontRecord | ( | const FontRecord & | fr | ) |
◆ ~FontRecord()
Member Function Documentation
◆ boldness()
| unsigned FontRecord::boldness | ( | ) | const |
Returns the boldness of the font.
Standard values are 400 for normal and 700 for bold.
- See also
- setBoldness
◆ characterSet()
◆ colorIndex()
| unsigned FontRecord::colorIndex | ( | ) | const |
Returns index of the color of the font.
- See also
- setColorIndex
◆ dump()
|
virtual |
◆ escapement()
| unsigned FontRecord::escapement | ( | ) | const |
Returns Font::Superscript if superscript is set, or Font::Subscript if subscript is set, or Font::Normal in other case.
- See also
- setEscapement
◆ fontFamily()
◆ fontName()
| UString FontRecord::fontName | ( | ) | const |
Returns the name of font, e.g "Arial".
- See also
- setFontName
◆ height()
◆ italic()
| bool FontRecord::italic | ( | ) | const |
◆ name()
|
inlinevirtual |
◆ operator=()
| FontRecord & FontRecord::operator= | ( | const FontRecord & | fr | ) |
◆ rtti()
|
inlinevirtual |
Reimplemented from Swinder::Record.
◆ setBoldness()
| void FontRecord::setBoldness | ( | unsigned | b | ) |
◆ setCharacterSet()
◆ setColorIndex()
| void FontRecord::setColorIndex | ( | unsigned | c | ) |
Sets the index of the color of the font.
- See also
- colorIndex
◆ setData()
|
virtual |
Sets the data for this record.
Reimplemented from Swinder::Record.
◆ setEscapement()
| void FontRecord::setEscapement | ( | unsigned | s | ) |
Sets the superscript or subscript.
If s is Font::Superscript, then superscript is set. If s is Font::Subscript, then subscript is set.
- See also
- escapement
◆ setFontFamily()
◆ setFontName()
| void FontRecord::setFontName | ( | const UString & | fn | ) |
◆ setHeight()
◆ setItalic()
| void FontRecord::setItalic | ( | bool | i | ) |
◆ setStrikeout()
| void FontRecord::setStrikeout | ( | bool | s | ) |
◆ setUnderline()
| void FontRecord::setUnderline | ( | unsigned | u | ) |
◆ strikeout()
| bool FontRecord::strikeout | ( | ) | const |
Returns true if strikeout has been set.
- See also
- setStrikeout
◆ underline()
| unsigned FontRecord::underline | ( | ) | const |
Returns the underline style of the font.
Possible values are Font::None, Font::Single, Font::Double, Font::SingleAccounting and Font::DoubleAccounting.
- See also
- setUnderline
Member Data Documentation
◆ id
The documentation for this class was generated from the following files:
