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

Implementation of IZptDocumentProvider which creates documents based on the HTML Agility pack. See https://htmlagilitypack.codeplex.com/ More...

Inheritance diagram for CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider:
Collaboration diagram for CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider:

Public Member Functions

IZptDocument CreateDocument (HtmlAgilityPack.HtmlDocument hapDocument, ISourceInfo sourceInfo)
 Creates a document from a HAP document object and information about the source of the document. More...
 
RenderingMode GetRenderingMode ()
 Gets the rendering mode for documents created by this provider. More...
 
IZptDocument CreateDocument (FileInfo sourceFile, Encoding encoding)
 Creates a document from a source file. More...
 
IZptDocument CreateDocument (Stream sourceStream, ISourceInfo sourceInfo, Encoding encoding)
 Creates a document from a stream. More...
 

Detailed Description

Implementation of IZptDocumentProvider which creates documents based on the HTML Agility pack. See https://htmlagilitypack.codeplex.com/

Member Function Documentation

IZptDocument CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider.CreateDocument ( HtmlAgilityPack.HtmlDocument  hapDocument,
ISourceInfo  sourceInfo 
)
inline

Creates a document from a HAP document object and information about the source of the document.

Returns
The ZPT document implementation.
Parameters
hapDocumentA HTML Agility pack document.
sourceInfoThe source info.
IZptDocument CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider.CreateDocument ( FileInfo  sourceFile,
Encoding  encoding 
)
inline

Creates a document from a source file.

Returns
The document.
Parameters
sourceFileSource file.
encodingEncoding.

Implements CSF.Zpt.IZptDocumentProvider.

IZptDocument CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider.CreateDocument ( Stream  sourceStream,
ISourceInfo  sourceInfo,
Encoding  encoding 
)
inline

Creates a document from a stream.

Returns
The document.
Parameters
sourceStreamSource stream.
sourceInfoSource info.
encodingEncoding.

Implements CSF.Zpt.IZptDocumentProvider.

RenderingMode CSF.Zpt.DocumentProviders.HtmlZptDocumentProvider.GetRenderingMode ( )
inline

Gets the rendering mode for documents created by this provider.

Returns
The rendering mode.

Implements CSF.Zpt.IZptDocumentProvider.


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