merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / sheet / XCellRangeMovement.idl
blob230c3606b8456be3f7b2e88859640be607303b7f
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>
33 #endif
35 #ifndef __com_sun_star_table_CellRangeAddress_idl__
36 #include <com/sun/star/table/CellRangeAddress.idl>
37 #endif
39 #ifndef __com_sun_star_sheet_CellInsertMode_idl__
40 #include <com/sun/star/sheet/CellInsertMode.idl>
41 #endif
43 #ifndef __com_sun_star_sheet_CellDeleteMode_idl__
44 #include <com/sun/star/sheet/CellDeleteMode.idl>
45 #endif
47 #ifndef __com_sun_star_table_CellAddress_idl__
48 #include <com/sun/star/table/CellAddress.idl>
49 #endif
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>
67 @param aRange
68 the cell range in which empty cells will be inserted.
70 @param nMode
71 describes how to move existing cells.
73 void insertCells(
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.
81 @param aRange
82 the cell range to remove.
84 @param nMode
85 describes how to move following cells.
87 void removeRange(
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
96 will be cleared.</p>
98 @param aDestination
99 the address of the top left cell of the destination range.
101 @param aSource
102 the cell range which will be copied.
104 void moveRange(
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>
114 @param aDestination
115 the address of the top left cell of the destination range.
117 @param aSource
118 the cell range which will be copied.
120 void copyRange(
121 [in] com::sun::star::table::CellAddress aDestination,
122 [in] com::sun::star::table::CellRangeAddress aSource );
126 //=============================================================================
128 }; }; }; };
130 #endif