1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SheetCell.idl,v $
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_sheet_SheetCell_idl__
32 #define __com_sun_star_sheet_SheetCell_idl__
35 #ifndef __com_sun_star_table_Cell_idl__
36 #include
<com
/sun
/star
/table
/Cell.idl
>
39 #ifndef __com_sun_star_text_Text_idl__
40 #include
<com
/sun
/star
/text
/Text.idl
>
43 #ifndef __com_sun_star_style_CharacterProperties_idl__
44 #include
<com
/sun
/star
/style
/CharacterProperties.idl
>
47 #ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__
48 #include
<com
/sun
/star
/style
/CharacterPropertiesAsian.idl
>
51 #ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__
52 #include
<com
/sun
/star
/style
/CharacterPropertiesComplex.idl
>
55 #ifndef __com_sun_star_style_ParagraphProperties_idl__
56 #include
<com
/sun
/star
/style
/ParagraphProperties.idl
>
59 #ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__
60 #include
<com
/sun
/star
/style
/ParagraphPropertiesAsian.idl
>
63 #ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__
64 #include
<com
/sun
/star
/style
/ParagraphPropertiesComplex.idl
>
67 #ifndef __com_sun_star_sheet_SheetRangesQuery_idl__
68 #include
<com
/sun
/star
/sheet
/SheetRangesQuery.idl
>
72 #ifndef __com_sun_star_document_XActionLockable_idl__
73 #include
<com
/sun
/star
/document
/XActionLockable.idl
>
76 #ifndef __com_sun_star_util_XReplaceable_idl__
77 #include
<com
/sun
/star
/util
/XReplaceable.idl
>
80 #ifndef __com_sun_star_util_XIndent_idl__
81 #include
<com
/sun
/star
/util
/XIndent.idl
>
84 #ifndef __com_sun_star_table_XColumnRowRange_idl__
85 #include
<com
/sun
/star
/table
/XColumnRowRange.idl
>
88 #ifndef __com_sun_star_sheet_XCellAddressable_idl__
89 #include
<com
/sun
/star
/sheet
/XCellAddressable.idl
>
92 #ifndef __com_sun_star_sheet_XSheetAnnotationAnchor_idl__
93 #include
<com
/sun
/star
/sheet
/XSheetAnnotationAnchor.idl
>
96 #ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
97 #include
<com
/sun
/star
/text
/XTextFieldsSupplier.idl
>
101 #ifndef __com_sun_star_awt_Point_idl__
102 #include
<com
/sun
/star
/awt
/Point.idl
>
105 #ifndef __com_sun_star_awt_Size_idl__
106 #include
<com
/sun
/star
/awt
/Size.idl
>
109 #ifndef __com_sun_star_sheet_XSheetConditionalEntries_idl__
110 #include
<com
/sun
/star
/sheet
/XSheetConditionalEntries.idl
>
113 #ifndef __com_sun_star_beans_XPropertySet_idl__
114 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
117 #ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__
118 #include
<com
/sun
/star
/beans
/XTolerantMultiPropertySet.idl
>
121 #ifndef __com_sun_star_util_XModifyBroadcaster_idl__
122 #include
<com
/sun
/star
/util
/XModifyBroadcaster.idl
>
125 //=============================================================================
127 module com
{ module sun
{ module star
{ module sheet
{
129 //=============================================================================
131 /** represents a single addressable cell in a spreadsheet document.
133 published service SheetCell
135 //-------------------------------------------------------------------------
137 /** provides basic cell handling and contributes common cell
138 formatting properties.
140 service com
::sun
::star
::table
::Cell
;
142 //-------------------------------------------------------------------------
144 /** provides handling of formatted text cells.
146 service com
::sun
::star
::text
::Text
;
148 //-------------------------------------------------------------------------
150 /** contributes properties for character formatting of Western text.
152 service com
::sun
::star
::style
::CharacterProperties
;
154 //-------------------------------------------------------------------------
156 /** contributes properties for character formatting of Asian text.
158 service com
::sun
::star
::style
::CharacterPropertiesAsian
;
160 //-------------------------------------------------------------------------
162 /** contributes properties for character formatting of Complex text.
164 service com
::sun
::star
::style
::CharacterPropertiesComplex
;
166 //-------------------------------------------------------------------------
168 /** contributes properties for paragraph formatting.
170 service com
::sun
::star
::style
::ParagraphProperties
;
172 //-------------------------------------------------------------------------
174 /** contributes properties for paragraph formatting of Asian text.
176 [optional] service com
::sun
::star
::style
::ParagraphPropertiesAsian
;
178 //-------------------------------------------------------------------------
180 /** contributes properties for paragraph formatting of Complex text.
182 [optional] service com
::sun
::star
::style
::ParagraphPropertiesComplex
;
184 //-------------------------------------------------------------------------
186 /** provides interfaces to find cells with specific properties.
188 service com
::sun
::star
::sheet
::SheetRangesQuery
;
190 //=========================================================================
192 /** provides methods to lock and unlock the update between
193 <type scope="com::sun::star::table">XCell</type> and
194 <type scope="com::sun::star::text">XText</type>.
196 interface com
::sun
::star
::document
::XActionLockable
;
198 //-------------------------------------------------------------------------
200 /** provides "Find & Replace" functionality.
203 <member scope="com::sun::star::util">SearchDescriptor::SearchWords</member>
204 has a different meaning in spreadsheets: If set to <TRUE/>, the
205 spreadsheet searches for cells containing the serch text only.</p>
207 interface com
::sun
::star
::util
::XReplaceable
;
209 //-------------------------------------------------------------------------
211 /** provides modifying the cell indentation.
213 interface com
::sun
::star
::util
::XIndent
;
215 //-------------------------------------------------------------------------
217 /** provides access to the collections of columns and rows.
219 interface com
::sun
::star
::table
::XColumnRowRange
;
221 //-------------------------------------------------------------------------
223 /** provides access to the cell address of this cell.
225 interface com
::sun
::star
::sheet
::XCellAddressable
;
227 //-------------------------------------------------------------------------
229 /** provides access to the annotation attached to this cell.
231 interface com
::sun
::star
::sheet
::XSheetAnnotationAnchor
;
233 //-------------------------------------------------------------------------
235 /** provides access to the text fields used in this cell.
237 interface com
::sun
::star
::text
::XTextFieldsSupplier
;
239 //-------------------------------------------------------------------------
241 [optional] interface com
::sun
::star
::beans
::XTolerantMultiPropertySet
;
243 //-------------------------------------------------------------------------
250 [optional] interface com
::sun
::star
::util
::XModifyBroadcaster
;
252 //=========================================================================
254 /** contains the position of this cell in the sheet (in 1/100 mm).
256 <p>This property contains the absolute position in the whole
257 sheet, not the position in the visible area.</p>
259 [readonly, property
] com
::sun
::star
::awt
::Point Position
;
261 //-------------------------------------------------------------------------
263 /** contains the size of this cell (in 1/100 mm).
265 [readonly, property
] com
::sun
::star
::awt
::Size Size
;
267 //-------------------------------------------------------------------------
269 /** contains the formula string with localized function names.
271 <p>This property can also be used to set a new localized formula.</p>
273 [optional, property
] string FormulaLocal
;
275 //-------------------------------------------------------------------------
277 /** contains the result type of a formula.
279 @see com::sun::star::sheet::FormulaResult
281 [readonly, property
] long FormulaResultType
;
283 //-------------------------------------------------------------------------
285 /** contains the conditional formatting settings for this cell.
287 <p>After a conditional format has been changed it has to be
288 reinserted into the property set.</p>
290 @see com::sun::star::sheet::TableConditionalFormat
292 [property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
295 //-------------------------------------------------------------------------
297 /** contains the conditional formatting settings for this cell,
298 using localized formulas.
300 <p>After a conditional format has been changed it has to be
301 reinserted into the property set.</p>
303 @see com::sun::star::sheet::TableConditionalFormat
305 [optional, property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
306 ConditionalFormatLocal
;
308 //-------------------------------------------------------------------------
310 /** contains the data validation settings for this cell.
312 <p>After the data validation settings have been changed the
313 validation has to be reinserted into the property set.</p>
315 @see com::sun::star::sheet::TableValidation
317 [property
] com
::sun
::star
::beans
::XPropertySet Validation
;
319 //-------------------------------------------------------------------------
321 /** contains the data validation settings for this cell,
322 using localized formulas.
324 <p>After the data validation settings have been changed the
325 validation has to be reinserted into the property set.</p>
327 @see com::sun::star::sheet::TableValidation
329 [optional, property
] com
::sun
::star
::beans
::XPropertySet ValidationLocal
;
331 //-------------------------------------------------------------------------
333 /** Returns the absolute adress of the range as string, e.g. "$Sheet1.$B$2".
335 [optional, readonly, property
] string AbsoluteName
;
338 //=============================================================================