1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
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.
14 *
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).
20 *
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.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_text_TableColumnSeparator_idl__
28#define __com_sun_star_text_TableColumnSeparator_idl__
29
30
31//=============================================================================
32
33 module com {  module sun {  module star {  module text {
34
35//=============================================================================
36
37/** The width of the cells of a text table is defined by the position
38	of the separator between neighboring cells.
39
40	<p>If cells of the table are merged, this separator is not removed, but
41	it is hidden.
42	</p>
43
44    <p>A text table or a text table row provides the separators in a
45	sequence of <type>TableColumnSeparator</type>s. If the table only
46	consists of one column, then this sequence is empty.
47
48	</p>
49	<p>The real width of a table depends on the environment (page style and
50	number of text columns at the table's position, alignment, and left and
51	right margins).  For that reason, the table column separator does not
52	contain metric values for the column widths. The values are relative
53	to the value of the property <member>TextTable::TableColumnRelativeSum</member>.
54
55	</p>
56	<p>A table provides this property only if all rows have the same structure.
57    If the table does not provide the property, then it cannot be set using.
58	</p>
59
60    <p>The state of <member>TableColumnSeparator::IsVisible</member> and the
61    count of the sequence must be the same in as it was in.
62    Hidden separators cannot be moved and they cannot be overtaken by visible
63    separators.</p>
64
65    @see com::sun::star::text::TextTable
66 */
67published struct TableColumnSeparator
68{
69	/** contains the position of the separator.
70	 */
71	short Position;
72
73	//-------------------------------------------------------------------------
74
75	/** determines if the separator is visible.
76	 */
77	boolean IsVisible;
78
79};
80
81//=============================================================================
82
83}; }; }; };
84
85
86#endif
87