Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / text / XTextColumns.idl
bloba5b448eaaeb1e1c953ff1e86dd21a55718d23eee
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XTextColumns.idl,v $
10 * $Revision: 1.10 $
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_XTextColumns_idl__
31 #define __com_sun_star_text_XTextColumns_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_text_TextColumn_idl__
38 #include <com/sun/star/text/TextColumn.idl>
39 #endif
42 //=============================================================================
44 module com { module sun { module star { module text {
46 //=============================================================================
48 // DocMerge from xml: interface com::sun::star::text::XTextColumns
49 /** manages columns within the object.
53 <p>The values used are relative. So it is not necessary to know the
54 width of the object. The sum of the relative width values depends on
55 the object and is defined in "ReferenceValue."
57 </p>
59 published interface XTextColumns: com::sun::star::uno::XInterface
61 //-------------------------------------------------------------------------
63 // DocMerge from idl: method com::sun::star::text::XTextColumns::getReferenceValue
64 /** @returns
65 the sum of all values.
67 <p>As described above, the width values are relative.
69 long getReferenceValue();
71 //-------------------------------------------------------------------------
73 // DocMerge from idl: method com::sun::star::text::XTextColumns::getColumnCount
74 /** @returns
75 the number of columns.
77 short getColumnCount();
79 //-------------------------------------------------------------------------
81 // DocMerge from xml: method com::sun::star::text::XTextColumns::setColumnCount
82 /** sets the number of columns.
86 <p>The minimum is 1 column.</p>
88 void setColumnCount( [in] short nColumns );
90 //-------------------------------------------------------------------------
92 // DocMerge from idl: method com::sun::star::text::XTextColumns::getColumns
93 /** returns the column description of the object.
94 @see TextColumn
96 sequence<com::sun::star::text::TextColumn> getColumns();
98 //-------------------------------------------------------------------------
100 // DocMerge from xml: method com::sun::star::text::XTextColumns::setColumns
101 /** sets the descriptors of all columns.
105 <p>The number of members in the sequence must be the same as the
106 number of columns of the object.
108 </p>@see TextColumn
110 void setColumns( [in] sequence<com::sun::star::text::TextColumn> Columns );
114 //=============================================================================
116 }; }; }; };
118 #endif