Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <SHGFMLEX.H>
Link against: sheng.lib
This item is not part of the S60 5th Edition SDK

Class CShgFormulaTextLexer

Interface status: deprecated

class CShgFormulaTextLexer : public CBase;

Description

Breaks down a formula stored as text into formula tokens.

Derivation

Members

Defined in CShgFormulaTextLexer:

Inherited from CBase:


Construction and destruction


~CShgFormulaTextLexer()

Interface status: deprecated Inherited from: CShgFormulaTextLexer

IMPORT_C virtual ~CShgFormulaTextLexer();

Description

Destructor.


NewL(const CShgNameSet *,const CShgWorkBook *,const CShgFormulaViewer *)

Interface status: deprecated Inherited from: CShgFormulaTextLexer

IMPORT_C static 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(const TDesC &,const TCellRef &)

Interface status: deprecated Inherited from: CShgFormulaTextLexer

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

Description

Initialises the lexer with a specified formula string.

Parameters

const TDesC16 &aDes

Formula string to lex

const TCellRef &aCurrentCell

Position to use to resolve relative cell references


GetNextTokenL()

Interface status: deprecated Inherited from: CShgFormulaTextLexer

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()const

Interface status: deprecated Inherited from: CShgFormulaTextLexer

IMPORT_C const SLexToken& Token() const;

Description

Gets the current token.

Return value

const SLexToken &

Current token


UnGetToken(const SLexToken &)

Interface status: deprecated Inherited from: CShgFormulaTextLexer

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()const

Interface status: deprecated Inherited from: CShgFormulaTextLexer

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()

Interface status: deprecated Inherited from: CShgFormulaTextLexer

IMPORT_C TBool LexCellOrRange();

Description

Tests if a cell or range was lexed.

Return value

TBool

True if a range was lexed, false otherwise