Interface IDocumentHandler
- All Superinterfaces:
ITransformResult
- All Known Implementing Classes:
AbstractDocumentHandler
Handler to build a document.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult
TEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionvoidendBold()End bold style.voidEnd the document.voidendHeading(int level) End heading.voidEnd italics style.voidEnd list item.voidEnd ordered list.voidEnd paragraph.voidendSpan()End span item.voidEnd Strike style.voidEnd Subscript style.voidEnd Superscript style.voidendTable()End table.voidEnd table cell.voidEnd table row.voidEnd underline style.voidEnd unordered list.voidhandleImage(String ref, String label) Handle image.voidvoidhandleReference(String ref, String label) Handle reference.voidText content.voidStart bold style.voidStart the document.voidstartHeading(int level, HeaderProperties properties) Start heading.voidStart italics style.voidstartListItem(ListItemProperties properties) Start list item.voidstartOrderedList(ListProperties properties) Start ordered list.voidstartParagraph(ParagraphProperties properties) Start paragraph.voidstartSpan(SpanProperties properties) Start span item.voidStart Strike style.voidStart Subscript style.voidStart Superscript style.voidstartTable(TableProperties properties) Start table.voidstartTableCell(TableCellProperties properties) Start table cell.voidstartTableRow(TableRowProperties properties) Start table row.voidStart underline style.voidstartUnorderedList(ListProperties properties) Start unordered list.Methods inherited from interface fr.opensagres.xdocreport.document.textstyling.ITransformResult
getTextBefore, getTextBody, getTextEnd
-
Method Details
-
startDocument
Start the document.- Throws:
IOException
-
endDocument
End the document.- Throws:
IOException
-
startParagraph
Start paragraph.- Throws:
IOException
-
endParagraph
End paragraph.- Throws:
IOException
-
startBold
Start bold style.- Throws:
IOException
-
endBold
End bold style.- Throws:
IOException
-
startItalics
Start italics style.- Throws:
IOException
-
endItalics
End italics style.- Throws:
IOException
-
startUnderline
Start underline style.- Throws:
IOException
-
endUnderline
End underline style.- Throws:
IOException
-
startStrike
Start Strike style.- Throws:
IOException
-
endStrike
End Strike style.- Throws:
IOException
-
startSubscript
Start Subscript style.- Throws:
IOException
-
endSubscript
End Subscript style.- Throws:
IOException
-
startSuperscript
Start Superscript style.- Throws:
IOException
-
endSuperscript
End Superscript style.- Throws:
IOException
-
startOrderedList
Start ordered list.- Parameters:
properties-- Throws:
IOException
-
endOrderedList
End ordered list.- Throws:
IOException
-
startUnorderedList
Start unordered list.- Parameters:
properties-- Throws:
IOException
-
endUnorderedList
End unordered list.- Throws:
IOException
-
startListItem
Start list item.- Throws:
IOException
-
endListItem
End list item.- Throws:
IOException
-
startSpan
Start span item.- Throws:
IOException
-
endSpan
End span item.- Throws:
IOException
-
handleString
Text content.- Parameters:
s-- Throws:
IOException
-
startHeading
Start heading.- Parameters:
level-- Throws:
IOException
-
endHeading
End heading.- Parameters:
level-- Throws:
IOException
-
startTable
Start table.- Throws:
IOException
-
endTable
End table.- Throws:
IOException
-
startTableRow
Start table row.- Parameters:
properties- table row properties.- Throws:
IOException
-
endTableRow
End table row.- Throws:
IOException
-
startTableCell
Start table cell.- Parameters:
properties- table cell propertie.- Throws:
IOException
-
endTableCell
End table cell.- Throws:
IOException
-
handleImage
Handle image.- Parameters:
ref-label-- Throws:
IOException
-
handleReference
Handle reference.- Parameters:
ref-label-- Throws:
IOException
-
handleLineBreak
- Throws:
IOException
-