@Beta public abstract class AbstractWordConverter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static char |
UNICODECHAR_NO_BREAK_SPACE |
protected static char |
UNICODECHAR_NONBREAKING_HYPHEN |
protected static char |
UNICODECHAR_ZERO_WIDTH_SPACE |
Constructor and Description |
---|
AbstractWordConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterProcess()
Special actions that need to be called after processing complete, like
updating stylesheets or building document notes list.
|
protected FontReplacer.Triplet |
getCharacterRunTriplet(CharacterRun characterRun) |
abstract org.w3c.dom.Document |
getDocument() |
FontReplacer |
getFontReplacer() |
protected int |
getNumberColumnsSpanned(int[] tableCellEdges,
int currentEdgeIndex,
TableCell tableCell) |
protected int |
getNumberRowsSpanned(Table table,
int[] tableCellEdges,
int currentRowIndex,
int currentColumnIndex,
TableCell tableCell) |
PicturesManager |
getPicturesManager() |
protected abstract void |
outputCharacters(org.w3c.dom.Element block,
CharacterRun characterRun,
java.lang.String text) |
protected abstract void |
processBookmarks(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range range,
int currentTableLevel,
java.util.List<Bookmark> rangeBookmarks)
Wrap range into bookmark(s) and process it.
|
protected boolean |
processCharacters(HWPFDocumentCore wordDocument,
int currentTableLevel,
Range range,
org.w3c.dom.Element block) |
protected void |
processDeadField(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range range,
int currentTableLevel,
int beginMark,
int separatorMark,
int endMark) |
void |
processDocument(HWPFDocumentCore wordDocument) |
protected abstract void |
processDocumentInformation(SummaryInformation summaryInformation) |
protected void |
processDocumentPart(HWPFDocumentCore wordDocument,
Range range) |
protected void |
processDrawnObject(HWPFDocument doc,
CharacterRun characterRun,
org.w3c.dom.Element block) |
protected abstract void |
processDrawnObject(HWPFDocument doc,
CharacterRun characterRun,
OfficeDrawing officeDrawing,
java.lang.String path,
org.w3c.dom.Element block) |
protected void |
processDropDownList(org.w3c.dom.Element block,
CharacterRun characterRun,
java.lang.String[] values,
int defaultIndex) |
protected abstract void |
processEndnoteAutonumbered(HWPFDocument wordDocument,
int noteIndex,
org.w3c.dom.Element block,
Range endnoteTextRange) |
protected void |
processField(HWPFDocument wordDocument,
Range parentRange,
int currentTableLevel,
Field field,
org.w3c.dom.Element currentBlock) |
protected abstract void |
processFootnoteAutonumbered(HWPFDocument wordDocument,
int noteIndex,
org.w3c.dom.Element block,
Range footnoteTextRange) |
protected abstract void |
processHyperlink(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range textRange,
int currentTableLevel,
java.lang.String hyperlink) |
protected void |
processImage(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture) |
protected abstract void |
processImage(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture,
java.lang.String url) |
protected abstract void |
processImageWithoutPicturesManager(org.w3c.dom.Element currentBlock,
boolean inlined,
Picture picture) |
protected abstract void |
processLineBreak(org.w3c.dom.Element block,
CharacterRun characterRun) |
protected void |
processNoteAnchor(HWPFDocument doc,
CharacterRun characterRun,
org.w3c.dom.Element block) |
protected boolean |
processOle2(HWPFDocument wordDocument,
org.w3c.dom.Element block,
Entry entry) |
protected abstract void |
processPageBreak(HWPFDocumentCore wordDocument,
org.w3c.dom.Element flow) |
protected abstract void |
processPageref(HWPFDocumentCore wordDocument,
org.w3c.dom.Element currentBlock,
Range textRange,
int currentTableLevel,
java.lang.String pageref) |
protected abstract void |
processParagraph(HWPFDocumentCore wordDocument,
org.w3c.dom.Element parentElement,
int currentTableLevel,
Paragraph paragraph,
java.lang.String bulletText) |
protected void |
processParagraphes(HWPFDocumentCore wordDocument,
org.w3c.dom.Element flow,
Range range,
int currentTableLevel) |
protected abstract void |
processSection(HWPFDocumentCore wordDocument,
Section section,
int s) |
protected void |
processSingleSection(HWPFDocumentCore wordDocument,
Section section) |
protected void |
processSymbol(HWPFDocument doc,
CharacterRun characterRun,
org.w3c.dom.Element block) |
protected abstract void |
processTable(HWPFDocumentCore wordDocument,
org.w3c.dom.Element flow,
Table table) |
void |
setFontReplacer(FontReplacer fontReplacer) |
void |
setPicturesManager(PicturesManager fileManager) |
protected int |
tryDeadField(HWPFDocumentCore wordDocument,
Range range,
int currentTableLevel,
int beginMark,
org.w3c.dom.Element currentBlock) |
protected static final char UNICODECHAR_NO_BREAK_SPACE
protected static final char UNICODECHAR_NONBREAKING_HYPHEN
protected static final char UNICODECHAR_ZERO_WIDTH_SPACE
protected void afterProcess()
protected FontReplacer.Triplet getCharacterRunTriplet(CharacterRun characterRun)
public abstract org.w3c.dom.Document getDocument()
public FontReplacer getFontReplacer()
protected int getNumberColumnsSpanned(int[] tableCellEdges, int currentEdgeIndex, TableCell tableCell)
protected int getNumberRowsSpanned(Table table, int[] tableCellEdges, int currentRowIndex, int currentColumnIndex, TableCell tableCell)
public PicturesManager getPicturesManager()
protected abstract void outputCharacters(org.w3c.dom.Element block, CharacterRun characterRun, java.lang.String text)
protected abstract void processBookmarks(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range range, int currentTableLevel, java.util.List<Bookmark> rangeBookmarks)
protected boolean processCharacters(HWPFDocumentCore wordDocument, int currentTableLevel, Range range, org.w3c.dom.Element block)
protected void processDeadField(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range range, int currentTableLevel, int beginMark, int separatorMark, int endMark)
public void processDocument(HWPFDocumentCore wordDocument)
protected abstract void processDocumentInformation(SummaryInformation summaryInformation)
protected void processDocumentPart(HWPFDocumentCore wordDocument, Range range)
protected void processDrawnObject(HWPFDocument doc, CharacterRun characterRun, org.w3c.dom.Element block)
protected abstract void processDrawnObject(HWPFDocument doc, CharacterRun characterRun, OfficeDrawing officeDrawing, java.lang.String path, org.w3c.dom.Element block)
protected void processDropDownList(org.w3c.dom.Element block, CharacterRun characterRun, java.lang.String[] values, int defaultIndex)
protected abstract void processEndnoteAutonumbered(HWPFDocument wordDocument, int noteIndex, org.w3c.dom.Element block, Range endnoteTextRange)
protected void processField(HWPFDocument wordDocument, Range parentRange, int currentTableLevel, Field field, org.w3c.dom.Element currentBlock)
protected abstract void processFootnoteAutonumbered(HWPFDocument wordDocument, int noteIndex, org.w3c.dom.Element block, Range footnoteTextRange)
protected abstract void processHyperlink(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range textRange, int currentTableLevel, java.lang.String hyperlink)
protected void processImage(org.w3c.dom.Element currentBlock, boolean inlined, Picture picture)
protected abstract void processImage(org.w3c.dom.Element currentBlock, boolean inlined, Picture picture, java.lang.String url)
@Internal protected abstract void processImageWithoutPicturesManager(org.w3c.dom.Element currentBlock, boolean inlined, Picture picture)
protected abstract void processLineBreak(org.w3c.dom.Element block, CharacterRun characterRun)
protected void processNoteAnchor(HWPFDocument doc, CharacterRun characterRun, org.w3c.dom.Element block)
protected boolean processOle2(HWPFDocument wordDocument, org.w3c.dom.Element block, Entry entry) throws java.lang.Exception
java.lang.Exception
protected abstract void processPageBreak(HWPFDocumentCore wordDocument, org.w3c.dom.Element flow)
protected abstract void processPageref(HWPFDocumentCore wordDocument, org.w3c.dom.Element currentBlock, Range textRange, int currentTableLevel, java.lang.String pageref)
protected abstract void processParagraph(HWPFDocumentCore wordDocument, org.w3c.dom.Element parentElement, int currentTableLevel, Paragraph paragraph, java.lang.String bulletText)
protected void processParagraphes(HWPFDocumentCore wordDocument, org.w3c.dom.Element flow, Range range, int currentTableLevel)
protected abstract void processSection(HWPFDocumentCore wordDocument, Section section, int s)
protected void processSingleSection(HWPFDocumentCore wordDocument, Section section)
protected void processSymbol(HWPFDocument doc, CharacterRun characterRun, org.w3c.dom.Element block)
protected abstract void processTable(HWPFDocumentCore wordDocument, org.w3c.dom.Element flow, Table table)
public void setFontReplacer(FontReplacer fontReplacer)
public void setPicturesManager(PicturesManager fileManager)
protected int tryDeadField(HWPFDocumentCore wordDocument, Range range, int currentTableLevel, int beginMark, org.w3c.dom.Element currentBlock)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.