summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-14 13:19:09 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-14 13:19:09 +0100
commitfda5c8a28a2601df5a2dcab0f30ac5ac64cbccf0 (patch)
tree4f035f9805a8f66f3c8b7fff3c227bdee2a1f262 /offapi
parentf26a7965ee65bf50754fa8f4cd8e88b965727528 (diff)
gridsort: re-add tooltip support to X(Mutable)GridDataModel, this time more explicit, and less magical
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/awt/grid/XGridDataModel.idl13
-rwxr-xr-xoffapi/com/sun/star/awt/grid/XMutableGridDataModel.idl9
2 files changed, 21 insertions, 1 deletions
diff --git a/offapi/com/sun/star/awt/grid/XGridDataModel.idl b/offapi/com/sun/star/awt/grid/XGridDataModel.idl
index f62271d6acf3..d686a04f2028 100644
--- a/offapi/com/sun/star/awt/grid/XGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/XGridDataModel.idl
@@ -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.
*/
diff --git a/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
index 58023cadc7b7..e593cc1a7c27 100755
--- a/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
+++ b/offapi/com/sun/star/awt/grid/XMutableGridDataModel.idl
@@ -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