xref: /aoo42x/main/offapi/com/sun/star/text/TextTable.idl (revision cdf0e10c)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_text_TextTable_idl__
28*cdf0e10cSrcweir#define __com_sun_star_text_TextTable_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_text_TextContent_idl__
31*cdf0e10cSrcweir#include <com/sun/star/text/TextContent.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__
35*cdf0e10cSrcweir#include <com/sun/star/util/Color.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextTable_idl__
39*cdf0e10cSrcweir#include <com/sun/star/text/XTextTable.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir#ifndef __com_sun_star_text_TableColumnSeparator_idl__
42*cdf0e10cSrcweir#include <com/sun/star/text/TableColumnSeparator.idl>
43*cdf0e10cSrcweir#endif
44*cdf0e10cSrcweir
45*cdf0e10cSrcweir#ifndef __com_sun_star_container_XNamed_idl__
46*cdf0e10cSrcweir#include <com/sun/star/container/XNamed.idl>
47*cdf0e10cSrcweir#endif
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
50*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
51*cdf0e10cSrcweir#endif
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir#ifndef __com_sun_star_style_GraphicLocation_idl__
54*cdf0e10cSrcweir#include <com/sun/star/style/GraphicLocation.idl>
55*cdf0e10cSrcweir#endif
56*cdf0e10cSrcweir#ifndef __com_sun_star_style_BreakType_idl__
57*cdf0e10cSrcweir#include <com/sun/star/style/BreakType.idl>
58*cdf0e10cSrcweir#endif
59*cdf0e10cSrcweir#ifndef __com_sun_star_table_ShadowFormat_idl__
60*cdf0e10cSrcweir#include <com/sun/star/table/ShadowFormat.idl>
61*cdf0e10cSrcweir#endif
62*cdf0e10cSrcweir#ifndef __com_sun_star_table_TableBorder_idl__
63*cdf0e10cSrcweir#include <com/sun/star/table/TableBorder.idl>
64*cdf0e10cSrcweir#endif
65*cdf0e10cSrcweir#ifndef __com_sun_star_table_XCellRange_idl__
66*cdf0e10cSrcweir#include <com/sun/star/table/XCellRange.idl>
67*cdf0e10cSrcweir#endif
68*cdf0e10cSrcweir#ifndef __com_sun_star_table_XAutoFormattable_idl__
69*cdf0e10cSrcweir#include <com/sun/star/table/XAutoFormattable.idl>
70*cdf0e10cSrcweir#endif
71*cdf0e10cSrcweir#ifndef __com_sun_star_chart_XChartDataArray_idl__
72*cdf0e10cSrcweir#include <com/sun/star/chart/XChartDataArray.idl>
73*cdf0e10cSrcweir#endif
74*cdf0e10cSrcweir#ifndef __com_sun_star_util_XSortable_idl__
75*cdf0e10cSrcweir#include <com/sun/star/util/XSortable.idl>
76*cdf0e10cSrcweir#endif
77*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XCellRangeData_idl__
78*cdf0e10cSrcweir#include <com/sun/star/sheet/XCellRangeData.idl>
79*cdf0e10cSrcweir#endif
80*cdf0e10cSrcweir#ifndef _com_sun_star_xml_UserDefinedAttributesSupplier_idl_
81*cdf0e10cSrcweir#include <com/sun/star/xml/UserDefinedAttributesSupplier.idl>
82*cdf0e10cSrcweir#endif
83*cdf0e10cSrcweir
84*cdf0e10cSrcweir
85*cdf0e10cSrcweir//=============================================================================
86*cdf0e10cSrcweir
87*cdf0e10cSrcweir module com {  module sun {  module star {  module text {
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir//=============================================================================
90*cdf0e10cSrcweir
91*cdf0e10cSrcweir/** is a table of text cells which is anchored to a surrounding text.
92*cdf0e10cSrcweir
93*cdf0e10cSrcweir    <p>Note: The anchor of the actual implementation for text tables
94*cdf0e10cSrcweir    does not have a position in the text. Thus that anchor can not be
95*cdf0e10cSrcweir    used for some operation like <member>XTextContent::attach</member> or
96*cdf0e10cSrcweir    <member>XText::insertTextContent</member>
97*cdf0e10cSrcweir    or other function that require the object to have a position in the text.</p>
98*cdf0e10cSrcweir
99*cdf0e10cSrcweir    <p>The reason why a text table still needs an anchor is that for example
100*cdf0e10cSrcweir    tables should be insertable via <member>XText::insertTextContent</member>
101*cdf0e10cSrcweir    and that interface uses a parameter of that type.</p>
102*cdf0e10cSrcweir
103*cdf0e10cSrcweir    @example
104*cdf0e10cSrcweir
105*cdf0e10cSrcweir    <p>Create and insert a TextTable:</p>
106*cdf0e10cSrcweir
107*cdf0e10cSrcweir	<listing>
108*cdf0e10cSrcweir    xTable = xTextDoc.createInstance( "com.sun.star.text.TextTable" )
109*cdf0e10cSrcweir    xTable.initialize(5, 8)
110*cdf0e10cSrcweir    xTable.HoriOrient = 0 'com::sun::star::text::HoriOrientation::NONE
111*cdf0e10cSrcweir    xTable.LeftMargin = 2000
112*cdf0e10cSrcweir    xTable.RightMargin = 1500
113*cdf0e10cSrcweir    xTextDoc.getText.insertTextContent( xTextRange, xTable, false )
114*cdf0e10cSrcweir	</listing>
115*cdf0e10cSrcweir
116*cdf0e10cSrcweir    @see    com::sun::star::text::Cell
117*cdf0e10cSrcweir    @see    com::sun::star::text::CellRange
118*cdf0e10cSrcweir    @see    com::sun::star::text::TableColumns
119*cdf0e10cSrcweir    @see    com::sun::star::text::TableRows
120*cdf0e10cSrcweir    @see    com::sun::star::text::TextTableCursor
121*cdf0e10cSrcweir */
122*cdf0e10cSrcweirpublished service TextTable
123*cdf0e10cSrcweir{
124*cdf0e10cSrcweir    service com::sun::star::text::TextContent;
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir    [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir	interface com::sun::star::text::XTextTable;
129*cdf0e10cSrcweir
130*cdf0e10cSrcweir	interface com::sun::star::container::XNamed;
131*cdf0e10cSrcweir
132*cdf0e10cSrcweir	interface com::sun::star::table::XCellRange;
133*cdf0e10cSrcweir
134*cdf0e10cSrcweir	interface com::sun::star::chart::XChartDataArray;
135*cdf0e10cSrcweir
136*cdf0e10cSrcweir	interface com::sun::star::table::XAutoFormattable;
137*cdf0e10cSrcweir
138*cdf0e10cSrcweir	interface com::sun::star::util::XSortable;
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir    [optional] interface com::sun::star::sheet::XCellRangeData;
141*cdf0e10cSrcweir
142*cdf0e10cSrcweir	/** determins the type of break that is applied at the beginning of the table.@see com.sun.star.style.BreakType
143*cdf0e10cSrcweir	 */
144*cdf0e10cSrcweir	[property] com::sun::star::style::BreakType BreakType;
145*cdf0e10cSrcweir	//-------------------------------------------------------------------------
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir	/** contains the left margin of the table.
148*cdf0e10cSrcweir	 */
149*cdf0e10cSrcweir	[property] long LeftMargin;
150*cdf0e10cSrcweir	//-------------------------------------------------------------------------
151*cdf0e10cSrcweir
152*cdf0e10cSrcweir	/** contains the right margin of the table.
153*cdf0e10cSrcweir	 */
154*cdf0e10cSrcweir	[property] long RightMargin;
155*cdf0e10cSrcweir	//-------------------------------------------------------------------------
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir	/** contains the horizontal orientation.@see com.sun.star.text.HoriOrientation
158*cdf0e10cSrcweir	 */
159*cdf0e10cSrcweir	[property] short HoriOrient;
160*cdf0e10cSrcweir	//-------------------------------------------------------------------------
161*cdf0e10cSrcweir
162*cdf0e10cSrcweir	/** Setting this property to TRUE prevents page or column
163*cdf0e10cSrcweir		breaks between this table and the following paragraph or text table.
164*cdf0e10cSrcweir	 */
165*cdf0e10cSrcweir	[property] boolean KeepTogether;
166*cdf0e10cSrcweir	//-------------------------------------------------------------------------
167*cdf0e10cSrcweir
168*cdf0e10cSrcweir	/** Setting this property to FALSE prevents the table from
169*cdf0e10cSrcweir		getting spread on two pages.
170*cdf0e10cSrcweir	 */
171*cdf0e10cSrcweir	[property] boolean Split;
172*cdf0e10cSrcweir	//-------------------------------------------------------------------------
173*cdf0e10cSrcweir
174*cdf0e10cSrcweir	/** If a page break property is set at the table,
175*cdf0e10cSrcweir		this property contains the new value for the page number.
176*cdf0e10cSrcweir	 */
177*cdf0e10cSrcweir	[property] short PageNumberOffset;
178*cdf0e10cSrcweir	//-------------------------------------------------------------------------
179*cdf0e10cSrcweir
180*cdf0e10cSrcweir	/** If this property is set, it creates a page break before the
181*cdf0e10cSrcweir		table and assigns the value as the name of the new page style sheet to use.
182*cdf0e10cSrcweir	 */
183*cdf0e10cSrcweir	[property] string PageDescName;
184*cdf0e10cSrcweir	//-------------------------------------------------------------------------
185*cdf0e10cSrcweir
186*cdf0e10cSrcweir	/** determins the width of the table relative to its environment.
187*cdf0e10cSrcweir	 */
188*cdf0e10cSrcweir	[property] short RelativeWidth;
189*cdf0e10cSrcweir	//-------------------------------------------------------------------------
190*cdf0e10cSrcweir	/** determins if the value of the relative width is valid.
191*cdf0e10cSrcweir	 */
192*cdf0e10cSrcweir    [property] boolean IsWidthRelative;
193*cdf0e10cSrcweir	//-------------------------------------------------------------------------
194*cdf0e10cSrcweir
195*cdf0e10cSrcweir	/** determins if the first row of the table is repeated on every new page.
196*cdf0e10cSrcweir	 */
197*cdf0e10cSrcweir	[property] boolean RepeatHeadline;
198*cdf0e10cSrcweir        //-------------------------------------------------------------------------
199*cdf0e10cSrcweir        /** determins the number of rows of the table repeated on every new page.
200*cdf0e10cSrcweir         */
201*cdf0e10cSrcweir        [optional, property] long HeaderRowCount;
202*cdf0e10cSrcweir        //-------------------------------------------------------------------------
203*cdf0e10cSrcweir
204*cdf0e10cSrcweir	/** determins the type, color and size of the shadow.@see com.sun.star.table.ShadowFormat
205*cdf0e10cSrcweir	 */
206*cdf0e10cSrcweir	[property] com::sun::star::table::ShadowFormat ShadowFormat;
207*cdf0e10cSrcweir	//-------------------------------------------------------------------------
208*cdf0e10cSrcweir
209*cdf0e10cSrcweir	/** determins the top margin.
210*cdf0e10cSrcweir	 */
211*cdf0e10cSrcweir	[property] long TopMargin;
212*cdf0e10cSrcweir	//-------------------------------------------------------------------------
213*cdf0e10cSrcweir
214*cdf0e10cSrcweir	/** determins the bottom margin.
215*cdf0e10cSrcweir	 */
216*cdf0e10cSrcweir	[property] long BottomMargin;
217*cdf0e10cSrcweir	//-------------------------------------------------------------------------
218*cdf0e10cSrcweir
219*cdf0e10cSrcweir	/** determins if the background color is transparent.
220*cdf0e10cSrcweir	 */
221*cdf0e10cSrcweir	[property] boolean BackTransparent;
222*cdf0e10cSrcweir	//-------------------------------------------------------------------------
223*cdf0e10cSrcweir
224*cdf0e10cSrcweir	/** contains the absolute table width.
225*cdf0e10cSrcweir
226*cdf0e10cSrcweir		<p>As this is only a describing property the value of the actual table may vary depending on the
227*cdf0e10cSrcweir		environment the table is located in and the settings of LeftMargin,
228*cdf0e10cSrcweir		RightMargin and HoriOrient. </p>
229*cdf0e10cSrcweir	 */
230*cdf0e10cSrcweir	[property] long Width;
231*cdf0e10cSrcweir	//-------------------------------------------------------------------------
232*cdf0e10cSrcweir
233*cdf0e10cSrcweir	/** determins if the first row of the table should be treated as
234*cdf0e10cSrcweir		axis labels when a chart is to be created.
235*cdf0e10cSrcweir	 */
236*cdf0e10cSrcweir	[property] boolean ChartRowAsLabel;
237*cdf0e10cSrcweir	//-------------------------------------------------------------------------
238*cdf0e10cSrcweir
239*cdf0e10cSrcweir	/** determins if the first column of the table should be treated as
240*cdf0e10cSrcweir		axis labels when a chart is to be created.
241*cdf0e10cSrcweir	 */
242*cdf0e10cSrcweir	[property] boolean ChartColumnAsLabel;
243*cdf0e10cSrcweir	//-------------------------------------------------------------------------
244*cdf0e10cSrcweir
245*cdf0e10cSrcweir	/** contains the description of the table borders.@see com.sun.star.table.TableBorder
246*cdf0e10cSrcweir	 */
247*cdf0e10cSrcweir	[property] com::sun::star::table::TableBorder TableBorder;
248*cdf0e10cSrcweir	//-------------------------------------------------------------------------
249*cdf0e10cSrcweir
250*cdf0e10cSrcweir	/** contains the column description of the table.
251*cdf0e10cSrcweir			 @see com.sun.star.text.TableColumnSeparator
252*cdf0e10cSrcweir	 */
253*cdf0e10cSrcweir	[property] sequence<com::sun::star::text::TableColumnSeparator> TableColumnSeparators;
254*cdf0e10cSrcweir	//-------------------------------------------------------------------------
255*cdf0e10cSrcweir
256*cdf0e10cSrcweir	/** contains the sum of the column width values used in TableColumnSeparators.
257*cdf0e10cSrcweir	 */
258*cdf0e10cSrcweir	[property] short TableColumnRelativeSum;
259*cdf0e10cSrcweir	//-------------------------------------------------------------------------
260*cdf0e10cSrcweir
261*cdf0e10cSrcweir	/** contains the color of the background.
262*cdf0e10cSrcweir	 */
263*cdf0e10cSrcweir	[property] com::sun::star::util::Color BackColor;
264*cdf0e10cSrcweir	//-------------------------------------------------------------------------
265*cdf0e10cSrcweir
266*cdf0e10cSrcweir	/** contains the URL for the background graphic.
267*cdf0e10cSrcweir	 */
268*cdf0e10cSrcweir	[property] string BackGraphicURL;
269*cdf0e10cSrcweir
270*cdf0e10cSrcweir	//-------------------------------------------------------------------------
271*cdf0e10cSrcweir
272*cdf0e10cSrcweir	/** contains the name of the file filter for the background graphic.
273*cdf0e10cSrcweir	 */
274*cdf0e10cSrcweir	[property] string BackGraphicFilter;
275*cdf0e10cSrcweir
276*cdf0e10cSrcweir	//-------------------------------------------------------------------------
277*cdf0e10cSrcweir
278*cdf0e10cSrcweir	/** determines the position of the background graphic.@see GraphicLocation
279*cdf0e10cSrcweir	 */
280*cdf0e10cSrcweir	[property] com::sun::star::style::GraphicLocation BackGraphicLocation;
281*cdf0e10cSrcweir
282*cdf0e10cSrcweir    //-------------------------------------------------------------------------
283*cdf0e10cSrcweir
284*cdf0e10cSrcweir    /** determines whether borders of neighbouring table cells are
285*cdf0e10cSrcweir     * collapsed into one
286*cdf0e10cSrcweir     */
287*cdf0e10cSrcweir    [optional, property] boolean CollapsingBorders;
288*cdf0e10cSrcweir
289*cdf0e10cSrcweir};
290*cdf0e10cSrcweir
291*cdf0e10cSrcweir//=============================================================================
292*cdf0e10cSrcweir
293*cdf0e10cSrcweir}; }; }; };
294*cdf0e10cSrcweir
295*cdf0e10cSrcweir#endif
296