1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_sheet_XCellRangesAccess_idl__
29 #define __com_sun_star_sheet_XCellRangesAccess_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
35 #ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
36 #include
<com
/sun
/star
/lang
/IndexOutOfBoundsException.idl
>
39 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
40 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
43 #ifndef __com_sun_star_table_XCell_idl__
44 #include
<com
/sun
/star
/table
/XCell.idl
>
47 #ifndef __com_sun_star_table_XCellRange_idl__
48 #include
<com
/sun
/star
/table
/XCellRange.idl
>
51 //=============================================================================
53 module com
{ module sun
{ module star
{ module sheet
{
55 //=============================================================================
57 /** provides access to the cells or to sub-ranges of all sheets.
59 @see com::sun::star::sheet::Spreadsheets
61 published
interface XCellRangesAccess
: com
::sun
::star
::uno
::XInterface
63 //-------------------------------------------------------------------------
65 /** Returns a single cell within the range.
68 is the column index of the cell inside the sheet.
71 is the row index of the cell inside the sheet.
74 is the sheet index of the sheet inside the document.
79 @throws <type scope="com::sun::star::lang">IndexOutOfBoundsException</type>
80 if an index is outside the dimensions of this range.
82 @see com::sun::star::table::Cell
84 com
::sun
::star
::table
::XCell getCellByPosition
(
88 raises
( com
::sun
::star
::lang
::IndexOutOfBoundsException
);
90 //-------------------------------------------------------------------------
92 /** Returns a sub-range of cells within the range.
95 is the column index of the first cell inside the range.
98 is the row index of the first cell inside the range.
101 is the column index of the last cell inside the range.
104 is the row index of the last cell inside the range.
107 is the sheet index of the sheet inside the document.
110 the specified cell range.
112 @throws <type scope="com::sun::star::lang">IndexOutOfBoundsException</type>
113 if an index is outside the dimensions of this range.
115 @see com::sun::star::table::CellRange
117 com
::sun
::star
::table
::XCellRange getCellRangeByPosition
(
123 raises
( com
::sun
::star
::lang
::IndexOutOfBoundsException
);
125 //-------------------------------------------------------------------------
127 /** Returns a sub-range of cells within the range.
129 <p>The sub-range is specified by its name. The format of the range
130 name is dependent of the context of the table. In spreadsheets valid
131 names may be "Sheet1.A1:C5" or "$Sheet1.$B$2" or even defined names for cell ranges
132 such as "MySpecialCell".</p>
135 the name of the sub-range.
138 the specified cell ranges.
140 @see com::sun::star::table::CellRange
142 sequence
<com
::sun
::star
::table
::XCellRange
> getCellRangesByName
( [in] string aRange
)
143 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
147 //=============================================================================