Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / table / XCell.idl
blob7b57adc1632761a55fdd6b268aff5177ff04d46f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XCell.idl,v $
10 * $Revision: 1.10 $
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_table_XCell_idl__
32 #define __com_sun_star_table_XCell_idl__
34 #ifndef __com_sun_star_uno_XInterface_idl__
35 #include <com/sun/star/uno/XInterface.idl>
36 #endif
38 #ifndef __com_sun_star_table_CellContentType_idl__
39 #include <com/sun/star/table/CellContentType.idl>
40 #endif
42 //=============================================================================
44 module com { module sun { module star { module table {
46 //=============================================================================
48 /** provides methods to access the contents of a cell in a table.
50 @see com::sun::star::table::Cell
52 published interface XCell: com::sun::star::uno::XInterface
54 //-------------------------------------------------------------------------
56 /** returns the formula string of a cell.
58 <p>Even if the cell does not contain a formula, an assignment of
59 this attribute's value to another cell's formula attribute would
60 create the same cell content. This is because this attribute contains
61 the original text value of a string cell. The value of a
62 <em>value cell</em> will be formatted using the number format's
63 default format or the formula string, including "=", of a formula
64 cell.</p>
66 string getFormula();
68 //-------------------------------------------------------------------------
70 /** sets a formula into the cell.
72 <p>When assigned, the string will be interpreted and a value, text
73 or formula cell is created, depending on the text and the number
74 format.</p>
76 void setFormula( [in] string aFormula );
78 //-------------------------------------------------------------------------
80 /** returns the floating point value of the cell.
82 <p>For a <em>value cell</em> the value is returnd, for a
83 <em>string cell</em> zero is returned and for a <em>formula cell</em>
84 the result value of a formula is returned.</p>
86 double getValue();
88 //-------------------------------------------------------------------------
90 /** sets a floating point value into the cell.
92 <p>After a call to this method the type of the cell is
93 <member>CellContentType::VALUE</member>.</p>
95 void setValue( [in] double nValue );
97 //-------------------------------------------------------------------------
99 /** returns the type of the cell.
101 com::sun::star::table::CellContentType getType();
103 //-------------------------------------------------------------------------
105 /** returns the error value of the cell.
107 <P>If the cell does not contain a formula, the error is always
108 zero.</p>
110 long getError();
114 //=============================================================================
116 }; }; }; };
118 #endif