interface XCellRangesQuery in module com::sun::star::sheet::

(Global Index)

Syntax

interface XCellRangesQuery : com::sun::star::uno::XInterface ;

Description

provides methods to invoke queries on cells.

See also

SheetRangesQuery

Method Summary

queryVisibleCells points the cursor to only the visible (not hidden) cells of those to which it currently points.

queryEmptyCells collapses the cursor to the empty cells within the range to which it is currently pointing.

queryContentCells collapses the cursor to the cells with the specified content type within the range to which it is currently pointing.

queryFormulaCells queries all cells with a specified result type.

queryColumnDifferences queries all cells which have a different value in a specified row.

queryRowDifferences queries all cells which have a different value in a specified column.

queryIntersection intersects the cursor with the specified cell range.

Known Services Which Export this Interface

com::sun::star::sheet::SheetRangesQuery

Method Details



queryVisibleCells

Syntax

com::sun::star::sheet::XSheetCellRanges queryVisibleCells ();

Description

points the cursor to only the visible (not hidden) cells of those to which it currently points.


queryEmptyCells

Syntax

com::sun::star::sheet::XSheetCellRanges queryEmptyCells ();

Description

collapses the cursor to the empty cells within the range to which it is currently pointing.

After this operation the cursor only contains the empty cells out of those which it pointed before.


queryContentCells

Syntax

com::sun::star::sheet::XSheetCellRanges queryContentCells (
short nContentFlags );

Description

collapses the cursor to the cells with the specified content type within the range to which it is currently pointing.

After this operation, the cursor only contains cells with the specified content type out of those which it pointed before.


queryFormulaCells

Syntax

com::sun::star::sheet::XSheetCellRanges queryFormulaCells (
long nResultFlags );

Description

queries all cells with a specified result type.

The set of cells to which the cursor is currently pointing will be collapsed into a subset. This subset is specified by the formula cells containing results of a specified type

.

queryColumnDifferences

Syntax

com::sun::star::sheet::XSheetCellRanges queryColumnDifferences (
com::sun::star::table::CellAddress aCompare );

Description

queries all cells which have a different value in a specified row.

The set of cells to which the cursor is currently pointing will be collapsed into a subset. This subset is specified by all cells which have a different value in the same column of the specified row.


queryRowDifferences

Syntax

com::sun::star::sheet::XSheetCellRanges queryRowDifferences (
com::sun::star::table::CellAddress aCompare );

Description

queries all cells which have a different value in a specified column.

The set of cells to which the cursor is currently pointing will be collapsed into a subset. This subset is specified by all cells which have a different value in the same row of the specified column.


queryIntersection

Syntax

com::sun::star::sheet::XSheetCellRanges queryIntersection (
com::sun::star::table::CellRangeAddress aRange );

Description

intersects the cursor with the specified cell range.

The set of cells to which the cursor is currently pointing will be collapsed into a subset. This subset is specified by all cells which are also in the specified range.

Top of Page