Location:
SHGFMVWR.H
Link against: sheng.lib
class CShgFormulaViewer : public CBase;
Handles conversion of formula tokens (TFormulaToken) into localised strings suitable for display to users.
CBase
- Base class for all classes to be instantiated on the heap
CShgFormulaViewer
- Handles conversion of formula tokens (TFormulaToken) into localised strings suitable for display to users
Defined in CShgFormulaViewer
:
EFnDatabase
, EFnDateAndTime
, EFnError
, EFnFinancial
, EFnInformation
, EFnLogical
, EFnLookUp
, EFnMathematical
, EFnStatistical
, EFnText
, EFormulaEqualsSign
, FirstFunctionNo()
, FormulaEvaluator()
, FunctionName()
, FunctionType()
, GetTextFormulaL()
, GetTokenFormulaL()
, InitWithTextFormula()
, InitWithTokenFormula()
, LastFunctionNo()
, NewL()
, NoArguments()
, TFunctionType
, anonymous
, sFunction
, sSkipToken
, ~CShgFormulaViewer()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CShgFormulaViewer *NewL(const CShgNameSet *aNameSet, const CShgWorkBook *aWorkBook, CSheetEngine *aSheetEngine,
const TDesC &aResourceFile);
Allocates and constructs a new formula viewer.
|
|
IMPORT_C void InitWithTokenFormula(const TCellRef &aCell, const TDesC8 *aFormula);
Initialises the viewer with formula data.
!! this is very inefficient
!! unfortunately size of this is being used as a flag!!!
|
IMPORT_C void InitWithTextFormula(const TCellRef &aCell, const TDesC &aText);
Initialises the viewer with text data.
|
IMPORT_C const TPtrC GetTextFormulaL();
Gets a text representation of a formula.
The function converts formula data to text if necessary.
|
IMPORT_C const TPtrC8 GetTokenFormulaL(TShgError &aError);
Gets a token representation of a formula.
The function converts formula data to tokens if necessary.
|
|
inline CShgFormulaEvaluator *FormulaEvaluator() const;
Gets a formula evaluator object.
|
IMPORT_C TInt FirstFunctionNo() const;
Gets the first token (as ordered in TFormulaToken) that represents a function.
|
IMPORT_C TInt LastFunctionNo() const;
Gets the last token (as ordered in TFormulaToken) that represents a function.
|
IMPORT_C const TPtrC FunctionName(TFormulaToken aToken) const;
Gets a localised string for a specified formula token.
|
|
IMPORT_C TFunctionType FunctionType(TFormulaToken aToken) const;
Gets the type (financial, statistical, etc.) of a specified function.
|
|
IMPORT_C TInt NoArguments(TFormulaToken aToken) const;
Gets the number of arguments required for a specified function.
|
|
TFunctionType
Types of function.
|
const CShgFormulaEvaluator::TFunction sFunction;