Interface StyledDocument
- All Known Implementing Classes:
DOCXEngine,PPTXEngine,RTFEngine,XLSXEngine
@OpenApiAll
public interface StyledDocument
The interface of object which support document format.
- Since:
- Jul 23, 2008 11:48:14 AM
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe type signature that is expected to be present on any attribute key that contributes to character level presentation.static final intThe type signature that is expected to be present on any attribute key that contributes to presentation of color.static final intThe type signature that is expected to be present on any attribute key that contributes to the determination of what font to use to render some text.static final intThe type signature that is expected to be present on any attribute key that contributes to the paragraph level presentation.static final intThe type signature that is expected to be present on any attribute key that contributes to the table presentation. -
Method Summary
Modifier and TypeMethodDescriptionintAppends the specified color to the document's color table.intAppends the specified font to the document's font table.intAppends the specified list item to the document's style table.intAppends object content into the document.intAppends the specified style to the document's style table.
-
Field Details
-
CHARACTER
static final int CHARACTERThe type signature that is expected to be present on any attribute key that contributes to character level presentation.- See Also:
-
COLOR
static final int COLORThe type signature that is expected to be present on any attribute key that contributes to presentation of color.- See Also:
-
FONT
static final int FONTThe type signature that is expected to be present on any attribute key that contributes to the determination of what font to use to render some text.- See Also:
-
PARAGRAPH
static final int PARAGRAPHThe type signature that is expected to be present on any attribute key that contributes to the paragraph level presentation.- See Also:
-
TABLE
static final int TABLEThe type signature that is expected to be present on any attribute key that contributes to the table presentation.- See Also:
-
-
Method Details
-
addColor
Appends the specified color to the document's color table. Returns an index of color from table.- Parameters:
color- specified color.- Returns:
- index of color from color table in document.
-
addFont
Appends the specified font to the document's font table. Returns an index of font from table.- Parameters:
font- specified font.- Returns:
- index of font from font table in document.
-
addList
Appends the specified list item to the document's style table. Returns an index of list from table.- Parameters:
list- specified list.- Returns:
- index of list from style table in document.
-
addStyle
Appends the specified style to the document's style table. Return an index of style from table.- Parameters:
style- a style. Reproduce from StyleContext.NamedStyle- Returns:
- index of style from style table in document.
-
addObject
Appends object content into the document.- Parameters:
object- adding object- Returns:
- index to object
-