summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-11 14:00:09 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2011-01-11 14:00:09 +0100
commit59a5decdc52544eb2f93aaaa83e87c9570d63b45 (patch)
tree7d81a90a94bb69e792540899d1353c727a6107ff
parentgridsort: XGridControl::getItemIndexAtPoint renamed to getRowAtPoint; introdu... (diff)
downloadcore-59a5decdc52544eb2f93aaaa83e87c9570d63b45.tar.gz
core-59a5decdc52544eb2f93aaaa83e87c9570d63b45.zip
gridsort: XGridControl: add methods to retrieve the current row/col
-rw-r--r--offapi/com/sun/star/awt/grid/XGridControl.idl26
1 files changed, 20 insertions, 6 deletions
diff --git a/offapi/com/sun/star/awt/grid/XGridControl.idl b/offapi/com/sun/star/awt/grid/XGridControl.idl
index 4cdcb03beb43..3c2c3d241528 100644
--- a/offapi/com/sun/star/awt/grid/XGridControl.idl
+++ b/offapi/com/sun/star/awt/grid/XGridControl.idl
@@ -43,27 +43,41 @@ module com { module sun { module star { module awt { module grid {
*/
interface XGridControl : XGridSelection
{
- /** retrieves the row which a given point belongs to
+ /** retrieves the column which a given point belongs to
@param X
the ordinate of the point, in pixel coordinates.
@param Y
the abscissa of the point, in pixel coordinates.
@return
- the index of the row which the point lies in, or -1 if no row is under the given point.
+ the index of the column which the point lies in, or -1 if no column is under the given point.
*/
- long getRowAtPoint( [in] long X, [in] long Y );
+ long getColumnAtPoint( [in] long X, [in] long Y );
- /** retrieves the column which a given point belongs to
+ /** retrieves the row which a given point belongs to
@param X
the ordinate of the point, in pixel coordinates.
@param Y
the abscissa of the point, in pixel coordinates.
@return
- the index of the column which the point lies in, or -1 if no column is under the given point.
+ the index of the row which the point lies in, or -1 if no row is under the given point.
*/
- long getColumnAtPoint( [in] long X, [in] long Y );
+ long getRowAtPoint( [in] long X, [in] long Y );
+
+ /** returns the column index of the currently active cell
+
+ <p>If the grid control's does not contain any cells (which happens if the grid column model does not contain any
+ columns, or if grid data model does not contain any rows), then <code>-1</code> is returned.</p>
+ */
+ long getCurrentColumn();
+
+ /** returns the row index of the currently active cell
+
+ <p>If the grid control's does not contain any cells (which happens if the grid column model does not contain any
+ columns, or if grid data model does not contain any rows), then <code>-1</code> is returned.</p>
+ */
+ long getCurrentRow();
};
//=============================================================================