public final class Calc 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.sheet.XSpreadsheetDocument |
getCalcDoc(@Nullable com.sun.star.lang.XComponent document)
Casts the given document into a
XSpreadsheetDocument. |
static boolean |
isCalc(@NonNull com.sun.star.lang.XComponent document)
Gets whether the given document is a Spreadsheet document.
|
public static boolean isCalc(@NonNull com.sun.star.lang.XComponent document)
document - The document to test.true if the document is a Spreadsheet document, false otherwise.public static @Nullable com.sun.star.sheet.XSpreadsheetDocument getCalcDoc(@Nullable com.sun.star.lang.XComponent document)
XSpreadsheetDocument.document - The document to cast.XSpreadsheetDocument, or null if the document is not a Spreadsheet
document.Copyright © 2022 - present; JODConverter. All rights reserved.