xref: /AOO41X/main/offapi/com/sun/star/text/TableColumnSeparator.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_text_TableColumnSeparator_idl__
24#define __com_sun_star_text_TableColumnSeparator_idl__
25
26
27//=============================================================================
28
29 module com {  module sun {  module star {  module text {
30
31//=============================================================================
32
33/** The width of the cells of a text table is defined by the position
34    of the separator between neighboring cells.
35
36    <p>If cells of the table are merged, this separator is not removed, but
37    it is hidden.
38    </p>
39
40    <p>A text table or a text table row provides the separators in a
41    sequence of <type>TableColumnSeparator</type>s. If the table only
42    consists of one column, then this sequence is empty.
43
44    </p>
45    <p>The real width of a table depends on the environment (page style and
46    number of text columns at the table's position, alignment, and left and
47    right margins).  For that reason, the table column separator does not
48    contain metric values for the column widths. The values are relative
49    to the value of the property <member>TextTable::TableColumnRelativeSum</member>.
50
51    </p>
52    <p>A table provides this property only if all rows have the same structure.
53    If the table does not provide the property, then it cannot be set using.
54    </p>
55
56    <p>The state of <member>TableColumnSeparator::IsVisible</member> and the
57    count of the sequence must be the same in as it was in.
58    Hidden separators cannot be moved and they cannot be overtaken by visible
59    separators.</p>
60
61    @see com::sun::star::text::TextTable
62 */
63published struct TableColumnSeparator
64{
65    /** contains the position of the separator.
66     */
67    short Position;
68
69    //-------------------------------------------------------------------------
70
71    /** determines if the separator is visible.
72     */
73    boolean IsVisible;
74
75};
76
77//=============================================================================
78
79}; }; }; };
80
81
82#endif
83