HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STY_OverrideBlock Class Reference

Contains a map of category names to override categories. More...

#include <STY_OverrideBlock.h>

+ Inheritance diagram for STY_OverrideBlock:

Public Member Functions

 STY_OverrideBlock (const UT_JSONValue *json, const STY_LoadContext *load_context)
 
 STY_OverrideBlock (const STY_OverrideCategoryMap &overrides)
 
 ~STY_OverrideBlock ()
 
bool isEmpty () const
 Returns true if we have no overrides. More...
 
void getMatchingCategories (const STY_ResultsFilter &filter, UT_StringArray &categories) const
 Get a list of categories allowed by the filter. More...
 
STY_OverrideCategoryHandle getOverrideCategory (const UT_StringRef &category) const
 Get the overrides for a paritcular category. More...
 
const UT_StringArraygetOverrideBindingDataNames () const
 
void saveStyleSheets (UT_JSONValue *values, STY_TargetMatchClosureHandle *closures, const exint num_values, bool evaluate_scripts, bool allow_shared_scripts) const
 Save this override set as JSON to a style sheet. More...
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< STY_OverrideBlock >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. 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_NonCopyableoperator= (const UT_NonCopyable &)=delete
 
- Protected Member Functions inherited from UT_IntrusiveRefCounter< STY_OverrideBlock >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Contains a map of category names to override categories.

Definition at line 28 of file STY_OverrideBlock.h.

Constructor & Destructor Documentation

STY_OverrideBlock::STY_OverrideBlock ( const UT_JSONValue json,
const STY_LoadContext *  load_context 
)
STY_OverrideBlock::STY_OverrideBlock ( const STY_OverrideCategoryMap overrides)
STY_OverrideBlock::~STY_OverrideBlock ( )

Member Function Documentation

void STY_OverrideBlock::getMatchingCategories ( const STY_ResultsFilter filter,
UT_StringArray categories 
) const

Get a list of categories allowed by the filter.

const UT_StringArray& STY_OverrideBlock::getOverrideBindingDataNames ( ) const

Obtains the list of data names that the override scripts are interested in for their input argument binding.

STY_OverrideCategoryHandle STY_OverrideBlock::getOverrideCategory ( const UT_StringRef category) const

Get the overrides for a paritcular category.

bool STY_OverrideBlock::isEmpty ( ) const
inline

Returns true if we have no overrides.

Definition at line 39 of file STY_OverrideBlock.h.

void STY_OverrideBlock::saveStyleSheets ( UT_JSONValue values,
STY_TargetMatchClosureHandle closures,
const exint  num_values,
bool  evaluate_scripts,
bool  allow_shared_scripts 
) const

Save this override set as JSON to a style sheet.


The documentation for this class was generated from the following file: