ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Expands a METAL macro and splices it into its source document. More...
Public Member Functions | |
virtual IRenderingContext | ExpandMacros (IRenderingContext context) |
Expands the given context, replacing it with a new context - representing a macro - if it is required. More... | |
virtual IRenderingContext | ExtendAndSubstitute (IRenderingContext context, IZptElement macro) |
Extends a given macro and then makes substitutions into the source context. More... | |
virtual IRenderingContext | ExtendAndSubstitute (IRenderingContext context, IZptElement macro, ref IList< IRenderingContext > macroStack, IMacroSubstituter substitutionStrategy) |
Extends a given macro and then makes substitutions into the source context. More... | |
virtual IRenderingContext | HandleNoUsedMacro (IRenderingContext context) |
Takes appropriate actions when there is no use-macro directive present in a given context. More... | |
IZptElement | GetUsedMacro (IRenderingContext context) |
Gets a reference to the macro used by a given rendering context, if any. More... | |
IZptElement | GetExtendedMacro (IRenderingContext context) |
Gets a reference to a 'parent' macro to be extended by the given context, if any. More... | |
IRenderingContext | GetFullyExtendedContext (IRenderingContext macroContext, ref IList< IRenderingContext > macroStack) |
Gets an instance of IRenderingContext from a context instance representing a METAL macro, representing a fully-extended chain of macros. More... | |
MacroExpander () | |
Initializes a new instance of the CSF.Zpt.Metal.MacroExpander class. More... | |
MacroExpander (IMacroFinder finder=null, IMacroSubstituter substituter=null, IMacroSubstituter extensionSubstitutor=null) | |
Initializes a new instance of the CSF.Zpt.Metal.MacroExpander class. More... | |
Expands a METAL macro and splices it into its source document.
|
inline |
Initializes a new instance of the CSF.Zpt.Metal.MacroExpander class.
|
inline |
Initializes a new instance of the CSF.Zpt.Metal.MacroExpander class.
finder | A macro finder instance, or a null reference (in which case one will be constructed). |
substituter | A substituter service for regular macro substitution, or a null reference (in which case one will be constructed). |
extensionSubstitutor | A substituter service for macro extension, or a null reference (in which case one will be constructed). |
|
inlinevirtual |
Expands the given context, replacing it with a new context - representing a macro - if it is required.
context | The context to expand. |
Implements CSF.Zpt.Metal.IMacroExpander.
|
inlinevirtual |
Extends a given macro and then makes substitutions into the source context.
context | The rendering context. |
macro | The macro element to extend and use for substitutions. |
|
inlinevirtual |
Extends a given macro and then makes substitutions into the source context.
context | The rendering context. |
macro | The macro element to extend and use for substitutions. |
macroStack | The collection of macros passed through to get to this point. |
substitutionStrategy | The macro substitution strategy to use. |
|
inline |
Gets a reference to a 'parent' macro to be extended by the given context, if any.
null
reference if there is no macro extension.context | The rendering context. |
|
inline |
Gets an instance of IRenderingContext from a context instance representing a METAL macro, representing a fully-extended chain of macros.
This method fully applies METAL extension to the given macro context. If the macro extends another then the fully chain of extensions is applied here. If it does not then the input parameter is returned unchanged.
macroContext | A rendering context representing a macro which might extend other macros. |
macroStack | The collection of macros passed through to get to this point. |
|
inline |
Gets a reference to the macro used by a given rendering context, if any.
null
reference if there is no used macro.context | The rendering context. |
|
inlinevirtual |
Takes appropriate actions when there is no use-macro directive present in a given context.
context | The rendering context. |