merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / text / XTextTableCursor.idl
blob54559fb89dc304c0d2d3741377e5541be2bbaa6a
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 ************************************************************************/
27 #ifndef __com_sun_star_text_XTextTableCursor_idl__
28 #define __com_sun_star_text_XTextTableCursor_idl__
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include <com/sun/star/uno/XInterface.idl>
32 #endif
35 //=============================================================================
37 module com { module sun { module star { module text {
39 //=============================================================================
41 /** The TextTableCursor provide methods to navigate throught the table structure, to merge and split cells
43 @see com::sun::star::text::TextTable
44 @see com::sun::star::text::TextTableCursor
45 @see com::sun::star::text::Cell
46 @see com::sun::star::text::XTextTable
48 published interface XTextTableCursor: com::sun::star::uno::XInterface
50 //-------------------------------------------------------------------------
52 /** @returns
53 the name of the cell range that is selected by this cursor.
54 <p>The name is the cell name of the top left table cell of the range
55 contatenated by ':' with the table cell name of the bottom left table cell of the cell range.
56 If the range consists of one table cell only then the name of that table cell is returned.
57 </p>
58 @see com::sun:star::text::CellRange
60 string getRangeName();
62 //-------------------------------------------------------------------------
64 /** moves the cursor to the cell with the specified name.
66 @param aCellName
67 specifies the name of the cell to go to.
69 @param bExpand
70 determines wether the selection is to be expanded.
72 @see com::sun::star::text::Cell
74 boolean gotoCellByName( [in] string aCellName,
75 [in] boolean bExpand );
77 //-------------------------------------------------------------------------
79 /** moves the cursor to the left neighbor.
81 @param nCount
82 the number of cells to move.
84 @param bExpand
85 determines wether the selection is to be expanded.
87 boolean goLeft( [in] short nCount,
88 [in] boolean bExpand );
90 //-------------------------------------------------------------------------
92 /** moves the cursor to the right neighbor.
94 @param nCount
95 the number of cells to move.
97 @param bExpand
98 determines wether the selection is to be expanded.
100 boolean goRight( [in] short nCount,
101 [in] boolean bExpand );
103 //-------------------------------------------------------------------------
105 /** moves the cursor to the top neighbor.
107 @param nCount
108 the number of cells to move.
110 @param bExpand
111 determines wether the selection is to be expanded.
113 boolean goUp( [in] short nCount,
114 [in] boolean bExpand );
116 //-------------------------------------------------------------------------
118 /** moves the cursor to the bottom neighbor cell.
120 @param nCount
121 the number of cells to move.
123 @param bExpand
124 determines wether the selection is to be expanded.
126 boolean goDown( [in] short nCount,
127 [in] boolean bExpand );
129 //-------------------------------------------------------------------------
131 /** moves the cursor to the top left cell of the table.
133 @param bExpand
134 determines wether the selection is to be expanded.
136 void gotoStart( [in] boolean bExpand );
138 //-------------------------------------------------------------------------
140 /** moves the cursor to the bottom right cell of the table.
142 @param bExpand
143 determines wether the selection is to be expanded.
145 void gotoEnd( [in] boolean bExpand );
147 //-------------------------------------------------------------------------
149 /** merges the selected range of cells.
151 @see com:sun::star::CellRange
153 boolean mergeRange();
155 //-------------------------------------------------------------------------
157 /** splits the range of cells.
159 @param nCount
160 specifies the number of new cells that will be created
161 for each cell contained in the range.
163 @param bHorizontal
164 <true/> if the range should be split vertically.
165 Otherwise it will be split horizontally.
167 @see com:sun::star::Cell
168 @see com:sun::star::CellRange
170 boolean splitRange( [in] short nCount,
171 [in] boolean bHorizontal );
175 //=============================================================================
177 }; }; }; };
179 #endif