Scribus
Open source desktop publishing at your fingertips
StyleSet< STYLE > Class Template Reference
Inheritance diagram for StyleSet< STYLE >:
Collaboration diagram for StyleSet< STYLE >:

Public Member Functions

STYLE & operator[] (int index)
 
STYLE * getDefault ()
 
const STYLE & get (const QString &name) const
 
const STYLE & operator[] (int index) const
 
bool contains (const QString &name) const
 
int find (const QString &name) const
 
const Styleresolve (const QString &name) const
 
int count () const
 
STYLE * append (STYLE *style)
 
void remove (int index)
 
void redefine (const StyleSet< STYLE > &defs, bool removeUnused=false)
 
void rename (const QMap< QString, QString > &newNames)
 
STYLE * create (const STYLE &proto)
 
void makeDefault (STYLE *def)
 
bool isDefault (const STYLE &style) const
 
void clear (bool invalid=true)
 
void setContext (const StyleContext *context)
 
const StyleContextcontext () const
 
- Public Member Functions inherited from StyleContext
 StyleContext (const StyleContext &o)
 
StyleContextoperator= (const StyleContext &o)
 
int version () const
 
virtual bool contextContained (const StyleContext *context) const
 
virtual bool checkConsistency () const
 
void invalidate ()
 
bool connect (QObject *receiver, const char *member) const
 
bool disconnect (QObject *receiver, const char *member=0) const
 
- Public Member Functions inherited from Observable< StyleContext >
 Observable (UpdateManager *um=NULL)
 
virtual void update ()
 
- Public Member Functions inherited from MassObservable< StyleContext * >
 MassObservable (UpdateManager *um=NULL)
 
void setUpdateManager (UpdateManager *um)
 
virtual void update (StyleContext *what)
 
virtual void updateLayout (StyleContext *what)
 
void connectObserver (Observer< StyleContext * > *o)
 
bool connectObserver (QObject *o, const char *slot)
 
void disconnectObserver (Observer< StyleContext * > *o)
 
bool disconnectObserver (QObject *o, const char *slot=0)
 

Additional Inherited Members

- Protected Member Functions inherited from MassObservable< StyleContext * >
virtual void updateNow (UpdateMemento *what)
 
- Protected Attributes inherited from StyleContext
int m_version
 
int m_cnt
 
- Protected Attributes inherited from MassObservable< StyleContext * >
QSet< Observer< StyleContext * > * > m_observers
 
Private_SignalchangedSignal
 
UpdateManagerm_um
 

Member Function Documentation

template<class STYLE>
void StyleSet< STYLE >::clear ( bool  invalid = true)
inline

Deletes all styles in the style set.

If invalid is true, this function also invalidates the style set.


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