kspread

KSpread::CustomStyle Class Reference

A named cell style. More...

#include <Style.h>

Inheritance diagram for KSpread::CustomStyle:

List of all members.

Public Member Functions

 CustomStyle (const QString &name, CustomStyle *parent=0)
virtual ~CustomStyle ()
void loadOdf (KoOdfStylesReader &stylesReader, const KoXmlElement &style, const QString &name, Conditions &conditions, const StyleManager *styleManager)
bool loadXML (KoXmlElement const &style, QString const &name)
QString const & name () const
bool operator!= (const CustomStyle &other) const
bool operator== (const CustomStyle &other) const
void save (QDomDocument &doc, QDomElement &styles, const StyleManager *styleManager)
virtual QString saveOdf (KoGenStyle &style, KoGenStyles &mainStyles, const StyleManager *manager) const
void setName (QString const &name)
void setType (StyleType type)
virtual StyleType type () const
int usage () const

Detailed Description

A named cell style.

Definition at line 363 of file Style.h.


Constructor & Destructor Documentation

CustomStyle::CustomStyle ( const QString name,
CustomStyle parent = 0 
) [explicit]

Constructor.

Creates a custom style.

Parameters:
name The name of this style.
parent The style whose attributes are inherited - the parent style.

Definition at line 2664 of file Style.cpp.

CustomStyle::~CustomStyle (  )  [virtual]

Definition at line 2674 of file Style.cpp.


Member Function Documentation

void CustomStyle::loadOdf ( KoOdfStylesReader &  stylesReader,
const KoXmlElement &  style,
const QString name,
Conditions conditions,
const StyleManager styleManager 
)

Loads the style properties from style .

Determines also the parent's name.

Parameters:
stylesReader map of all styles
style the DOM element defining the style
name the style's new name

Definition at line 2724 of file Style.cpp.

bool CustomStyle::loadXML ( KoXmlElement const &  style,
QString const &  name 
)

Definition at line 2755 of file Style.cpp.

const QString & CustomStyle::name (  )  const

Definition at line 2689 of file Style.cpp.

bool KSpread::CustomStyle::operator!= ( const CustomStyle other  )  const [inline]

Reimplemented from KSpread::Style.

Definition at line 405 of file Style.h.

bool KSpread::CustomStyle::operator== ( const CustomStyle style  )  const

Returns true if both styles have the same properties.

Reimplemented from KSpread::Style.

void CustomStyle::save ( QDomDocument doc,
QDomElement styles,
const StyleManager styleManager 
)

Definition at line 2737 of file Style.cpp.

QString CustomStyle::saveOdf ( KoGenStyle &  style,
KoGenStyles &  mainStyles,
const StyleManager manager 
) const [virtual]
Reimplemented from superclass.
Stores an OASIS user style.
Returns:
the OASIS style's name

Reimplemented from KSpread::Style.

Definition at line 2699 of file Style.cpp.

void CustomStyle::setName ( QString const &  name  ) 

Definition at line 2694 of file Style.cpp.

void CustomStyle::setType ( StyleType  type  ) 

Definition at line 2683 of file Style.cpp.

Style::StyleType CustomStyle::type (  )  const [virtual]

Reimplemented from KSpread::Style.

Definition at line 2678 of file Style.cpp.

int CustomStyle::usage (  )  const
Returns:
the number of references to this style.

Definition at line 2778 of file Style.cpp.


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