Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / table / CellProperties.idl
blob56c2fee041891bb2fe4f97fd3e09383b03a60a46
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: CellProperties.idl,v $
10 * $Revision: 1.13 $
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 ************************************************************************/
31 #ifndef __com_sun_star_table_CellProperties_idl__
32 #define __com_sun_star_table_CellProperties_idl__
34 #ifndef __com_sun_star_util_Color_idl__
35 #include <com/sun/star/util/Color.idl>
36 #endif
38 #ifndef __com_sun_star_beans_XPropertySet_idl__
39 #include <com/sun/star/beans/XPropertySet.idl>
40 #endif
42 #ifndef __com_sun_star_table_ShadowFormat_idl__
43 #include <com/sun/star/table/ShadowFormat.idl>
44 #endif
46 #ifndef __com_sun_star_table_CellHoriJustify_idl__
47 #include <com/sun/star/table/CellHoriJustify.idl>
48 #endif
50 #ifndef __com_sun_star_table_CellVertJustify_idl__
51 #include <com/sun/star/table/CellVertJustify.idl>
52 #endif
54 #ifndef __com_sun_star_table_CellOrientation_idl__
55 #include <com/sun/star/table/CellOrientation.idl>
56 #endif
58 #ifndef __com_sun_star_util_CellProtection_idl__
59 #include <com/sun/star/util/CellProtection.idl>
60 #endif
62 #ifndef __com_sun_star_table_TableBorder_idl__
63 #include <com/sun/star/table/TableBorder.idl>
64 #endif
66 #ifndef __com_sun_star_table_BorderLine_idl__
67 #include <com/sun/star/table/BorderLine.idl>
68 #endif
70 #ifndef __com_sun_star_container_XNameContainer_idl__
71 #include <com/sun/star/container/XNameContainer.idl>
72 #endif
74 //=============================================================================
76 module com { module sun { module star { module table {
78 //=============================================================================
80 /** contains the properties of a table cell.
82 @see com::sun::star::table::Cell
83 @see com::sun::star::table::CellRange
85 published service CellProperties
87 //-------------------------------------------------------------------------
89 //!published service PropertySet
90 /** provides access to the properties.
92 interface com::sun::star::beans::XPropertySet;
94 //=========================================================================
96 /** contains the name of the style of the cell.
98 [optional, property] string CellStyle;
100 //-------------------------------------------------------------------------
102 /** contains the cell background color.
104 [property] com::sun::star::util::Color CellBackColor;
106 //-------------------------------------------------------------------------
108 /** is <TRUE/>, if the cell background is transparent.
110 <p>In this case the <member>CellProperties::CellBackColor</member>
111 value is not used.</p>
113 [property] boolean IsCellBackgroundTransparent;
115 //-------------------------------------------------------------------------
117 /** contains the horizontal alignment of the cell contents.
119 [property] com::sun::star::table::CellHoriJustify HoriJustify;
121 //-------------------------------------------------------------------------
123 /** contains the vertical alignment of the cell contents.
125 [property] com::sun::star::table::CellVertJustify VertJustify;
127 //-------------------------------------------------------------------------
129 /** is <TRUE/>, if text in the cells will be wrapped automatically
130 at the right border.
132 [property] boolean IsTextWrapped;
134 //-------------------------------------------------------------------------
136 /** defines the indentation of the cell contents (in 1/100 mm).
138 [property] short ParaIndent;
140 //-------------------------------------------------------------------------
142 /** contains the orientation of the cell contents.
144 <p>If the <member>CellProperties::RotateAngle</member> property
145 is non-zero, this value is not used.</p>
147 [property] com::sun::star::table::CellOrientation Orientation;
149 //-------------------------------------------------------------------------
151 /** defines how much the content of cells is rotated (in 1/100 degrees).
153 [property] long RotateAngle;
155 //-------------------------------------------------------------------------
157 /** defines at which edge rotated cells are aligned.
159 [property] com::sun::star::table::CellVertJustify RotateReference;
161 //-------------------------------------------------------------------------
163 /** selects Asian character orientation in vertical orientation.
165 <p>If the <member>CellProperties::Orientation</member> property is
166 <const>CellOrientation::STACKED</const>, in Asian mode only Asian
167 characters are printed in horizontal orientation instead of all
168 characters.
169 For other values of <member>CellProperties::Orientation</member>,
170 this value is not used.</p>
172 [optional, property] boolean AsianVerticalMode;
174 //-------------------------------------------------------------------------
176 /** contains a description of the cell or cell range border.
178 <p>If used with a cell range, the top, left, right, and bottom
179 lines are at the edges of the entire range, not at the edges of
180 the individual cell.</p>
182 [property] com::sun::star::table::TableBorder TableBorder;
184 //-------------------------------------------------------------------------
186 /** contains a description of the top border line of each cell.
188 [property] com::sun::star::table::BorderLine TopBorder;
190 //-------------------------------------------------------------------------
192 /** contains a description of the bottom border line of each cell.
194 [property] com::sun::star::table::BorderLine BottomBorder;
196 //-------------------------------------------------------------------------
198 /** contains a description of the left border line of each cell.
200 [property] com::sun::star::table::BorderLine LeftBorder;
202 //-------------------------------------------------------------------------
204 /** contains a description of the right border line of each cell.
206 [property] com::sun::star::table::BorderLine RightBorder;
208 //-------------------------------------------------------------------------
210 /** contains the index of the number format that is used in the cells.
212 <p>The proper value can be determined by using the
213 <type scope="com::sun::star::util">NumberFormatter</type>
214 interface of the document.</p>
216 [property] long NumberFormat;
218 //-------------------------------------------------------------------------
220 /** contains a description of the shadow.
222 [property] com::sun::star::table::ShadowFormat ShadowFormat;
224 //-------------------------------------------------------------------------
226 /** contains a description of the cell protection.
228 <p>Cell protection is active only if the sheet is protected.</p>
230 [property] com::sun::star::util::CellProtection CellProtection;
232 //-------------------------------------------------------------------------
234 /** stores additional attributes.
236 <p>This property is used i.e. by the XML filters to load and
237 restore unknown attributes.</p>
239 [optional, property] com::sun::star::container::XNameContainer
240 UserDefinedAttributes;
242 //-------------------------------------------------------------------------
244 /** contains a description of the top left to bottom right diagonal line of each cell.
246 [optional, property] com::sun::star::table::BorderLine DiagonalTLBR;
248 //-------------------------------------------------------------------------
250 /** contains a description of the bottom left to top right diagonal line of each cell.
252 [optional, property] com::sun::star::table::BorderLine DiagonalBLTR;
254 //-------------------------------------------------------------------------
256 /** is <TRUE/>, if the cell content will be shrinked to fit in the cell.
258 [optional, property] boolean ShrinkToFit;
260 //-------------------------------------------------------------------------
263 //=============================================================================
265 }; }; }; };
267 #endif