merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / text / XTextTable.idl
blob44b18be77648835aaef8e060422d7d8aeecde04d
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_XTextTable_idl__
28 #define __com_sun_star_text_XTextTable_idl__
30 #ifndef __com_sun_star_text_XTextContent_idl__
31 #include <com/sun/star/text/XTextContent.idl>
32 #endif
34 #ifndef __com_sun_star_table_XTableRows_idl__
35 #include <com/sun/star/table/XTableRows.idl>
36 #endif
38 #ifndef __com_sun_star_table_XTableColumns_idl__
39 #include <com/sun/star/table/XTableColumns.idl>
40 #endif
42 #ifndef __com_sun_star_table_XCell_idl__
43 #include <com/sun/star/table/XCell.idl>
44 #endif
46 #ifndef __com_sun_star_text_XTextTableCursor_idl__
47 #include <com/sun/star/text/XTextTableCursor.idl>
48 #endif
51 //=============================================================================
53 module com { module sun { module star { module text {
55 //=============================================================================
57 /** manages a text table.
59 @see com::sun::star::text::TextTable
60 @see com::sun::star::text::Cell
62 published interface XTextTable: com::sun::star::text::XTextContent
64 //-------------------------------------------------------------------------
66 /** determines the numbers of rows and columns of the text table.
68 <p> This method must be called after the object is created and
69 before the object is insert or attached elsewhere.
70 </p>
72 void initialize( [in] long nRows,
73 [in] long nColumns );
75 //-------------------------------------------------------------------------
77 /** @returns
78 the access object for the text table rows.
80 @see com::sun::star::table::XTableRows
82 com::sun::star::table::XTableRows getRows();
84 //-------------------------------------------------------------------------
86 /** @returns
87 the access object for the text table columns.
89 @see com::sun::star::table::XTableColumns
91 com::sun::star::table::XTableColumns getColumns();
93 //-------------------------------------------------------------------------
95 /** @returns
96 the <type scope="com::sun::star::table">XCell</type> interface of the cell with the specified name.
98 @param aCellName
99 is a concatenation of the alphanumeric column name and the
100 index of the row.
102 <p>Example: The cell in the 4th column and third row has the name "D3".
104 <p>In cells that are split, the naming convention is more complex.
105 In this case the name is a concatenation of the former cell name
106 (i.e. "D3") and the number of the new column and row index inside
107 of the original table cell separated by dots. This is done
108 recursively.
110 <p>Example: If the cell "D3" is horizontally split, it now contains
111 the cells "D3.1.1" and "D3.1.2"
113 @see com::sun::star::table::Cell
114 @see com::sun::star::table::XCell
116 com::sun::star::table::XCell getCellByName( [in] string aCellName );
118 //-------------------------------------------------------------------------
120 /** @returns
121 the names of all cells of this text table.
123 sequence<string> getCellNames();
125 //-------------------------------------------------------------------------
127 /** creates a text table cursor and returns the
128 <type>XTextTableCursor</type> interface.
130 <p>Initially the cursor is positioned in the cell with the specified name.
131 </p>
133 @see com::sun::star::text::TextTableCursor
135 com::sun::star::text::XTextTableCursor createCursorByCellName( [in] string aCellName );
139 //=============================================================================
141 }; }; }; };
143 #endif