Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Class CShgWorkBook

Interface status: deprecated

class CShgWorkBook : public CBase;

Description

A spreadsheet engine workbook.

A workbook defines an array of worksheets (CShgWorkSheet).

Derivation

Members

Defined in CShgWorkBook:

Inherited from CBase:


Construction and destruction


~CShgWorkBook()

Interface status: deprecated Inherited from: CShgWorkBook

virtual ~CShgWorkBook();

Description

Destructor.

[Top]


Member functions


SheetEngine()const

Interface status: deprecated Inherited from: CShgWorkBook

inline CSheetEngine* SheetEngine() const;

Description

Gets the spreadsheet engine set for this object.

Return value

CSheetEngine *

Spreadsheet engine


StoreL(CStreamStore &)const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TStreamId StoreL(CStreamStore &aStore) const;

Description

Stores the object.

Parameters

CStreamStore &aStore

Store to write to

Return value

TStreamId

ID of the root stream


RestoreL(const CStreamStore &,TStreamId)

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C void RestoreL(const CStreamStore &aStore, TStreamId aStreamId);

Description

Restores the object.

Parameters

const CStreamStore &aStore

Store to read from

TStreamId aStreamId

ID of the root stream


WorkSheet(const TDesC &)const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C CShgWorkSheet* WorkSheet(const TDesC &aName) const;

Description

Gets a worksheet specified by name.

Parameters

const TDesC16 &aName

Worksheet name

Return value

CShgWorkSheet *

Worksheet named aName


WorkSheet(TInt)const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C CShgWorkSheet* WorkSheet(TInt aWorkSheetNo) const;

Description

Gets a worksheet specified by index.

Parameters

TInt aWorkSheetNo

Worksheet index

Return value

CShgWorkSheet *

Worksheet with index aWorkSheetNo


SetCurrentWorkSheet(const TDesC &)

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C void SetCurrentWorkSheet(const TDesC &aName);

Description

Sets the current worksheet.

Parameters

const TDesC16 &aName

Worksheet name


CurrentWorkSheet()const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C CShgWorkSheet* CurrentWorkSheet() const;

Description

Gets the current worksheet.

Return value

CShgWorkSheet *

Current worksheet


CreateWorkSheetL(const TDesC &)

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TShgError CreateWorkSheetL(const TDesC &aName);

Description

Creates a new worksheet.

Parameters

const TDesC16 &aName

Worksheet name

Return value

TShgError

EShgNoError or another error code


DeleteWorkSheetL(const TDesC &)

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TShgError DeleteWorkSheetL(const TDesC &aName);

Description

Deletes a worksheet.

Parameters

const TDesC16 &aName

Worksheet name

Return value

TShgError

EShgNoError or other error code


ChangeNameL(const TDesC &,const TDesC &)

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C void ChangeNameL(const TDesC &aOldName, const TDesC &aNewName);

Description

Renames a worksheet.

Parameters

const TDesC16 &aOldName

Current worksheet name

const TDesC16 &aNewName

New worksheet name


StartEditOperation()

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C void StartEditOperation();

Description

Marks the start of an edit operation.


EditOperationComplete()

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C void EditOperationComplete();

Description

Marks the completion of an edit operation.


Count()const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TInt Count() const;

Description

Gets the number of worksheets in the workbook.

Return value

TInt

Number of worksheets in the workbook


WorkSheetNo(const TDesC &)const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TInt WorkSheetNo(const TDesC &aName) const;

Description

Gets the index of a named worksheet.

Parameters

const TDesC16 &aName

Worksheet name

Return value

TInt

Index of the named worksheet, or KErrNotFound.


CurrentWorkSheetNo()const

Interface status: deprecated Inherited from: CShgWorkBook

IMPORT_C TInt CurrentWorkSheetNo() const;

Description

Gets the index of the current worksheet.

Return value

TInt

Index of the current worksheet

[Top]


Member enumerations


Enum TShgInvalidWorkSheetNameChars

Interface status: deprecated Inherited from: CShgWorkBook

TShgInvalidWorkSheetNameChars

Description

Specifies characters that are not allowed in worksheet names.

EShgBadCharAsterisk

Asterisk.

EShgBadCharForwardSlash

Forward slash.

EShgBadCharBackSlash

Back slash.

EShgBadCharColon

Colon,

EShgBadCharOpenSquareBracket

Open square bracket.

This is allowed unless at the start of a name.

EShgBadCharWorkSheetNameDelimiter

Single quote.

This is allowed unless at the start or end of a name.