ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Default implementation of IMacroSubstituter. More...
Public Member Functions | |
virtual IRenderingContext | MakeSubstitutions (IRenderingContext sourceContext, IRenderingContext macroContext, IList< IRenderingContext > macroStack) |
Makes the substitutions from the macro into the given source. More... | |
virtual IRenderingContext | ReplaceMacroElement (IRenderingContext sourceContext, IRenderingContext macroContext) |
Replaces the defined macro on the source context with the macro context and returns the result. More... | |
virtual void | FillSlots (IEnumerable< SlotToFill > slotsToFill) |
Fills all of the given slots with their corresponding fillers. More... | |
virtual IZptElement | FillSlot (SlotToFill slotAndFiller) |
Fills a single slot with its filler. More... | |
virtual IEnumerable< SlotToFill > | GetSlotsToFill (IRenderingContext sourceContext, IRenderingContext macroContext, IList< IRenderingContext > macroStack) |
Gets a collection of the slots which should be filled, and their corresponding fillers. More... | |
virtual IEnumerable< SlotToFill > | GetSlotsToFill (IRenderingContext sourceContext, IDictionary< string, IZptElement > availableFillers, IRenderingContext macroContext, IDictionary< string, IZptElement > availableSlotDefinitions) |
Gets a collection of SlotToFill from the given source information. More... | |
virtual IDictionary< string, IZptElement > | GetSlotFillers (IRenderingContext context) |
Gets a collection of all of the elements which have the METAL fill-slot attribute defined. More... | |
virtual IDictionary< string, IZptElement > | GetDefinedSlots (IRenderingContext context) |
Gets a collection of all of the elements which have the METAL define-slot attribute defined. More... | |
virtual IDictionary< string, IZptElement > | GetDefinedSlots (IList< IRenderingContext > macroStack, IEnumerable< string > slotsFoundSoFar) |
Gets a collection of all of the elements which have the METAL define-slot attribute defined. More... | |
virtual IDictionary< string, IZptElement > | GetChildElementsByMetalAttributeValue (IRenderingContext context, string metalAttribute) |
Gets a collection of elements indexed by the value of a given METAL attribute. More... | |
Default implementation of IMacroSubstituter.
|
inlinevirtual |
Fills a single slot with its filler.
slotAndFiller | The slot and its filler. |
Reimplemented in CSF.Zpt.Metal.MacroExtensionSubstitutor.
|
inlinevirtual |
Fills all of the given slots with their corresponding fillers.
slotsToFill | The slots to fill. |
|
inlinevirtual |
Gets a collection of elements indexed by the value of a given METAL attribute.
context | The rendering context within which to search. |
metalAttribute | The name of the METAL attribute for which to search. |
|
inlinevirtual |
Gets a collection of all of the elements which have the METAL define-slot
attribute defined.
The returned dictionary is indexed by the value of the METAL define-slot
attribute.
context | The rendering context within which to search. |
|
inlinevirtual |
Gets a collection of all of the elements which have the METAL define-slot
attribute defined.
The returned dictionary is indexed by the value of the METAL define-slot
attribute.
macroStack | A collection of macros which have been passed-through. |
slotsFoundSoFar | A collection of the names of the slots found so far. |
|
inlinevirtual |
Gets a collection of all of the elements which have the METAL fill-slot
attribute defined.
The returned dictionary is indexed by the value of the METAL fill-slot
attribute.
context | The rendering context within which to search. |
|
inlinevirtual |
Gets a collection of the slots which should be filled, and their corresponding fillers.
sourceContext | The source context, from the original document (to be replaced). |
macroContext | The macro context from which to draw replacements. |
macroStack | A collection of macros which have been passed-through. |
|
inlinevirtual |
Gets a collection of SlotToFill from the given source information.
This operation constructs and executes a query across the slots and fillers provided, which matches each filler to a slot.
sourceContext | The source rendering context. |
availableFillers | A collection of elements in the source context representing slot fillers. |
macroContext | The macro rendering context. |
availableSlotDefinitions | A collection of elements in the macro context representing slot definitions. |
|
inlinevirtual |
Makes the substitutions from the macro into the given source.
These substitutions include replacing the source context with the content of the macro, but also filling slots which have been defined by the macro and for which filler content is found within the source context.
sourceContext | The source context, from the original document (to be replaced). |
macroContext | The macro context from which to draw replacements. |
macroStack | A collection of macros which have been passed-through. |
Implements CSF.Zpt.Metal.IMacroSubstituter.
|
inlinevirtual |
Replaces the defined macro on the source context with the macro context and returns the result.
sourceContext | The source context (which uses a macro). |
macroContext | The macro context (which defines the macro). |