epoc32/include/wngmodel.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/wngmodel.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,146 +0,0 @@
     1.4 -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -//
    1.18 -
    1.19 -#if !defined(__WNGMODEL_H__)
    1.20 -#define __WNGMODEL_H__
    1.21 -
    1.22 -#if !defined(__E32STD_H__)
    1.23 -#include <e32std.h>
    1.24 -#endif
    1.25 -#if !defined(__E32BASE_H__)
    1.26 -#include <e32base.h>
    1.27 -#endif
    1.28 -
    1.29 -#if !defined(__F32FILE_H__)
    1.30 -#include <f32file.h>
    1.31 -#endif
    1.32 -
    1.33 -#if !defined(__S32STD_H__)
    1.34 -#include <s32std.h>
    1.35 -#endif
    1.36 -
    1.37 -#include <gdi.h>
    1.38 -
    1.39 -//
    1.40 -// Classed decalred in this file
    1.41 -class CWordModel;
    1.42 -class CWordProfileModel;
    1.43 -//
    1.44 -// Classes referenced
    1.45 -class RReadStream;
    1.46 -class RWriteStream;
    1.47 -class CSecureStore;
    1.48 -class CParaFormatLayer;
    1.49 -class CCharFormatLayer;
    1.50 -class CRichText;
    1.51 -class CStyleList;
    1.52 -class CPrintSetup;
    1.53 -class MFieldFileNameInfo;
    1.54 -class MFieldNumPagesInfo;
    1.55 -class CStreamStore;
    1.56 -class CStreamDictionary;
    1.57 -
    1.58 -/** Type for an array of style short cuts.
    1.59 -
    1.60 -@see CWordModel::StyleShortCutList() 
    1.61 -@publishedAll
    1.62 -@deprecated
    1.63 -*/
    1.64 -typedef CArrayFixFlat<TChar> CStyleShortCutList;
    1.65 -
    1.66 -
    1.67 -
    1.68 -class CWordModel : public CBase 
    1.69 -/** Word processor engine interface.
    1.70 -
    1.71 -This is essentially a thin layer over the rich text support (CRichText etc.) 
    1.72 -provided by the Application Framework's ETEXT component. 
    1.73 -@publishedAll
    1.74 -@deprecated
    1.75 -*/
    1.76 -	{
    1.77 -public:
    1.78 -	IMPORT_C static CWordModel* NewL(const MFieldFileNameInfo* aFileNameInfo,const MFieldNumPagesInfo* aFieldNumPagesInfo,const TDesC& aDriverPath);
    1.79 -	IMPORT_C static CWordModel* NewL(const MFieldFileNameInfo* aFileNameInfo,const MFieldNumPagesInfo* aFieldNumPagesInfo);
    1.80 -	// Performs no initialisation at all.
    1.81 -	//
    1.82 -	IMPORT_C ~CWordModel();
    1.83 -	//
    1.84 -	// Save/Load
    1.85 -#ifndef __SECURE_API__
    1.86 -	IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aStreamDic,const CSecurityBase* aSecurity)const;
    1.87 -	IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic,const CSecurityBase* aSecurity,
    1.88 -						   const MFieldFileNameInfo* aFileNameInfo=NULL,const MFieldNumPagesInfo* aNumPagesInfo=NULL,
    1.89 -						   MPictureFactory* aPictureFactory=NULL);
    1.90 -	IMPORT_C void RestoreMinimalL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic,const CSecurityBase* aSecurity,
    1.91 -						   const MFieldFileNameInfo* aFileNameInfo=NULL,const MFieldNumPagesInfo* aNumPagesInfo=NULL,
    1.92 -						   MPictureFactory* aPictureFactory=NULL);
    1.93 -#else						   
    1.94 -	IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aStreamDic,const TAny* aSecurity)const;
    1.95 -	IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic,const TAny* aSecurity,
    1.96 -						   const MFieldFileNameInfo* aFileNameInfo=NULL,const MFieldNumPagesInfo* aNumPagesInfo=NULL,
    1.97 -						   MPictureFactory* aPictureFactory=NULL);
    1.98 -	IMPORT_C void RestoreMinimalL(const CStreamStore& aStore,const CStreamDictionary& aStreamDic,const TAny* aSecurity,
    1.99 -						   const MFieldFileNameInfo* aFileNameInfo=NULL,const MFieldNumPagesInfo* aNumPagesInfo=NULL,
   1.100 -						   MPictureFactory* aPictureFactory=NULL);
   1.101 -#endif
   1.102 -
   1.103 -	//
   1.104 -	// Handles
   1.105 -	inline CRichText* Text();
   1.106 -	inline CStyleList* StyleList();
   1.107 -	inline CPrintSetup* PrintSetup();
   1.108 -	inline CArrayFix<TInt>* PageTable();
   1.109 -	inline CStyleShortCutList* StyleShortCutList();
   1.110 -	inline TChar& NormalStyleShortCut();
   1.111 -protected:
   1.112 -	IMPORT_C CWordModel();
   1.113 -	IMPORT_C void ConstructL(const MFieldFileNameInfo* aFileNameInfo,const MFieldNumPagesInfo* aNumPagesInfo);
   1.114 -	IMPORT_C void ConstructMinimalL(const MFieldFileNameInfo* aFileNameInfo,const MFieldNumPagesInfo* aFieldNumPagesInfo,const TDesC& aDriverPath);
   1.115 -	void ConstructGlobalLayersL();
   1.116 -	//
   1.117 -	TStreamId StoreStylesL(CStreamStore& aStore)const;
   1.118 -	void RestoreStylesL(const CStreamStore& aStore,TStreamId aId);
   1.119 -	//
   1.120 -	TStreamId StoreFieldDataL(CStreamStore& aStore)const;
   1.121 -	void RestoreFieldDataL(const CStreamStore& aStore,TStreamId aId);
   1.122 -#ifndef __SECURE_API__
   1.123 -	TStreamId StoreTextDataL(CStreamStore& aStore,const CSecurityBase* aSecurity)const;
   1.124 -	void RestoreTextDataL(const CStreamStore& aStore,TStreamId aId,const CSecurityBase* aSecurity);
   1.125 -#else
   1.126 -	TStreamId StoreTextDataL(CStreamStore& aStore,const TAny* aSecurity)const;
   1.127 -	void RestoreTextDataL(const CStreamStore& aStore,TStreamId aId,const TAny* aSecurity);
   1.128 -#endif
   1.129 -
   1.130 -	TStreamId StoreMarkupDataL(CStreamStore& aStore)const;
   1.131 -	void RestoreMarkupDataL(const CStreamStore& aStore,TStreamId aId);
   1.132 -private:
   1.133 -	void InitPrintSetupL(const MFieldFileNameInfo* aFileNameInfo,const MFieldNumPagesInfo* aNumPagesInfo,const TDesC& aDriverPath);
   1.134 -private:
   1.135 -	CParaFormatLayer* iParaFormatLayer;
   1.136 -	CCharFormatLayer* iCharFormatLayer;
   1.137 -	CRichText* iText;
   1.138 -	CStyleList* iStyleList;
   1.139 -	CPrintSetup* iPrintSetup;
   1.140 -	CStyleShortCutList* iStyleShortCutList;
   1.141 -	TChar iNormalStyleShortCut;
   1.142 -	CArrayFix<TInt>* iPageTable;
   1.143 -	};
   1.144 -
   1.145 -
   1.146 -#include <wngmodel.inl>
   1.147 -
   1.148 -
   1.149 -#endif