public abstract class AbstractVisitorExporterGenerator<CC extends AbstractWmlConversionContext> extends TraversalUtil.CallbackImpl
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
anchorOrInline |
protected CC |
conversionContext |
protected org.w3c.dom.Element |
currentP |
protected org.w3c.dom.Element |
currentSpan |
protected org.w3c.dom.Document |
document |
protected static int |
IMAGE_E10 |
protected static int |
IMAGE_E20 |
protected static int |
NODE_BLOCK |
protected static int |
NODE_INLINE |
protected org.w3c.dom.Node |
parentNode |
protected PPr |
pPr |
protected RPr |
rPr |
protected static java.lang.String |
TAB_DUMMY |
protected java.util.LinkedList<org.w3c.dom.Element> |
tc |
protected java.util.LinkedList<org.w3c.dom.Element> |
tr |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractVisitorExporterGenerator(CC conversionContext,
org.w3c.dom.Document document,
org.w3c.dom.Node parentNode) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
apply(java.lang.Object o)
Visits a node in pre order (before its children have been visited).
|
protected void |
convertTabToNode(CC conversionContext,
org.w3c.dom.Document document) |
protected void |
convertToNode(CC conversionContext,
java.lang.Object unmarshalledNode,
java.lang.String modelId,
org.w3c.dom.Document document,
org.w3c.dom.Node parentNode) |
protected abstract org.w3c.dom.DocumentFragment |
createImage(int imgType,
CC conversionContext,
java.lang.Object anchorOrInline) |
protected abstract org.w3c.dom.Element |
createNode(org.w3c.dom.Document doc,
int nodeType) |
protected org.w3c.dom.Node |
getCurrentParent() |
protected abstract AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<CC> |
getFactory() |
protected org.slf4j.Logger |
getLog() |
protected int |
getPos(java.util.List list,
java.lang.Object wanted) |
protected abstract void |
handleBr(Br o) |
protected abstract org.w3c.dom.Element |
handlePPr(CC conversionContext,
PPr pPrDirect,
boolean sdt,
org.w3c.dom.Element currentParent) |
protected abstract void |
handleRPr(CC conversionContext,
PPr pPrDirect,
RPr rPrDirect,
org.w3c.dom.Element currentParent)
On a block representing a run, we just put run properties
from this rPr node.
|
protected void |
rtlAwareAppendChildToCurrentP(org.w3c.dom.Element child) |
boolean |
shouldTraverse(java.lang.Object o)
Decide whether this node's children should be traversed.
|
void |
walkJAXBElements(java.lang.Object o) |
getChildrenprotected static final java.lang.String TAB_DUMMY
protected static final int NODE_BLOCK
protected static final int NODE_INLINE
protected static final int IMAGE_E10
protected static final int IMAGE_E20
protected CC extends AbstractWmlConversionContext conversionContext
protected org.w3c.dom.Document document
protected org.w3c.dom.Node parentNode
protected org.w3c.dom.Element currentP
protected org.w3c.dom.Element currentSpan
protected java.util.LinkedList<org.w3c.dom.Element> tr
protected java.util.LinkedList<org.w3c.dom.Element> tc
protected PPr pPr
protected RPr rPr
protected java.lang.Object anchorOrInline
protected AbstractVisitorExporterGenerator(CC conversionContext, org.w3c.dom.Document document, org.w3c.dom.Node parentNode)
public boolean shouldTraverse(java.lang.Object o)
TraversalUtil.CallbackImplshouldTraverse in interface TraversalUtil.CallbackshouldTraverse in class TraversalUtil.CallbackImplprotected org.w3c.dom.Node getCurrentParent()
protected void convertToNode(CC conversionContext, java.lang.Object unmarshalledNode, java.lang.String modelId, org.w3c.dom.Document document, org.w3c.dom.Node parentNode) throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionprotected void rtlAwareAppendChildToCurrentP(org.w3c.dom.Element child)
public void walkJAXBElements(java.lang.Object o)
walkJAXBElements in interface TraversalUtil.CallbackwalkJAXBElements in class TraversalUtil.CallbackImplpublic java.util.List<java.lang.Object> apply(java.lang.Object o)
TraversalUtil.CallbackImplTraversalUtil.CallbackImpl.shouldTraverse(Object)).
Implementations can have side effects.
apply in interface TraversalUtil.Callbackapply in class TraversalUtil.CallbackImplprotected abstract void handleBr(Br o)
protected int getPos(java.util.List list,
java.lang.Object wanted)
protected void convertTabToNode(CC conversionContext, org.w3c.dom.Document document) throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionprotected abstract org.w3c.dom.Element handlePPr(CC conversionContext, PPr pPrDirect, boolean sdt, org.w3c.dom.Element currentParent)
protected abstract void handleRPr(CC conversionContext, PPr pPrDirect, RPr rPrDirect, org.w3c.dom.Element currentParent)
protected abstract AbstractVisitorExporterDelegate.AbstractVisitorExporterGeneratorFactory<CC> getFactory()
protected abstract org.w3c.dom.DocumentFragment createImage(int imgType,
CC conversionContext,
java.lang.Object anchorOrInline)
protected abstract org.w3c.dom.Element createNode(org.w3c.dom.Document doc,
int nodeType)
protected org.slf4j.Logger getLog()
Copyright © 2007–2023. All rights reserved.