class SpreadsheetExtension extends java.lang.Object
| Type | Name and description |
|---|---|
XSpreadsheet |
activeSheet |
java.lang.Object |
cellStyle |
java.lang.String |
formulaOfCell |
XCell |
propertyValue |
java.lang.Double |
valueOfCell |
XCell |
vertJustify |
| Constructor and description |
|---|
SpreadsheetExtension
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static XSpreadsheet |
getActiveSheet(XSpreadsheetDocument self)Returns the active spreadsheet. |
|
static CellAddress |
getAddress(XCell self)Returns the cell address of the cell. |
|
static java.util.List<XCell> |
getCellList(XSheetCellRanges self)Returns a list of XCells contained in the range. |
|
static java.util.List<XCell> |
getCellList(XSheetCellRangeContainer self)Returns a list of XCells contained in the range container. |
|
static XSheetCellRanges |
getCellRanges(XSpreadsheet self, java.lang.Object type)Returns the cell ranges matching the specified type. |
|
static java.lang.Object |
getCellStyle(XCell self)Returns the CellStyle property. |
|
static com.sun.star.beans.XPropertySet |
getCellStylePropertySet(XSpreadsheetDocument self, java.lang.String cellStyle)Returns the property set of the cell style if it exists. |
|
static java.lang.String |
getFormulaOfCell(XCellRange self, int column, int row)Returns the formula string of a cell. |
|
static java.lang.Object |
getPropertyValue(XCell self, java.lang.String prop)Returns the value of the property. |
|
static XSheetCellRangeContainer |
getRangeContainer(XSpreadsheetDocument self)Returns a sheet cell range container. |
|
static XSpreadsheet |
getSheetByIndex(XSpreadsheetDocument self, java.lang.Integer nIndex)Returns the spreadsheet with the specified index (0-based). |
|
static XSpreadsheet |
getSheetByName(XSpreadsheetDocument self, java.lang.String name)Returns the spreadsheet with the specified name. |
|
static XSpreadsheetDocument |
getSpreadsheetDocument(com.sun.star.lang.XComponent self, com.sun.star.uno.XComponentContext mxRemoteContext)Returns the spreadsheet document with the specified component context |
|
static com.sun.star.style.XStyleFamiliesSupplier |
getStyleFamiliesSupplier(XSpreadsheetDocument self)Returns the style families supplier |
|
static CellContentType |
getTypeOfCell(XCellRange self, int column, int row)Returns the type of the cell. |
|
static java.lang.Double |
getValueOfCell(XCellRange self, int column, int row)Returns the floating point value of the cell specified by column and row. |
|
static java.lang.Integer |
getVertJustify(XCell self)Returns the value of the VertJustify property. |
|
static void |
insertFormulaIntoCell(XSpreadsheet self, int column, int row, java.lang.String value)Inserts a formula (string) value into the cell specified by column and row. |
|
static void |
insertValueIntoCell(XSpreadsheet self, int column, int row, float value)Inserts a float value into the cell specified by column and row. |
|
static void |
setActiveSheet(XSpreadsheetDocument self, XSpreadsheet sht)Sets the active spreadsheet |
|
static void |
setCellStyle(XCell self, java.lang.Object value)Sets the CellStyle property with the value. |
|
static void |
setColumnWidthOptimalPlus(XCellRange self, int addWidth)Sets the width of the columns in XCellRange to optimal plus the additional width. |
|
static void |
setFormulaOfCell(XCellRange self, int column, int row, java.lang.String value)Inserts a formula (string) value into the cell specified by column and row. |
|
static void |
setPropertyValue(XCell self, java.lang.String prop, java.lang.Object value)Sets the specified property with the value. |
|
static void |
setRowHeightOptimalPlus(XCellRange self, int addHeight)Sets the height of the rows in XCellRange to optimal plus the additional height. |
|
static void |
setValueOfCell(XCellRange self, int column, int row, float value)Inserts a float value into the cell specified by column and row. |
|
static void |
setVertJustify(XCell self, java.lang.Object value)Sets the VertJustify property with the value. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns the active spreadsheet.
Returns the cell address of the cell.
Returns a list of XCells contained in the range.
Returns a list of XCells contained in the range container.
Returns the cell ranges matching the specified type.
type - a combination of CellFlags flags.Returns the CellStyle property.
Returns the property set of the cell style if it exists. If not the the cell style is created and it's property set is returned.
cellStyle - the name of the cell style to return the property set of.Returns the formula string of a cell. Even if the cell does not contain a formula, an assignment of this attribute's value to another cell's formula attribute would create the same cell content. This is because this attribute contains the original text value of a string cell. The value of a value cell will be formatted using the number format's default format or the formula string, including "=", of a formula cell. If called on a Range the column and row is relative to that range.
self - XCellRange, XSheetCellRange, or XSpreadsheetcolumn - zero based column position.row - zero based row position.Returns the value of the property.
prop - The name of the property to get.Returns a sheet cell range container.
Returns the spreadsheet with the specified index (0-based).
nIndex - The index of the sheet.Returns the spreadsheet with the specified name.
name - The name of the sheet.Returns the spreadsheet document with the specified component context
mxRemoteContext - the remote context.Returns the style families supplier
Returns the type of the cell. CellContentType.EMPTY, VALUE, TEXT, or FORMULA.
self - XCellRange, XSheetCellRange, or XSpreadsheet.column - zero based column position.row - zero based row position.Returns the floating point value of the cell specified by column and row. For a value cell the value is returned, for a string cell zero is returned and for a formula cell the result value of a formula is returned.
self - XCellRange, XSheetCellRange, or XSpreadsheetcolumn - zero based column position.row - zero based row position.Returns the value of the VertJustify property.
Inserts a formula (string) value into the cell specified by column and row.
column - zero based column position.row - zero based row position.value - the string value to insert.Inserts a float value into the cell specified by column and row.
column - zero based column position.row - zero based row position.value - the float value to insert.Sets the active spreadsheet
sht - The spreadsheet to make activeSets the CellStyle property with the value.
value - The value to set.Sets the width of the columns in XCellRange to optimal plus the additional width.
self - XCellRange, XSheetCellRange, or XSpreadsheet.column - zero based column position.row - zero based row position.addWidth - additional width in 1/100th of a millimeter.Inserts a formula (string) value into the cell specified by column and row. When assigned, the string will be interpreted and a value, text or formula cell is created, depending on the text and the number format.
self - XCellRange, XSheetCellRange, or XSpreadsheetcolumn - zero based column position.row - zero based row position.value - the string value to insert.Sets the specified property with the value.
prop - The name of the property to set.value - The value to set.Sets the height of the rows in XCellRange to optimal plus the additional height.
self - XCellRange, XSheetCellRange, or XSpreadsheet.column - zero based column position.row - zero based row position.addHeight - additional height in 1/100th of a millimeter.Inserts a float value into the cell specified by column and row. After a call to this method the type of the cell is CellContentType.VALUE.
self - XCellRange, XSheetCellRange, or XSpreadsheet.column - zero based column position.row - zero based row position.value - the float value to insert.Sets the VertJustify property with the value.
value - The value to set.Generated documentation 4.1.6.16