Scribus
Open source desktop publishing at your fingertips
CellStyle Class Reference

#include <cellstyle.h>

Inheritance diagram for CellStyle:
Collaboration diagram for CellStyle:

Public Member Functions

 CellStyle ()
 
 CellStyle (const CellStyle &other)
 
CellStyleoperator= (const CellStyle &other)
 
virtual void saxx (SaxHandler &handler, const Xml_string &elemtag) const
 Not implemented.
 
virtual void saxx (SaxHandler &handler) const
 Not implemented.
 
QString displayName () const
 
bool equiv (const Style &other) const
 
void erase ()
 
void update (const StyleContext *context)
 
void getNamedResources (ResourceCollection &lists) const
 
void replaceNamedResources (ResourceCollection &newNames)
 
QString asString () const
 Returns a string representation of this style.
 
- Public Member Functions inherited from Style
 Style (StyleContext *b, QString n)
 
Styleoperator= (const Style &o)
 
 Style (const Style &o)
 
void saxxAttributes (Xml_attr &attr) const
 
void setDefaultStyle (bool ids)
 
bool isDefaultStyle () const
 
QString name () const
 
void setName (const QString &n)
 
bool hasName () const
 
QString parent () const
 
void setParent (const QString &p)
 
bool hasParent () const
 
const StyleparentStyle () const
 
virtual void setContext (const StyleContext *context)
 
const StyleContextcontext () const
 
void validate () const
 
QString shortcut () const
 
void setShortcut (const QString &shortcut)
 
virtual bool operator== (const Style &other) const
 
virtual bool operator!= (const Style &other) const
 
void applyStyle (const Style &other)
 
void eraseStyle (const Style &other)
 

Additional Inherited Members

- Static Public Member Functions inherited from Style
template<class SUBSTYLE >
static void desaxeRules (const Xml_string &prefixPattern, desaxe::Digester &ruleset, Xml_string elemtag)
 
- Static Public Member Functions inherited from SaxIO
static void desaxeRules (const Xml_string &, desaxe::Digester &, const Xml_string=saxxDefaultElem)
 
- Static Public Attributes inherited from Style
static const QString INHERIT_PARENT = "\n"
 
- Static Public Attributes inherited from SaxIO
static const Xml_string saxxDefaultElem
 
- Protected Attributes inherited from Style
bool m_isDefaultStyle
 
QString m_name
 
const StyleContextm_context
 
int m_contextversion
 
QString m_parent
 
QString m_shortcut
 

Detailed Description

The CellStyle class represents a style for a table cell.

Constructor & Destructor Documentation

CellStyle::CellStyle ( )
inline

Constructs a new cell style with all attributes inherited.

CellStyle::CellStyle ( const CellStyle other)
inline

Constructs a new cell style with values and inheritance states of the attributes set to match those of another cell style

Parameters
otherthe other cell style.

Member Function Documentation

QString CellStyle::displayName ( ) const
virtual

Returns the display name of the cell style.

Parameters
displaydisplay name of the cell style.

Implements Style.

bool CellStyle::equiv ( const Style other) const
virtual

Returns true if all attributes values and inheritance states of this cell style matches those of another cell style.

Parameters
otherthe other cell style.

Implements Style.

void CellStyle::erase ( )
virtual

Resets all non-inherited attributes in this style to their default values.

Implements Style.

void CellStyle::getNamedResources ( ResourceCollection lists) const

Collects named resources used by the cell style in lists.

CellStyle & CellStyle::operator= ( const CellStyle other)
inline

Sets values and inheritance states of attributes to match those of another cell style.

Parameters
otherthe other cell style.
Returns
this cell style.
void CellStyle::replaceNamedResources ( ResourceCollection newNames)

Replaces named resources used by the cell style with names in newNames.

void CellStyle::update ( const StyleContext context)
virtual

Sets the style context to context and update locally cached property values.

Reimplemented from Style.


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