public class TextConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Stack<org.w3c.dom.Node> |
sections |
Constructor and Description |
---|
TextConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter) |
Modifier and Type | Method and Description |
---|---|
void |
convertTextContent(org.w3c.dom.Element onode)
Converts an office node as a complete text document
|
protected org.w3c.dom.Element |
createInline(org.w3c.dom.Element node,
java.lang.String sStyleName) |
protected org.w3c.dom.Element |
createParagraph(org.w3c.dom.Element node,
java.lang.String sStyleName) |
protected org.w3c.dom.Element |
doMaybeSplit(org.w3c.dom.Node node,
int nLevel) |
protected int |
getAlphabeticalIndex() |
protected int |
getOutlineLevel(org.w3c.dom.Element node) |
protected int |
getTocIndex() |
protected void |
handleAnchor(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode) |
protected void |
setAsapNode(org.w3c.dom.Element node) |
org.w3c.dom.Node |
traverseBlockText(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode) |
protected void |
traverseInlineText(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode) |
protected void |
traversePCDATA(org.w3c.dom.Node onode,
org.w3c.dom.Node hnode) |
public TextConverter(OfficeReader ofr, XhtmlConfig config, Converter converter)
public void convertTextContent(org.w3c.dom.Element onode)
onode
- the Office node containing the content to convertprotected int getTocIndex()
protected int getAlphabeticalIndex()
protected void setAsapNode(org.w3c.dom.Element node)
public org.w3c.dom.Node traverseBlockText(org.w3c.dom.Node onode, org.w3c.dom.Node hnode)
protected org.w3c.dom.Element doMaybeSplit(org.w3c.dom.Node node, int nLevel)
protected void traverseInlineText(org.w3c.dom.Node onode, org.w3c.dom.Node hnode)
protected void traversePCDATA(org.w3c.dom.Node onode, org.w3c.dom.Node hnode)
protected void handleAnchor(org.w3c.dom.Node onode, org.w3c.dom.Node hnode)
protected org.w3c.dom.Element createParagraph(org.w3c.dom.Element node, java.lang.String sStyleName)
protected org.w3c.dom.Element createInline(org.w3c.dom.Element node, java.lang.String sStyleName)
protected int getOutlineLevel(org.w3c.dom.Element node)