gridsort: re-add tooltip support to X(Mutable)GridDataModel, this time more explicit, and less magical
This commit is contained in:
parent
f26a7965ee
commit
fda5c8a28a
2 changed files with 21 additions and 1 deletions
|
@ -72,10 +72,23 @@ interface XGridDataModel
|
|||
any getCellData( [in] long Column, [in] long Row )
|
||||
raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
|
||||
|
||||
/** retrieves the tool tip to be displayed when the mouse hovers over a given cell
|
||||
|
||||
<p>At the moment, only string tool tips are supported.</p>
|
||||
|
||||
@throws ::com::sun::star::lang::IndexOutOfBoundsException
|
||||
if the column or row index do not denote a valid cell position.
|
||||
*/
|
||||
any getCellToolTip( [in] long Column, [in] long Row )
|
||||
raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
|
||||
|
||||
/** retrieves the title of the given row
|
||||
|
||||
<p>A grid control will usually paint a row's title in the header column of the respective row.</p>
|
||||
|
||||
<p>If <VOID/> is returned here, the cell's content will be displayed as tip, but only if it does
|
||||
not fit into the cell.</p>
|
||||
|
||||
@throws ::com::sun::star::lang::IndexOutOfBoundsException
|
||||
if the given index does not denote a valid row.
|
||||
*/
|
||||
|
|
|
@ -85,7 +85,7 @@ interface XMutableGridDataModel : XGridDataModel
|
|||
@throws ::com::sun::star::lang::IndexOutOfBoundsException
|
||||
if the row or column index is invalid
|
||||
*/
|
||||
void updateCell([in] long RowIndex, [in] long ColumnIndex, [in] any Value )
|
||||
void updateCell( [in] long RowIndex, [in] long ColumnIndex, [in] any Value )
|
||||
raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
|
||||
|
||||
/** updates the content of a given row.
|
||||
|
@ -119,6 +119,13 @@ interface XMutableGridDataModel : XGridDataModel
|
|||
setRowTitle( [in] long RowIndex, [in] string Title )
|
||||
raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
|
||||
|
||||
/** updates the tooltip to be displayed for a given cell
|
||||
|
||||
@see XGridDataModel::getCellToolTip
|
||||
*/
|
||||
void setCellToolTip( [in] long RowIndex, [in] long ColumnIndex, [in] any Value )
|
||||
raises ( ::com::sun::star::lang::IndexOutOfBoundsException );
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
/** registers listener to be notified of data changes in the model
|
||||
|
|
Loading…
Reference in a new issue