filters

Swinder::FormatFont Class Reference

#include <format.h>

List of all members.


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 &)
FormatFontoperator= (const FormatFont &)
FormatFontassign (const FormatFont &)
bool isNull () const
const UStringfontFamily () 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

FormatFont::FormatFont (  ) 

Creates a default font information.

Definition at line 47 of file format.cpp.

FormatFont::~FormatFont (  ) 

Destroys the font information.

Definition at line 61 of file format.cpp.

FormatFont::FormatFont ( const FormatFont  ) 

Creates a copy of font information.

Definition at line 66 of file format.cpp.


Member Function Documentation

FormatFont & FormatFont::operator= ( const FormatFont  ) 

Assigns from another font information.

Definition at line 72 of file format.cpp.

FormatFont & FormatFont::assign ( const FormatFont  ) 

Assigns from another font information.

Definition at line 77 of file format.cpp.

bool FormatFont::isNull (  )  const

Returns true if it is a default font information.

Definition at line 93 of file format.cpp.

const UString & FormatFont::fontFamily (  )  const

Returns the name of font family, e.g "Helvetica".

Definition at line 98 of file format.cpp.

void FormatFont::setFontFamily ( const UString fontFamily  ) 

Sets a new family for the font information.

Definition at line 103 of file format.cpp.

double FormatFont::fontSize (  )  const

Returns the size of font (in points).

Definition at line 109 of file format.cpp.

void FormatFont::setFontSize ( double  fs  ) 

Sets the size of font (in points).

Definition at line 114 of file format.cpp.

Color FormatFont::color (  )  const

Returns the color of the font.

Definition at line 120 of file format.cpp.

void FormatFont::setColor ( const Color color  ) 

Sets the color of the font.

Definition at line 125 of file format.cpp.

bool FormatFont::bold (  )  const

Returns true if bold has been set.

Definition at line 131 of file format.cpp.

void FormatFont::setBold ( bool  b  ) 

If b is true, bold is set on; otherwise bold is set off.

Definition at line 136 of file format.cpp.

bool FormatFont::italic (  )  const

Returns true if italic has been set.

Definition at line 142 of file format.cpp.

void FormatFont::setItalic ( bool  i  ) 

If i is true, italic is set on; otherwise italic is set off.

Definition at line 147 of file format.cpp.

bool FormatFont::underline (  )  const

Returns true if underline has been set.

Definition at line 153 of file format.cpp.

void FormatFont::setUnderline ( bool  u  ) 

If u is true, underline is set on; otherwise underline is set off.

Definition at line 158 of file format.cpp.

bool FormatFont::strikeout (  )  const

Returns true if strikeout has been set.

Definition at line 164 of file format.cpp.

void FormatFont::setStrikeout ( bool  s  ) 

If s is true, strikeout is set on; otherwise strikeout is set off.

Definition at line 169 of file format.cpp.

bool FormatFont::subscript (  )  const

Returns true if subscript has been set.

Definition at line 175 of file format.cpp.

void FormatFont::setSubscript ( bool  s  ) 

If s is true, subscript is set on; otherwise subscript is set off.

Definition at line 180 of file format.cpp.

bool FormatFont::superscript (  )  const

Returns true if superscript has been set.

Definition at line 190 of file format.cpp.

void FormatFont::setSuperscript ( bool  s  ) 

If s is true, superscript is set on; otherwise superscript is set off.

Definition at line 195 of file format.cpp.

bool FormatFont::operator== ( const FormatFont f  )  const

Returns true if this font is equal to f; otherwise returns false.

Definition at line 205 of file format.cpp.

bool FormatFont::operator!= ( const FormatFont f  )  const

Returns true if this font is not equal to f; otherwise returns false.

Definition at line 219 of file format.cpp.


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