writer2latex.xhtml

Class XhtmlDocument

public class XhtmlDocument extends DOMDocument

An implementation of Document for XHTML documents.
Field Summary
static intXHTML10
Constant to identify XHTML 1.0 strict documents
static intXHTML11
Constant to identify XHTML 1.1 documents (not used currently)
static intXHTML_MATHML
Constant to identify XHTML + MathML documents
static intXHTML_MATHML_XSL
Constant to identify XHTML + MathML documents using the xsl transformations from w3c's math working group (http://www.w3.org/Math/XSL/)
Constructor Summary
XhtmlDocument(String name, int nType)
Constructor.
Method Summary
voidcreateHeaderFooter()
ElementgetBodyNode()
ElementgetContentNode()
StringgetEncoding()
static StringgetExtension(int nType)
StringgetFileExtension()
ElementgetFooterNode()
ElementgetHeaderNode()
ElementgetHeadNode()
ElementgetPanelNode()
ElementgetTitleNode()
voidread(InputStream is)
voidreadFromTemplate(XhtmlDocument template)
voidsetAddBOM(boolean b)
voidsetContentDOM(Document doc)
voidsetContentNode(Element contentNode)
voidsetEncoding(String s)
voidsetNoDoctype(boolean b)
voidsetUseNamedEntities(boolean b)
voidsetXsltPath(String s)
voidwrite(OutputStream os)
Write out content to the supplied OutputStream. (with pretty printing)

Field Detail

XHTML10

public static final int XHTML10
Constant to identify XHTML 1.0 strict documents

XHTML11

public static final int XHTML11
Constant to identify XHTML 1.1 documents (not used currently)

XHTML_MATHML

public static final int XHTML_MATHML
Constant to identify XHTML + MathML documents

XHTML_MATHML_XSL

public static final int XHTML_MATHML_XSL
Constant to identify XHTML + MathML documents using the xsl transformations from w3c's math working group (http://www.w3.org/Math/XSL/)

Constructor Detail

XhtmlDocument

public XhtmlDocument(String name, int nType)
Constructor. This constructor also creates the DOM (minimal: root, head, title and body node only) - unlike the constructors in writer2latex.xmerge.DOMDocument.

Parameters: name Document name. nType the type of document

Method Detail

createHeaderFooter

public void createHeaderFooter()

getBodyNode

public Element getBodyNode()

getContentNode

public Element getContentNode()

getEncoding

public String getEncoding()

getExtension

public static final String getExtension(int nType)

getFileExtension

public String getFileExtension()

getFooterNode

public Element getFooterNode()

getHeaderNode

public Element getHeaderNode()

getHeadNode

public Element getHeadNode()

getPanelNode

public Element getPanelNode()

getTitleNode

public Element getTitleNode()

read

public void read(InputStream is)

readFromTemplate

public void readFromTemplate(XhtmlDocument template)

setAddBOM

public void setAddBOM(boolean b)

setContentDOM

public void setContentDOM(Document doc)

setContentNode

public void setContentNode(Element contentNode)

setEncoding

public void setEncoding(String s)

setNoDoctype

public void setNoDoctype(boolean b)

setUseNamedEntities

public void setUseNamedEntities(boolean b)

setXsltPath

public void setXsltPath(String s)

write

public void write(OutputStream os)
Write out content to the supplied OutputStream. (with pretty printing)

Parameters: os XML OutputStream.

Throws: IOException If any I/O error occurs.