Package | Description |
---|---|
org.odftoolkit.simple |
Provide high level methods to frequently used ODF documents.
|
org.odftoolkit.simple.common.navigation |
Provide classes to operate the content and style of the selected text content.
|
org.odftoolkit.simple.draw |
Provide high level methods to manipulate draw frame and text box.
|
org.odftoolkit.simple.table |
Provide convenient methods to manipulate table in ODF text and spreadsheet document.
|
org.odftoolkit.simple.text |
Provide convenient methods to manipulate frequently used structures in ODF text document, such as list and section.
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
TextDocument.addParagraph(String text)
Creates a new paragraph and append text.
|
Paragraph |
TextDocument.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped) |
Paragraph |
TextDocument.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped) |
Paragraph |
TextDocument.insertParagraph(Paragraph referenceParagraph,
Paragraph sourceParagraph,
boolean before)
Copy a Paragraph and insert it before or after the Reference Paragraph in the text document,
whether the Paragraph is in this document or in a different document.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Paragraph> |
TextDocument.getParagraphIterator() |
Modifier and Type | Method and Description |
---|---|
void |
TextDocument.addColumnBreak(Paragraph refParagraph)
Appends a new column break to this document after the reference paragraph.
|
void |
TextDocument.addPageBreak(Paragraph refParagraph)
Appends a new page break to this document after the reference paragraph.
|
void |
TextDocument.addPageBreak(Paragraph refParagraph,
MasterPage master)
Appends a new page break to this document after the reference paragraph, and the master page
style will be applied to the new page.
|
TextTableOfContentElement |
TextDocument.createDefaultTOC(Paragraph refParagraph,
boolean before)
Create a new Table Of Content to this document before the reference paragraph.
|
TextTableOfContentElement |
TextDocument.createTOCwithStyle(Paragraph refParagraph,
TOCStyle additionalStyle,
boolean before)
Create a new Table Of Content to this document before the reference paragraph.
|
void |
TextDocument.insertContentFromDocumentAfter(TextDocument sourceDocument,
Paragraph referenceParagraph,
boolean isCopyStyle)
Copy text content of the source TextDocument and insert it to the current TextDocument after
the reference Paragraph, with Styles or without Styles.
|
void |
TextDocument.insertContentFromDocumentBefore(TextDocument sourceDocument,
Paragraph referenceParagraph,
boolean isCopyStyle)
Copy text content of the source TextDocument and insert it to the current TextDocument before
the reference Paragraph, with Styles or without Styles.
|
Paragraph |
TextDocument.insertParagraph(Paragraph referenceParagraph,
Paragraph sourceParagraph,
boolean before)
Copy a Paragraph and insert it before or after the Reference Paragraph in the text document,
whether the Paragraph is in this document or in a different document.
|
Table |
TextDocument.insertTable(Paragraph referenceParagraph,
Table sourceTable,
boolean before)
Copy a Table and insert it before or after the Reference Paragraph in the text document,
whether the Table is in this TextDocument or in a different Document.
|
boolean |
TextDocument.removeParagraph(Paragraph para)
Remove paragraph from this document
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
TextSelection.replaceWith(Paragraph newParagraph)
Replace the content with a paragraph, the paragraph can be in the same TextDocument or in a
different Document.
|
Paragraph |
ParagraphSelection.replaceWithParagraph(Paragraph paragraph)
Replace the content with a paragraph, the paragraph can be in the same TextDocument or in a
different Document.
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
TextSelection.replaceWith(Paragraph newParagraph)
Replace the content with a paragraph, the paragraph can be in the same TextDocument or in a
different Document.
|
Paragraph |
ParagraphSelection.replaceWithParagraph(Paragraph paragraph)
Replace the content with a paragraph, the paragraph can be in the same TextDocument or in a
different Document.
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
Textbox.addParagraph(String textContent) |
Paragraph |
Textbox.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped) |
Paragraph |
Textbox.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped) |
Modifier and Type | Method and Description |
---|---|
Iterator<Paragraph> |
Textbox.getParagraphIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
Textbox.removeParagraph(Paragraph para) |
Modifier and Type | Method and Description |
---|---|
Paragraph |
Cell.addParagraph(String text)
Creates a new paragraph and append text
|
Paragraph |
Cell.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
Paragraph |
Cell.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Paragraph> |
Cell.getParagraphIterator()
Return an Iterator of the paragraph in this container.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Cell.removeParagraph(Paragraph para)
Remove paragraph from this document
|
Modifier and Type | Method and Description |
---|---|
Paragraph |
Section.addParagraph(String textContent) |
Paragraph |
AbstractParagraphContainer.addParagraph(String textContent)
Add paragraph at the end of the container with specified text content.
|
Paragraph |
ParagraphContainer.addParagraph(String textContent)
Add paragraph at the end of the container with specified text content.
|
static Paragraph |
Paragraph.getInstanceof(TextParagraphElementBase paragraphElement)
Gets a paragraph instance by an instance of
TextParagraphElementBase . |
Paragraph |
Section.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped) |
Paragraph |
AbstractParagraphContainer.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
Paragraph |
ParagraphContainer.getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
Paragraph |
Section.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped) |
Paragraph |
AbstractParagraphContainer.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
Paragraph |
ParagraphContainer.getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index.
|
static Paragraph |
Paragraph.insertNewParagraphBefore(ParagraphContainer container,
Node brother)
Create an instance of paragraph
|
static Paragraph |
Paragraph.newParagraph(ParagraphContainer container)
Create an instance of paragraph
|
Modifier and Type | Method and Description |
---|---|
Iterator<Paragraph> |
Section.getParagraphIterator() |
Iterator<Paragraph> |
AbstractParagraphContainer.getParagraphIterator()
Return an Iterator of the paragraph in this container.
|
Iterator<Paragraph> |
ParagraphContainer.getParagraphIterator()
Return an Iterator of the paragraph in this container.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Section.removeParagraph(Paragraph para) |
boolean |
AbstractParagraphContainer.removeParagraph(Paragraph para)
Remove paragraph from the container
|
boolean |
ParagraphContainer.removeParagraph(Paragraph para)
Remove paragraph from the container
|
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.