ZPT-Sharp  v1.0.0
Zope Page Templates for .NET
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
CSF.Zpt.Rendering.DefaultRenderingSettings Class Reference

Represents the default IRenderingSettings. More...

Inheritance diagram for CSF.Zpt.Rendering.DefaultRenderingSettings:
Collaboration diagram for CSF.Zpt.Rendering.DefaultRenderingSettings:

Public Member Functions

virtual IRenderingContext CreateRootContext (IZptElement element)
 Creates a new root IRenderingContext instance. More...
 
virtual IRenderingContext CreateRootContext (IZptElement element, object model)
 Creates a new root IRenderingContext instance. More...
 
virtual ITemplateFileFactory GetTemplateFileFactory ()
 Gets an instance of ITemplateFileFactory from the current instance. More...
 
 DefaultRenderingSettings ()
 Initializes a new instance of the CSF.Zpt.Rendering.DefaultRenderingSettings class. More...
 

Protected Member Functions

 DefaultRenderingSettings (ITemplateFileFactory documentFactory=null, IContextVisitor[] elementVisitors=null, IRenderingContextFactory contextFactory=null, bool addSourceFileAnnotation=DefaultAddAnnotation, Encoding outputEncoding=null, bool omitXmlDeclaration=DefaultOmitXmlDeclaration)
 Initializes a new instance of the CSF.Zpt.Rendering.DefaultRenderingSettings class. More...
 

Static Protected Attributes

static readonly
IRenderingContextFactory 
DefaultContextFactory = new TalesRenderingContextFactory()
 Gets the refault IRenderingContextFactory implementation. More...
 
static readonly Encoding DefaultEncoding = Encoding.UTF8
 Gets the default character encoding. More...
 

Properties

static IContextVisitor[] DefaultVisitors [get]
 Gets the default context visitors. More...
 
IRenderingContextFactory ContextFactory [get, protected set]
 Gets the factory implementation with which to create RenderingContext instances. More...
 
bool AddSourceFileAnnotation [get, protected set]
 Gets or sets a value indicating whether source file annotations should be added to the rendered output. More...
 
IContextVisitor[] ContextVisitors [get, protected set]
 Gets the context visitors to be used when processing ZPT documents. More...
 
Encoding OutputEncoding [get, protected set]
 Gets the encoding (eg: Unicode) for the rendered output. More...
 
bool OmitXmlDeclaration [get, protected set]
 Gets a value indicating whether the XML declaration should be omitted (where applicable). More...
 
ITemplateFileFactory TemplateFileFactory [get, set]
 Gets or sets the implementation of ITemplateFileFactory to use. More...
 
- Properties inherited from CSF.Zpt.Rendering.IRenderingSettings
IRenderingContextFactory ContextFactory [get]
 Gets the factory implementation with which to create IRenderingContext instances. More...
 
bool AddSourceFileAnnotation [get]
 Gets or sets a value indicating whether source file annotations should be added to the rendered output. More...
 
IContextVisitor[] ContextVisitors [get]
 Gets the context visitors to be used when processing ZPT documents. More...
 
Encoding OutputEncoding [get]
 Gets the encoding (eg: Unicode) for the rendered output. More...
 
bool OmitXmlDeclaration [get]
 Gets a value indicating whether the XML declaration should be omitted (where applicable). More...
 

Detailed Description

Represents the default IRenderingSettings.

Constructor & Destructor Documentation

CSF.Zpt.Rendering.DefaultRenderingSettings.DefaultRenderingSettings ( ITemplateFileFactory  documentFactory = null,
IContextVisitor[]  elementVisitors = null,
IRenderingContextFactory  contextFactory = null,
bool  addSourceFileAnnotation = DefaultAddAnnotation,
Encoding  outputEncoding = null,
bool  omitXmlDeclaration = DefaultOmitXmlDeclaration 
)
inlineprotected

Initializes a new instance of the CSF.Zpt.Rendering.DefaultRenderingSettings class.

Parameters
documentFactoryDocument factory.
elementVisitorsElement visitors.
contextFactoryContext factory.
addSourceFileAnnotationIf set to true add source file annotation.
outputEncodingOutput encoding.
omitXmlDeclarationIf set to true omit XML declaration.
CSF.Zpt.Rendering.DefaultRenderingSettings.DefaultRenderingSettings ( )
inline

Initializes a new instance of the CSF.Zpt.Rendering.DefaultRenderingSettings class.

Member Function Documentation

virtual IRenderingContext CSF.Zpt.Rendering.DefaultRenderingSettings.CreateRootContext ( IZptElement  element)
inlinevirtual

Creates a new root IRenderingContext instance.

Returns
The root rendering context.

Implements CSF.Zpt.Rendering.IRenderingSettings.

virtual IRenderingContext CSF.Zpt.Rendering.DefaultRenderingSettings.CreateRootContext ( IZptElement  element,
object  model 
)
inlinevirtual

Creates a new root IRenderingContext instance.

Parameters
elementThe root ZPT element
modelThe model to render
Returns
The root rendering context.

Implements CSF.Zpt.Rendering.IRenderingSettings.

virtual ITemplateFileFactory CSF.Zpt.Rendering.DefaultRenderingSettings.GetTemplateFileFactory ( )
inlinevirtual

Gets an instance of ITemplateFileFactory from the current instance.

Returns
The template file factory

Implements CSF.Zpt.Rendering.IRenderingSettings.

Member Data Documentation

readonly IRenderingContextFactory CSF.Zpt.Rendering.DefaultRenderingSettings.DefaultContextFactory = new TalesRenderingContextFactory()
staticprotected

Gets the refault IRenderingContextFactory implementation.

readonly Encoding CSF.Zpt.Rendering.DefaultRenderingSettings.DefaultEncoding = Encoding.UTF8
staticprotected

Gets the default character encoding.

Property Documentation

bool CSF.Zpt.Rendering.DefaultRenderingSettings.AddSourceFileAnnotation
getprotected set

Gets or sets a value indicating whether source file annotations should be added to the rendered output.

true if source file annotations are to be added; otherwise, false.

IRenderingContextFactory CSF.Zpt.Rendering.DefaultRenderingSettings.ContextFactory
getprotected set

Gets the factory implementation with which to create RenderingContext instances.

The rendering context factory.

IContextVisitor [] CSF.Zpt.Rendering.DefaultRenderingSettings.ContextVisitors
getprotected set

Gets the context visitors to be used when processing ZPT documents.

The context visitors.

IContextVisitor [] CSF.Zpt.Rendering.DefaultRenderingSettings.DefaultVisitors
staticgetprotected

Gets the default context visitors.

The default context visitors.

bool CSF.Zpt.Rendering.DefaultRenderingSettings.OmitXmlDeclaration
getprotected set

Gets a value indicating whether the XML declaration should be omitted (where applicable).

true if the XML declaration is to be omitted; otherwise, false.

Encoding CSF.Zpt.Rendering.DefaultRenderingSettings.OutputEncoding
getprotected set

Gets the encoding (eg: Unicode) for the rendered output.

The output encoding.

ITemplateFileFactory CSF.Zpt.Rendering.DefaultRenderingSettings.TemplateFileFactory
getsetprotected

Gets or sets the implementation of ITemplateFileFactory to use.

The template file factory.


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