Scribus
Open source desktop publishing at your fingertips
TableStyle Class Reference

#include <tablestyle.h>

Inheritance diagram for TableStyle:
Collaboration diagram for TableStyle:

Public Member Functions

 TableStyle ()
 
 TableStyle (const TableStyle &other)
 
TableStyleoperator= (const TableStyle &other)
 
virtual void saxx (SaxHandler &handler, const Xml_string &elemtag) const
 
virtual void saxx (SaxHandler &handler) const
 
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)
 
- 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)
 

Static Public Member Functions

static void desaxeRules (const Xml_string &prefixPattern, desaxe::Digester &ruleset, Xml_string elemtag=saxxDefaultElem)
 
- 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

static 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
 

Additional Inherited Members

- 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 TableStyle class represents a style for a table.

Constructor & Destructor Documentation

TableStyle::TableStyle ( )
inline

Constructs a new table style with all attributes inherited.

TableStyle::TableStyle ( const TableStyle other)
inline

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

Parameters
otherthe other table style.

Member Function Documentation

QString TableStyle::displayName ( ) const
virtual

Returns the display name of the table style.

Parameters
displaydisplay name of the table style.

Implements Style.

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

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

Parameters
otherthe other table style.

Implements Style.

void TableStyle::erase ( )
virtual

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

Implements Style.

void TableStyle::getNamedResources ( ResourceCollection lists) const

Collects named resources used by the table style in lists.

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

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

Parameters
otherthe other table style.
Returns
this table style.
void TableStyle::replaceNamedResources ( ResourceCollection newNames)

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

void TableStyle::saxx ( SaxHandler ,
const Xml_string &   
) const
virtual

Writes an XML representation of this object

Implements SaxIO.

virtual void TableStyle::saxx ( SaxHandler ) const
inlinevirtual

Writes an XML representation of this object using the default element tag, see below

Implements SaxIO.

void TableStyle::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: