public final class Write extends Object
Inspired by the work of Dr. Andrew Davison from the website Java LibreOffice Programming.
| Modifier and Type | Method and Description |
|---|---|
static com.sun.star.text.XTextDocument |
getTextDoc(com.sun.star.lang.XComponent document)
Casts the given document into a
XTextDocument. |
static boolean |
isText(com.sun.star.lang.XComponent document)
Gets whether the given document is a Text document.
|
public static boolean isText(com.sun.star.lang.XComponent document)
document - The document to test.true if the document is a Text document, false otherwise.public static com.sun.star.text.XTextDocument getTextDoc(com.sun.star.lang.XComponent document)
XTextDocument.document - The document to cast.XTextDocument, or null if the document is not a Text document.