LibreOffice
LibreOffice 25.8 SDK API Reference
|
provides access to the data of a GridControl More...
import "XGridFieldDataSupplier.idl";
Public Member Functions | |
sequence< boolean > | queryFieldDataType ([in] type xType) |
checks whether or not the content of the grid's columns can be retrieved in the requested format. | |
sequence< any > | queryFieldData ([in] long nRow, [in] type xType) |
retrieves the actual column data for the given row | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. |
provides access to the data of a GridControl
You can retrieve the data type information and the data in a row.
This interface allows to retrieve data even for rows which are not current, which is quite useful, as normally, you can't affect the current row in a grid control without moving the cursor of the underlying com::sun::star::form::component::DataForm.
sequence< any > queryFieldData | ( | [in] long | nRow, |
[in] type | xType ) |
retrieves the actual column data for the given row
If a column does not support the requested type, NULL is returned at the respective position.
sequence< boolean > queryFieldDataType | ( | [in] type | xType | ) |
checks whether or not the content of the grid's columns can be retrieved in the requested format.
Not every cell content can be retrieved in every representation. For example, in a text column, you usually won't be able to retrieve the content as double.
To check if the type you need is supported by the columns, use this method.