kspread/excel/sidewinder/format.h
Color(const char *c)
Creates a color based on given red, green and blue values, encoded as #RRGGBB in a string.
Definition kspread/excel/sidewinder/format.h:63
friend bool operator!=(const Color &, const Color &)
Returns true if c1 is not equal to c2; otherwise returns false.
Definition kspread/excel/sidewinder/format.h:79
Color(const Color &c)
Creates a copy of another color.
Definition kspread/excel/sidewinder/format.h:51
Color(unsigned r, unsigned g, unsigned b)
Creates a color based on given red, green and blue values.
Definition kspread/excel/sidewinder/format.h:57
Color()
Constructs a default color with the RGB value (0, 0, 0), i.e black.
Definition kspread/excel/sidewinder/format.h:46
friend bool operator==(const Color &, const Color &)
Returns true if c1 is equal to c2; otherwise returns false.
Definition kspread/excel/sidewinder/format.h:73
Defines alignment information for cell format.
Definition kspread/excel/sidewinder/format.h:277
~FormatAlignment()
Destroys the alignment information.
Definition kspread/excel/sidewinder/format.cpp:256
unsigned indentLevel() const
Returns the indentation level.
Definition kspread/excel/sidewinder/format.cpp:324
bool operator==(const FormatAlignment &f) const
Returns true if this alignment is equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:346
bool operator!=(const FormatAlignment &f) const
Returns true if this alignment is not equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:356
FormatAlignment & operator=(const FormatAlignment &)
Assigns from another alignment information.
Definition kspread/excel/sidewinder/format.cpp:269
void setIndentLevel(unsigned i)
Sets the indentation level.
Definition kspread/excel/sidewinder/format.cpp:329
bool wrap() const
Returns true if the text should be wrapped at right border.
Definition kspread/excel/sidewinder/format.cpp:313
unsigned alignY() const
Returns horizontal alignment.
Definition kspread/excel/sidewinder/format.cpp:302
void setAlignX(unsigned xa)
Sets the horizontal alignment.
Definition kspread/excel/sidewinder/format.cpp:296
void setWrap(bool w)
Sets whether the text should be wrapped at right border.
Definition kspread/excel/sidewinder/format.cpp:318
FormatAlignment()
Creates a default alignment information.
Definition kspread/excel/sidewinder/format.cpp:244
unsigned rotationAngle() const
Returns the text rotation angle.
Definition kspread/excel/sidewinder/format.cpp:335
bool isNull() const
Returns true if it is a default alignment information.
Definition kspread/excel/sidewinder/format.cpp:286
unsigned alignX() const
Returns horizontal alignment.
Definition kspread/excel/sidewinder/format.cpp:291
void setAlignY(unsigned xa)
Sets the horizontal alignment.
Definition kspread/excel/sidewinder/format.cpp:307
void setRotationAngle(unsigned r)
Sets the text rotation angle.
Definition kspread/excel/sidewinder/format.cpp:340
FormatAlignment & assign(const FormatAlignment &)
Assigns from another alignment information.
Definition kspread/excel/sidewinder/format.cpp:275
Defines background information for cell.
Definition kspread/excel/sidewinder/format.h:402
~FormatBackground()
Destroys the background information.
Definition kspread/excel/sidewinder/format.cpp:383
bool operator==(const FormatBackground &f) const
Returns true if this background is equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:449
unsigned pattern() const
Returns pattern for this background.
Definition kspread/excel/sidewinder/format.cpp:416
void setForegroundColor(const Color &)
Sets the foreground color.
Definition kspread/excel/sidewinder/format.cpp:443
bool isNull() const
Returns true if it is a default background information.
Definition kspread/excel/sidewinder/format.cpp:411
FormatBackground()
Creates a default background information.
Definition kspread/excel/sidewinder/format.cpp:376
void setBackgroundColor(const Color &)
Set the background color.
Definition kspread/excel/sidewinder/format.cpp:432
bool operator!=(const FormatBackground &f) const
Returns true if this background is not equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:457
FormatBackground & operator=(const FormatBackground &)
Assigns from another background information.
Definition kspread/excel/sidewinder/format.cpp:396
void setPattern(unsigned)
Set the pattern for this background.
Definition kspread/excel/sidewinder/format.cpp:421
Color foregroundColor() const
Returns the foreground color of the background area.
Definition kspread/excel/sidewinder/format.cpp:438
FormatBackground & assign(const FormatBackground &)
Assigns from another background information.
Definition kspread/excel/sidewinder/format.cpp:402
Color backgroundColor() const
Returns the background color of the background area.
Definition kspread/excel/sidewinder/format.cpp:427
Defines borders information for cell.
Definition kspread/excel/sidewinder/format.h:515
const Pen & leftBorder() const
Returns pen style, width and color for left border.
Definition kspread/excel/sidewinder/format.cpp:517
void setRightBorder(const Pen &pen)
Sets pen style, width and color for right border.
Definition kspread/excel/sidewinder/format.cpp:533
void setTopBorder(const Pen &pen)
Sets pen style, width and color for top border.
Definition kspread/excel/sidewinder/format.cpp:544
void setLeftBorder(const Pen &pen)
Sets pen style, width and color for left border.
Definition kspread/excel/sidewinder/format.cpp:522
bool operator==(const FormatBorders &f) const
Returns true if this background is equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:561
void setBottomBorder(const Pen &pen)
Sets pen style, width and color for bottom border.
Definition kspread/excel/sidewinder/format.cpp:555
bool operator!=(const FormatBorders &f) const
Returns true if this background is not equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:570
FormatBorders & assign(const FormatBorders &)
Assigns from another border information.
Definition kspread/excel/sidewinder/format.cpp:502
const Pen & rightBorder() const
Returns pen style, width and color for right border.
Definition kspread/excel/sidewinder/format.cpp:528
bool isNull() const
Returns true if it is a default border information.
Definition kspread/excel/sidewinder/format.cpp:512
FormatBorders & operator=(const FormatBorders &)
Assigns from another border information.
Definition kspread/excel/sidewinder/format.cpp:496
const Pen & topBorder() const
Returns pen style, width and color for top border.
Definition kspread/excel/sidewinder/format.cpp:539
const Pen & bottomBorder() const
Returns pen style, width and color for bottom border.
Definition kspread/excel/sidewinder/format.cpp:550
FormatBorders()
Creates a default border information.
Definition kspread/excel/sidewinder/format.cpp:476
Defines font information for cell format.
Definition kspread/excel/sidewinder/format.h:129
bool italic() const
Returns true if italic has been set.
Definition kspread/excel/sidewinder/format.cpp:142
bool strikeout() const
Returns true if strikeout has been set.
Definition kspread/excel/sidewinder/format.cpp:164
bool operator==(const FormatFont &f) const
Returns true if this font is equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:205
bool isNull() const
Returns true if it is a default font information.
Definition kspread/excel/sidewinder/format.cpp:93
FormatFont & operator=(const FormatFont &)
Assigns from another font information.
Definition kspread/excel/sidewinder/format.cpp:72
void setColor(const Color &color)
Sets the color of the font.
Definition kspread/excel/sidewinder/format.cpp:125
bool subscript() const
Returns true if subscript has been set.
Definition kspread/excel/sidewinder/format.cpp:175
void setFontFamily(const UString &fontFamily)
Sets a new family for the font information.
Definition kspread/excel/sidewinder/format.cpp:103
void setStrikeout(bool s)
If s is true, strikeout is set on; otherwise strikeout is set off.
Definition kspread/excel/sidewinder/format.cpp:169
bool superscript() const
Returns true if superscript has been set.
Definition kspread/excel/sidewinder/format.cpp:190
void setFontSize(double fs)
Sets the size of font (in points).
Definition kspread/excel/sidewinder/format.cpp:114
void setSuperscript(bool s)
If s is true, superscript is set on; otherwise superscript is set off.
Definition kspread/excel/sidewinder/format.cpp:195
bool operator!=(const FormatFont &f) const
Returns true if this font is not equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:219
void setSubscript(bool s)
If s is true, subscript is set on; otherwise subscript is set off.
Definition kspread/excel/sidewinder/format.cpp:180
void setBold(bool b)
If b is true, bold is set on; otherwise bold is set off.
Definition kspread/excel/sidewinder/format.cpp:136
double fontSize() const
Returns the size of font (in points).
Definition kspread/excel/sidewinder/format.cpp:109
const UString & fontFamily() const
Returns the name of font family, e.g "Helvetica".
Definition kspread/excel/sidewinder/format.cpp:98
FormatFont & assign(const FormatFont &)
Assigns from another font information.
Definition kspread/excel/sidewinder/format.cpp:77
bool underline() const
Returns true if underline has been set.
Definition kspread/excel/sidewinder/format.cpp:153
void setUnderline(bool u)
If u is true, underline is set on; otherwise underline is set off.
Definition kspread/excel/sidewinder/format.cpp:158
void setItalic(bool i)
If i is true, italic is set on; otherwise italic is set off.
Definition kspread/excel/sidewinder/format.cpp:147
bool bold() const
Returns true if bold has been set.
Definition kspread/excel/sidewinder/format.cpp:131
void setBackground(const FormatBackground &)
Sets new background information for this format.
Definition kspread/excel/sidewinder/format.cpp:667
bool operator!=(const Format &f) const
Returns true if this format is not equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:709
Format & operator=(const Format &f)
Assigns from another format.
Definition kspread/excel/sidewinder/format.cpp:611
void setFont(const FormatFont &font)
Sets new font information for this format.
Definition kspread/excel/sidewinder/format.cpp:637
FormatFont & font() const
Returns a constant reference to the formatting information of this format.
Definition kspread/excel/sidewinder/format.cpp:632
const UString & valueFormat() const
Returns the formatting string to display the value of this format.
Definition kspread/excel/sidewinder/format.cpp:672
bool isNull() const
Returns true if it is a default format information.
Definition kspread/excel/sidewinder/format.cpp:627
void setValueFormat(const UString &valueFormat)
Sets the new formatting string to display the value of this format.
Definition kspread/excel/sidewinder/format.cpp:677
void setAlignment(const FormatAlignment &alignment)
Sets new alignment information for this format.
Definition kspread/excel/sidewinder/format.cpp:647
void setBorders(const FormatBorders &border)
Sets new borders information for this format.
Definition kspread/excel/sidewinder/format.cpp:657
FormatAlignment & alignment() const
Returns a constant reference to the alignment information of this format.
Definition kspread/excel/sidewinder/format.cpp:642
Format & apply(const Format &f)
Applies another format to this format.
Definition kspread/excel/sidewinder/format.cpp:683
FormatBorders & borders() const
Returns a reference to the borders information of this format.
Definition kspread/excel/sidewinder/format.cpp:652
FormatBackground & background() const
Returns a reference to the background information of this format.
Definition kspread/excel/sidewinder/format.cpp:662
Format & assign(const Format &f)
Assigns from another value.
Definition kspread/excel/sidewinder/format.cpp:617
bool operator==(const Format &f) const
Returns true if this format is equal to f; otherwise returns false.
Definition kspread/excel/sidewinder/format.cpp:699
