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_XCellRangesQuery_idl__
29 #define __com_sun_star_sheet_XCellRangesQuery_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
35 #ifndef __com_sun_star_sheet_XSheetCellRanges_idl__
36 #include
<com
/sun
/star
/sheet
/XSheetCellRanges.idl
>
39 #ifndef __com_sun_star_table_CellAddress_idl__
40 #include
<com
/sun
/star
/table
/CellAddress.idl
>
43 #ifndef __com_sun_star_table_CellRangeAddress_idl__
44 #include
<com
/sun
/star
/table
/CellRangeAddress.idl
>
47 //=============================================================================
49 module com
{ module sun
{ module star
{ module sheet
{
51 //=============================================================================
53 /** provides methods to query for cell ranges with specific contents.
55 <p>All methods return a collection of cell ranges.</p>
57 @see com::sun::star::sheet::SheetRangesQuery
58 @see com::sun::star::sheet::SheetCellRanges
60 published
interface XCellRangesQuery
: com
::sun
::star
::uno
::XInterface
62 //-------------------------------------------------------------------------
64 /** queries all visible cells.
67 the visible (not hidden) cells of the current cell range(s).
69 com
::sun
::star
::sheet
::XSheetCellRanges queryVisibleCells
();
71 //-------------------------------------------------------------------------
73 /** queries all empty cells.
76 the empty cells of the current cell range(s).
78 com
::sun
::star
::sheet
::XSheetCellRanges queryEmptyCells
();
80 //-------------------------------------------------------------------------
82 /** queries all cells with the specified content type(s).
85 a combination of <type>CellFlags</type> flags.
87 <p>Attention: Despite the <type>CellFlags</type> flags are
88 <atom>long</atom> values, this method expects a <atom>short</atom>
92 all cells of the current cell range(s) with the specified
95 com
::sun
::star
::sheet
::XSheetCellRanges queryContentCells
(
96 [in] short nContentFlags
);
98 //-------------------------------------------------------------------------
100 /** queries all formula cells with the specified result type.
103 a combination of <type>FormulaResult</type> flags.
106 all formula cells of the current cell range(s) with the
107 specified result type(s).
109 com
::sun
::star
::sheet
::XSheetCellRanges queryFormulaCells
(
110 [in] long nResultFlags
);
112 //-------------------------------------------------------------------------
114 /** queries all cells with different values in a specified row.
116 <p>This method takes each column of the current cell range(s) and
117 compares all cells with the cell in the specified row. All cells
118 which are different to this comparison cell will be returned.</p>
121 contains a cell address with the row index used for comparison.
122 Only this row index is of interest.
125 all cells of the current cell range(s) which are different
126 to the comparison cell of each column.
128 com
::sun
::star
::sheet
::XSheetCellRanges queryColumnDifferences
(
129 [in] com
::sun
::star
::table
::CellAddress aCompare
);
131 //-------------------------------------------------------------------------
133 /** queries all cells with different values in a specified column.
135 <p>This method takes each row of the current cell range(s) and
136 compares all cells with the cell in the specified column. All cells
137 which are different to this comparison cell will be returned.</p>
140 contains a cell address with the column index used for
141 comparison. Only this column index is of interest.
144 all cells of the current cell range(s) which are different
145 to the comparison cell of each row.
147 com
::sun
::star
::sheet
::XSheetCellRanges queryRowDifferences
(
148 [in] com
::sun
::star
::table
::CellAddress aCompare
);
150 //-------------------------------------------------------------------------
152 /** intersects the current cell range(s) with the specified cell range.
155 contains the cell range for intersection.
158 all cells of the current cell range(s) which are contained
159 in the passed cell range.
162 com
::sun
::star
::sheet
::XSheetCellRanges queryIntersection
(
163 [in] com
::sun
::star
::table
::CellRangeAddress aRange
);
167 //=============================================================================