kspread
KSpread::CustomStyle Class Reference
#include <kspread_style.h>
Inheritance diagram for KSpread::CustomStyle:

Detailed Description
Built-in or custom style defined in StyleManager dialog.
Definition at line 386 of file kspread_style.h.
Public Member Functions | |
CustomStyle (Style *style, QString const &name) | |
CustomStyle (QString const &name, CustomStyle *parent) | |
~CustomStyle () | |
QString const & | name () const |
void | save (QDomDocument &doc, QDomElement &styles) |
virtual QString | saveOasis (KoGenStyle &style, KoGenStyles &mainStyles) |
void | loadOasis (KoOasisStyles &oasisStyles, const QDomElement &style, const QString &name) |
bool | loadXML (QDomElement const &style, QString const &name) |
void | setType (StyleType type) |
void | setName (QString const &name) |
void | refreshParentName () |
bool | definesAll () const |
void | changeAlignX (Format::Align alignX) |
void | changeAlignY (Format::AlignY alignY) |
void | changeFont (QFont const &f) |
void | changeFontFamily (QString const &fam) |
void | changeFontSize (int size) |
void | changeFontFlags (uint flags) |
void | changePen (QPen const &pen) |
void | changeTextColor (QColor const &color) |
void | changeBgColor (QColor const &color) |
void | changeRightBorderPen (QPen const &pen) |
void | changeBottomBorderPen (QPen const &pen) |
void | changeLeftBorderPen (QPen const &pen) |
void | changeTopBorderPen (QPen const &pen) |
void | changeFallBorderPen (QPen const &pen) |
void | changeGoUpBorderPen (QPen const &pen) |
void | changeRotateAngle (int angle) |
void | changeIndent (double indent) |
void | changeBackGroundBrush (QBrush const &brush) |
void | changeFloatFormat (Format::FloatFormat format) |
void | changeFloatColor (Format::FloatColor color) |
void | changeFormatType (FormatType format) |
void | changeStrFormat (QString const &strFormat) |
void | changePrecision (int precision) |
void | changePrefix (QString const &prefix) |
void | changePostfix (QString const &postfix) |
void | changeCurrency (Format::Currency const ¤cy) |
void | addProperty (Properties p) |
void | removeProperty (Properties p) |
Friends | |
class | StyleManager |
Constructor & Destructor Documentation
CustomStyle::CustomStyle | ( | Style * | style, | |
QString const & | name | |||
) |
Constructor.
Creates a custom style.
- Parameters:
-
style The style which's features are copied. name The name of this style.
Definition at line 2761 of file kspread_style.cc.
Member Function Documentation
void CustomStyle::loadOasis | ( | KoOasisStyles & | oasisStyles, | |
const QDomElement & | style, | |||
const QString & | name | |||
) |
Loads the style properties from style
.
Determines also the parent's name.
- Parameters:
-
oasisStyles map of all styles style the DOM element defining the style name the style's new name
Definition at line 2858 of file kspread_style.cc.
QString CustomStyle::saveOasis | ( | KoGenStyle & | style, | |
KoGenStyles & | mainStyles | |||
) | [virtual] |
- Reimplemented from superclass.
- Stores an OASIS user style.
- Returns:
- the OASIS style's name
Reimplemented from KSpread::Style.
Definition at line 2823 of file kspread_style.cc.
The documentation for this class was generated from the following files: