![]() |
Scribus
Open source desktop publishing at your fingertips
|
Classes | |
struct | TabRecord |
Public Member Functions | |
ParagraphStyle (const ParagraphStyle &other) | |
ParagraphStyle & | operator= (const ParagraphStyle &other) |
virtual void | saxx (SaxHandler &handler, const Xml_string &elemtag) const |
virtual void | saxx (SaxHandler &handler) const |
void | getNamedResources (ResourceCollection &lists) const |
void | replaceNamedResources (ResourceCollection &newNames) |
QString | displayName () const |
void | setContext (const StyleContext *context) |
void | update (const StyleContext *) |
bool | equiv (const Style &other) const |
void | applyStyle (const ParagraphStyle &other) |
void | eraseStyle (const ParagraphStyle &other) |
void | setStyle (const ParagraphStyle &other) |
void | erase () |
StyleContext * | charStyleContext () |
const StyleContext * | charStyleContext () const |
CharStyle & | charStyle () |
const CharStyle & | charStyle () const |
void | breakImplicitCharStyleInheritance (bool val=true) |
void | repairImplicitCharStyleInheritance () |
ATTRDEF (QString, bulletStr, BulletStr, QString(QChar(0x2022))) ATTRDEF(QString | |
QString (QChar(0x2022))) void appendTabValue(const TabRecord &tab) | |
ATTRDEF (QString, bulletStr, BulletStr, QString(QChar(0x2022))) ATTRDEF(QString | |
QString (QChar(0x2022))) ATTRDEF(QString | |
![]() | |
Style (StyleContext *b, QString n) | |
Style & | operator= (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 Style * | parentStyle () const |
const StyleContext * | context () 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) |
![]() | |
template<class SUBSTYLE > | |
static void | desaxeRules (const Xml_string &prefixPattern, desaxe::Digester &ruleset, Xml_string elemtag) |
![]() | |
static void | desaxeRules (const Xml_string &, desaxe::Digester &, const Xml_string=saxxDefaultElem) |
Public Attributes | |
bulletStr | |
BulletStr | |
QString(QChar(0x2022))) private bool | cstyleContextIsInh |
CharStyle | cstyle |
Static Public Attributes | |
static const Xml_string | saxxDefaultElem |
![]() | |
static const QString | INHERIT_PARENT = "\n" |
![]() | |
static const Xml_string | saxxDefaultElem |
Additional Inherited Members | |
![]() | |
bool | m_isDefaultStyle |
QString | m_name |
const StyleContext * | m_context |
int | m_contextversion |
QString | m_parent |
QString | m_shortcut |
ParagraphStyle::ATTRDEF | ( | QString | , |
bulletStr | , | ||
BulletStr | , | ||
QString(QChar(0x2022)) | |||
) |
setter: sets the attribute's value and clears inherited flag
ParagraphStyle::ATTRDEF | ( | QString | , |
bulletStr | , | ||
BulletStr | , | ||
QString(QChar(0x2022)) | |||
) |
isInherited: returns true if the attriute is inherited
void ParagraphStyle::breakImplicitCharStyleInheritance | ( | bool | val = true | ) |
Normally the context for charStyle() is parentStyle()->charStyleContext() Use this method to break that relation and set charStyle()'s context manually
|
virtual |
returns true if both Styles are of the same type, inherit the same attributes, have the same parent, and agree on all attributes which are not inherited. The StyleContext, the name and any inherited attrinutes may be different.
Implements Style.
|
inlinevirtual |
resets all attributes to their defaults and makes them inherited. name and parent are not affected.
Implements Style.
ParagraphStyle::QString | ( | QChar(0x2022) | ) |
isDefined: returns true if the attribute is defined in this style or any parent
void ParagraphStyle::repairImplicitCharStyleInheritance | ( | ) |
used internally to establish the implicit relation charStyle().context() == parentStyle()->charStyleContext() Done implicitly in setContext(), update(), operator= and breakImplicitCharStyleInheritance()
|
virtual |
Writes an XML representation of this object
Implements SaxIO.
|
inlinevirtual |
Writes an XML representation of this object using the default element tag, see below
Implements SaxIO.
|
virtual |
sets a new StyleContext if b is not NULL and then uses the StyleContext to set all inherited attributes to their valid value.
Reimplemented from Style.