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_XCellRangeMovement_idl__
29 #define __com_sun_star_sheet_XCellRangeMovement_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
35 #ifndef __com_sun_star_table_CellRangeAddress_idl__
36 #include
<com
/sun
/star
/table
/CellRangeAddress.idl
>
39 #ifndef __com_sun_star_sheet_CellInsertMode_idl__
40 #include
<com
/sun
/star
/sheet
/CellInsertMode.idl
>
43 #ifndef __com_sun_star_sheet_CellDeleteMode_idl__
44 #include
<com
/sun
/star
/sheet
/CellDeleteMode.idl
>
47 #ifndef __com_sun_star_table_CellAddress_idl__
48 #include
<com
/sun
/star
/table
/CellAddress.idl
>
51 //=============================================================================
53 module com
{ module sun
{ module star
{ module sheet
{
55 //=============================================================================
57 /** provides methods for moving ranges of cells in a sheet.
59 published
interface XCellRangeMovement
: com
::sun
::star
::uno
::XInterface
61 //-------------------------------------------------------------------------
63 /** inserts cells, moving other cells down or right.
65 <p>Non-empty cells cannot be moved off the sheet.</p>
68 the cell range in which empty cells will be inserted.
71 describes how to move existing cells.
74 [in] com
::sun
::star
::table
::CellRangeAddress aRange
,
75 [in] com
::sun
::star
::sheet
::CellInsertMode nMode
);
77 //-------------------------------------------------------------------------
79 /** deletes cells, moving other cells up or left.
82 the cell range to remove.
85 describes how to move following cells.
88 [in] com
::sun
::star
::table
::CellRangeAddress aRange
,
89 [in] com
::sun
::star
::sheet
::CellDeleteMode nMode
);
91 //-------------------------------------------------------------------------
93 /** moves a cell range to another position in the document.
95 <p>After copying the contents of the cell range, all cells
99 the address of the top left cell of the destination range.
102 the cell range which will be copied.
105 [in] com
::sun
::star
::table
::CellAddress aDestination
,
106 [in] com
::sun
::star
::table
::CellRangeAddress aSource
);
108 //-------------------------------------------------------------------------
110 /** copies a cell range to another position in the document.
112 <p>The source cell range keeps unchanged.</p>
115 the address of the top left cell of the destination range.
118 the cell range which will be copied.
121 [in] com
::sun
::star
::table
::CellAddress aDestination
,
122 [in] com
::sun
::star
::table
::CellRangeAddress aSource
);
126 //=============================================================================