xref: /aoo41x/main/offapi/com/sun/star/sheet/SheetCell.idl (revision cdf0e10c)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_SheetCell_idl__
29*cdf0e10cSrcweir#define __com_sun_star_sheet_SheetCell_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir#ifndef __com_sun_star_table_Cell_idl__
33*cdf0e10cSrcweir#include <com/sun/star/table/Cell.idl>
34*cdf0e10cSrcweir#endif
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir#ifndef __com_sun_star_text_Text_idl__
37*cdf0e10cSrcweir#include <com/sun/star/text/Text.idl>
38*cdf0e10cSrcweir#endif
39*cdf0e10cSrcweir
40*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterProperties_idl__
41*cdf0e10cSrcweir#include <com/sun/star/style/CharacterProperties.idl>
42*cdf0e10cSrcweir#endif
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__
45*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesAsian.idl>
46*cdf0e10cSrcweir#endif
47*cdf0e10cSrcweir
48*cdf0e10cSrcweir#ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__
49*cdf0e10cSrcweir#include <com/sun/star/style/CharacterPropertiesComplex.idl>
50*cdf0e10cSrcweir#endif
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphProperties_idl__
53*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphProperties.idl>
54*cdf0e10cSrcweir#endif
55*cdf0e10cSrcweir
56*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__
57*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphPropertiesAsian.idl>
58*cdf0e10cSrcweir#endif
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir#ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__
61*cdf0e10cSrcweir#include <com/sun/star/style/ParagraphPropertiesComplex.idl>
62*cdf0e10cSrcweir#endif
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_SheetRangesQuery_idl__
65*cdf0e10cSrcweir#include <com/sun/star/sheet/SheetRangesQuery.idl>
66*cdf0e10cSrcweir#endif
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir#ifndef __com_sun_star_document_XActionLockable_idl__
70*cdf0e10cSrcweir#include <com/sun/star/document/XActionLockable.idl>
71*cdf0e10cSrcweir#endif
72*cdf0e10cSrcweir
73*cdf0e10cSrcweir#ifndef __com_sun_star_util_XReplaceable_idl__
74*cdf0e10cSrcweir#include <com/sun/star/util/XReplaceable.idl>
75*cdf0e10cSrcweir#endif
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir#ifndef __com_sun_star_util_XIndent_idl__
78*cdf0e10cSrcweir#include <com/sun/star/util/XIndent.idl>
79*cdf0e10cSrcweir#endif
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir#ifndef __com_sun_star_table_XColumnRowRange_idl__
82*cdf0e10cSrcweir#include <com/sun/star/table/XColumnRowRange.idl>
83*cdf0e10cSrcweir#endif
84*cdf0e10cSrcweir
85*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XCellAddressable_idl__
86*cdf0e10cSrcweir#include <com/sun/star/sheet/XCellAddressable.idl>
87*cdf0e10cSrcweir#endif
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XSheetAnnotationAnchor_idl__
90*cdf0e10cSrcweir#include <com/sun/star/sheet/XSheetAnnotationAnchor.idl>
91*cdf0e10cSrcweir#endif
92*cdf0e10cSrcweir
93*cdf0e10cSrcweir#ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
94*cdf0e10cSrcweir#include <com/sun/star/text/XTextFieldsSupplier.idl>
95*cdf0e10cSrcweir#endif
96*cdf0e10cSrcweir
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir#ifndef __com_sun_star_awt_Point_idl__
99*cdf0e10cSrcweir#include <com/sun/star/awt/Point.idl>
100*cdf0e10cSrcweir#endif
101*cdf0e10cSrcweir
102*cdf0e10cSrcweir#ifndef __com_sun_star_awt_Size_idl__
103*cdf0e10cSrcweir#include <com/sun/star/awt/Size.idl>
104*cdf0e10cSrcweir#endif
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir#ifndef __com_sun_star_sheet_XSheetConditionalEntries_idl__
107*cdf0e10cSrcweir#include <com/sun/star/sheet/XSheetConditionalEntries.idl>
108*cdf0e10cSrcweir#endif
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XPropertySet_idl__
111*cdf0e10cSrcweir#include <com/sun/star/beans/XPropertySet.idl>
112*cdf0e10cSrcweir#endif
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir#ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__
115*cdf0e10cSrcweir#include <com/sun/star/beans/XTolerantMultiPropertySet.idl>
116*cdf0e10cSrcweir#endif
117*cdf0e10cSrcweir
118*cdf0e10cSrcweir#ifndef __com_sun_star_util_XModifyBroadcaster_idl__
119*cdf0e10cSrcweir#include <com/sun/star/util/XModifyBroadcaster.idl>
120*cdf0e10cSrcweir#endif
121*cdf0e10cSrcweir
122*cdf0e10cSrcweir//=============================================================================
123*cdf0e10cSrcweir
124*cdf0e10cSrcweirmodule com {  module sun {  module star {  module sheet {
125*cdf0e10cSrcweir
126*cdf0e10cSrcweir//=============================================================================
127*cdf0e10cSrcweir
128*cdf0e10cSrcweir/** represents a single addressable cell in a spreadsheet document.
129*cdf0e10cSrcweir */
130*cdf0e10cSrcweirpublished service SheetCell
131*cdf0e10cSrcweir{
132*cdf0e10cSrcweir	//-------------------------------------------------------------------------
133*cdf0e10cSrcweir
134*cdf0e10cSrcweir	/** provides basic cell handling and contributes common cell
135*cdf0e10cSrcweir		formatting properties.
136*cdf0e10cSrcweir	 */
137*cdf0e10cSrcweir	service com::sun::star::table::Cell;
138*cdf0e10cSrcweir
139*cdf0e10cSrcweir	//-------------------------------------------------------------------------
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir	/** provides handling of formatted text cells.
142*cdf0e10cSrcweir	 */
143*cdf0e10cSrcweir	service com::sun::star::text::Text;
144*cdf0e10cSrcweir
145*cdf0e10cSrcweir	//-------------------------------------------------------------------------
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir	/** contributes properties for character formatting of Western text.
148*cdf0e10cSrcweir	 */
149*cdf0e10cSrcweir	service com::sun::star::style::CharacterProperties;
150*cdf0e10cSrcweir
151*cdf0e10cSrcweir	//-------------------------------------------------------------------------
152*cdf0e10cSrcweir
153*cdf0e10cSrcweir	/** contributes properties for character formatting of Asian text.
154*cdf0e10cSrcweir	 */
155*cdf0e10cSrcweir	service com::sun::star::style::CharacterPropertiesAsian;
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir	//-------------------------------------------------------------------------
158*cdf0e10cSrcweir
159*cdf0e10cSrcweir	/** contributes properties for character formatting of Complex text.
160*cdf0e10cSrcweir	 */
161*cdf0e10cSrcweir	service com::sun::star::style::CharacterPropertiesComplex;
162*cdf0e10cSrcweir
163*cdf0e10cSrcweir	//-------------------------------------------------------------------------
164*cdf0e10cSrcweir
165*cdf0e10cSrcweir	/** contributes properties for paragraph formatting.
166*cdf0e10cSrcweir	 */
167*cdf0e10cSrcweir	service com::sun::star::style::ParagraphProperties;
168*cdf0e10cSrcweir
169*cdf0e10cSrcweir	//-------------------------------------------------------------------------
170*cdf0e10cSrcweir
171*cdf0e10cSrcweir    /** contributes properties for paragraph formatting of Asian text.
172*cdf0e10cSrcweir     */
173*cdf0e10cSrcweir    [optional] service com::sun::star::style::ParagraphPropertiesAsian;
174*cdf0e10cSrcweir
175*cdf0e10cSrcweir    //-------------------------------------------------------------------------
176*cdf0e10cSrcweir
177*cdf0e10cSrcweir    /** contributes properties for paragraph formatting of Complex text.
178*cdf0e10cSrcweir     */
179*cdf0e10cSrcweir    [optional] service com::sun::star::style::ParagraphPropertiesComplex;
180*cdf0e10cSrcweir
181*cdf0e10cSrcweir    //-------------------------------------------------------------------------
182*cdf0e10cSrcweir
183*cdf0e10cSrcweir	/** provides interfaces to find cells with specific properties.
184*cdf0e10cSrcweir	 */
185*cdf0e10cSrcweir	service com::sun::star::sheet::SheetRangesQuery;
186*cdf0e10cSrcweir
187*cdf0e10cSrcweir	//=========================================================================
188*cdf0e10cSrcweir
189*cdf0e10cSrcweir	/** provides methods to lock and unlock the update between
190*cdf0e10cSrcweir		<type scope="com::sun::star::table">XCell</type> and
191*cdf0e10cSrcweir		<type scope="com::sun::star::text">XText</type>.
192*cdf0e10cSrcweir	*/
193*cdf0e10cSrcweir	interface com::sun::star::document::XActionLockable;
194*cdf0e10cSrcweir
195*cdf0e10cSrcweir	//-------------------------------------------------------------------------
196*cdf0e10cSrcweir
197*cdf0e10cSrcweir	/** provides "Find & Replace" functionality.
198*cdf0e10cSrcweir
199*cdf0e10cSrcweir		<p>The property
200*cdf0e10cSrcweir		<member scope="com::sun::star::util">SearchDescriptor::SearchWords</member>
201*cdf0e10cSrcweir		has a different meaning in spreadsheets: If set to <TRUE/>, the
202*cdf0e10cSrcweir		spreadsheet searches for cells containing the serch text only.</p>
203*cdf0e10cSrcweir	 */
204*cdf0e10cSrcweir	interface com::sun::star::util::XReplaceable;
205*cdf0e10cSrcweir
206*cdf0e10cSrcweir	//-------------------------------------------------------------------------
207*cdf0e10cSrcweir
208*cdf0e10cSrcweir	/** provides modifying the cell indentation.
209*cdf0e10cSrcweir	 */
210*cdf0e10cSrcweir	interface com::sun::star::util::XIndent;
211*cdf0e10cSrcweir
212*cdf0e10cSrcweir	//-------------------------------------------------------------------------
213*cdf0e10cSrcweir
214*cdf0e10cSrcweir	/** provides access to the collections of columns and rows.
215*cdf0e10cSrcweir	 */
216*cdf0e10cSrcweir	interface com::sun::star::table::XColumnRowRange;
217*cdf0e10cSrcweir
218*cdf0e10cSrcweir	//-------------------------------------------------------------------------
219*cdf0e10cSrcweir
220*cdf0e10cSrcweir	/** provides access to the cell address of this cell.
221*cdf0e10cSrcweir	 */
222*cdf0e10cSrcweir	interface com::sun::star::sheet::XCellAddressable;
223*cdf0e10cSrcweir
224*cdf0e10cSrcweir	//-------------------------------------------------------------------------
225*cdf0e10cSrcweir
226*cdf0e10cSrcweir	/** provides access to the annotation attached to this cell.
227*cdf0e10cSrcweir	 */
228*cdf0e10cSrcweir	interface com::sun::star::sheet::XSheetAnnotationAnchor;
229*cdf0e10cSrcweir
230*cdf0e10cSrcweir	//-------------------------------------------------------------------------
231*cdf0e10cSrcweir
232*cdf0e10cSrcweir	/** provides access to the text fields used in this cell.
233*cdf0e10cSrcweir	 */
234*cdf0e10cSrcweir	interface com::sun::star::text::XTextFieldsSupplier;
235*cdf0e10cSrcweir
236*cdf0e10cSrcweir	//-------------------------------------------------------------------------
237*cdf0e10cSrcweir
238*cdf0e10cSrcweir    [optional] interface com::sun::star::beans::XTolerantMultiPropertySet;
239*cdf0e10cSrcweir
240*cdf0e10cSrcweir	//-------------------------------------------------------------------------
241*cdf0e10cSrcweir
242*cdf0e10cSrcweir	/**
243*cdf0e10cSrcweir
244*cdf0e10cSrcweir	@since OOo 2.0
245*cdf0e10cSrcweir
246*cdf0e10cSrcweir	*/
247*cdf0e10cSrcweir	[optional] interface com::sun::star::util::XModifyBroadcaster;
248*cdf0e10cSrcweir
249*cdf0e10cSrcweir	//=========================================================================
250*cdf0e10cSrcweir
251*cdf0e10cSrcweir	/** contains the position of this cell in the sheet (in 1/100 mm).
252*cdf0e10cSrcweir
253*cdf0e10cSrcweir		<p>This property contains the absolute position in the whole
254*cdf0e10cSrcweir		sheet, not the position in the visible area.</p>
255*cdf0e10cSrcweir	 */
256*cdf0e10cSrcweir	[readonly, property] com::sun::star::awt::Point Position;
257*cdf0e10cSrcweir
258*cdf0e10cSrcweir	//-------------------------------------------------------------------------
259*cdf0e10cSrcweir
260*cdf0e10cSrcweir	/** contains the size of this cell (in 1/100 mm).
261*cdf0e10cSrcweir	 */
262*cdf0e10cSrcweir	[readonly, property] com::sun::star::awt::Size Size;
263*cdf0e10cSrcweir
264*cdf0e10cSrcweir	//-------------------------------------------------------------------------
265*cdf0e10cSrcweir
266*cdf0e10cSrcweir	/** contains the formula string with localized function names.
267*cdf0e10cSrcweir
268*cdf0e10cSrcweir		<p>This property can also be used to set a new localized formula.</p>
269*cdf0e10cSrcweir	 */
270*cdf0e10cSrcweir	[optional, property] string FormulaLocal;
271*cdf0e10cSrcweir
272*cdf0e10cSrcweir	//-------------------------------------------------------------------------
273*cdf0e10cSrcweir
274*cdf0e10cSrcweir	/** contains the result type of a formula.
275*cdf0e10cSrcweir
276*cdf0e10cSrcweir		@see com::sun::star::sheet::FormulaResult
277*cdf0e10cSrcweir	 */
278*cdf0e10cSrcweir	[readonly, property] long FormulaResultType;
279*cdf0e10cSrcweir
280*cdf0e10cSrcweir	//-------------------------------------------------------------------------
281*cdf0e10cSrcweir
282*cdf0e10cSrcweir	/** contains the conditional formatting settings for this cell.
283*cdf0e10cSrcweir
284*cdf0e10cSrcweir		<p>After a conditional format has been changed it has to be
285*cdf0e10cSrcweir		reinserted into the property set.</p>
286*cdf0e10cSrcweir
287*cdf0e10cSrcweir		@see com::sun::star::sheet::TableConditionalFormat
288*cdf0e10cSrcweir	 */
289*cdf0e10cSrcweir	[property] com::sun::star::sheet::XSheetConditionalEntries
290*cdf0e10cSrcweir		ConditionalFormat;
291*cdf0e10cSrcweir
292*cdf0e10cSrcweir	//-------------------------------------------------------------------------
293*cdf0e10cSrcweir
294*cdf0e10cSrcweir	/** contains the conditional formatting settings for this cell,
295*cdf0e10cSrcweir		using localized formulas.
296*cdf0e10cSrcweir
297*cdf0e10cSrcweir		<p>After a conditional format has been changed it has to be
298*cdf0e10cSrcweir		reinserted into the property set.</p>
299*cdf0e10cSrcweir
300*cdf0e10cSrcweir		@see com::sun::star::sheet::TableConditionalFormat
301*cdf0e10cSrcweir	 */
302*cdf0e10cSrcweir	[optional, property] com::sun::star::sheet::XSheetConditionalEntries
303*cdf0e10cSrcweir		ConditionalFormatLocal;
304*cdf0e10cSrcweir
305*cdf0e10cSrcweir	//-------------------------------------------------------------------------
306*cdf0e10cSrcweir
307*cdf0e10cSrcweir	/** contains the data validation settings for this cell.
308*cdf0e10cSrcweir
309*cdf0e10cSrcweir		<p>After the data validation settings have been changed the
310*cdf0e10cSrcweir		validation has to be reinserted into the property set.</p>
311*cdf0e10cSrcweir
312*cdf0e10cSrcweir		@see com::sun::star::sheet::TableValidation
313*cdf0e10cSrcweir	 */
314*cdf0e10cSrcweir	[property] com::sun::star::beans::XPropertySet Validation;
315*cdf0e10cSrcweir
316*cdf0e10cSrcweir	//-------------------------------------------------------------------------
317*cdf0e10cSrcweir
318*cdf0e10cSrcweir	/** contains the data validation settings for this cell,
319*cdf0e10cSrcweir		using localized formulas.
320*cdf0e10cSrcweir
321*cdf0e10cSrcweir		<p>After the data validation settings have been changed the
322*cdf0e10cSrcweir		validation has to be reinserted into the property set.</p>
323*cdf0e10cSrcweir
324*cdf0e10cSrcweir		@see com::sun::star::sheet::TableValidation
325*cdf0e10cSrcweir	 */
326*cdf0e10cSrcweir	[optional, property] com::sun::star::beans::XPropertySet ValidationLocal;
327*cdf0e10cSrcweir
328*cdf0e10cSrcweir	//-------------------------------------------------------------------------
329*cdf0e10cSrcweir
330*cdf0e10cSrcweir	/** Returns the absolute adress of the range as string, e.g. "$Sheet1.$B$2".
331*cdf0e10cSrcweir	 */
332*cdf0e10cSrcweir	[optional, readonly, property] string AbsoluteName;
333*cdf0e10cSrcweir};
334*cdf0e10cSrcweir
335*cdf0e10cSrcweir//=============================================================================
336*cdf0e10cSrcweir
337*cdf0e10cSrcweir}; }; }; };
338*cdf0e10cSrcweir
339*cdf0e10cSrcweir#endif
340*cdf0e10cSrcweir
341