Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / sheet / SheetCell.idl
blob77411c4b68f243006f71ba5e9f0034eeb9a06490
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_sheet_SheetCell_idl__
21 #define __com_sun_star_sheet_SheetCell_idl__
24 #include <com/sun/star/table/Cell.idl>
25 #include <com/sun/star/text/Text.idl>
26 #include <com/sun/star/style/CharacterProperties.idl>
27 #include <com/sun/star/style/CharacterPropertiesAsian.idl>
28 #include <com/sun/star/style/CharacterPropertiesComplex.idl>
29 #include <com/sun/star/style/ParagraphProperties.idl>
30 #include <com/sun/star/style/ParagraphPropertiesAsian.idl>
31 #include <com/sun/star/style/ParagraphPropertiesComplex.idl>
32 #include <com/sun/star/sheet/SheetRangesQuery.idl>
35 #include <com/sun/star/document/XActionLockable.idl>
36 #include <com/sun/star/util/XReplaceable.idl>
37 #include <com/sun/star/util/XIndent.idl>
38 #include <com/sun/star/table/XColumnRowRange.idl>
39 #include <com/sun/star/sheet/XCellAddressable.idl>
40 #include <com/sun/star/sheet/XSheetAnnotationAnchor.idl>
41 #include <com/sun/star/text/XTextFieldsSupplier.idl>
44 #include <com/sun/star/awt/Point.idl>
45 #include <com/sun/star/awt/Size.idl>
46 #include <com/sun/star/sheet/XSheetConditionalEntries.idl>
47 #include <com/sun/star/beans/XPropertySet.idl>
48 #include <com/sun/star/beans/XTolerantMultiPropertySet.idl>
49 #include <com/sun/star/util/XModifyBroadcaster.idl>
52 module com { module sun { module star { module sheet {
55 /** represents a single addressable cell in a spreadsheet document.
57 published service SheetCell
60 /** provides basic cell handling and contributes common cell
61 formatting properties.
63 service com::sun::star::table::Cell;
66 /** provides handling of formatted text cells.
68 service com::sun::star::text::Text;
71 /** contributes properties for character formatting of Western text.
73 service com::sun::star::style::CharacterProperties;
76 /** contributes properties for character formatting of Asian text.
78 service com::sun::star::style::CharacterPropertiesAsian;
81 /** contributes properties for character formatting of Complex text.
83 service com::sun::star::style::CharacterPropertiesComplex;
86 /** contributes properties for paragraph formatting.
88 service com::sun::star::style::ParagraphProperties;
91 /** contributes properties for paragraph formatting of Asian text.
93 [optional] service com::sun::star::style::ParagraphPropertiesAsian;
96 /** contributes properties for paragraph formatting of Complex text.
98 [optional] service com::sun::star::style::ParagraphPropertiesComplex;
101 /** provides interfaces to find cells with specific properties.
103 service com::sun::star::sheet::SheetRangesQuery;
106 /** provides methods to lock and unlock the update between
107 com::sun::star::table::XCell and
108 com::sun::star::text::XText.
110 interface com::sun::star::document::XActionLockable;
113 /** provides "Find & Replace" functionality.
115 <p>The property
116 com::sun::star::util::SearchDescriptor::SearchWords
117 has a different meaning in spreadsheets: If set to `TRUE`, the
118 spreadsheet searches for cells containing the search text only.</p>
120 interface com::sun::star::util::XReplaceable;
123 /** provides modifying the cell indentation.
125 interface com::sun::star::util::XIndent;
128 /** provides access to the collections of columns and rows.
130 interface com::sun::star::table::XColumnRowRange;
133 /** provides access to the cell address of this cell.
135 interface com::sun::star::sheet::XCellAddressable;
138 /** provides access to the annotation attached to this cell.
140 interface com::sun::star::sheet::XSheetAnnotationAnchor;
143 /** provides access to the text fields used in this cell.
145 <p>With com::sun::star::text::XTextFieldsSupplier::getTextFieldMasters
146 always returns void since the field master is not supported.</p>
148 interface com::sun::star::text::XTextFieldsSupplier;
151 [optional] interface com::sun::star::beans::XTolerantMultiPropertySet;
156 @since OOo 2.0
159 [optional] interface com::sun::star::util::XModifyBroadcaster;
162 /** contains the position of this cell in the sheet (in 1/100 mm).
164 <p>This property contains the absolute position in the whole
165 sheet, not the position in the visible area.</p>
167 [readonly, property] com::sun::star::awt::Point Position;
170 /** contains the size of this cell (in 1/100 mm).
172 [readonly, property] com::sun::star::awt::Size Size;
175 /** contains the formula string with localized function names.
177 <p>This property can also be used to set a new localized formula.</p>
179 [optional, property] string FormulaLocal;
182 /** contains the result type of a formula.
184 @see com::sun::star::sheet::FormulaResult
186 [readonly, property] long FormulaResultType;
189 /** contains the conditional formatting settings for this cell.
191 <p>After a conditional format has been changed it has to be
192 reinserted into the property set.</p>
194 @see com::sun::star::sheet::TableConditionalFormat
196 [property] com::sun::star::sheet::XSheetConditionalEntries
197 ConditionalFormat;
200 /** contains the conditional formatting settings for this cell,
201 using localized formulas.
203 <p>After a conditional format has been changed it has to be
204 reinserted into the property set.</p>
206 @see com::sun::star::sheet::TableConditionalFormat
208 [optional, property] com::sun::star::sheet::XSheetConditionalEntries
209 ConditionalFormatLocal;
212 /** contains the data validation settings for this cell.
214 <p>After the data validation settings have been changed the
215 validation has to be reinserted into the property set.</p>
217 @see com::sun::star::sheet::TableValidation
219 [property] com::sun::star::beans::XPropertySet Validation;
222 /** contains the data validation settings for this cell,
223 using localized formulas.
225 <p>After the data validation settings have been changed the
226 validation has to be reinserted into the property set.</p>
228 @see com::sun::star::sheet::TableValidation
230 [optional, property] com::sun::star::beans::XPropertySet ValidationLocal;
233 /** Returns the absolute address of the range as string, e.g. "$Sheet1.$B$2".
235 [optional, readonly, property] string AbsoluteName;
239 }; }; }; };
241 #endif
243 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */