filters

Swinder::FormatFont Class Reference

#include <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
 

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.

Constructor & Destructor Documentation

◆ FormatFont() [1/2]

FormatFont::FormatFont ( )

Creates a default font information.

Definition at line 47 of file kspread/excel/sidewinder/format.cpp.

◆ ~FormatFont()

FormatFont::~FormatFont ( )

Destroys the font information.

Definition at line 61 of file kspread/excel/sidewinder/format.cpp.

◆ FormatFont() [2/2]

FormatFont::FormatFont ( const FormatFont &  f)

Creates a copy of font information.

Definition at line 66 of file kspread/excel/sidewinder/format.cpp.

Member Function Documentation

◆ assign()

FormatFont & FormatFont::assign ( const FormatFont &  f)

Assigns from another font information.

Definition at line 77 of file kspread/excel/sidewinder/format.cpp.

◆ bold()

bool FormatFont::bold ( ) const

Returns true if bold has been set.

Definition at line 131 of file kspread/excel/sidewinder/format.cpp.

◆ color()

Color FormatFont::color ( ) const

Returns the color of the font.

Definition at line 120 of file kspread/excel/sidewinder/format.cpp.

◆ fontFamily()

const UString & FormatFont::fontFamily ( ) const

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

Definition at line 98 of file kspread/excel/sidewinder/format.cpp.

◆ fontSize()

double FormatFont::fontSize ( ) const

Returns the size of font (in points).

Definition at line 109 of file kspread/excel/sidewinder/format.cpp.

◆ isNull()

bool FormatFont::isNull ( ) const

Returns true if it is a default font information.

Definition at line 93 of file kspread/excel/sidewinder/format.cpp.

◆ italic()

bool FormatFont::italic ( ) const

Returns true if italic has been set.

Definition at line 142 of file kspread/excel/sidewinder/format.cpp.

◆ operator!=()

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 kspread/excel/sidewinder/format.cpp.

◆ operator=()

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

Assigns from another font information.

Definition at line 72 of file kspread/excel/sidewinder/format.cpp.

◆ operator==()

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 kspread/excel/sidewinder/format.cpp.

◆ setBold()

void FormatFont::setBold ( bool  b)

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

Definition at line 136 of file kspread/excel/sidewinder/format.cpp.

◆ setColor()

void FormatFont::setColor ( const Color &  color)

Sets the color of the font.

Definition at line 125 of file kspread/excel/sidewinder/format.cpp.

◆ setFontFamily()

void FormatFont::setFontFamily ( const UString &  fontFamily)

Sets a new family for the font information.

Definition at line 103 of file kspread/excel/sidewinder/format.cpp.

◆ setFontSize()

void FormatFont::setFontSize ( double  fs)

Sets the size of font (in points).

Definition at line 114 of file kspread/excel/sidewinder/format.cpp.

◆ setItalic()

void FormatFont::setItalic ( bool  i)

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

Definition at line 147 of file kspread/excel/sidewinder/format.cpp.

◆ setStrikeout()

void FormatFont::setStrikeout ( bool  s)

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

Definition at line 169 of file kspread/excel/sidewinder/format.cpp.

◆ setSubscript()

void FormatFont::setSubscript ( bool  s)

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

Definition at line 180 of file kspread/excel/sidewinder/format.cpp.

◆ setSuperscript()

void FormatFont::setSuperscript ( bool  s)

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

Definition at line 195 of file kspread/excel/sidewinder/format.cpp.

◆ setUnderline()

void FormatFont::setUnderline ( bool  u)

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

Definition at line 158 of file kspread/excel/sidewinder/format.cpp.

◆ strikeout()

bool FormatFont::strikeout ( ) const

Returns true if strikeout has been set.

Definition at line 164 of file kspread/excel/sidewinder/format.cpp.

◆ subscript()

bool FormatFont::subscript ( ) const

Returns true if subscript has been set.

Definition at line 175 of file kspread/excel/sidewinder/format.cpp.

◆ superscript()

bool FormatFont::superscript ( ) const

Returns true if superscript has been set.

Definition at line 190 of file kspread/excel/sidewinder/format.cpp.

◆ underline()

bool FormatFont::underline ( ) const

Returns true if underline has been set.

Definition at line 153 of file kspread/excel/sidewinder/format.cpp.


The documentation for this class was generated from the following files: