Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

StyleContextProxy Class Reference

#include <stylecontextproxy.h>

Inheritance diagram for StyleContextProxy:

Inheritance graph
[legend]
Collaboration diagram for StyleContextProxy:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const Styleresolve (const QString &name) const
 StyleContextProxy (const Style *style)
 StyleContextProxy (const StyleContextProxy &other)
StyleContextProxyoperator= (const StyleContextProxy &other)
const StyledefaultStyle () const
void setDefaultStyle (const Style *def)
bool checkConsistency () const
bool contextContained (const StyleContext *context) const

Private Attributes

const Stylem_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]

Definition at line 46 of file stylecontextproxy.h.

References m_default.

const Style* StyleContextProxy::defaultStyle (  )  const [inline]

Definition at line 53 of file stylecontextproxy.h.

References m_default.

void StyleContextProxy::setDefaultStyle ( const Style def  )  [inline]

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


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.