StyleContextProxy Class Reference
#include <stylecontextproxy.h>


Public Member Functions | |
| const Style * | resolve (const QString &name) const |
| StyleContextProxy (const Style *style) | |
| StyleContextProxy (const StyleContextProxy &other) | |
| StyleContextProxy & | operator= (const StyleContextProxy &other) |
| const Style * | defaultStyle () const |
| void | setDefaultStyle (const Style *def) |
| bool | checkConsistency () const |
| bool | contextContained (const StyleContext *context) const |
Private Attributes | |
| const Style * | m_default |
Detailed Description
This class turns a style into a new stylecontext: it maps the empty name "" to the given default style and uses the style's context to resolve all other names.Definition at line 33 of file stylecontextproxy.h.
Constructor & Destructor Documentation
| StyleContextProxy::StyleContextProxy | ( | const Style * | style | ) | [inline] |
Definition at line 38 of file stylecontextproxy.h.
| StyleContextProxy::StyleContextProxy | ( | const StyleContextProxy & | other | ) | [inline] |
Definition at line 42 of file stylecontextproxy.h.
Member Function Documentation
| const Style * StyleContextProxy::resolve | ( | const QString & | name | ) | const [virtual] |
Implements StyleContext.
Definition at line 20 of file stylecontextproxy.cpp.
References Style::context(), m_default, and StyleContext::resolve().
| StyleContextProxy& StyleContextProxy::operator= | ( | const StyleContextProxy & | other | ) | [inline] |
| const Style* StyleContextProxy::defaultStyle | ( | ) | const [inline] |
| void StyleContextProxy::setDefaultStyle | ( | const Style * | def | ) | [inline] |
Definition at line 55 of file stylecontextproxy.h.
References StyleContext::invalidate(), and m_default.
Referenced by ScText_Shared::operator=(), and ScText_Shared::ScText_Shared().
| bool StyleContextProxy::checkConsistency | ( | ) | const [inline, virtual] |
Reimplemented from StyleContext.
Definition at line 61 of file stylecontextproxy.h.
References Style::context(), StyleContext::contextContained(), and m_default.
| bool StyleContextProxy::contextContained | ( | const StyleContext * | context | ) | const [inline, virtual] |
Reimplemented from StyleContext.
Definition at line 67 of file stylecontextproxy.h.
References Style::context(), StyleContext::contextContained(), and m_default.
Member Data Documentation
const Style* StyleContextProxy::m_default [private] |
Definition at line 75 of file stylecontextproxy.h.
Referenced by checkConsistency(), contextContained(), defaultStyle(), operator=(), resolve(), and setDefaultStyle().
The documentation for this class was generated from the following files:
