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_XSheetCellCursor_idl__
29 #define __com_sun_star_sheet_XSheetCellCursor_idl__
31 #ifndef __com_sun_star_sheet_XSheetCellRange_idl__
32 #include
<com
/sun
/star
/sheet
/XSheetCellRange.idl
>
35 //=============================================================================
37 module com
{ module sun
{ module star
{ module sheet
{
39 //=============================================================================
41 /** provides advanced methods to control the position of a cursor in a
44 @see com::sun::star::sheet::SheetCellCursor
46 published
interface XSheetCellCursor
: com
::sun
::star
::sheet
::XSheetCellRange
48 //-------------------------------------------------------------------------
50 /** expands the cursor into the region containing the cells to which
53 <p>A region is a cell range bounded by empty cells.</p>
55 void collapseToCurrentRegion
();
57 //-------------------------------------------------------------------------
59 /** collapses the cursor into the range of the array formula to which
60 it is currently pointing.
62 <p>To get the correct result, the top left cell of the original
63 cursor must point to any cell containing an array formula.
64 If not, the cursor is left unchanged.</p>
66 void collapseToCurrentArray
();
68 //-------------------------------------------------------------------------
70 /** expands the cursor to merged cell ranges.
72 <p>Expands the current cursor range in a way so that all merged
73 cell ranges intersecting the current range will fit completely.
74 If the cursor does not point to any range with merged cells, it
75 is left unchanged.</p>
77 void collapseToMergedArea
();
79 //-------------------------------------------------------------------------
81 /** expands the cursor to include the entire columns of the cells
82 to which it is currently pointing.
84 void expandToEntireColumns
();
86 //-------------------------------------------------------------------------
88 /** expands the cursor to include the entire rows of the cells to
89 which it is currently pointing.
91 void expandToEntireRows
();
93 //-------------------------------------------------------------------------
95 /** changes the size of a cursor range.
97 <p>The top left cell of the cursor keeps unmodified. </p>
100 the number of columns of the new cursor range.
102 the number of rows of the new cursor range.
104 void collapseToSize
( [in] long nColumns
, [in] long nRows
);
108 //=============================================================================