Location:
WNGMODEL.H
Link against: wpeng.lib
class CWordModel : public CBase;
Word processor engine interface.
This is essentially a thin layer over the rich text support (CRichText
etc.) provided by the Application Framework's ETEXT component.
CBase
- Base class for all classes to be instantiated on the heap
CWordModel
- Word processor engine interface
Defined in CWordModel
:
CWordModel()
, ConstructL()
, ConstructMinimalL()
, NewL()
, NewL()
, NormalStyleShortCut()
, PageTable()
, PrintSetup()
, RestoreL()
, RestoreMinimalL()
, StoreL()
, StyleList()
, StyleShortCutList()
, Text()
, ~CWordModel()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CWordModel *NewL(const MFieldFileNameInfo *aFileNameInfo, const MFieldNumPagesInfo *aFieldNumPagesInfo, const
TDesC &aDriverPath);
Allocates and creates a new word processor engine, and performs printer initalisation.
|
|
static IMPORT_C CWordModel *NewL(const MFieldFileNameInfo *aFileNameInfo, const MFieldNumPagesInfo *aFieldNumPagesInfo);
Allocates and creates a new word processor engine.
|
|
protected: IMPORT_C void ConstructL(const MFieldFileNameInfo *aFileNameInfo, const MFieldNumPagesInfo *aNumPagesInfo);
Second-phase constructor.
|
IMPORT_C void StoreL(CStreamStore &aStore, CStreamDictionary &aStreamDic, const TAny *aSecurity) const;
Stores the engine.
This function writes the engine data to a stream store, and records the streams used in a stream dictionary.
|
IMPORT_C void RestoreL(const CStreamStore &aStore, const CStreamDictionary &aStreamDic, const TAny *aSecurity, const MFieldFileNameInfo
*aFileNameInfo=0,const MFieldNumPagesInfo *aNumPagesInfo=0, MPictureFactory *aPictureFactory=0);
Restores the engine.
|
IMPORT_C void RestoreMinimalL(const CStreamStore &aStore, const CStreamDictionary &aStreamDic, const TAny *aSecurity, const
MFieldFileNameInfo *aFileNameInfo=0,const MFieldNumPagesInfo *aNumPagesInfo=0, MPictureFactory *aPictureFactory=0);
Restores the engine, without restoring the print setup stream.
This allows restoring without loading a printer driver. Header and footer information will not be available.
|
inline CRichText *Text();
Gets the engine's rich text object.
|
inline CStyleList *StyleList();
Gets the engine's style list object.
|
inline CPrintSetup *PrintSetup();
Gets the engine's print setup object.
|
inline CArrayFix< TInt > *PageTable();
Gets the engine's page table array.
A page table is an array of integers; each integer represents the number of characters on a page. It is required for pagination.
|
inline CStyleShortCutList *StyleShortCutList();
Gets the engine's style short cuts array.
This object stores a list of keyboard shortcuts to the styles (as returned by StyleList()
). The array is in the same order as the style list array.
|
inline TChar &NormalStyleShortCut();
Gets the keybord short cut for the normal style.
|
protected: IMPORT_C void ConstructMinimalL(const MFieldFileNameInfo *aFileNameInfo, const MFieldNumPagesInfo *aFieldNumPagesInfo,
const TDesC &aDriverPath);
Second-phase constructor, with printer initialisation.
|