20 #ifndef PAWS_STYLES_HEADER 21 #define PAWS_STYLES_HEADER 23 #include <csutil/csstring.h> 24 #include <csutil/ref.h> 25 #include <csutil/hash.h> 26 #include <iutil/vfs.h> 37 #define STRING_HASH(V) csHash <V, csString> 80 void ApplyStyle(
const char* style, iDocumentNode* target);
81 void ApplyStyle(iDocumentNode* style, iDocumentNode* target);
void InheritStyles()
All styles inherit attributes/nodes from parent styles.
bool LoadStyles(const csString &fileName)
Loads style definitions from file.
pawsStyles(iObjectRegistry *objectReg)
iObjectRegistry * objectReg
Class pawsStyles keeps definitions of PAWS styles - a PAWS style is collection of XML attributes and ...
STRING_HASH(csRef< iDocumentNode >) styles
Collection of styles - iDocumentNodes accessed by style names.
void InheritFromParent(iDocumentNode *style, STRING_HASH(bool)&alreadyInh, STRING_HASH(bool)&beingInh)
Inherits from parent - copies nodes/attributes from parent of 'style' to 'style'. ...
void ApplyStyle(const char *style, iDocumentNode *target)
Applies style with given name to 'target'.