#include <SHGAPI.H>
Link against:
sheng.lib
This item is not part of the S60 5th Edition SDK
Interface status: |
deprecated |
|
class CSheetEngine : public CBase;
Description
Spreadsheet application engine.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CSheetEngine
- Spreadsheet application engine.
Members
Defined in CSheetEngine
:
CSheetEngine()
Default constructor.
Compress()
Attempts to compress all data storage.
ConstructL()
Second-phase constructor.
ConstructL(CShgCellAdditionalData *)
Second-phase constructor, specifying a resource file.
ConstructL(CShgCellAdditionalData *,const TDesC &)
Second-phase constructor, specifying additional cell formatting data and a resou...
ConstructL(const TDesC &)
Second-phase constructor, specifying a resource file.
CreateCellFromTextL(TShgCell &,const TDesC &,const CShgWorkSheet *)
Initialises a cell with content specified in a descriptor.
CurrentWorkSheet()const
Gets the engine's current worksheet.
DisableUndoAndRedo()
Sets the engine to not provide support for undoing and redoing operations.
EForceText
ERedoDataAvailable
EUndoDataAvailable
EndEditOperationL(TShgError)
Marks the end of an edit operation.
ExistsCircularDependency()const
Tests if circular dependency exists between cells.
FormulaViewer()const
Gets the engine's formula viewer.
GetAnyCircularDependency(TBool &,TInt &,TCellRef &)const
Finds a cell causing a circular dependency.
HasChanged()const
Tests if the engine has performed updates that the client (e.g. UI) may need to ...
IsRedoAvailable()const
Tests if the engine supports redo.
IsUndoAvailable()const
Tests if the engine supports undo.
LocaleHasChanged()
Informs the engine that the system locale has changed.
MarkUnchanged()
Reset the engine's changed flag.
NameSet()const
Gets the engine's name set.
NewEmptyL(const CSheetEngine *)
Allocates and constructs a new spreadsheet engine object, specifying an existing...
NewL()
Allocates and constructs a new spreadsheet engine object.
NewL(CShgCellAdditionalData *)
Allocates and constructs a new spreadsheet engine object, specifying additional ...
NewL(CShgCellAdditionalData *,const TDesC &)
Allocates and constructs a new spreadsheet engine object, specifying additional ...
NewL(const TDesC &)
Allocates and constructs a new spreadsheet engine object, specifying a resource ...
NewLC()
Allocates and constructs a new spreadsheet engine object, leaving the object on ...
RecalculateL()
Recalculates the spreadsheet.
RecalculationInProgress()const
Tests if a background recalculation is in progress.
RecalculationNeeded()const
Tests if the spreadsheet needs recalculating.
RecalculationToBeDoneAutomatically()const
Tests if the engine automatically recalculates the spreadsheet when required.
RecalculationToBeDoneInBackground()const
Tests if the engine recalculates the spreadsheet in the background, as a low pri...
RedoOperationL()
Redoes the last edit operation.
Reset()
Resets the engine to default values.
RestoreL(const CStreamStore &,TStreamId)
Restores the engine.
SetCallBackAPI(MShgCallBackAPI *)
Sets a callback object, so that the engine can inform the client of events.
SetCurrentWorkSheet(const TDesC &)
Sets the engine's current worksheet.
SetRecalculationToBeDoneAutomatically(TBool)
Sets whether the engine should automatically recalculate the spreadsheet when re...
SetRecalculationToBeDoneInBackgroundL(TBool)
Sets whether the engine should recalculate the spreadsheet in the background, as...
SetTemplateAdditionalDataL(CShgCellAdditionalData *)
Sets default additional cell formatting data.
ShgCellAsText(TDes &,const TShgCell &)const
Gets the cell contents as a descriptor.
ShgCellAsText(TDes &,const TShgCell &,TInt)const
Gets the cell contents as a descriptor, specifying the cell's work sheet.
StartEditOperation()
Marks the start of an edit operation.
StoreL(CStreamStore &)const
Stores the engine.
SyntaxErrorPos()const
Gets the position where a formula syntax error has been detected.
TCleanupStackableRollBack
TemplateAdditionalData()const
Gets default additional cell formatting data.
UndoOperationL()
Undoes the last edit operation.
WorkBook()const
Gets the engine's workbook.
anonymous
anonymous
~CSheetEngine()
Destructor.
Inherited from CBase
:
Construction and destruction
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C virtual ~CSheetEngine();
Description
Destructor.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewL();
Description
Allocates and constructs a new spreadsheet engine object.
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewLC();
Description
Allocates and constructs a new spreadsheet engine object, leaving the object on the cleanup stack.
Return value
NewL(CShgCellAdditionalData *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewL(CShgCellAdditionalData *aAdditionalData);
Description
Allocates and constructs a new spreadsheet engine object, specifying additional cell formatting data.
Parameters
Return value
NewL(CShgCellAdditionalData *,const TDesC &)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewL(CShgCellAdditionalData *aAdditionalData, const TDesC &aResourceFileName);
Description
Allocates and constructs a new spreadsheet engine object, specifying additional cell formatting data and a resource file.
The engine's resource file specifies text for formulae and errors.
Parameters
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewL(const TDesC &aResourceFileName);
Description
Allocates and constructs a new spreadsheet engine object, specifying a resource file.
The engine's resource file specifies text for formulae and errors.
Parameters
const TDesC16 &aResourceFileName |
Resource file name
|
|
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
protected: IMPORT_C CSheetEngine();
Description
Default constructor.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
protected: IMPORT_C void ConstructL();
Description
Second-phase constructor.
ConstructL(CShgCellAdditionalData *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
protected: IMPORT_C void ConstructL(CShgCellAdditionalData *aAdditionalData);
Description
Second-phase constructor, specifying a resource file.
Parameters
ConstructL(CShgCellAdditionalData *,const TDesC &)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
protected: IMPORT_C void ConstructL(CShgCellAdditionalData *aAdditionalData, const TDesC &aResourceFileName);
Description
Second-phase constructor, specifying additional cell formatting data and a resource file.
Parameters
ConstructL(const TDesC &)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
protected: IMPORT_C void ConstructL(const TDesC &aResourceFileName);
Description
Second-phase constructor, specifying a resource file.
Parameters
const TDesC16 &aResourceFileName |
Resource file name.
|
|
NewEmptyL(const CSheetEngine *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C static CSheetEngine* NewEmptyL(const CSheetEngine *aSheetEngine);
Description
Allocates and constructs a new spreadsheet engine object, specifying an existing spreadsheet engine as a template.
Parameters
const CSheetEngine *aSheetEngine |
Existing spreadsheet to act as a template
|
|
Return value
SetCallBackAPI(MShgCallBackAPI *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void SetCallBackAPI(MShgCallBackAPI *aCallBackAPI);
Description
Sets a callback object, so that the engine can inform the client of events.
Parameters
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void Reset();
Description
Resets the engine to default values.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void LocaleHasChanged();
Description
Informs the engine that the system locale has changed.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void Compress();
Description
Attempts to compress all data storage.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool HasChanged() const;
Description
Tests if the engine has performed updates that the client (e.g. UI) may need to get.
Once all updates have been processed, use CSheetEngine::MarkUnchanged()
to reset the changed flag.
Return value
TBool
|
True if engine data has changed
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void MarkUnchanged();
Description
Reset the engine's changed flag.
StoreL(CStreamStore &)const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TStreamId StoreL(CStreamStore &aStore) const;
Description
Stores the engine.
Parameters
Return value
RestoreL(const CStreamStore &,TStreamId)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void RestoreL(const CStreamStore &aStore, TStreamId aId);
Description
Restores the engine.
Parameters
CreateCellFromTextL(TShgCell &,const TDesC &,const CShgWorkSheet *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TShgError CreateCellFromTextL(TShgCell &aCell, const TDesC &aText, const CShgWorkSheet *aWorkSheet);
Description
Initialises a cell with content specified in a descriptor.
The function attempts to parse the descriptor content to set the cell type and content.
Parameters
TShgCell &aCell |
Cell to set. On return, the cell initialised with data parsed from aText
|
const TDesC16 &aText |
Text to parse
|
const CShgWorkSheet *aWorkSheet |
Optional worksheet to use for calculating cell value, if a formula is specified
|
|
Return value
ShgCellAsText(TDes &,const TShgCell &)const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void ShgCellAsText(TDes &aDes, const TShgCell &aShgCell) const;
Description
Gets the cell contents as a descriptor.
Parameters
TDes16 &aDes |
On return, cell contents as a string
|
const TShgCell &aShgCell |
Cell to read
|
|
ShgCellAsText(TDes &,const TShgCell &,TInt)const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void ShgCellAsText(TDes &aDes, const TShgCell &aShgCell, TInt aWorkSheetNo) const;
Description
Gets the cell contents as a descriptor, specifying the cell's work sheet.
Parameters
TDes16 &aDes |
On return, cell contents as a string
|
const TShgCell &aShgCell |
Cell to read
|
TInt aWorkSheetNo |
Cell's work sheet
|
|
SetRecalculationToBeDoneAutomatically(TBool)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void SetRecalculationToBeDoneAutomatically(TBool aRecalculationToBeDoneAutomatically);
Description
Sets whether the engine should automatically recalculate the spreadsheet when required.
Parameters
TBool aRecalculationToBeDoneAutomatically |
True if the engine should automatically recalculate the spreadsheet
|
|
RecalculationToBeDoneAutomatically()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool RecalculationToBeDoneAutomatically() const;
Description
Tests if the engine automatically recalculates the spreadsheet when required.
Return value
TBool
|
True if the engine automatically recalculates the spreadsheet
|
|
SetRecalculationToBeDoneInBackgroundL(TBool)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void SetRecalculationToBeDoneInBackgroundL(TBool aRecalculationToBeDoneInBackground);
Description
Sets whether the engine should recalculate the spreadsheet in the background, as a low priority active object, or synchronously.
Parameters
TBool aRecalculationToBeDoneInBackground |
True if the engine should recalculate the spreadsheet in the background
|
|
RecalculationToBeDoneInBackground()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool RecalculationToBeDoneInBackground() const;
Description
Tests if the engine recalculates the spreadsheet in the background, as a low priority active object, or synchronously.
Return value
TBool
|
True if the engine recalculates the spreadsheet in the background
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void RecalculateL();
Description
Recalculates the spreadsheet.
This can be a synchronous or asynchronous operation, depending on the value of CSheetEngine::RecalculationToBeDoneInBackground()const
.
RecalculationNeeded()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool RecalculationNeeded() const;
Description
Tests if the spreadsheet needs recalculating.
Return value
TBool
|
True if the spreadsheet needs recalculating
|
|
RecalculationInProgress()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool RecalculationInProgress() const;
Description
Tests if a background recalculation is in progress.
Return value
TBool
|
True if a background recalculation is in progress
|
|
ExistsCircularDependency()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool ExistsCircularDependency() const;
Description
Tests if circular dependency exists between cells.
Return value
TBool
|
True if a circular dependency exists between cells
|
|
GetAnyCircularDependency(TBool &,TInt &,TCellRef &)const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void GetAnyCircularDependency(TBool &aKnown, TInt &aWorkSheetNo, TCellRef &aCoord) const;
Description
Finds a cell causing a circular dependency.
Parameters
TBool &aKnown |
On return, true if a circular dependency cell was found
|
TInt &aWorkSheetNo |
On return, the worksheet containing the cell
|
TCellRef &aCoord |
On return, the cell causing the circular dependency
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void DisableUndoAndRedo();
Description
Sets the engine to not provide support for undoing and redoing operations.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool IsUndoAvailable() const;
Description
Tests if the engine supports undo.
Return value
TBool
|
True if the engine supports undo
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TBool IsRedoAvailable() const;
Description
Tests if the engine supports redo.
Return value
TBool
|
True if the engine supports redo
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C CShgNameSet* NameSet() const;
Description
Gets the engine's name set.
Return value
SetCurrentWorkSheet(const TDesC &)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void SetCurrentWorkSheet(const TDesC &aName);
Description
Sets the engine's current worksheet.
Parameters
const TDesC16 &aName |
Name of the worksheet to make current
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C CShgWorkSheet* CurrentWorkSheet() const;
Description
Gets the engine's current worksheet.
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C CShgWorkBook* WorkBook() const;
Description
Gets the engine's workbook.
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TInt SyntaxErrorPos() const;
Description
Gets the position where a formula syntax error has been detected.
Return value
TInt
|
Position where a syntax error has been detected
|
|
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C CShgFormulaViewer* FormulaViewer() const;
Description
Gets the engine's formula viewer.
Return value
SetTemplateAdditionalDataL(CShgCellAdditionalData *)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void SetTemplateAdditionalDataL(CShgCellAdditionalData *aData);
Description
Sets default additional cell formatting data.
Parameters
TemplateAdditionalData()const
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C const CShgCellAdditionalData* TemplateAdditionalData() const;
Description
Gets default additional cell formatting data.
Return value
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void UndoOperationL();
Description
Undoes the last edit operation.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void RedoOperationL();
Description
Redoes the last edit operation.
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C void StartEditOperation();
Description
Marks the start of an edit operation.
EndEditOperationL(TShgError)
Interface status: |
deprecated |
Inherited from: CSheetEngine |
IMPORT_C TShgError EndEditOperationL(TShgError aShgError);
Description
Marks the end of an edit operation.
Parameters
TShgError aShgError |
Any error that occurred as part of the edit operation
|
|
Return value
Class TCleanupStackableRollBack
Interface status: |
deprecated |
|
class TCleanupStackableRollBack : public TCleanupItem;
Description
Derivation
CSheetEngine::TCleanupStackableRollBack
- (No abstract)
Inherited from TCleanupItem
:
Interface status: |
deprecated |
Inherited from: CSheetEngine |
n/a
Description
Interface status: |
deprecated |
Inherited from: CSheetEngine |
n/a
Description