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.
|
Modifier and Type | Method and Description |
---|---|
static TextDocument |
TextDocument.loadDocument(File file)
Creates an TextDocument from the OpenDocument provided by a File.
|
static TextDocument |
TextDocument.loadDocument(InputStream inputStream)
Creates an TextDocument from the OpenDocument provided by a resource
Stream.
|
static TextDocument |
TextDocument.loadDocument(String documentPath)
Loads an TextDocument from the provided path.
|
static TextDocument |
TextDocument.newTextDocument()
Creates an empty text document.
|
static TextDocument |
TextDocument.newTextDocument(TextDocument.OdfMediaType mimeType)
Creates an empty text document.
|
static TextDocument |
TextDocument.newTextMasterDocument()
Creates an empty text master document.
|
static TextDocument |
TextDocument.newTextTemplateDocument()
Creates an empty text template.
|
static TextDocument |
TextDocument.newTextWebDocument()
Creates an empty text web.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
TextSelection.replaceWith(TextDocument newTextDocument)
Replace the content with a TextDocument with Styles.
|
void |
TextDocumentSelection.replaceWithTextDocument(TextDocument textDocument)
Replace the Searched Content with a TextDocument with Styles.
|
Constructor and Description |
---|
TextStyleNavigation(Map<OdfStyleProperty,String> props,
TextDocument doc)
Construct
TextStyleNavigation with style properties condition and
navigation scope. |
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.