diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-01-23 01:45:21 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-01-23 19:04:52 +0100 |
commit | cceaece18a42405190941865908636522e0ee4cb (patch) | |
tree | c5b1d7a4755b6b259f0f55177a888bc055781df4 /offapi/com/sun/star/sheet | |
parent | 659109609ba2a7a827a4920c9456432b70cb001a (diff) |
offapi: Add properties FormulaResultType2 and CellContentType
Add two new properties to SheetCell.idl "FormulaResultType2" and
"CellContentType", because the "FormulaResultType" is returning the
wrong value (com::sun::star::table::CellContentType instead of
com::sun::star::sheet::FormulaResult). Also documeted the curiosity.
Change-Id: Icc6538e155ba27fb9d097d8790ac9b4b230c1446
Reviewed-on: https://gerrit.libreoffice.org/48367
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'offapi/com/sun/star/sheet')
-rw-r--r-- | offapi/com/sun/star/sheet/SheetCell.idl | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/offapi/com/sun/star/sheet/SheetCell.idl b/offapi/com/sun/star/sheet/SheetCell.idl index 77411c4b68f2..8d85585d0c74 100644 --- a/offapi/com/sun/star/sheet/SheetCell.idl +++ b/offapi/com/sun/star/sheet/SheetCell.idl @@ -43,6 +43,7 @@ #include <com/sun/star/awt/Point.idl> #include <com/sun/star/awt/Size.idl> +#include <com/sun/star/table/CellContentType.idl> #include <com/sun/star/sheet/XSheetConditionalEntries.idl> #include <com/sun/star/beans/XPropertySet.idl> #include <com/sun/star/beans/XTolerantMultiPropertySet.idl> @@ -179,9 +180,11 @@ published service SheetCell [optional, property] string FormulaLocal; - /** contains the result type of a formula. + /** contains the content type of the cell. - @see com::sun::star::sheet::FormulaResult + <p>This property returns not com::sun::star::sheet::FormulaResult + but instead com::sun::star::table::CellContentType. Use FormulaResult2 + if the correct property is needed.</p> */ [readonly, property] long FormulaResultType; @@ -233,6 +236,22 @@ published service SheetCell /** Returns the absolute address of the range as string, e.g. "$Sheet1.$B$2". */ [optional, readonly, property] string AbsoluteName; + + + /** contains the content type of the cell. + + @see com::sun::star::table::CellContentType + @since LibreOffice 6.1 + */ + [optional, readonly, property] com::sun::star::table::CellContentType CellContentType; + + + /** contains the result type of a formula. + + @see com::sun::star::sheet::FormulaResult + @since LibreOffice 6.1 + */ + [optional, readonly, property] long FormulaResultType2; }; |