1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XTextTableCursor.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_text_XTextTableCursor_idl__
31 #define __com_sun_star_text_XTextTableCursor_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
38 //=============================================================================
40 module com
{ module sun
{ module star
{ module text
{
42 //=============================================================================
44 /** The TextTableCursor provide methods to navigate throught the table structure, to merge and split cells
46 @see com::sun::star::text::TextTable
47 @see com::sun::star::text::TextTableCursor
48 @see com::sun::star::text::Cell
49 @see com::sun::star::text::XTextTable
51 published
interface XTextTableCursor
: com
::sun
::star
::uno
::XInterface
53 //-------------------------------------------------------------------------
56 the name of the cell range that is selected by this cursor.
57 <p>The name is the cell name of the top left table cell of the range
58 contatenated by ':' with the table cell name of the bottom left table cell of the cell range.
59 If the range consists of one table cell only then the name of that table cell is returned.
61 @see com::sun:star::text::CellRange
63 string getRangeName
();
65 //-------------------------------------------------------------------------
67 /** moves the cursor to the cell with the specified name.
70 specifies the name of the cell to go to.
73 determines wether the selection is to be expanded.
75 @see com::sun::star::text::Cell
77 boolean gotoCellByName
( [in] string aCellName
,
78 [in] boolean bExpand
);
80 //-------------------------------------------------------------------------
82 /** moves the cursor to the left neighbor.
85 the number of cells to move.
88 determines wether the selection is to be expanded.
90 boolean goLeft
( [in] short nCount
,
91 [in] boolean bExpand
);
93 //-------------------------------------------------------------------------
95 /** moves the cursor to the right neighbor.
98 the number of cells to move.
101 determines wether the selection is to be expanded.
103 boolean goRight
( [in] short nCount
,
104 [in] boolean bExpand
);
106 //-------------------------------------------------------------------------
108 /** moves the cursor to the top neighbor.
111 the number of cells to move.
114 determines wether the selection is to be expanded.
116 boolean goUp
( [in] short nCount
,
117 [in] boolean bExpand
);
119 //-------------------------------------------------------------------------
121 /** moves the cursor to the bottom neighbor cell.
124 the number of cells to move.
127 determines wether the selection is to be expanded.
129 boolean goDown
( [in] short nCount
,
130 [in] boolean bExpand
);
132 //-------------------------------------------------------------------------
134 /** moves the cursor to the top left cell of the table.
137 determines wether the selection is to be expanded.
139 void gotoStart
( [in] boolean bExpand
);
141 //-------------------------------------------------------------------------
143 /** moves the cursor to the bottom right cell of the table.
146 determines wether the selection is to be expanded.
148 void gotoEnd
( [in] boolean bExpand
);
150 //-------------------------------------------------------------------------
152 /** merges the selected range of cells.
154 @see com:sun::star::CellRange
156 boolean mergeRange
();
158 //-------------------------------------------------------------------------
160 /** splits the range of cells.
163 specifies the number of new cells that will be created
164 for each cell contained in the range.
167 <true/> if the range should be split vertically.
168 Otherwise it will be split horizontally.
170 @see com:sun::star::Cell
171 @see com:sun::star::CellRange
173 boolean splitRange
( [in] short nCount
,
174 [in] boolean bHorizontal
);
178 //=============================================================================