1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_table_CellProperties_idl__
25cdf0e10cSrcweir#define __com_sun_star_table_CellProperties_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#ifndef __com_sun_star_util_Color_idl__
28cdf0e10cSrcweir#include <com/sun/star/util/Color.idl>
29cdf0e10cSrcweir#endif
30cdf0e10cSrcweir
31cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
32cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
33cdf0e10cSrcweir#endif
34cdf0e10cSrcweir
35cdf0e10cSrcweir#ifndef __com_sun_star_table_ShadowFormat_idl__
36cdf0e10cSrcweir#include <com/sun/star/table/ShadowFormat.idl>
37cdf0e10cSrcweir#endif
38cdf0e10cSrcweir
39cdf0e10cSrcweir#ifndef __com_sun_star_table_CellHoriJustify_idl__
40cdf0e10cSrcweir#include <com/sun/star/table/CellHoriJustify.idl>
41cdf0e10cSrcweir#endif
42cdf0e10cSrcweir
43cdf0e10cSrcweir#ifndef __com_sun_star_table_CellVertJustify_idl__
44cdf0e10cSrcweir#include <com/sun/star/table/CellVertJustify.idl>
45cdf0e10cSrcweir#endif
46cdf0e10cSrcweir
47cdf0e10cSrcweir#ifndef __com_sun_star_table_CellOrientation_idl__
48cdf0e10cSrcweir#include <com/sun/star/table/CellOrientation.idl>
49cdf0e10cSrcweir#endif
50cdf0e10cSrcweir
51cdf0e10cSrcweir#ifndef __com_sun_star_util_CellProtection_idl__
52cdf0e10cSrcweir#include <com/sun/star/util/CellProtection.idl>
53cdf0e10cSrcweir#endif
54cdf0e10cSrcweir
55cdf0e10cSrcweir#ifndef __com_sun_star_table_TableBorder_idl__
56cdf0e10cSrcweir#include <com/sun/star/table/TableBorder.idl>
57cdf0e10cSrcweir#endif
58cdf0e10cSrcweir
59cdf0e10cSrcweir#ifndef __com_sun_star_table_BorderLine_idl__
60cdf0e10cSrcweir#include <com/sun/star/table/BorderLine.idl>
61cdf0e10cSrcweir#endif
62cdf0e10cSrcweir
63cdf0e10cSrcweir#ifndef __com_sun_star_container_XNameContainer_idl__
64cdf0e10cSrcweir#include <com/sun/star/container/XNameContainer.idl>
65cdf0e10cSrcweir#endif
66cdf0e10cSrcweir
67cdf0e10cSrcweir//=============================================================================
68cdf0e10cSrcweir
69cdf0e10cSrcweirmodule com {  module sun {  module star {  module table {
70cdf0e10cSrcweir
71cdf0e10cSrcweir//=============================================================================
72cdf0e10cSrcweir
73cdf0e10cSrcweir/** contains the properties of a table cell.
74cdf0e10cSrcweir
75cdf0e10cSrcweir	@see com::sun::star::table::Cell
76cdf0e10cSrcweir	@see com::sun::star::table::CellRange
77cdf0e10cSrcweir */
78cdf0e10cSrcweirpublished service CellProperties
79cdf0e10cSrcweir{
80cdf0e10cSrcweir	//-------------------------------------------------------------------------
81cdf0e10cSrcweir
82cdf0e10cSrcweir//!published service PropertySet
83cdf0e10cSrcweir	/** provides access to the properties.
84cdf0e10cSrcweir	 */
85cdf0e10cSrcweir	interface com::sun::star::beans::XPropertySet;
86cdf0e10cSrcweir
87cdf0e10cSrcweir	//=========================================================================
88cdf0e10cSrcweir
89cdf0e10cSrcweir	/** contains the name of the style of the cell.
90cdf0e10cSrcweir	 */
91cdf0e10cSrcweir	[optional, property] string CellStyle;
92cdf0e10cSrcweir
93cdf0e10cSrcweir	//-------------------------------------------------------------------------
94cdf0e10cSrcweir
95cdf0e10cSrcweir	/** contains the cell background color.
96cdf0e10cSrcweir	 */
97cdf0e10cSrcweir	[property] com::sun::star::util::Color CellBackColor;
98cdf0e10cSrcweir
99cdf0e10cSrcweir	//-------------------------------------------------------------------------
100cdf0e10cSrcweir
101cdf0e10cSrcweir	/** is <TRUE/>, if the cell background is transparent.
102cdf0e10cSrcweir
103cdf0e10cSrcweir		<p>In this case the <member>CellProperties::CellBackColor</member>
104cdf0e10cSrcweir		value is not used.</p>
105cdf0e10cSrcweir	 */
106cdf0e10cSrcweir	[property] boolean IsCellBackgroundTransparent;
107cdf0e10cSrcweir
108cdf0e10cSrcweir	//-------------------------------------------------------------------------
109cdf0e10cSrcweir
110cdf0e10cSrcweir	/** contains the horizontal alignment of the cell contents.
111cdf0e10cSrcweir	 */
112cdf0e10cSrcweir	[property] com::sun::star::table::CellHoriJustify HoriJustify;
113cdf0e10cSrcweir
114cdf0e10cSrcweir	//-------------------------------------------------------------------------
115cdf0e10cSrcweir
116cdf0e10cSrcweir	/** contains the vertical alignment of the cell contents.
117cdf0e10cSrcweir	 */
118cdf0e10cSrcweir	[property] com::sun::star::table::CellVertJustify VertJustify;
119cdf0e10cSrcweir
120cdf0e10cSrcweir	//-------------------------------------------------------------------------
121cdf0e10cSrcweir
122cdf0e10cSrcweir	/** is <TRUE/>, if text in the cells will be wrapped automatically
123cdf0e10cSrcweir		at the right border.
124cdf0e10cSrcweir	 */
125cdf0e10cSrcweir	[property] boolean IsTextWrapped;
126cdf0e10cSrcweir
127cdf0e10cSrcweir	//-------------------------------------------------------------------------
128cdf0e10cSrcweir
129cdf0e10cSrcweir	/** defines the indentation of the cell contents (in 1/100 mm).
130cdf0e10cSrcweir	 */
131cdf0e10cSrcweir	[property] short ParaIndent;
132cdf0e10cSrcweir
133cdf0e10cSrcweir	//-------------------------------------------------------------------------
134cdf0e10cSrcweir
135cdf0e10cSrcweir	/** contains the orientation of the cell contents.
136cdf0e10cSrcweir
137cdf0e10cSrcweir		<p>If the <member>CellProperties::RotateAngle</member> property
138cdf0e10cSrcweir		is non-zero, this value is not used.</p>
139cdf0e10cSrcweir	 */
140cdf0e10cSrcweir	[property] com::sun::star::table::CellOrientation Orientation;
141cdf0e10cSrcweir
142cdf0e10cSrcweir	//-------------------------------------------------------------------------
143cdf0e10cSrcweir
144cdf0e10cSrcweir	/** defines how much the content of cells is rotated (in 1/100 degrees).
145cdf0e10cSrcweir	 */
146cdf0e10cSrcweir	[property] long RotateAngle;
147cdf0e10cSrcweir
148cdf0e10cSrcweir	//-------------------------------------------------------------------------
149cdf0e10cSrcweir
150cdf0e10cSrcweir	/** defines at which edge rotated cells are aligned.
151cdf0e10cSrcweir	 */
152cdf0e10cSrcweir	[property] com::sun::star::table::CellVertJustify RotateReference;
153cdf0e10cSrcweir
154cdf0e10cSrcweir	//-------------------------------------------------------------------------
155cdf0e10cSrcweir
156cdf0e10cSrcweir	/** selects Asian character orientation in vertical orientation.
157cdf0e10cSrcweir
158cdf0e10cSrcweir		<p>If the <member>CellProperties::Orientation</member> property is
159cdf0e10cSrcweir		<const>CellOrientation::STACKED</const>, in Asian mode only Asian
160cdf0e10cSrcweir		characters are printed in horizontal orientation instead of all
161cdf0e10cSrcweir		characters.
162cdf0e10cSrcweir		For other values of <member>CellProperties::Orientation</member>,
163cdf0e10cSrcweir		this value is not used.</p>
164cdf0e10cSrcweir	 */
165cdf0e10cSrcweir	[optional, property] boolean AsianVerticalMode;
166cdf0e10cSrcweir
167cdf0e10cSrcweir	//-------------------------------------------------------------------------
168cdf0e10cSrcweir
169cdf0e10cSrcweir	/** contains a description of the cell or cell range border.
170cdf0e10cSrcweir
171cdf0e10cSrcweir		<p>If used with a cell range, the top, left, right, and bottom
172cdf0e10cSrcweir		lines are at the edges of the entire range, not at the edges of
173cdf0e10cSrcweir		the individual cell.</p>
174cdf0e10cSrcweir	 */
175cdf0e10cSrcweir	[property] com::sun::star::table::TableBorder TableBorder;
176cdf0e10cSrcweir
177cdf0e10cSrcweir	//-------------------------------------------------------------------------
178cdf0e10cSrcweir
179cdf0e10cSrcweir	/** contains a description of the top border line of each cell.
180cdf0e10cSrcweir	 */
181cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine TopBorder;
182cdf0e10cSrcweir
183cdf0e10cSrcweir	//-------------------------------------------------------------------------
184cdf0e10cSrcweir
185cdf0e10cSrcweir	/** contains a description of the bottom border line of each cell.
186cdf0e10cSrcweir	*/
187cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine BottomBorder;
188cdf0e10cSrcweir
189cdf0e10cSrcweir	//-------------------------------------------------------------------------
190cdf0e10cSrcweir
191cdf0e10cSrcweir	/** contains a description of the left border line of each cell.
192cdf0e10cSrcweir	 */
193cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine LeftBorder;
194cdf0e10cSrcweir
195cdf0e10cSrcweir	//-------------------------------------------------------------------------
196cdf0e10cSrcweir
197cdf0e10cSrcweir	/** contains a description of the right border line of each cell.
198cdf0e10cSrcweir	 */
199cdf0e10cSrcweir	[property] com::sun::star::table::BorderLine RightBorder;
200cdf0e10cSrcweir
201cdf0e10cSrcweir	//-------------------------------------------------------------------------
202cdf0e10cSrcweir
203cdf0e10cSrcweir	/** contains the index of the number format that is used in the cells.
204cdf0e10cSrcweir
205cdf0e10cSrcweir		<p>The proper value can be determined by using the
206cdf0e10cSrcweir		<type scope="com::sun::star::util">NumberFormatter</type>
207cdf0e10cSrcweir		interface of the document.</p>
208cdf0e10cSrcweir	 */
209cdf0e10cSrcweir	[property] long NumberFormat;
210cdf0e10cSrcweir
211cdf0e10cSrcweir	//-------------------------------------------------------------------------
212cdf0e10cSrcweir
213cdf0e10cSrcweir	/** contains a description of the shadow.
214cdf0e10cSrcweir	 */
215cdf0e10cSrcweir	[property] com::sun::star::table::ShadowFormat ShadowFormat;
216cdf0e10cSrcweir
217cdf0e10cSrcweir	//-------------------------------------------------------------------------
218cdf0e10cSrcweir
219cdf0e10cSrcweir	/** contains a description of the cell protection.
220cdf0e10cSrcweir
221cdf0e10cSrcweir		<p>Cell protection is active only if the sheet is protected.</p>
222cdf0e10cSrcweir	 */
223cdf0e10cSrcweir	[property] com::sun::star::util::CellProtection CellProtection;
224cdf0e10cSrcweir
225cdf0e10cSrcweir	//-------------------------------------------------------------------------
226cdf0e10cSrcweir
227cdf0e10cSrcweir	/** stores additional attributes.
228cdf0e10cSrcweir
229cdf0e10cSrcweir		<p>This property is used i.e. by the XML filters to load and
230cdf0e10cSrcweir		restore unknown attributes.</p>
231cdf0e10cSrcweir   	 */
232cdf0e10cSrcweir	[optional, property] com::sun::star::container::XNameContainer
233cdf0e10cSrcweir		UserDefinedAttributes;
234cdf0e10cSrcweir
235cdf0e10cSrcweir	//-------------------------------------------------------------------------
236cdf0e10cSrcweir
237cdf0e10cSrcweir	/** contains a description of the top left to bottom right diagonal line of each cell.
238cdf0e10cSrcweir	 */
239cdf0e10cSrcweir	[optional, property] com::sun::star::table::BorderLine DiagonalTLBR;
240cdf0e10cSrcweir
241cdf0e10cSrcweir    //-------------------------------------------------------------------------
242cdf0e10cSrcweir
243cdf0e10cSrcweir	/** contains a description of the bottom left to top right diagonal line of each cell.
244cdf0e10cSrcweir	 */
245cdf0e10cSrcweir	[optional, property] com::sun::star::table::BorderLine DiagonalBLTR;
246cdf0e10cSrcweir
247cdf0e10cSrcweir    //-------------------------------------------------------------------------
248cdf0e10cSrcweir
249cdf0e10cSrcweir	/** is <TRUE/>, if the cell content will be shrinked to fit in the cell.
250cdf0e10cSrcweir	 */
251cdf0e10cSrcweir	[optional, property] boolean ShrinkToFit;
252cdf0e10cSrcweir
253cdf0e10cSrcweir	//-------------------------------------------------------------------------
254cdf0e10cSrcweir};
255cdf0e10cSrcweir
256cdf0e10cSrcweir//=============================================================================
257cdf0e10cSrcweir
258cdf0e10cSrcweir}; }; }; };
259cdf0e10cSrcweir
260cdf0e10cSrcweir#endif
261cdf0e10cSrcweir
262