|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler fr.opensagres.xdocreport.document.docx.textstyling.DocxDocumentHandler
public class DocxDocumentHandler
Document handler implementation to build docx fragment content.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.opensagres.xdocreport.document.textstyling.IDocumentHandler |
---|
IDocumentHandler.TextLocation |
Field Summary | |
---|---|
protected IDocxStylesGenerator |
styleGen
|
Fields inherited from class java.io.Writer |
---|
lock |
Fields inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult |
---|
TEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY |
Constructor Summary | |
---|---|
DocxDocumentHandler(BufferedElement parent,
IContext context,
String entryName)
|
Method Summary | |
---|---|
protected void |
doEndOrderedList()
|
void |
doEndTable(TableProperties properties)
|
void |
doEndTableCell()
|
void |
doEndTableRow()
|
protected void |
doEndUnorderedList()
|
protected void |
doStartOrderedList(ListProperties properties)
|
protected void |
doStartTable(TableProperties properties)
|
void |
doStartTableCell(TableCellProperties properties)
|
void |
doStartTableRow(TableRowProperties properties)
|
protected void |
doStartUnorderedList(ListProperties properties)
|
void |
endBold()
End bold style. |
void |
endDocument()
End the document. |
void |
endHeading(int level)
End heading. |
void |
endItalics()
End italics style. |
void |
endListItem()
End list item. |
void |
endParagraph()
End paragraph. |
void |
endSpan()
End span item. |
void |
endStrike()
End Strike style. |
void |
endSubscript()
End Subscript style. |
void |
endSuperscript()
End Superscript style. |
void |
endUnderline()
End underline style. |
void |
handleImage(String ref,
String label)
Handle image. |
void |
handleLineBreak()
|
void |
handleReference(String ref,
String label)
Handle reference. |
void |
handleString(String content)
Text content. |
void |
startBold()
Start bold style. |
void |
startDocument()
Start the document. |
void |
startHeading(int level,
HeaderProperties properties)
Start heading. |
void |
startItalics()
Start italics style. |
void |
startListItem(ListItemProperties properties)
Start list item. |
void |
startParagraph(ParagraphProperties properties)
Start paragraph. |
void |
startSpan(SpanProperties properties)
Start span item. |
void |
startStrike()
Start Strike style. |
void |
startSubscript()
Start Subscript style. |
void |
startSuperscript()
Start Superscript style. |
void |
startUnderline()
Start underline style. |
Methods inherited from class fr.opensagres.xdocreport.document.textstyling.AbstractDocumentHandler |
---|
close, endOrderedList, endTable, endTableCell, endTableRow, endUnorderedList, flush, getContext, getCurrentListIndex, getCurrentListOrder, getCurrentWriter, getEntryName, getParent, getTextBefore, getTextBody, getTextEnd, popTempWriter, pushTempWriter, setTextLocation, startOrderedList, startTable, startTableCell, startTableRow, startUnorderedList, toString, write |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final IDocxStylesGenerator styleGen
Constructor Detail |
---|
public DocxDocumentHandler(BufferedElement parent, IContext context, String entryName)
Method Detail |
---|
public void startDocument()
IDocumentHandler
public void endDocument() throws IOException
IDocumentHandler
IOException
public void startBold()
IDocumentHandler
public void endBold()
IDocumentHandler
public void startItalics()
IDocumentHandler
public void endItalics()
IDocumentHandler
public void startUnderline() throws IOException
IDocumentHandler
IOException
public void endUnderline() throws IOException
IDocumentHandler
IOException
public void startStrike() throws IOException
IDocumentHandler
IOException
public void endStrike() throws IOException
IDocumentHandler
IOException
public void startSubscript() throws IOException
IDocumentHandler
IOException
public void endSubscript() throws IOException
IDocumentHandler
IOException
public void startSuperscript() throws IOException
IDocumentHandler
IOException
public void endSuperscript() throws IOException
IDocumentHandler
IOException
public void handleString(String content) throws IOException
IDocumentHandler
handleString
in interface IDocumentHandler
handleString
in class AbstractDocumentHandler
IOException
public void startParagraph(ParagraphProperties properties) throws IOException
IDocumentHandler
IOException
public void endParagraph() throws IOException
IDocumentHandler
IOException
public void startListItem(ListItemProperties properties) throws IOException
IDocumentHandler
IOException
public void endListItem() throws IOException
IDocumentHandler
IOException
public void startHeading(int level, HeaderProperties properties) throws IOException
IDocumentHandler
IOException
public void endHeading(int level) throws IOException
IDocumentHandler
IOException
public void startSpan(SpanProperties properties) throws IOException
IDocumentHandler
IOException
public void endSpan() throws IOException
IDocumentHandler
IOException
protected void doStartOrderedList(ListProperties properties) throws IOException
doStartOrderedList
in class AbstractDocumentHandler
IOException
protected void doStartUnorderedList(ListProperties properties) throws IOException
doStartUnorderedList
in class AbstractDocumentHandler
IOException
protected void doEndUnorderedList() throws IOException
doEndUnorderedList
in class AbstractDocumentHandler
IOException
protected void doEndOrderedList() throws IOException
doEndOrderedList
in class AbstractDocumentHandler
IOException
public void handleReference(String ref, String label) throws IOException
IDocumentHandler
IOException
public void handleImage(String ref, String label) throws IOException
IDocumentHandler
IOException
public void handleLineBreak() throws IOException
IOException
protected void doStartTable(TableProperties properties) throws IOException
doStartTable
in class AbstractDocumentHandler
IOException
public void doEndTable(TableProperties properties) throws IOException
doEndTable
in class AbstractDocumentHandler
IOException
public void doStartTableRow(TableRowProperties properties) throws IOException
doStartTableRow
in class AbstractDocumentHandler
IOException
public void doEndTableRow() throws IOException
doEndTableRow
in class AbstractDocumentHandler
IOException
public void doStartTableCell(TableCellProperties properties) throws IOException
doStartTableCell
in class AbstractDocumentHandler
IOException
public void doEndTableCell() throws IOException
doEndTableCell
in class AbstractDocumentHandler
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |