filters
Swinder::FormatFont Class Reference
#include <format.h>
Detailed Description
Defines font information for cell format.Class FormatFont defines the font family, size and other attributes for use in cell format.
Definition at line 128 of file kspread/excel/sidewinder/format.h.
Public Member Functions | |
FormatFont () | |
~FormatFont () | |
FormatFont (const FormatFont &) | |
FormatFont & | operator= (const FormatFont &) |
FormatFont & | assign (const FormatFont &) |
bool | isNull () const |
const UString & | fontFamily () const |
void | setFontFamily (const UString &fontFamily) |
double | fontSize () const |
void | setFontSize (double fs) |
Color | color () const |
void | setColor (const Color &color) |
bool | bold () const |
void | setBold (bool b) |
bool | italic () const |
void | setItalic (bool i) |
bool | underline () const |
void | setUnderline (bool u) |
bool | strikeout () const |
void | setStrikeout (bool s) |
bool | subscript () const |
void | setSubscript (bool s) |
bool | superscript () const |
void | setSuperscript (bool s) |
bool | operator== (const FormatFont &f) const |
bool | operator!= (const FormatFont &f) const |
Constructor & Destructor Documentation
Swinder::FormatFont::FormatFont | ( | ) |
Creates a default font information.
Swinder::FormatFont::~FormatFont | ( | ) |
Destroys the font information.
Swinder::FormatFont::FormatFont | ( | const FormatFont & | ) |
Creates a copy of font information.
Member Function Documentation
FormatFont& Swinder::FormatFont::assign | ( | const FormatFont & | ) |
Assigns from another font information.
bool Swinder::FormatFont::bold | ( | ) | const |
Returns true if bold has been set.
Color Swinder::FormatFont::color | ( | ) | const |
Returns the color of the font.
const UString& Swinder::FormatFont::fontFamily | ( | ) | const |
Returns the name of font family, e.g "Helvetica".
double Swinder::FormatFont::fontSize | ( | ) | const |
Returns the size of font (in points).
bool Swinder::FormatFont::isNull | ( | ) | const |
Returns true if it is a default font information.
bool Swinder::FormatFont::italic | ( | ) | const |
Returns true if italic has been set.
bool Swinder::FormatFont::operator!= | ( | const FormatFont & | f | ) | const |
Returns true if this font is not equal to f; otherwise returns false.
FormatFont& Swinder::FormatFont::operator= | ( | const FormatFont & | ) |
Assigns from another font information.
bool Swinder::FormatFont::operator== | ( | const FormatFont & | f | ) | const |
Returns true if this font is equal to f; otherwise returns false.
void Swinder::FormatFont::setBold | ( | bool | b | ) |
If b is true, bold is set on; otherwise bold is set off.
void Swinder::FormatFont::setColor | ( | const Color & | color | ) |
Sets the color of the font.
void Swinder::FormatFont::setFontFamily | ( | const UString & | fontFamily | ) |
Sets a new family for the font information.
void Swinder::FormatFont::setFontSize | ( | double | fs | ) |
Sets the size of font (in points).
void Swinder::FormatFont::setItalic | ( | bool | i | ) |
If i is true, italic is set on; otherwise italic is set off.
void Swinder::FormatFont::setStrikeout | ( | bool | s | ) |
If s is true, strikeout is set on; otherwise strikeout is set off.
void Swinder::FormatFont::setSubscript | ( | bool | s | ) |
If s is true, subscript is set on; otherwise subscript is set off.
void Swinder::FormatFont::setSuperscript | ( | bool | s | ) |
If s is true, superscript is set on; otherwise superscript is set off.
void Swinder::FormatFont::setUnderline | ( | bool | u | ) |
If u is true, underline is set on; otherwise underline is set off.
bool Swinder::FormatFont::strikeout | ( | ) | const |
Returns true if strikeout has been set.
bool Swinder::FormatFont::subscript | ( | ) | const |
Returns true if subscript has been set.
bool Swinder::FormatFont::superscript | ( | ) | const |
Returns true if superscript has been set.
bool Swinder::FormatFont::underline | ( | ) | const |
Returns true if underline has been set.
The documentation for this class was generated from the following file: