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 sheet
{
24 /** provides methods to query for cell ranges with specific contents.
26 <p>All methods return a collection of cell ranges.</p>
28 @see com::sun::star::sheet::SheetRangesQuery
29 @see com::sun::star::sheet::SheetCellRanges
31 published
interface XCellRangesQuery
: com
::sun
::star
::uno
::XInterface
34 /** queries all visible cells.
37 the visible (not hidden) cells of the current cell range(s).
39 com
::sun
::star
::sheet
::XSheetCellRanges queryVisibleCells
();
42 /** queries all empty cells.
45 the empty cells of the current cell range(s).
47 com
::sun
::star
::sheet
::XSheetCellRanges queryEmptyCells
();
50 /** queries all cells with the specified content type(s).
53 a combination of CellFlags flags.
55 <p>Attention: Despite the CellFlags flags are
56 `long` values, this method expects a `short`
59 <p>Attention: Empty cells in the range may be skipped depending on
60 the content flag used. For instance, when querying for STYLES,
61 the returned ranges may not include empty cells even if styles are
62 applied to those cells.</p>
65 all cells of the current cell range(s) with the specified
68 com
::sun
::star
::sheet
::XSheetCellRanges queryContentCells
(
69 [in] short nContentFlags
);
72 /** queries all formula cells with the specified result type.
75 a combination of FormulaResult flags.
78 all formula cells of the current cell range(s) with the
79 specified result type(s).
81 com
::sun
::star
::sheet
::XSheetCellRanges queryFormulaCells
(
82 [in] long nResultFlags
);
85 /** queries all cells with different values in a specified row.
87 <p>This method takes each column of the current cell range(s) and
88 compares all cells with the cell in the specified row. All cells
89 which are different to this comparison cell will be returned.</p>
92 contains a cell address with the row index used for comparison.
93 Only this row index is of interest.
96 all cells of the current cell range(s) which are different
97 to the comparison cell of each column.
99 com
::sun
::star
::sheet
::XSheetCellRanges queryColumnDifferences
(
100 [in] com
::sun
::star
::table
::CellAddress aCompare
);
103 /** queries all cells with different values in a specified column.
105 <p>This method takes each row of the current cell range(s) and
106 compares all cells with the cell in the specified column. All cells
107 which are different to this comparison cell will be returned.</p>
110 contains a cell address with the column index used for
111 comparison. Only this column index is of interest.
114 all cells of the current cell range(s) which are different
115 to the comparison cell of each row.
117 com
::sun
::star
::sheet
::XSheetCellRanges queryRowDifferences
(
118 [in] com
::sun
::star
::table
::CellAddress aCompare
);
121 /** intersects the current cell range(s) with the specified cell range.
124 contains the cell range for intersection.
127 all cells of the current cell range(s) which are contained
128 in the passed cell range.
131 com
::sun
::star
::sheet
::XSheetCellRanges queryIntersection
(
132 [in] com
::sun
::star
::table
::CellRangeAddress aRange
);
139 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */