|
void | attach ([in] com::sun::star::text::XTextRange xTextRange) raises ( com::sun::star::lang::IllegalArgumentException ) |
| is called when this object gets embedded in a text. More...
|
|
com::sun::star::text::XTextRange | getAnchor () |
|
void | dispose () |
| The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More...
|
|
void | addEventListener ([in] XEventListener xListener) |
| adds an event listener to the object. More...
|
|
void | removeEventListener ([in] XEventListener aListener) |
| removes an event listener from the listener list. More...
|
|
any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More...
|
|
void | acquire () |
| increases the reference counter by one. More...
|
|
void | release () |
| decreases the reference counter by one. More...
|
|
void | initialize ([in] long nRows, [in] long nColumns) |
| determines the numbers of rows and columns of the text table. More...
|
|
com::sun::star::table::XTableRows | getRows () |
|
com::sun::star::table::XTableColumns | getColumns () |
|
com::sun::star::table::XCell | getCellByName ([in] string aCellName) |
|
sequence< string > | getCellNames () |
|
com::sun::star::text::XTextTableCursor | createCursorByCellName ([in] string aCellName) |
| creates a text table cursor and returns the XTextTableCursor interface. More...
|
|
string | getName () |
|
void | setName ([in] string aName) |
| sets the programmatic name of the object. More...
|
|
com::sun::star::table::XCell | getCellByPosition ([in] long nColumn, [in] long nRow) raises ( com::sun::star::lang::IndexOutOfBoundsException ) |
| Returns a single cell within the range. More...
|
|
com::sun::star::table::XCellRange | getCellRangeByPosition ([in] long nLeft, [in] long nTop, [in] long nRight, [in] long nBottom) raises ( com::sun::star::lang::IndexOutOfBoundsException ) |
| Returns a sub-range of cells within the range. More...
|
|
com::sun::star::table::XCellRange | getCellRangeByName ([in] string aRange) |
| Returns a sub-range of cells within the range. More...
|
|
sequence< sequence< double > > | getData () |
| retrieves the numerical data as a nested sequence of values. More...
|
|
void | setData ([in] sequence< sequence< double > > aData) |
| sets the chart data as an array of numbers. More...
|
|
sequence< string > | getRowDescriptions () |
| retrieves the description texts for all rows. More...
|
|
void | setRowDescriptions ([in] sequence< string > aRowDescriptions) |
| sets the description texts for all rows. More...
|
|
sequence< string > | getColumnDescriptions () |
| retrieves the description texts for all columns. More...
|
|
void | setColumnDescriptions ([in] sequence< string > aColumnDescriptions) |
| sets the description texts for all columns. More...
|
|
void | addChartDataChangeEventListener ([in] com::sun::star::chart::XChartDataChangeEventListener aListener) |
| allows a component supporting the XChartDataChangeEventListener interface to register as listener. More...
|
|
void | removeChartDataChangeEventListener ([in] com::sun::star::chart::XChartDataChangeEventListener aListener) |
| removes a previously registered listener. More...
|
|
double | getNotANumber () |
|
boolean | isNotANumber ([in] double nNumber) |
| checks whether the value given is equal to the indicator value for a missing value. More...
|
|
void | autoFormat ([in] string aName) raises ( com::sun::star::lang::IllegalArgumentException ) |
| applies an AutoFormat to the cell range of the current context. More...
|
|
sequence< com::sun::star::beans::PropertyValue > | createSortDescriptor () |
|
void | sort ([in] sequence< com::sun::star::beans::PropertyValue > xDescriptor) |
| sorts the contents of the object according to the specified properties. More...
|
|
void | initialize ([in] long nRows, [in] long nColumns) |
| determines the numbers of rows and columns of the text table. More...
|
|
com::sun::star::table::XTableRows | getRows () |
|
com::sun::star::table::XTableColumns | getColumns () |
|
com::sun::star::table::XCell | getCellByName ([in] string aCellName) |
|
sequence< string > | getCellNames () |
|
com::sun::star::text::XTextTableCursor | createCursorByCellName ([in] string aCellName) |
| creates a text table cursor and returns the XTextTableCursor interface. More...
|
|
string | getName () |
|
void | setName ([in] string aName) |
| sets the programmatic name of the object. More...
|
|
com::sun::star::table::XCell | getCellByPosition ([in] long nColumn, [in] long nRow) raises ( com::sun::star::lang::IndexOutOfBoundsException ) |
| Returns a single cell within the range. More...
|
|
com::sun::star::table::XCellRange | getCellRangeByPosition ([in] long nLeft, [in] long nTop, [in] long nRight, [in] long nBottom) raises ( com::sun::star::lang::IndexOutOfBoundsException ) |
| Returns a sub-range of cells within the range. More...
|
|
com::sun::star::table::XCellRange | getCellRangeByName ([in] string aRange) |
| Returns a sub-range of cells within the range. More...
|
|
sequence< sequence< double > > | getData () |
| retrieves the numerical data as a nested sequence of values. More...
|
|
void | setData ([in] sequence< sequence< double > > aData) |
| sets the chart data as an array of numbers. More...
|
|
sequence< string > | getRowDescriptions () |
| retrieves the description texts for all rows. More...
|
|
void | setRowDescriptions ([in] sequence< string > aRowDescriptions) |
| sets the description texts for all rows. More...
|
|
sequence< string > | getColumnDescriptions () |
| retrieves the description texts for all columns. More...
|
|
void | setColumnDescriptions ([in] sequence< string > aColumnDescriptions) |
| sets the description texts for all columns. More...
|
|
void | addChartDataChangeEventListener ([in] com::sun::star::chart::XChartDataChangeEventListener aListener) |
| allows a component supporting the XChartDataChangeEventListener interface to register as listener. More...
|
|
void | removeChartDataChangeEventListener ([in] com::sun::star::chart::XChartDataChangeEventListener aListener) |
| removes a previously registered listener. More...
|
|
double | getNotANumber () |
|
boolean | isNotANumber ([in] double nNumber) |
| checks whether the value given is equal to the indicator value for a missing value. More...
|
|
void | autoFormat ([in] string aName) raises ( com::sun::star::lang::IllegalArgumentException ) |
| applies an AutoFormat to the cell range of the current context. More...
|
|
sequence< com::sun::star::beans::PropertyValue > | createSortDescriptor () |
|
void | sort ([in] sequence< com::sun::star::beans::PropertyValue > xDescriptor) |
| sorts the contents of the object according to the specified properties. More...
|
|
sequence< sequence< any > > | getDataArray () |
| gets an array from the contents of the cell range. More...
|
|
void | setDataArray ([in] sequence< sequence< any > > aArray) |
| fills the cell range with values from an array. More...
|
|
::com::sun::star::container::XNameContainer | UserDefinedAttributes |
| This container holds the AttributeData elements that represent uninterpreted XML attributes. More...
|
|
is a table of text cells which is anchored to a surrounding text.
Note: The anchor of the actual implementation for text tables does not have a position in the text. Thus that anchor can not be used for some operation like XTextContent::attach() or XText::insertTextContent() or other function that require the object to have a position in the text.
The reason why a text table still needs an anchor is that for example tables should be insertable via XText::insertTextContent() and that interface uses a parameter of that type.
Example: Create and insert a TextTable:
xTable = xTextDoc.createInstance( "com.sun.star.text.TextTable" )
xTable.initialize(5, 8)
xTable.HoriOrient = 0 'com::sun::star::text::HoriOrientation::NONE
xTable.LeftMargin = 2000
xTable.RightMargin = 1500
xTextDoc.getText.insertTextContent( xTextRange, xTable, false )
- See also
- com::sun::star::text::Cell
-
com::sun::star::text::CellRange
-
com::sun::star::text::TableColumns
-
com::sun::star::text::TableRows
-
com::sun::star::text::TextTableCursor
- Developers Guide
- Text Documents - Tables - Table Architecture