public class OfficeSpreadsheetTools extends Object
Constructor and Description |
---|
OfficeSpreadsheetTools() |
Modifier and Type | Method and Description |
---|---|
static OfficeDrawTools.ParagraphContainer |
getAllParagraphs(com.sun.star.lang.XComponent xComponent)
returns the text of all cells as paragraphs
|
static com.sun.star.lang.Locale |
getDocumentLocale(com.sun.star.lang.XComponent xComponent)
Get local of the Spreadsheet
|
static int |
getParagraphFromCurrentSheet(com.sun.star.lang.XComponent xComponent)
get the first paragraph from current visual sheet
|
static boolean |
isSpreadsheetDocument(com.sun.star.lang.XComponent xComponent)
test if the document is a Spreadsheet Document
|
static void |
setCurrentSheet(int nPara,
com.sun.star.lang.XComponent xComponent)
set the current visual sheet
|
static void |
setLanguageOfSpreadsheet(com.sun.star.lang.Locale locale,
com.sun.star.lang.XComponent xComponent)
set the Language of the Spreadsheet
NOTE: the change of language affects always the whole spreadsheet
|
static void |
setTextofCell(int nPara,
String replace,
com.sun.star.lang.XComponent xComponent)
set a new text into a cell
|
public static boolean isSpreadsheetDocument(com.sun.star.lang.XComponent xComponent)
public static OfficeDrawTools.ParagraphContainer getAllParagraphs(com.sun.star.lang.XComponent xComponent)
public static void setTextofCell(int nPara, String replace, com.sun.star.lang.XComponent xComponent)
public static void setCurrentSheet(int nPara, com.sun.star.lang.XComponent xComponent)
public static int getParagraphFromCurrentSheet(com.sun.star.lang.XComponent xComponent)
public static void setLanguageOfSpreadsheet(com.sun.star.lang.Locale locale, com.sun.star.lang.XComponent xComponent)
public static com.sun.star.lang.Locale getDocumentLocale(com.sun.star.lang.XComponent xComponent)