1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
26 module com
{ module sun
{ module star
{ module sheet
{
29 /** represents a single addressable cell in a spreadsheet document.
31 published service SheetCell
34 /** provides basic cell handling and contributes common cell
35 formatting properties.
37 service com
::sun
::star
::table
::Cell
;
40 /** provides handling of formatted text cells.
42 service com
::sun
::star
::text
::Text
;
45 /** contributes properties for character formatting of Western text.
47 service com
::sun
::star
::style
::CharacterProperties
;
50 /** contributes properties for character formatting of Asian text.
52 service com
::sun
::star
::style
::CharacterPropertiesAsian
;
55 /** contributes properties for character formatting of Complex text.
57 service com
::sun
::star
::style
::CharacterPropertiesComplex
;
60 /** contributes properties for paragraph formatting.
62 service com
::sun
::star
::style
::ParagraphProperties
;
65 /** contributes properties for paragraph formatting of Asian text.
67 [optional] service com
::sun
::star
::style
::ParagraphPropertiesAsian
;
70 /** contributes properties for paragraph formatting of Complex text.
72 [optional] service com
::sun
::star
::style
::ParagraphPropertiesComplex
;
75 /** provides interfaces to find cells with specific properties.
77 service com
::sun
::star
::sheet
::SheetRangesQuery
;
80 /** provides methods to lock and unlock the update between
81 com::sun::star::table::XCell and
82 com::sun::star::text::XText.
84 interface com
::sun
::star
::document
::XActionLockable
;
87 /** provides "Find and Replace" functionality.
90 com::sun::star::util::SearchDescriptor::SearchWords
91 has a different meaning in spreadsheets: If set to `TRUE`, the
92 spreadsheet searches for cells containing the search text only.</p>
94 interface com
::sun
::star
::util
::XReplaceable
;
97 /** provides modifying the cell indentation.
99 interface com
::sun
::star
::util
::XIndent
;
102 /** provides access to the collections of columns and rows.
104 interface com
::sun
::star
::table
::XColumnRowRange
;
107 /** provides access to the cell address of this cell.
109 interface com
::sun
::star
::sheet
::XCellAddressable
;
112 /** provides access to the annotation attached to this cell.
114 interface com
::sun
::star
::sheet
::XSheetAnnotationAnchor
;
117 /** provides access to the text fields used in this cell.
119 <p>With com::sun::star::text::XTextFieldsSupplier::getTextFieldMasters
120 always returns void since the field master is not supported.</p>
122 interface com
::sun
::star
::text
::XTextFieldsSupplier
;
125 [optional] interface com
::sun
::star
::beans
::XTolerantMultiPropertySet
;
133 [optional] interface com
::sun
::star
::util
::XModifyBroadcaster
;
136 /** contains the position of this cell in the sheet (in 1/100 mm).
138 <p>This property contains the absolute position in the whole
139 sheet, not the position in the visible area.</p>
141 [readonly, property
] com
::sun
::star
::awt
::Point Position
;
144 /** contains the size of this cell (in 1/100 mm).
146 [readonly, property
] com
::sun
::star
::awt
::Size Size
;
149 /** contains the formula string with localized function names.
151 <p>This property can also be used to set a new localized formula.</p>
153 [optional, property
] string FormulaLocal
;
156 /** contains the content type of the cell.
158 <p>This property returns not com::sun::star::sheet::FormulaResult
159 but instead com::sun::star::table::CellContentType. Use FormulaResult2
160 if the correct property is needed.</p>
162 [readonly, property
] long FormulaResultType
;
165 /** contains the conditional formatting settings for this cell.
167 <p>After a conditional format has been changed it has to be
168 reinserted into the property set.</p>
170 @see com::sun::star::sheet::TableConditionalFormat
172 [property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
176 /** contains the conditional formatting settings for this cell,
177 using localized formulas.
179 <p>After a conditional format has been changed it has to be
180 reinserted into the property set.</p>
182 @see com::sun::star::sheet::TableConditionalFormat
184 [optional, property
] com
::sun
::star
::sheet
::XSheetConditionalEntries
185 ConditionalFormatLocal
;
188 /** contains the data validation settings for this cell.
190 <p>After the data validation settings have been changed the
191 validation has to be reinserted into the property set.</p>
193 @see com::sun::star::sheet::TableValidation
195 [property
] com
::sun
::star
::beans
::XPropertySet Validation
;
198 /** contains the data validation settings for this cell,
199 using localized formulas.
201 <p>After the data validation settings have been changed the
202 validation has to be reinserted into the property set.</p>
204 @see com::sun::star::sheet::TableValidation
206 [optional, property
] com
::sun
::star
::beans
::XPropertySet ValidationLocal
;
209 /** Returns the absolute address of the range as string, e.g. "$Sheet1.$B$2".
211 [optional, readonly, property
] string AbsoluteName
;
214 /** contains the content type of the cell.
216 @see com::sun::star::table::CellContentType
217 @since LibreOffice 6.1
219 [optional, readonly, property
] com
::sun
::star
::table
::CellContentType CellContentType
;
222 /** contains the result type of a formula.
224 @see com::sun::star::sheet::FormulaResult
225 @since LibreOffice 6.1
227 [optional, readonly, property
] long FormulaResultType2
;
233 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */