HDK
|
#include <STY_StyleSheet.h>
Public Member Functions | |
STY_StyleSheet (const UT_StringHolder &source_location, STY_StyleSheetLoadMode load_mode) | |
Constructor and destructor. More... | |
STY_StyleSheet (const char *json_str, const UT_StringHolder &source_location, STY_StyleSheetLoadMode load_mode) | |
STY_StyleSheet (const UT_JSONValue &json_value, const UT_StringHolder &source_location, STY_StyleSheetLoadMode load_mode) | |
STY_StyleSheet (const UT_StringArray &import_files, const UT_Array< STY_StyleHandle > &styles, const STY_MaterialMap &materials, const STY_OverrideScriptMap &scripts, const STY_OverrideBlockMap &override_sets, STY_StyleSheetFlags flags) | |
~STY_StyleSheet () | |
const UT_WorkBuffer & | getErrors () const |
Get any errors encounterd during the parsing of the stylesheet. More... | |
const UT_Array< STY_StyleHandle > & | getStyles () const |
Get the style entries defined by this style sheet. More... | |
const STY_MaterialMap & | getMaterialDefinitions () const |
Gets all material definitions provided by the style sheet. More... | |
const STY_OverrideScriptMap & | getScripts () const |
Gets all shared script definitions provided by the style sheet. More... | |
const STY_OverrideBlockMap & | getOverrideSets () const |
Gets all material definitions provided by the style sheet. More... | |
const UT_StringArray & | getImportFiles () const |
Gets a list of imported style sheet files. More... | |
STY_StyleSheetFlags | getFlags () const |
Gets the flags for this style sheet. More... | |
void | saveStyleSheet (UT_WorkBuffer &stylesheet) const |
Saves the style sheet as text in JSON format. More... | |
Public Member Functions inherited from UT_IntrusiveRefCounter< STY_StyleSheet > | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter () noexcept |
Default constructor: Sets counter to 0. More... | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept |
Copy constructor: Sets counter to 0. More... | |
UT_IntrusiveRefCounter & | operator= (const UT_IntrusiveRefCounter &) noexcept |
Assignment operator: Does not modify counter. More... | |
SYS_FORCE_INLINE uint32 | use_count () const noexcept |
Return current counter. More... | |
SYS_FORCE_INLINE bool | conditionalAddRef () noexcept |
Static Public Member Functions | |
static void | setRegisteredStyleSheetMap (const UT_StringMap< UT_StringHolder > *stylesheet_map) |
static const UT_StringHolder & | getDefAttributeName () |
Primitive/detail string attribute name that can define a style sheet. More... | |
static const UT_StringHolder & | getDefParmName () |
Object parameter name that can define a style sheet. More... | |
static const UT_StringHolder & | getDefParmLabel () |
Object parameter label in the data tree. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable | |
UT_NonCopyable ()=default | |
~UT_NonCopyable ()=default | |
UT_NonCopyable (const UT_NonCopyable &)=delete | |
UT_NonCopyable & | operator= (const UT_NonCopyable &)=delete |
Protected Member Functions inherited from UT_IntrusiveRefCounter< STY_StyleSheet > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Style sheet definition that contains style entries (an entry specifies the target styling subject and overrides that need to be applied to the properties of that subject. It also contains extra data needed for successful overrides, such as material definitions.
Definition at line 35 of file STY_StyleSheet.h.
|
explicit |
Constructor and destructor.
|
explicit |
|
explicit |
|
explicit |
STY_StyleSheet::~STY_StyleSheet | ( | ) |
|
static |
Primitive/detail string attribute name that can define a style sheet.
|
static |
Object parameter label in the data tree.
|
static |
Object parameter name that can define a style sheet.
|
inline |
Get any errors encounterd during the parsing of the stylesheet.
Definition at line 77 of file STY_StyleSheet.h.
|
inline |
Gets the flags for this style sheet.
Definition at line 106 of file STY_StyleSheet.h.
|
inline |
Gets a list of imported style sheet files.
Definition at line 102 of file STY_StyleSheet.h.
|
inline |
Gets all material definitions provided by the style sheet.
Definition at line 87 of file STY_StyleSheet.h.
|
inline |
Gets all material definitions provided by the style sheet.
Definition at line 97 of file STY_StyleSheet.h.
|
inline |
Gets all shared script definitions provided by the style sheet.
Definition at line 92 of file STY_StyleSheet.h.
|
inline |
Get the style entries defined by this style sheet.
Definition at line 82 of file STY_StyleSheet.h.
void STY_StyleSheet::saveStyleSheet | ( | UT_WorkBuffer & | stylesheet | ) | const |
Saves the style sheet as text in JSON format.
|
static |
Utility function to track internally defined style sheets, to allow one internal style sheet to reference another, and to treat internally defined style sheet on par with external files.