|
ASPOSE home |
java.lang.Objectcom.aspose.words.DocumentBuilder
public class DocumentBuilder
DocumentBuilder makes the process of building a Document easier.
Document is a composite object consisting of a tree of nodes and while inserting content
nodes directly into the tree is possible, it requires good understanding of the tree structure.
DocumentBuilder is a "facade" for the complex structure of Document and allows
to insert content and formatting quickly and easily. Create a DocumentBuilder and associate it with a The DocumentBuilder has an internal cursor where the text will be inserted
when you call Use the Use the Use the Use the Note that Font, ParagraphFormat and PageSetup properties are updated whenever
you navigate to a different place in the document to reflect formatting properties available at the new location.
Constructor Summary |
---|
DocumentBuilder()
Initializes a new instance of this class. |
DocumentBuilder(Document doc)
Initializes a new instance of this class. |
Property Getters/Setters Summary | ||
---|---|---|
boolean | getBold() | |
void | setBold(boolean value) | |
True if the font is formatted as bold. | ||
CellFormat | getCellFormat() | |
Returns an object that represents current table cell formatting properties. | ||
Node | getCurrentNode() | |
Gets the node that is currently selected in this DocumentBuilder. | ||
Paragraph | getCurrentParagraph() | |
Gets the paragraph that is currently selected in this DocumentBuilder. | ||
Section | getCurrentSection() | |
Gets the section that is currently selected in this DocumentBuilder. | ||
Story | getCurrentStory() | |
Gets the story that is currently selected in this DocumentBuilder. | ||
Document | getDocument() | |
void | setDocument(Document value) | |
Gets or sets the |
||
Font | getFont() | |
Returns an object that represents current font formatting properties. | ||
boolean | isAtEndOfParagraph() | |
Returns true if the cursor is at the end of the current paragraph. | ||
boolean | isAtStartOfParagraph() | |
Returns true if the cursor is at the beginning of the current paragraph (no text before the cursor). | ||
boolean | getItalic() | |
void | setItalic(boolean value) | |
True if the font is formatted as italic. | ||
ListFormat | getListFormat() | |
Returns an object that represents current list formatting properties. | ||
PageSetup | getPageSetup() | |
Returns an object that represents current page setup and section properties. | ||
ParagraphFormat | getParagraphFormat() | |
Returns an object that represents current paragraph formatting properties. | ||
RowFormat | getRowFormat() | |
Returns an object that represents current table row formatting properties. | ||
byte | getUnderline() | |
void | setUnderline(byte value) | |
Gets/sets underline type for the current font. The value of the property is Underline integer constant. |
Method Summary | ||
---|---|---|
void | clearCellAttrs() | |
Reserved for internal use. | ||
void | clearRowAttrs() | |
Reserved for internal use. | ||
void | clearRunAttrs() | |
Reserved for internal use. | ||
Row | deleteRow(int tableIndex, int rowIndex) | |
Deletes a row from a table. | ||
BookmarkEnd | endBookmark(java.lang.String bookmarkName) | |
Marks the current position in the document as a bookmark end. | ||
Row | endRow() | |
Ends a table row in the document. | ||
Table | endTable() | |
Ends a table in the document. | ||
java.lang.Object | fetchInheritedCellAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchInheritedRowAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchInheritedRunAttr(int fontAttr) | |
Reserved for internal use. | ||
java.lang.Object | getDirectCellAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectRowAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectRunAttr(int fontAttr) | |
Reserved for internal use. | ||
void | insertBreak(int breakType) | |
Inserts a break of the specified type into the document. | ||
Cell | insertCell() | |
Inserts a table cell into the document. | ||
FormField | insertCheckBox(java.lang.String name, boolean defaultValue, int size) | |
Inserts a checkbox form field at the current position. | ||
FormField | insertComboBox(java.lang.String name, java.lang.String[] items, int selectedIndex) | |
Inserts a combobox form field at the current position. | ||
FieldStart | insertField(java.lang.String fieldCode, java.lang.String fieldValue) | |
Inserts a Word field into the document. | ||
FieldStart | insertHyperlink(java.lang.String displayText, java.lang.String url, boolean isLocal) | |
Inserts a hyperlink into the document. | ||
Shape | insertImage(byte[] imageBytes) | |
Inserts an image from a byte array object into the document. | ||
Shape | insertImage(byte[] imageBytes, double width, double height) | |
Inserts an image from a byte array object into the document and scales it to the specified size. | ||
Shape | insertImage(byte[] imageBytes, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) | |
Inserts a floating image from a byte array object at the specified position and size. | ||
Shape | insertImage(java.awt.image.BufferedImage image) | |
Inserts an image from a |
||
Shape | insertImage(java.awt.image.BufferedImage image, double width, double height) | |
Inserts an image from a |
||
Shape | insertImage(java.awt.image.BufferedImage image, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) | |
Inserts a floating image from a |
||
Shape | insertImage(java.io.InputStream stream) | |
Inserts an image from a stream into the document. | ||
Shape | insertImage(java.io.InputStream stream, double width, double height) | |
Inserts an image from a stream into the document and scales it to the specified size. | ||
Shape | insertImage(java.io.InputStream stream, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) | |
Inserts a floating image from a stream at the specified position and size. | ||
Shape | insertImage(java.lang.String fileName) | |
Inserts an image from a file or URL into the document. | ||
Shape | insertImage(java.lang.String fileName, double width, double height) | |
Inserts an image from a file or URL into the document and scales it to the specified size. | ||
Shape | insertImage(java.lang.String fileName, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) | |
Inserts a floating image from a file or URL at the specified position and size. | ||
void | insertNode(Node node) | |
Inserts a text level node inside the current paragraph before the cursor. | ||
Paragraph | insertParagraph() | |
Inserts a paragraph break into the document. | ||
void | insertTableOfContents(java.lang.String switches) | |
Inserts a TOC (table of contents) field into the document. | ||
FormField | insertTextInput(java.lang.String name, int type, java.lang.String format, java.lang.String fieldValue, int maxLength) | |
Inserts a text form field at the current position. | ||
void | moveTo(Node node) | |
Moves the cursor to an inline node or to the end of a paragraph. | ||
boolean | moveToBookmark(java.lang.String bookmarkName) | |
Moves the cursor to a bookmark. | ||
boolean | moveToBookmark(java.lang.String bookmarkName, boolean isStart, boolean isAfter) | |
Moves the cursor to a bookmark with greater precision. | ||
void | moveToCell(int tableIndex, int rowIndex, int columnIndex, int characterIndex) | |
Moves the cursor to a table cell in the current section. | ||
void | moveToDocumentEnd() | |
Moves the cursor to the end of the document. | ||
void | moveToDocumentStart() | |
Moves the cursor to the beginning of the document. | ||
void | moveToField(Field field, boolean isAfter) | |
Moves the cursor to a field in the document. | ||
void | moveToHeaderFooter(int headerFooterType) | |
Moves the cursor to the beginning of a header or footer in the current section. | ||
boolean | moveToMergeField(java.lang.String fieldName) | |
Moves the cursor to a position just beyond the specified merge field and removes the merge field. | ||
void | moveToParagraph(int paragraphIndex, int characterIndex) | |
Moves the cursor to a paragraph in the current section. | ||
void | moveToSection(int sectionIndex) | |
Moves the cursor to the beginning of the body in a specified section. | ||
void | popFont() | |
Retrieves character formatting previously saved on the stack. | ||
void | pushFont() | |
Saves current character formatting onto the stack. | ||
void | setCellAttr(int key, java.lang.Object value) | |
Reserved for internal use. | ||
void | setRowAttr(int key, java.lang.Object value) | |
Reserved for internal use. | ||
void | setRunAttr(int fontAttr, java.lang.Object value) | |
Reserved for internal use. | ||
BookmarkStart | startBookmark(java.lang.String bookmarkName) | |
Marks the current position in the document as a bookmark start. | ||
Table | startTable() | |
Starts a table in the document. | ||
void | write(java.lang.String text) | |
Inserts a string into the document at the current insert position. | ||
void | writeln() | |
Inserts a paragraph break into the document. | ||
void | writeln(java.lang.String text) | |
Inserts a string and a paragraph break into the document. |
Constructor Detail |
---|
public DocumentBuilder() throws java.lang.Exception
public DocumentBuilder(Document doc) throws java.lang.Exception
doc
- The Document object to attach to.Property Getters/Setters Detail |
---|
getDocument/setDocument | |
public Document getDocument() public void setDocument(Document value) |
getFont | |
public Font getFont() |
Use Font to access and modify font formatting properties.
Specify font formatting before inserting text.
getBold/setBold | |
public boolean getBold() public void setBold(boolean value) |
getItalic/setItalic | |
public boolean getItalic() public void setItalic(boolean value) |
getUnderline/setUnderline | |
public byte getUnderline() public void setUnderline(byte value) |
getParagraphFormat | |
public ParagraphFormat getParagraphFormat() |
getListFormat | |
public ListFormat getListFormat() |
getPageSetup | |
public PageSetup getPageSetup() |
getRowFormat | |
public RowFormat getRowFormat() |
getCellFormat | |
public CellFormat getCellFormat() |
isAtStartOfParagraph | |
public boolean isAtStartOfParagraph() |
isAtEndOfParagraph | |
public boolean isAtEndOfParagraph() |
getCurrentNode | |
public Node getCurrentNode() |
CurrentNode is a cursor of DocumentBuilder and points to a Node that is a direct child of a Paragraph. Any insert operations you perform using DocumentBuilder will insert before the CurrentNode.
When the current paragraph is empty or the cursor is positioned just before the end of the paragraph, CurrentNode returns null.
getCurrentParagraph | |
public Paragraph getCurrentParagraph() |
getCurrentStory | |
public Story getCurrentStory() |
getCurrentSection | |
public Section getCurrentSection() |
Method Detail |
---|
moveToDocumentStart | |
public void moveToDocumentStart() throws java.lang.Exception |
moveToDocumentEnd | |
public void moveToDocumentEnd() throws java.lang.Exception |
moveToSection | |
public void moveToSection(int sectionIndex) throws java.lang.Exception |
When sectionIndex is greater than or equal to 0, it specifies an index from the beginning of the document with 0 being the first section. When sectionIndex is less than 0, it specified an index from the end of the document with -1 being the last section.
The cursor is moved to the first paragraph in the Body of the specified section.
sectionIndex
- The index of the section to move to.moveToHeaderFooter | |
public void moveToHeaderFooter(int headerFooterType) throws java.lang.Exception |
After you moved the cursor into a header or footer, you can use the rest of DocumentBuilder methods to modify the contents of the header or footer.
If you want to create headers and footers different for the first page, you need
to set
If you want to create headers and footers different for even and odd pages, you need
to set
Use
headerFooterType
- A moveToMergeField | |
public boolean moveToMergeField(java.lang.String fieldName) throws java.lang.Exception |
Note that moving cursor to a merge field deletes the merge field from the document.
The comparison is not case-sensitive. If the merge field was not found, false is returned and the cursor is not moved.
fieldName
- The name of the mail merge field you want to move the cursor to.moveToField | |
public void moveToField(Field field, boolean isAfter) throws java.lang.Exception |
field
- The field to move the cursor to.isAfter
- When true, moves the cursor to be after the field end.
When false, moves the cursor to be before the field start. moveToBookmark | |
public boolean moveToBookmark(java.lang.String bookmarkName) throws java.lang.Exception |
Moves the cursor to a position just after the start of the bookmark with the specified name.
The comparison is not case-sensitive. If the bookmark was not found, false is returned and the cursor is not moved.
Inserting new text does not replace existing text of the bookmark.
Note that some bookmarks in the document are assigned to form fields. Moving to such a bookmark and inserting text there inserts the text into the form field code. Although this will not invalidate the form field, the inserted text will not be visible because it becomes part of the field code.
bookmarkName
- The name of the bookmark to move the cursor to.moveToBookmark | |
public boolean moveToBookmark(java.lang.String bookmarkName, boolean isStart, boolean isAfter) throws java.lang.Exception |
Moves the cursor to a position before or after the bookmark start or end.
The comparison is not case-sensitive. If the bookmark was not found, false is returned and the cursor is not moved.
bookmarkName
- The name of the bookmark to move the cursor to.isStart
- When true, moves the cursor to the beginning of the bookmark.
When false, moves the cursor to the end of the bookmark.isAfter
- When true, moves the cursor to be after the bookmark
start or end position. When false, moves the cursor to be before the bookmark
start or end position.moveToParagraph | |
public void moveToParagraph(int paragraphIndex, int characterIndex) throws java.lang.Exception |
The navigation is performed inside the current story of the current section. That is, if you moved the cursor to the primary header of the first section, then paragraphIndex specified the index of the paragraph inside that header of that section.
When paragraphIndex is greater than or equal to 0, it specifies an index from the beginning of the section with 0 being the first paragraph. When paragraphIndex is less than 0, it specified an index from the end of the section with -1 being the last paragraph.
paragraphIndex
- The index of the paragraph to move to.characterIndex
- The index of the character inside the paragraph.
Currently can only specify 0 to move to the beginning of the paragraph or -1 to
move to the end of the paragraph.
moveToCell | |
public void moveToCell(int tableIndex, int rowIndex, int columnIndex, int characterIndex) throws java.lang.Exception |
The navigation is performed inside the current story of the current section.
For the index parameters, when index is greater than or equal to 0, it specifies an index from the beginning with 0 being the first element. When index is less than 0, it specified an index from the end with -1 being the last element.
tableIndex
- The index of the table to move to.rowIndex
- The index of the row in the table.columnIndex
- The index of the column in the table.characterIndex
- The index of the character inside the cell.
Currently can only specify 0 to move to the beginning of the cell or -1 to
move to the end of the cell.moveTo | |
public void moveTo(Node node) throws java.lang.Exception |
When node is an inline-level node, the cursor is moved to this node and further content will be inserted before that node.
When node is a Paragraph, the cursor is moved to the end of the paragraph and further content will be inserted just before the paragraph break.
node
- The node must be a paragraph or a direct child of a paragraph.deleteRow | |
public Row deleteRow(int tableIndex, int rowIndex) throws java.lang.Exception, org.jaxen.JaxenException |
If the cursor is inside the row that is being deleted, the cursor is moved out to the next row or to the next paragraph after the table.
If you delete a row from a table that contains only one row, the whole table is deleted.
For the index parameters, when index is greater than or equal to 0, it specifies an index from the beginning with 0 being the first element. When index is less than 0, it specified an index from the end with -1 being the last element.
tableIndex
- The index of the table.rowIndex
- The index of the row in the table.write | |
public void write(java.lang.String text) throws java.lang.Exception |
text
- The string to insert into the document.writeln | |
public void writeln(java.lang.String text) throws java.lang.Exception |
text
- The string to insert into the document.writeln | |
public void writeln() throws java.lang.Exception |
Calls
insertParagraph | |
public Paragraph insertParagraph() throws java.lang.Exception |
Current paragraph formatting specified by the
Breaks the current paragraph in two. After inserting the paragraph, the cursor is placed at the beginning of the new paragraph.
insertBreak | |
public void insertBreak(int breakType) throws java.lang.Exception |
breakType
- A insertTableOfContents | |
public void insertTableOfContents(java.lang.String switches) throws java.lang.Exception |
This method inserts a TOC (table of contents) field into the document at the current position.
A table of contents in a Word document can be built in a number of ways and formatted using a variety of options. The way the table is built and displayed by Microsoft Word is controlled by the field switches.
The easiest way to specify the switches is to insert and configure a table of contents into a Word document using the Insert->Reference->Index and Tables menu, then switch display of field codes on to see the switches. You can press Alt+F9 in Microsoft Word to toggle display of field codes on or off.
For example, after creating a table of contents, the following field is inserted into the document: { TOC \o "1-3" \h \z \u }. You can copy \o "1-3" \h \z \u and use it as the switches parameter.
Note that InsertTableOfContents will only insert a TOC field, but will not actually build the table of contents. The table of contents is built by Microsoft Word when the field is updated.
If you insert a table of contents using this method and then open the file in Microsoft Word, you will not see the table of contents because the TOC field has not yet been updated.
In Microsoft Word, fields are not automatically updated when a document is opened, but you can update fields in a document at any time by pressing F9.
switches
- The TOC field switches.insertField | |
public FieldStart insertField(java.lang.String fieldCode, java.lang.String fieldValue) throws java.lang.Exception |
Fields in MS Word documents consist of a field code and a field result. The field code is like a formula and the field result is like the value that the formula produces. The field code may also contain field switches that are like additional instructions to perform a specific action.
You can switch between displaying field codes and results in your document in MS Word using the keyboard shortcut Alt+F9. Field codes appear between curly braces ( { } ).
To create fields using
fieldCode
- Field code to insert (without curly braces).fieldValue
- Field value to insert. Pass null for fields that do not have a value.insertHyperlink | |
public FieldStart insertHyperlink(java.lang.String displayText, java.lang.String url, boolean isLocal) throws java.lang.Exception |
This methods internally calls
HYPERLINK \l "bookmarkName"
HYPERLINK "http://www.mydomain.com/myurl"
Note that you need to specify font formatting for the hyperlink display text explicitly
using the
displayText
- Text of the link to be displayed in the document.url
- Link destination. Can be a url or a name of a bookmark inside the document.
This method always adds apostrophes at the beginning and end of the url.isLocal
- True if the url is a name of a bookmark inside the document.insertTextInput | |
public FormField insertTextInput(java.lang.String name, int type, java.lang.String format, java.lang.String fieldValue, int maxLength) throws java.lang.Exception |
If you specify a name for the form field, then a bookmark is automatically created with the same name.
name
- The name of the form field. Can be an empty string.type
- A format
- Format string used to format the value of the form field.fieldValue
- Text that will be shown in the field.maxLength
- Maximum length the user can enter into the form field. Set to zero for unlimited length.insertCheckBox | |
public FormField insertCheckBox(java.lang.String name, boolean defaultValue, int size) throws java.lang.Exception |
If you specify a name for the form field, then a bookmark is automatically created with the same name.
name
- The name of the form field. Can be an empty string.defaultValue
- Default value of the form field.size
- Specifies the size of the checkbox in points. Specify 0 for MS Word
to calculate the size of the checkbox automatically.insertComboBox | |
public FormField insertComboBox(java.lang.String name, java.lang.String[] items, int selectedIndex) throws java.lang.Exception |
If you specify a name for the form field, then a bookmark is automatically created with the same name.
name
- The name of the form field. Can be an empty string.items
- The items of the combobox. Maximum is 25 items.selectedIndex
- The index of the selected item in the combobox.insertImage | |
public Shape insertImage(byte[] imageBytes) throws java.lang.Exception |
The image is inserted inline and at 100% scale.
You can change the image size, location, positioning method and other settings using the
imageBytes
- The byte array that contains the image.insertImage | |
public Shape insertImage(java.awt.image.BufferedImage image) throws java.lang.Exception |
The image is inserted inline and at 100% scale.
You can change the image size, location, positioning method and other settings using the
Note: The image inserted in PNG format with default
image
- The image to insert into the document.insertImage | |
public Shape insertImage(java.lang.String fileName) throws java.lang.Exception |
This overload is provided because it adds useful functionality of automatically downloading the image before inserting into the document if you specify a remote URI.
The image is inserted inline and at 100% scale.
You can change the image size, location, positioning method and other settings using the
fileName
- The file with the image. Can be any valid URI.insertImage | |
public Shape insertImage(java.io.InputStream stream) throws java.lang.Exception |
The image is inserted inline and at 100% scale.
You can change the image size, location, positioning method and other settings using the
stream
- The stream that contains the image.
The stream will be read from
the current position, so one should be careful about stream position.insertImage | |
public Shape insertImage(byte[] imageBytes, double width, double height) throws java.lang.Exception |
The image is inserted inline and at 100% scale.
You can change the image size, location, positioning method and other settings using the
imageBytes
- The byte array that contains the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.insertImage | |
public Shape insertImage(java.awt.image.BufferedImage image, double width, double height) throws java.lang.Exception |
The image is inserted inline.
You can change the image size, location, positioning method and other settings using the
Note: The image inserted in PNG format with default
image
- The image to insert into the document.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.insertImage | |
public Shape insertImage(java.lang.String fileName, double width, double height) throws java.lang.Exception |
The image is inserted inline.
You can change the image size, location, positioning method and other settings using the
fileName
- The file that contains the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.insertImage | |
public Shape insertImage(java.io.InputStream stream, double width, double height) throws java.lang.Exception |
The image is inserted inline.
You can change the image size, location, positioning method and other settings using the
stream
- The stream that contains the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.insertImage | |
public Shape insertImage(byte[] imageBytes, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) throws java.lang.Exception |
You can change the image size, location, positioning method and other settings using the
imageBytes
- The byte array that contains the image.horzPos
- A left
- Distance in points from the origin to the left side of the image.vertPos
- A top
- Distance in points from the origin to the top side of the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.wrapType
- A insertImage | |
public Shape insertImage(java.awt.image.BufferedImage image, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) throws java.lang.Exception |
You can change the image size, location, positioning method and other settings using the
Note: The image inserted in PNG format with default
image
- The image to insert into the document.horzPos
- A left
- Distance in points from the origin to the left side of the image.vertPos
- A top
- Distance in points from the origin to the top side of the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.wrapType
- A insertImage | |
public Shape insertImage(java.lang.String fileName, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) throws java.lang.Exception |
You can change the image size, location, positioning method and other settings using the
fileName
- The file that contains the image.horzPos
- A left
- Distance in points from the origin to the left side of the image.vertPos
- A top
- Distance in points from the origin to the top side of the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.wrapType
- A insertImage | |
public Shape insertImage(java.io.InputStream stream, int horzPos, double left, int vertPos, double top, double width, double height, int wrapType) throws java.lang.Exception |
You can change the image size, location, positioning method and other settings using the
stream
- The stream that contains the image.horzPos
- A left
- Distance in points from the origin to the left side of the image.vertPos
- A top
- Distance in points from the origin to the top side of the image.width
- The width of the image in points. Can be a negative value to request 100% scale.height
- The height if the image in points. Can be a negative value to request 100% scale.wrapType
- A insertCell | |
public Cell insertCell() throws java.lang.Exception |
To start a table, just call InsertCell. After this, any content you add using
other methods of the
To start a new cell in the same row, call InsertCell again.
To end a table row call
Use the
startTable | |
public Table startTable() throws java.lang.Exception |
The next method to call is
This method starts a nested table when called inside a cell.
endTable | |
public Table endTable() throws java.lang.Exception |
This method should be called only once after
endRow | |
public Row endRow() throws java.lang.Exception |
Call EndRow to end a table row. If you call
Use the
startBookmark | |
public BookmarkStart startBookmark(java.lang.String bookmarkName) throws java.lang.Exception |
Bookmarks in a document can overlap and span any range. To create a valid bookmark you need to
call both
Badly formed bookmarks or bookmarks with duplicate names will be ignored when the document is saved.
bookmarkName
- Name of the bookmark.endBookmark | |
public BookmarkEnd endBookmark(java.lang.String bookmarkName) throws java.lang.Exception |
Bookmarks in a document can overlap and span any range. To create a valid bookmark you need to
call both
Badly formed bookmarks or bookmarks with duplicate names will be ignored when the document is saved.
bookmarkName
- Name of the bookmark.pushFont | |
public void pushFont() throws java.lang.Exception |
popFont | |
public void popFont() throws java.lang.Exception |
insertNode | |
public void insertNode(Node node) throws java.lang.Exception |
clearCellAttrs | |
public void clearCellAttrs() |
setCellAttr | |
public void setCellAttr(int key, java.lang.Object value) |
fetchInheritedCellAttr | |
public java.lang.Object fetchInheritedCellAttr(int key) throws java.lang.Exception |
getDirectCellAttr | |
public java.lang.Object getDirectCellAttr(int key) |
clearRowAttrs | |
public void clearRowAttrs() |
setRowAttr | |
public void setRowAttr(int key, java.lang.Object value) |
fetchInheritedRowAttr | |
public java.lang.Object fetchInheritedRowAttr(int key) throws java.lang.Exception |
getDirectRowAttr | |
public java.lang.Object getDirectRowAttr(int key) |
clearRunAttrs | |
public void clearRunAttrs() |
setRunAttr | |
public void setRunAttr(int fontAttr, java.lang.Object value) |
fetchInheritedRunAttr | |
public java.lang.Object fetchInheritedRunAttr(int fontAttr) throws java.lang.Exception |
getDirectRunAttr | |
public java.lang.Object getDirectRunAttr(int fontAttr) |
|
ASPOSE home |