tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / offapi / com / sun / star / text / TextTable.idl
blob8351d33d92adee0b60ebb5c90378c892eecc2324
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com { module sun { module star { module text {
22 /** is a table of text cells which is anchored to a surrounding text.
24 <p>Note: The anchor of the actual implementation for text tables
25 does not have a position in the text. Thus that anchor can not be
26 used for some operation like XTextContent::attach() or
27 XText::insertTextContent()
28 or other function that require the object to have a position in the text.</p>
30 <p>The reason why a text table still needs an anchor is that for example
31 tables should be insertable via XText::insertTextContent()
32 and that interface uses a parameter of that type.</p>
34 <p>Example: Create and insert a TextTable:</p>
36 @code{.bas}
37 xTable = xTextDoc.createInstance( "com.sun.star.text.TextTable" )
38 xTable.initialize(5, 8)
39 xTable.HoriOrient = 0 'com::sun::star::text::HoriOrientation::NONE
40 xTable.LeftMargin = 2000
41 xTable.RightMargin = 1500
42 xTextDoc.getText.insertTextContent( xTextRange, xTable, false )
43 @endcode
45 @see com::sun::star::text::Cell
46 @see com::sun::star::text::CellRange
47 @see com::sun::star::text::TableColumns
48 @see com::sun::star::text::TableRows
49 @see com::sun::star::text::TextTableCursor
51 published service TextTable
53 service com::sun::star::text::TextContent;
55 [optional] service com::sun::star::xml::UserDefinedAttributesSupplier;
57 interface com::sun::star::text::XTextTable;
59 interface com::sun::star::container::XNamed;
61 interface com::sun::star::table::XCellRange;
63 interface com::sun::star::chart::XChartDataArray;
65 interface com::sun::star::table::XAutoFormattable;
67 interface com::sun::star::util::XSortable;
69 [optional] interface com::sun::star::sheet::XCellRangeData;
71 /** determines the type of break that is applied at the beginning of the table.@see com::sun::star::style::BreakType
73 [property] com::sun::star::style::BreakType BreakType;
75 /** contains the left margin of the table.
77 [property] long LeftMargin;
79 /** contains the right margin of the table.
81 [property] long RightMargin;
83 /** contains the horizontal orientation. @see com::sun::star::text::HoriOrientation
85 [property] short HoriOrient;
87 /** Setting this property to TRUE prevents page or column
88 breaks between this table and the following paragraph or text table.
90 [property] boolean KeepTogether;
92 /** Setting this property to FALSE prevents the table from
93 getting spread on two pages.
95 [property] boolean Split;
97 /** If a page break property is set at the table,
98 this property contains the new value for the page number.
100 [property] short PageNumberOffset;
102 /** If this property is set, it creates a page break before the
103 table and assigns the value as the name of the new page style sheet to use.
105 [property] string PageDescName;
107 /** determines the width of the table relative to its environment.
109 [property] short RelativeWidth;
110 /** determines if the value of the relative width is valid.
112 [property] boolean IsWidthRelative;
114 /** determines if the first row of the table is repeated on every new page.
116 [property] boolean RepeatHeadline;
117 /** determines the number of rows of the table repeated on every new page.
119 [optional, property] long HeaderRowCount;
121 /** determines the type, color and size of the shadow.@see com::sun::star::table::ShadowFormat
123 [property] com::sun::star::table::ShadowFormat ShadowFormat;
125 /** determines the top margin.
127 [property] long TopMargin;
129 /** determines the bottom margin.
131 [property] long BottomMargin;
133 /** determines if the background color is transparent.
135 [property] boolean BackTransparent;
137 /** contains the absolute table width.
139 <p>As this is only a describing property the value of the actual table may vary depending on the
140 environment the table is located in and the settings of LeftMargin,
141 RightMargin and HoriOrient. </p>
143 [property] long Width;
145 /** determines if the first row of the table should be treated as
146 axis labels when a chart is to be created.
148 [property] boolean ChartRowAsLabel;
150 /** determines if the first column of the table should be treated as
151 axis labels when a chart is to be created.
153 [property] boolean ChartColumnAsLabel;
155 /** contains the description of the table borders. @see com::sun::star::table::TableBorder
157 [property] com::sun::star::table::TableBorder TableBorder;
159 /** contains the column description of the table.
160 @see com::sun::star::text::TableColumnSeparator
162 [property] sequence<com::sun::star::text::TableColumnSeparator> TableColumnSeparators;
164 /** contains the sum of the column width values used in TableColumnSeparators.
166 [property] short TableColumnRelativeSum;
168 /** contains the color of the background.
170 [property] com::sun::star::util::Color BackColor;
172 /** contains the URL for the background graphic.
174 @deprecated as of LibreOffice 6.1 - use BackGraphic instead
176 Note the new behaviour since it this was deprecated:
177 This property can only be set and only external URLs are
178 supported (no more vnd.sun.star.GraphicObject scheme). When an
179 URL is set, then it will load the graphic and set the BackGraphic
180 property.
182 [property] string BackGraphicURL;
184 /** contains the name of the file filter for the background graphic.
186 [property] string BackGraphicFilter;
189 /** determines the position of the background graphic.@see GraphicLocation
191 [property] com::sun::star::style::GraphicLocation BackGraphicLocation;
194 /** determines whether borders of neighboring table cells are
195 * collapsed into one
197 [optional, property] boolean CollapsingBorders;
199 /** Grab bag of table properties, used as a string-any map for interim interop purposes.
201 @since LibreOffice 4.3
203 <p>This property is intentionally not handled by the ODF filter. Any
204 member that should be handled there should be first moved out from this grab
205 bag to a separate property.</p>
207 [optional, property] sequence<com::sun::star::beans::PropertyValue> TableInteropGrabBag;
209 /** contains the name of table style used by the table.
211 @since LibreOffice 5.3
213 [optional, property] string TableTemplateName;
215 /** contains the graphic for the background.
217 @since LibreOffice 6.1
219 [optional, property] com::sun::star::graphic::XGraphic BackGraphic;
223 }; }; }; };
225 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */