»
Symbian OS v9.3 »
Symbian OS reference »
C++ component reference »
Application Engines SHENG »
TShgCell
Location:
SHGAPI.H
Link against: sheng.lib
This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.
class TShgCell;
Description
A spreadsheet engine cell.
Members
Defined in TShgCell:
Bool(), CloseFormula(), Coord(), CoordBitsOfKey(), EBlank, EBool, EErrDivByZero, EErrName, EErrNotAvailable, EErrNull, EErrNum, EErrRef, EErrValue, EError, EInt, ENoError, EReal, EText, ErrorType(), Formula(), Int(), IsShadow(), IsShadowOf(), IsTemporarilyReal(), Key(), MakeProperlyReal(), MakeShadow(), MakeTemporarilyReal(), MaximumKey(), MaximumKeyFromCoord(), MaximumKeyFromCoord(), MinimumKeyFromCoord(), MinimumKeyFromCoord(), Real(), ReturnCoord(), ReturnType(), Row(), SetBool(), SetErrorType(), SetFormulaL(), SetFormulaTakingOwnershipL(), SetInt(), SetReal(), SetTextTakingOwnership(), TErrorType, TShgCell(), TShgCell(), TType, Text(), Type()
Construction and destruction
IMPORT_C TShgCell();
Description
Default constructor.
IMPORT_C TShgCell(const TCellRef &aCellRef);
Description
Constructor, specifying a cell reference.
Parameters
IMPORT_C TCellRef Coord() const;
Description
Gets the cell reference.
Return value
IMPORT_C TType Type() const;
Description
Gets the cell type.
Return value
IMPORT_C void SetInt(TInt32 aInt);
Description
Sets the cell contents to an integer.
Parameters
IMPORT_C TInt32 Int() const;
Description
Gets the value of an integer type cell.
The function panics if the cell is of another type.
Return value
IMPORT_C void SetBool(TBool aBool);
Description
Sets the cell contents to a boolean.
Parameters
TBool aBool |
New cell value
|
|
IMPORT_C TBool Bool() const;
Description
Gets the value of a boolean type cell.
The function panics if the cell is of another type.
Return value
IMPORT_C void SetErrorType(TErrorType aErrorType);
Description
Sets the cell contents to an error.
Parameters
IMPORT_C TErrorType ErrorType() const;
Description
Gets the value of an error type cell.
The function panics if the cell is of another type.
Return value
IMPORT_C void SetReal(const TReal64 &aReal);
Description
Sets the cell contents to a real number.
Parameters
const TReal64 &aReal |
New cell value
|
|
IMPORT_C TReal64 Real() const;
Description
Gets the value of a real number type cell.
The function panics if the cell is of another type.
Return value
IMPORT_C void SetTextTakingOwnership(HBufC *aText);
Description
Sets the cell contents to a string.
The cell takes ownership of the passed string.
Parameters
HBufC *aText |
New cell value
|
|
IMPORT_C const TDesC &Text() const;
Description
Gets the value of a text type cell.
The function panics if the cell is of another type.
Return value
IMPORT_C void SetFormulaL(CShgFormulaSet *aFormulaSet, const TDesC8 &aTokenFormula);
Description
Parameters
CShgFormulaSet *aFormulaSet |
|
const TDesC8 &aTokenFormula |
|
|
SetFormulaTakingOwnershipL()
IMPORT_C void SetFormulaTakingOwnershipL(CShgFormulaSet *aFormulaSet, TDesC8 *aTokenFormula);
Description
Parameters
CShgFormulaSet *aFormulaSet |
|
TDesC8 *aTokenFormula |
|
|
IMPORT_C void CloseFormula(CShgFormulaSet *aFormulaSet);
Description
Parameters
CShgFormulaSet *aFormulaSet |
|
|
IMPORT_C const TDesC8 *Formula() const;
Description
Gets the value of a formula type cell.
The function panics if the cell is of another type.
Return value
inline TUint32 Key() const;
Description
Return value
static inline TUint32 Row(TUint32 aKey);
Description
Parameters
Return value
static inline TUint32 CoordBitsOfKey();
Description
Return value
static inline TUint32 MaximumKey();
Description
Return value
static inline TUint32 MinimumKeyFromCoord(const TCellRef &aCellRef);
Description
Parameters
Return value
static inline TUint32 MinimumKeyFromCoord(TInt aRow, TInt aCol);
Description
Parameters
Return value
static inline TUint32 MaximumKeyFromCoord(const TCellRef &aCellRef);
Description
Parameters
Return value
static inline TUint32 MaximumKeyFromCoord(TInt aRow, TInt aCol);
Description
Parameters
Return value
inline TCellRef ReturnCoord() const;
Description
Return value
inline TType ReturnType() const;
Description
Return value
inline TBool IsShadow() const;
Description
Return value
inline TBool IsShadowOf(const TShgCell &aRealCell) const;
Description
Parameters
Return value
inline TBool IsTemporarilyReal() const;
Description
Return value
inline void MakeShadow();
Description
inline void MakeTemporarilyReal();
Description
inline void MakeProperlyReal();
Description
TErrorType
Description
Defines the error types that a cell can have.
TType
Description
Defines cell types.