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 .
20 #ifndef __com_sun_star_sheet_XCellRangesQuery_idl__
21 #define __com_sun_star_sheet_XCellRangesQuery_idl__
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/sheet
/XSheetCellRanges.idl
>
25 #include
<com
/sun
/star
/table
/CellAddress.idl
>
26 #include
<com
/sun
/star
/table
/CellRangeAddress.idl
>
29 module com
{ module sun
{ module star
{ module sheet
{
32 /** provides methods to query for cell ranges with specific contents.
34 <p>All methods return a collection of cell ranges.</p>
36 @see com::sun::star::sheet::SheetRangesQuery
37 @see com::sun::star::sheet::SheetCellRanges
39 published
interface XCellRangesQuery
: com
::sun
::star
::uno
::XInterface
42 /** queries all visible cells.
45 the visible (not hidden) cells of the current cell range(s).
47 com
::sun
::star
::sheet
::XSheetCellRanges queryVisibleCells
();
50 /** queries all empty cells.
53 the empty cells of the current cell range(s).
55 com
::sun
::star
::sheet
::XSheetCellRanges queryEmptyCells
();
58 /** queries all cells with the specified content type(s).
61 a combination of CellFlags flags.
63 <p>Attention: Despite the CellFlags flags are
64 `long` values, this method expects a `short`
67 <p>Attention: Empty cells in the range may be skipped depending on
68 the content flag used. For instance, when querying for STYLES,
69 the returned ranges may not include empty cells even if styles are
70 applied to those cells.</p>
73 all cells of the current cell range(s) with the specified
76 com
::sun
::star
::sheet
::XSheetCellRanges queryContentCells
(
77 [in] short nContentFlags
);
80 /** queries all formula cells with the specified result type.
83 a combination of FormulaResult flags.
86 all formula cells of the current cell range(s) with the
87 specified result type(s).
89 com
::sun
::star
::sheet
::XSheetCellRanges queryFormulaCells
(
90 [in] long nResultFlags
);
93 /** queries all cells with different values in a specified row.
95 <p>This method takes each column of the current cell range(s) and
96 compares all cells with the cell in the specified row. All cells
97 which are different to this comparison cell will be returned.</p>
100 contains a cell address with the row index used for comparison.
101 Only this row index is of interest.
104 all cells of the current cell range(s) which are different
105 to the comparison cell of each column.
107 com
::sun
::star
::sheet
::XSheetCellRanges queryColumnDifferences
(
108 [in] com
::sun
::star
::table
::CellAddress aCompare
);
111 /** queries all cells with different values in a specified column.
113 <p>This method takes each row of the current cell range(s) and
114 compares all cells with the cell in the specified column. All cells
115 which are different to this comparison cell will be returned.</p>
118 contains a cell address with the column index used for
119 comparison. Only this column index is of interest.
122 all cells of the current cell range(s) which are different
123 to the comparison cell of each row.
125 com
::sun
::star
::sheet
::XSheetCellRanges queryRowDifferences
(
126 [in] com
::sun
::star
::table
::CellAddress aCompare
);
129 /** intersects the current cell range(s) with the specified cell range.
132 contains the cell range for intersection.
135 all cells of the current cell range(s) which are contained
136 in the passed cell range.
139 com
::sun
::star
::sheet
::XSheetCellRanges queryIntersection
(
140 [in] com
::sun
::star
::table
::CellRangeAddress aRange
);
149 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */