1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 module com
{ module sun
{ module star
{ module awt
{ module grid
{
24 /** An interface to a control that displays a tabular data.
30 published
interface XGridControl
32 /** retrieves the column which a given point belongs to
35 the ordinate of the point, in pixel coordinates.
37 the abscissa of the point, in pixel coordinates.
39 the index of the column which the point lies in, or -1 if no column is under the given point.
41 long getColumnAtPoint
( [in] long X
, [in] long Y
);
43 /** retrieves the row which a given point belongs to
46 the ordinate of the point, in pixel coordinates.
48 the abscissa of the point, in pixel coordinates.
50 the index of the row which the point lies in, or -1 if no row is under the given point.
52 long getRowAtPoint
( [in] long X
, [in] long Y
);
54 /** returns the column index of the currently active cell
56 <p>If the grid control's does not contain any cells (which happens if the grid column model does not contain any
57 columns, or if grid data model does not contain any rows), then <code>-1</code> is returned.</p>
59 long getCurrentColumn
();
61 /** returns the row index of the currently active cell
63 <p>If the grid control's does not contain any cells (which happens if the grid column model does not contain any
64 columns, or if grid data model does not contain any rows), then <code>-1</code> is returned.</p>
68 /** moves the cursor to the given cell
70 the column index of the cell to activate.
72 the row index of the cell to activate.
73 @throws ::com::sun::star::lang::IndexOutOfBoundsException
74 if either <code>ColumnIndex</code> or <code>RowIndex</code> are out of range.
75 @throws ::com::sun::star::util::VetoException
76 if moving the cursor to another cell is vetoed.
79 [in] long ColumnIndex
,
82 raises
( ::com
::sun
::star
::lang
::IndexOutOfBoundsException
83 , ::com
::sun
::star
::util
::VetoException
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */