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

Interface for a type which creates instances of IZptDocument. More...

Inheritance diagram for CSF.Zpt.IZptDocumentFactory:

Public Member Functions

bool TryDetectMode (FileInfo sourceFile, out RenderingMode detectedMode)
 Gets a value indicating the RenderingMode detected for a given source file. More...
 
IZptDocument CreateDocument (FileInfo sourceFile, Encoding encoding=null, RenderingMode?renderingMode=null)
 Creates a document from the given source file. More...
 
IZptDocument CreateDocument (FileInfo sourceFile, Type providerType, Encoding encoding=null)
 Creates a document from the given source file. More...
 
IZptDocument CreateDocument (Stream source, RenderingMode renderingMode, ISourceInfo sourceInfo=null, Encoding encoding=null)
 Creates a document from the given source stream. More...
 
IZptDocument CreateDocument (Stream source, Type providerType, ISourceInfo sourceInfo=null, Encoding encoding=null)
 Creates a document from the given source file. More...
 

Detailed Description

Interface for a type which creates instances of IZptDocument.

Member Function Documentation

IZptDocument CSF.Zpt.IZptDocumentFactory.CreateDocument ( FileInfo  sourceFile,
Encoding  encoding = null,
RenderingMode renderingMode = null 
)

Creates a document from the given source file.

Parameters
sourceFileThe source file containing the document to create.
encodingThe text encoding to use in reading the source file.
renderingModeThe rendering mode to use in creating the output document.

Implemented in CSF.Zpt.ZptDocumentFactory.

IZptDocument CSF.Zpt.IZptDocumentFactory.CreateDocument ( FileInfo  sourceFile,
Type  providerType,
Encoding  encoding = null 
)

Creates a document from the given source file.

Parameters
sourceFileThe source file containing the document to create.
providerTypeThe IZptDocumentProvider type to use for creating the document.
encodingThe text encoding to use in reading the source file.

Implemented in CSF.Zpt.ZptDocumentFactory.

IZptDocument CSF.Zpt.IZptDocumentFactory.CreateDocument ( Stream  source,
RenderingMode  renderingMode,
ISourceInfo  sourceInfo = null,
Encoding  encoding = null 
)

Creates a document from the given source stream.

Parameters
sourceThe stream containing the document to create.
renderingModeThe rendering mode to use in creating the output document.
sourceInfoOptional information about the source of the document.
encodingThe text encoding to use in reading the source file.

Implemented in CSF.Zpt.ZptDocumentFactory.

IZptDocument CSF.Zpt.IZptDocumentFactory.CreateDocument ( Stream  source,
Type  providerType,
ISourceInfo  sourceInfo = null,
Encoding  encoding = null 
)

Creates a document from the given source file.

Parameters
sourceThe stream containing the document to create.
providerTypeThe IZptDocumentProvider type to use for creating the document.
sourceInfoOptional information about the source of the document.
encodingThe text encoding to use in reading the source file.

Implemented in CSF.Zpt.ZptDocumentFactory.

bool CSF.Zpt.IZptDocumentFactory.TryDetectMode ( FileInfo  sourceFile,
out RenderingMode  detectedMode 
)

Gets a value indicating the RenderingMode detected for a given source file.

Returns
true if the RenderingMode could be auto-detected; false if not.
Parameters
sourceFileThe source file.
detectedModeExposes the detected rendering mode.

Implemented in CSF.Zpt.ZptDocumentFactory.


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