Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: SHGFMLEX.H
Link against: sheng.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class CShgFormulaTextLexer

class CShgFormulaTextLexer : public CBase;

Description

Breaks down a formula stored as text into formula tokens.

Derivation

Members

Defined in CShgFormulaTextLexer:
GetNextTokenL(), LexCellOrRange(), NewL(), Offset(), Start(), Token(), UnGetToken(), ~CShgFormulaTextLexer()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CShgFormulaTextLexer()

virtual IMPORT_C ~CShgFormulaTextLexer();

Description

Destructor.


NewL()

static IMPORT_C CShgFormulaTextLexer *NewL(const CShgNameSet *aNameSet, const CShgWorkBook *aWorkBook, const CShgFormulaViewer *aFormulaViewer);

Description

Allocates and constructs a formula lexer.

Parameters

const CShgNameSet *aNameSet

Name set to use

const CShgWorkBook *aWorkBook

Workbook to use

const CShgFormulaViewer *aFormulaViewer

Formula viewer to use

Return value

CShgFormulaTextLexer *

New formula viewer object

[Top]


Member functions


Start()

IMPORT_C void Start(const TDesC &aDes, const TCellRef &aCurrentCell);

Description

Initialises the lexer with a specified formula string.

Parameters

const TDesC &aDes

Formula string to lex

const TCellRef &aCurrentCell

Position to use to resolve relative cell references


GetNextTokenL()

IMPORT_C TBool GetNextTokenL();

Description

Advances to the next token.

Return value

TBool

True if the lexer has found a legal token. False if no legal token was found or the end of the string was reached


Token()

IMPORT_C const SLexToken &Token() const;

Description

Gets the current token.

Return value

const SLexToken &

Current token


UnGetToken()

IMPORT_C void UnGetToken(const SLexToken &aToken);

Description

Sets the current token type to ETokDmEOL.

Parameters

const SLexToken &aToken

Specifies the type to replace the current token type


Offset()

IMPORT_C TInt Offset() const;

Description

Gets the offset of the next character position from the start of the string.

Return value

TInt

Offset


LexCellOrRange()

IMPORT_C TBool LexCellOrRange();

Description

Tests if a cell or range was lexed.

Return value

TBool

True if a range was lexed, false otherwise