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 @Nullable com.sun.star.text.XTextDocument |
getTextDoc(@Nullable com.sun.star.lang.XComponent document)
Casts the given document into a
XTextDocument. |
static boolean |
isText(@NonNull com.sun.star.lang.XComponent document)
Gets whether the given document is a Text document.
|
static boolean |
isWeb(@NonNull com.sun.star.lang.XComponent document)
Gets whether the given document is a Web document.
|
public static boolean isText(@NonNull com.sun.star.lang.XComponent document)
document - The document to test.true if the document is a Text document, false otherwise.public static boolean isWeb(@NonNull com.sun.star.lang.XComponent document)
document - The document to test.true if the document is a Web document, false otherwise.public static @Nullable com.sun.star.text.XTextDocument getTextDoc(@Nullable com.sun.star.lang.XComponent document)
XTextDocument.document - The document to cast.XTextDocument, or null if the document is not a Text document.Copyright © 2022 - present; JODConverter. All rights reserved.