1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef __com_sun_star_sheet_SheetCell_idl__
29 #define __com_sun_star_sheet_SheetCell_idl__
32 #ifndef __com_sun_star_table_Cell_idl__
33 #include
<com
/sun
/star
/table
/Cell.idl
>
36 #ifndef __com_sun_star_text_Text_idl__
37 #include
<com
/sun
/star
/text
/Text.idl
>
40 #ifndef __com_sun_star_style_CharacterProperties_idl__
41 #include
<com
/sun
/star
/style
/CharacterProperties.idl
>
44 #ifndef __com_sun_star_style_CharacterPropertiesAsian_idl__
45 #include
<com
/sun
/star
/style
/CharacterPropertiesAsian.idl
>
48 #ifndef __com_sun_star_style_CharacterPropertiesComplex_idl__
49 #include
<com
/sun
/star
/style
/CharacterPropertiesComplex.idl
>
52 #ifndef __com_sun_star_style_ParagraphProperties_idl__
53 #include
<com
/sun
/star
/style
/ParagraphProperties.idl
>
56 #ifndef __com_sun_star_style_ParagraphPropertiesAsian_idl__
57 #include
<com
/sun
/star
/style
/ParagraphPropertiesAsian.idl
>
60 #ifndef __com_sun_star_style_ParagraphPropertiesComplex_idl__
61 #include
<com
/sun
/star
/style
/ParagraphPropertiesComplex.idl
>
64 #ifndef __com_sun_star_sheet_SheetRangesQuery_idl__
65 #include
<com
/sun
/star
/sheet
/SheetRangesQuery.idl
>
69 #ifndef __com_sun_star_document_XActionLockable_idl__
70 #include
<com
/sun
/star
/document
/XActionLockable.idl
>
73 #ifndef __com_sun_star_util_XReplaceable_idl__
74 #include
<com
/sun
/star
/util
/XReplaceable.idl
>
77 #ifndef __com_sun_star_util_XIndent_idl__
78 #include
<com
/sun
/star
/util
/XIndent.idl
>
81 #ifndef __com_sun_star_table_XColumnRowRange_idl__
82 #include
<com
/sun
/star
/table
/XColumnRowRange.idl
>
85 #ifndef __com_sun_star_sheet_XCellAddressable_idl__
86 #include
<com
/sun
/star
/sheet
/XCellAddressable.idl
>
89 #ifndef __com_sun_star_sheet_XSheetAnnotationAnchor_idl__
90 #include
<com
/sun
/star
/sheet
/XSheetAnnotationAnchor.idl
>
93 #ifndef __com_sun_star_text_XTextFieldsSupplier_idl__
94 #include
<com
/sun
/star
/text
/XTextFieldsSupplier.idl
>
98 #ifndef __com_sun_star_awt_Point_idl__
99 #include
<com
/sun
/star
/awt
/Point.idl
>
102 #ifndef __com_sun_star_awt_Size_idl__
103 #include
<com
/sun
/star
/awt
/Size.idl
>
106 #ifndef __com_sun_star_sheet_XSheetConditionalEntries_idl__
107 #include
<com
/sun
/star
/sheet
/XSheetConditionalEntries.idl
>
110 #ifndef __com_sun_star_beans_XPropertySet_idl__
111 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
114 #ifndef __com_sun_star_beans_XTolerantMultiPropertySet_idl__
115 #include
<com
/sun
/star
/beans
/XTolerantMultiPropertySet.idl
>
118 #ifndef __com_sun_star_util_XModifyBroadcaster_idl__
119 #include
<com
/sun
/star
/util
/XModifyBroadcaster.idl
>
122 //=============================================================================
124 module com
{ module sun
{ module star
{ module sheet
{
126 //=============================================================================
128 /** represents a single addressable cell in a spreadsheet document.
130 published service SheetCell
132 //-------------------------------------------------------------------------
134 /** provides basic cell handling and contributes common cell
135 formatting properties.
137 service com
::sun
::star
::table
::Cell
;
139 //-------------------------------------------------------------------------
141 /** provides handling of formatted text cells.
143 service com
::sun
::star
::text
::Text
;
145 //-------------------------------------------------------------------------
147 /** contributes properties for character formatting of Western text.
149 service com
::sun
::star
::style
::CharacterProperties
;
151 //-------------------------------------------------------------------------
153 /** contributes properties for character formatting of Asian text.
155 service com
::sun
::star
::style
::CharacterPropertiesAsian
;
157 //-------------------------------------------------------------------------
159 /** contributes properties for character formatting of Complex text.
161 service com
::sun
::star
::style
::CharacterPropertiesComplex
;
163 //-------------------------------------------------------------------------
165 /** contributes properties for paragraph formatting.
167 service com
::sun
::star
::style
::ParagraphProperties
;
169 //-------------------------------------------------------------------------
171 /** contributes properties for paragraph formatting of Asian text.
173 [optional] service com
::sun
::star
::style
::ParagraphPropertiesAsian
;
175 //-------------------------------------------------------------------------
177 /** contributes properties for paragraph formatting of Complex text.
179 [optional] service com
::sun
::star
::style
::ParagraphPropertiesComplex
;
181 //-------------------------------------------------------------------------
183 /** provides interfaces to find cells with specific properties.
185 service com
::sun
::star
::sheet
::SheetRangesQuery
;
187 //=========================================================================
189 /** provides methods to lock and unlock the update between
190 <type scope="com::sun::star::table">XCell</type> and
191 <type scope="com::sun::star::text">XText</type>.
193 interface com
::sun
::star
::document
::XActionLockable
;
195 //-------------------------------------------------------------------------
197 /** provides "Find & Replace" functionality.
200 <member scope="com::sun::star::util">SearchDescriptor::SearchWords</member>
201 has a different meaning in spreadsheets: If set to <TRUE/>, the
202 spreadsheet searches for cells containing the serch text only.</p>
204 interface com
::sun
::star
::util
::XReplaceable
;
206 //-------------------------------------------------------------------------
208 /** provides modifying the cell indentation.
210 interface com
::sun
::star
::util
::XIndent
;
212 //-------------------------------------------------------------------------
214 /** provides access to the collections of columns and rows.
216 interface com
::sun
::star
::table
::XColumnRowRange
;
218 //-------------------------------------------------------------------------
220 /** provides access to the cell address of this cell.
222 interface com
::sun
::star
::sheet
::XCellAddressable
;
224 //-------------------------------------------------------------------------
226 /** provides access to the annotation attached to this cell.
228 interface com
::sun
::star
::sheet
::XSheetAnnotationAnchor
;
230 //-------------------------------------------------------------------------
232 /** provides access to the text fields used in this cell.
234 interface com
::sun
::star
::text
::XTextFieldsSupplier
;
236 //-------------------------------------------------------------------------
238 [optional] interface com
::sun
::star
::beans
::XTolerantMultiPropertySet
;
240 //-------------------------------------------------------------------------
247 [optional] interface com
::sun
::star
::util
::XModifyBroadcaster
;
249 //=========================================================================
251 /** contains the position of this cell in the sheet (in 1/100 mm).
253 <p>This property contains the absolute position in the whole
254 sheet, not the position in the visible area.</p>
256 [readonly, property
] com
::sun
::star
::awt
::Point Position
;
258 //-------------------------------------------------------------------------
260 /** contains the size of this cell (in 1/100 mm).
262 [readonly, property
] com
::sun
::star
::awt
::Size Size
;
264 //-------------------------------------------------------------------------
266 /** contains the formula string with localized function names.
268 <p>This property can also be used to set a new localized formula.</p>
270 [optional, property
] string FormulaLocal
;
272 //-------------------------------------------------------------------------
274 /** contains the result type of a formula.
276 @see com::sun::star::sheet::FormulaResult
278 [readonly, property
] long FormulaResultType
;
280 //-------------------------------------------------------------------------
282 /** contains the conditional formatting settings for this cell.
284 <p>After a conditional format has been changed it has to be
285 reinserted into the property set.</p>
287 @see com::sun::star::sheet::TableConditionalFormat
289 [property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
292 //-------------------------------------------------------------------------
294 /** contains the conditional formatting settings for this cell,
295 using localized formulas.
297 <p>After a conditional format has been changed it has to be
298 reinserted into the property set.</p>
300 @see com::sun::star::sheet::TableConditionalFormat
302 [optional, property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
303 ConditionalFormatLocal
;
305 //-------------------------------------------------------------------------
307 /** contains the data validation settings for this cell.
309 <p>After the data validation settings have been changed the
310 validation has to be reinserted into the property set.</p>
312 @see com::sun::star::sheet::TableValidation
314 [property
] com
::sun
::star
::beans
::XPropertySet Validation
;
316 //-------------------------------------------------------------------------
318 /** contains the data validation settings for this cell,
319 using localized formulas.
321 <p>After the data validation settings have been changed the
322 validation has to be reinserted into the property set.</p>
324 @see com::sun::star::sheet::TableValidation
326 [optional, property
] com
::sun
::star
::beans
::XPropertySet ValidationLocal
;
328 //-------------------------------------------------------------------------
330 /** Returns the absolute adress of the range as string, e.g. "$Sheet1.$B$2".
332 [optional, readonly, property
] string AbsoluteName
;
335 //=============================================================================