ZPT-Sharp
v1.0.0
Zope Page Templates for .NET
|
Represents a ZPT document. More...
Public Member Functions | |
virtual string | Render (IRenderingSettings options=null, Action< IModelValueContainer > contextConfigurator=null) |
Renders the document to a System.String . More... | |
virtual void | Render (TextWriter writer, IRenderingSettings options=null, Action< IModelValueContainer > contextConfigurator=null) |
Renders the document to the given System.IO.TextWriter . More... | |
virtual string | Render (object model, IRenderingSettings options=null, Action< IModelValueContainer > contextConfigurator=null) |
Renders the document to a System.String . More... | |
virtual void | Render (object model, TextWriter writer, IRenderingSettings options=null, Action< IModelValueContainer > contextConfigurator=null) |
Renders the document to the given System.IO.TextWriter . More... | |
abstract IMetalMacroContainer | GetMacros () |
Gets a collection of elements in the document which are defined as METAL macros. More... | |
abstract ISourceInfo | GetSourceInfo () |
Gets information about the source medium for the current instance More... | |
ZptDocument (IElementRenderer elementRenderer=null) | |
Initializes a new instance of the CSF.Zpt.ZptDocument class. More... | |
Protected Member Functions | |
virtual IRenderingSettings | GetOptions (IRenderingSettings options) |
Gets a set of rendering options, or constructs a default set of options if a null reference is passed. More... | |
abstract void | Render (TextWriter writer, IZptElement element, IRenderingSettings options) |
Renders an element to the given System.IO.TextWriter . More... | |
abstract IZptElement | GetRootElement () |
Creates a rendering model from the current instance. More... | |
abstract IRenderingSettings | GetDefaultOptions () |
Gets an instance of IRenderingSettings which represents the default options. More... | |
virtual TElement | ConvertElement< TElement > (IZptElement element) |
Converts the given IZptElement to an implementation-specific subclass, or raises an exception if the conversion is not valid. More... | |
virtual IZptElement | RenderElement (object model, IRenderingSettings options, Action< IModelValueContainer > contextConfigurator) |
Coordinates logic to the IElementRenderer. More... | |
Properties | |
abstract RenderingMode | Mode [get] |
Gets the RenderingMode for which the current document type caters. More... | |
virtual IElementRenderer | ElementRenderer [get] |
Gets the element renderer for the current instance. More... | |
![]() | |
RenderingMode | Mode [get] |
Gets the RenderingMode for which the current document type caters. More... | |
Represents a ZPT document.
|
inline |
Initializes a new instance of the CSF.Zpt.ZptDocument class.
elementRenderer | The element renderer. |
|
inlineprotectedvirtual |
Converts the given IZptElement to an implementation-specific subclass, or raises an exception if the conversion is not valid.
element | The element for conversion. |
TElement | The desired element type. |
TElement | : | class | |
TElement | : | IZptElement |
|
protectedpure virtual |
Gets an instance of IRenderingSettings which represents the default options.
Implemented in CSF.Zpt.DocumentProviders.ZptXmlDocument, CSF.Zpt.DocumentProviders.ZptXmlLinqDocument, and CSF.Zpt.DocumentProviders.ZptHtmlDocument.
|
pure virtual |
Gets a collection of elements in the document which are defined as METAL macros.
Implements CSF.Zpt.IZptDocument.
Implemented in CSF.Zpt.DocumentProviders.ZptXmlDocument, CSF.Zpt.DocumentProviders.ZptHtmlDocument, and CSF.Zpt.DocumentProviders.ZptXmlLinqDocument.
|
inlineprotectedvirtual |
Gets a set of rendering options, or constructs a default set of options if a null
reference is passed.
options | Options. |
|
protectedpure virtual |
Creates a rendering model from the current instance.
Implemented in CSF.Zpt.DocumentProviders.ZptXmlDocument, CSF.Zpt.DocumentProviders.ZptXmlLinqDocument, and CSF.Zpt.DocumentProviders.ZptHtmlDocument.
|
pure virtual |
Gets information about the source medium for the current instance
Implements CSF.Zpt.IZptDocument.
Implemented in CSF.Zpt.DocumentProviders.ZptXmlDocument, CSF.Zpt.DocumentProviders.ZptXmlLinqDocument, and CSF.Zpt.DocumentProviders.ZptHtmlDocument.
|
inlinevirtual |
Renders the document to a System.String
.
options | The rendering options to use. If null then default options are used. |
contextConfigurator | An optional action to perform upon the root IModelValueContainer, to configure it. |
Implements CSF.Zpt.IZptDocument.
|
inlinevirtual |
Renders the document to the given System.IO.TextWriter
.
writer | The text writer to render to. |
options | The rendering options to use. If null then default options are used. |
contextConfigurator | An optional action to perform upon the root IModelValueContainer, to configure it. |
Implements CSF.Zpt.IZptDocument.
|
inlinevirtual |
Renders the document to a System.String
.
model | An object for which the ZPT document is to be applied. |
options | The rendering options to use. If null then default options are used. |
contextConfigurator | An optional action to perform upon the root IModelValueContainer, to configure it. |
Implements CSF.Zpt.IZptDocument.
|
inlinevirtual |
Renders the document to the given System.IO.TextWriter
.
model | An object for which the ZPT document is to be applied. |
writer | The text writer to render to. |
options | The rendering options to use. If null then default options are used. |
contextConfigurator | An optional action to perform upon the root IModelValueContainer, to configure it. |
Implements CSF.Zpt.IZptDocument.
|
protectedpure virtual |
Renders an element to the given System.IO.TextWriter
.
writer | The text writer to render to. |
element | The element to render. |
options | The rendering options to use. If null then default options are used. |
Implemented in CSF.Zpt.DocumentProviders.ZptXmlDocument, CSF.Zpt.DocumentProviders.ZptXmlLinqDocument, and CSF.Zpt.DocumentProviders.ZptHtmlDocument.
|
inlineprotectedvirtual |
Coordinates logic to the IElementRenderer.
model | Model. |
options | Options. |
contextConfigurator | Context configurator. |
|
getprotected |
Gets the element renderer for the current instance.
The element renderer.
|
get |
Gets the RenderingMode for which the current document type caters.
The rendering mode.