public class SpreadsheetDocument
extends java.lang.Object
Constructor and Description |
---|
SpreadsheetDocument(com.sun.star.lang.XComponent document)
Creates a new instance of SpreadsheetDocument.
|
Modifier and Type | Method and Description |
---|---|
void |
addBasicModule(java.lang.String module,
java.lang.String macros)
Adds a module of BASIC macros to the document.
|
void |
addStartButtons(int firstColor,
int lastColor)
Adds start buttons to show the sheets.
|
void |
createMosaicSheet(java.lang.String name,
int index,
int[][] colors)
Creates a mosaic spreadsheet.
|
int |
getRowHeight()
Returns the height of the rows.
|
java.awt.Dimension |
getWindowSize()
Returns the size of the window.
|
void |
runBasicMacro(java.lang.String module,
java.lang.String macro,
java.lang.Object[] param)
Runs a BASIC macro of the document.
|
public SpreadsheetDocument(com.sun.star.lang.XComponent document)
document
- the document componentpublic void addBasicModule(java.lang.String module, java.lang.String macros)
module
- the name of the module.macros
- the content of the modulepublic void runBasicMacro(java.lang.String module, java.lang.String macro, java.lang.Object[] param)
module
- the name of the module of the macro.macro
- the name of the macro.param
- the parameters for the macropublic java.awt.Dimension getWindowSize()
public int getRowHeight()
public void createMosaicSheet(java.lang.String name, int index, int[][] colors)
name
- the spreadsheet nameindex
- the spreadsheet indexcolors
- the color values matrixpublic void addStartButtons(int firstColor, int lastColor)
firstColor
- the background color of A1 (first start
button) in the first sheetlastColor
- the background color of A1 (last start
button) in the last sheet