Scribus
Open source desktop publishing at your fingertips
StyleContext Class Referenceabstract

#include <stylecontext.h>

Inheritance diagram for StyleContext:
Collaboration diagram for StyleContext:

Public Member Functions

 StyleContext (const StyleContext &o)
 
StyleContextoperator= (const StyleContext &o)
 
int version () const
 
virtual bool contextContained (const StyleContext *context) const
 
virtual bool checkConsistency () const
 
virtual const Styleresolve (const QString &name) const =0
 
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)
 

Protected Attributes

int m_version
 
int m_cnt
 
- Protected Attributes inherited from MassObservable< StyleContext * >
QSet< Observer< StyleContext * > * > m_observers
 
Private_SignalchangedSignal
 
UpdateManagerm_um
 

Additional Inherited Members

- Protected Member Functions inherited from MassObservable< StyleContext * >
virtual void updateNow (UpdateMemento *what)
 

Detailed Description

Style inheritance works with names. A StyleContext finds the Style to a given name. If there are changes to the Styles contained in a StyleContext, you have to call invalidate() to increase the version info. Styles using this StyleContext will then update their cached values the next time they are used.


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