Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



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

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


TShgCell()

IMPORT_C TShgCell();

Description

Default constructor.


TShgCell()

IMPORT_C TShgCell(const TCellRef &aCellRef);

Description

Constructor, specifying a cell reference.

Parameters

const TCellRef &aCellRef

Cell reference

[Top]


Member functions


Coord()

IMPORT_C TCellRef Coord() const;

Description

Gets the cell reference.

Return value

TCellRef

Cell reference


Type()

IMPORT_C TType Type() const;

Description

Gets the cell type.

Return value

TType

Cell type


SetInt()

IMPORT_C void SetInt(TInt32 aInt);

Description

Sets the cell contents to an integer.

Parameters

TInt32 aInt

New cell value


Int()

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

TInt32

Cell value


SetBool()

IMPORT_C void SetBool(TBool aBool);

Description

Sets the cell contents to a boolean.

Parameters

TBool aBool

New cell value


Bool()

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

TBool

Cell value


SetErrorType()

IMPORT_C void SetErrorType(TErrorType aErrorType);

Description

Sets the cell contents to an error.

Parameters

TErrorType aErrorType

New cell value


ErrorType()

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

TErrorType

Cell value


SetReal()

IMPORT_C void SetReal(const TReal64 &aReal);

Description

Sets the cell contents to a real number.

Parameters

const TReal64 &aReal

New cell value


Real()

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

TReal64

Cell value


SetTextTakingOwnership()

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


Text()

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

const TDesC &

Cell value


SetFormulaL()

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


CloseFormula()

IMPORT_C void CloseFormula(CShgFormulaSet *aFormulaSet);

Description

Parameters

CShgFormulaSet *aFormulaSet


Formula()

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

const TDesC8 *

Cell value


Key()

inline TUint32 Key() const;

Description

Return value

TUint32


Row()

static inline TUint32 Row(TUint32 aKey);

Description

Parameters

TUint32 aKey

Return value

TUint32


CoordBitsOfKey()

static inline TUint32 CoordBitsOfKey();

Description

Return value

TUint32


MaximumKey()

static inline TUint32 MaximumKey();

Description

Return value

TUint32


MinimumKeyFromCoord()

static inline TUint32 MinimumKeyFromCoord(const TCellRef &aCellRef);

Description

Parameters

const TCellRef &aCellRef

Return value

TUint32


MinimumKeyFromCoord()

static inline TUint32 MinimumKeyFromCoord(TInt aRow, TInt aCol);

Description

Parameters

TInt aRow

TInt aCol

Return value

TUint32


MaximumKeyFromCoord()

static inline TUint32 MaximumKeyFromCoord(const TCellRef &aCellRef);

Description

Parameters

const TCellRef &aCellRef

Return value

TUint32


MaximumKeyFromCoord()

static inline TUint32 MaximumKeyFromCoord(TInt aRow, TInt aCol);

Description

Parameters

TInt aRow

TInt aCol

Return value

TUint32


ReturnCoord()

inline TCellRef ReturnCoord() const;

Description

Return value

TCellRef


ReturnType()

inline TType ReturnType() const;

Description

Return value

TType


IsShadow()

inline TBool IsShadow() const;

Description

Return value

TBool


IsShadowOf()

inline TBool IsShadowOf(const TShgCell &aRealCell) const;

Description

Parameters

const TShgCell &aRealCell

Return value

TBool


IsTemporarilyReal()

inline TBool IsTemporarilyReal() const;

Description

Return value

TBool


MakeShadow()

inline void MakeShadow();

Description


MakeTemporarilyReal()

inline void MakeTemporarilyReal();

Description


MakeProperlyReal()

inline void MakeProperlyReal();

Description

[Top]


Member enumerations


Enum TErrorType

TErrorType

Description

Defines the error types that a cell can have.

ENoError

No error.

EErrNull

Null intersection of ranges.

EErrDivByZero

Formula has tried to divide by zero.

EErrValue

An argument or operand is of the wrong type.

EErrRef

A cell is referred to that is not valid.

EErrName

An unrecognised name is used.

EErrNum

Numeric error, such as under, overflow, SQRT(-1).

EErrNotAvailable

No data available.


Enum TType

TType

Description

Defines cell types.

EBlank

Blank cell.

EInt

Integer cell.

EBool

Boolean cell.

EError

Error cell.

EReal

Real number cell.

EText

Text cell.