HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.xml.ITextHandler Class Reference

The More...

Inheritance diagram for iTextSharp.text.xml.ITextHandler:
iTextSharp.text.xml.ParserBase iTextSharp.text.html.ITextmyHtmlHandler iTextSharp.text.xml.ITextmyHandler

Public Member Functions

 ITextHandler (IDocListener document)
 Constructs a new iTextHandler that will translate all the events triggered by the parser to actions on the More...
 
 ITextHandler (IDocListener document, HtmlTagMap myTags)
 
 ITextHandler (IDocListener document, HtmlTagMap myTags, BaseFont bf)
 
 ITextHandler (IDocListener document, Hashtable myTags)
 
void SetControlOpenClose (bool controlOpenClose)
 Sets the parameter that allows you to enable/disable the control over the Document.Open() and Document.Close() method. More...
 
override void StartElement (String uri, String lname, String name, Hashtable attrs)
 This method gets called when a start tag is encountered. More...
 
void HandleStartingTags (String name, Properties attributes)
 This method deals with the starting tags. More...
 
void IgnorableWhitespace (char[] ch, int start, int length)
 This method gets called when ignorable white space encountered. More...
 
override void Characters (string content, int start, int length)
 This method gets called when characters are encountered. More...
 
override void EndElement (String uri, String lname, String name)
 This method gets called when an end tag is encountered. More...
 
void HandleEndingTags (String name)
 This method deals with the starting tags. More...
 
- Public Member Functions inherited from iTextSharp.text.xml.ParserBase
void Parse (XmlDocument xDoc)
 
void Parse (XmlTextReader reader)
 
void Parse (string url)
 Begins the process of processing an XML document More...
 

Protected Member Functions

bool IsDocumentRoot (String tag)
 Checks if a certain tag corresponds with the roottag. More...
 

Protected Attributes

IDocListener document
 This is the resulting document. More...
 
Stack stack
 This is a More...
 
int chapters = 0
 Counts the number of chapters in this document. More...
 
Chunk currentChunk = null
 This is the current chunk to which characters can be added. More...
 
bool ignore = false
 This is the current chunk to which characters can be added. More...
 
bool controlOpenClose = true
 This is a flag that can be set, if you want to open and close the Document-object yourself. More...
 
Hashtable myTags
 

Properties

BaseFont DefaultFont [get, set]
 

Detailed Description

The

iTextHandler-class maps several XHTML-tags to iText-objects.

Constructor & Destructor Documentation

◆ ITextHandler() [1/4]

iTextSharp.text.xml.ITextHandler.ITextHandler ( IDocListener  document)

Constructs a new iTextHandler that will translate all the events triggered by the parser to actions on the

Document-object.

Parameters
documentthis is the document on which events must be triggered

◆ ITextHandler() [2/4]

iTextSharp.text.xml.ITextHandler.ITextHandler ( IDocListener  document,
HtmlTagMap  myTags 
)
Parameters
document
myTags
Exceptions
DocumentException
IOException

◆ ITextHandler() [3/4]

iTextSharp.text.xml.ITextHandler.ITextHandler ( IDocListener  document,
HtmlTagMap  myTags,
BaseFont  bf 
)
Parameters
document
myTags
bf
Exceptions
DocumentException
IOException

◆ ITextHandler() [4/4]

iTextSharp.text.xml.ITextHandler.ITextHandler ( IDocListener  document,
Hashtable  myTags 
)
Parameters
document
myTags
Exceptions
DocumentException
IOException

Member Function Documentation

◆ Characters()

override void iTextSharp.text.xml.ITextHandler.Characters ( string  content,
int  start,
int  length 
)
virtual

This method gets called when characters are encountered.

Parameters
contentan array of characters
startthe start position in the array
lengththe number of characters to read from the array

Implements iTextSharp.text.xml.ParserBase.

◆ EndElement()

override void iTextSharp.text.xml.ITextHandler.EndElement ( String  uri,
String  lname,
String  name 
)
virtual

This method gets called when an end tag is encountered.

Parameters
uri
lname
namethe name of the tag that ends

Implements iTextSharp.text.xml.ParserBase.

Reimplemented in iTextSharp.text.xml.ITextmyHandler.

◆ HandleEndingTags()

void iTextSharp.text.xml.ITextHandler.HandleEndingTags ( String  name)

This method deals with the starting tags.

Parameters
namethe name of the tag

◆ HandleStartingTags()

void iTextSharp.text.xml.ITextHandler.HandleStartingTags ( String  name,
Properties  attributes 
)

This method deals with the starting tags.

Parameters
namethe name of the tag
attributesthe list of attributes

◆ IgnorableWhitespace()

void iTextSharp.text.xml.ITextHandler.IgnorableWhitespace ( char[]  ch,
int  start,
int  length 
)

This method gets called when ignorable white space encountered.

Parameters
chan array of characters
startthe start position in the array
lengththe number of characters to read from the array

◆ IsDocumentRoot()

bool iTextSharp.text.xml.ITextHandler.IsDocumentRoot ( String  tag)
protected

Checks if a certain tag corresponds with the roottag.

Parameters
taga presumed tagname
Returns
true</CODE> if <VAR>tag</VAR> equals <CODE>itext</CODE>, <CODE>false</CODE> otherwise.</returns>

◆ SetControlOpenClose()

void iTextSharp.text.xml.ITextHandler.SetControlOpenClose ( bool  controlOpenClose)

Sets the parameter that allows you to enable/disable the control over the Document.Open() and Document.Close() method.

If you set this parameter to true (= default), the parser will open the Document object when the start-root-tag is encountered and close it when the end-root-tag is met. If you set it to false, you have to open and close the Document object yourself.

Parameters
controlOpenCloseset this to false if you plan to open/close the Document yourself

◆ StartElement()

override void iTextSharp.text.xml.ITextHandler.StartElement ( String  uri,
String  lname,
String  name,
Hashtable  attrs 
)
virtual

This method gets called when a start tag is encountered.

Parameters
uri
lname
namethe name of the tag that is encountered
attrsthe list of attributes

Implements iTextSharp.text.xml.ParserBase.

Reimplemented in iTextSharp.text.xml.ITextmyHandler.

Member Data Documentation

◆ chapters

int iTextSharp.text.xml.ITextHandler.chapters = 0
protected

Counts the number of chapters in this document.

◆ controlOpenClose

bool iTextSharp.text.xml.ITextHandler.controlOpenClose = true
protected

This is a flag that can be set, if you want to open and close the Document-object yourself.

◆ currentChunk

Chunk iTextSharp.text.xml.ITextHandler.currentChunk = null
protected

This is the current chunk to which characters can be added.

◆ document

IDocListener iTextSharp.text.xml.ITextHandler.document
protected

This is the resulting document.

◆ ignore

bool iTextSharp.text.xml.ITextHandler.ignore = false
protected

This is the current chunk to which characters can be added.

◆ myTags

Hashtable iTextSharp.text.xml.ITextHandler.myTags
protected

◆ stack

Stack iTextSharp.text.xml.ITextHandler.stack
protected

This is a

Stack of objects, waiting to be added to the document.

Property Documentation

◆ DefaultFont

BaseFont iTextSharp.text.xml.ITextHandler.DefaultFont
getset

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