epoc32/include/wngdoor.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/wngdoor.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,158 +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(__WNGDOOR_H__)
    1.20 -#define __WNGDOOR_H__
    1.21 -
    1.22 -#if !defined(__E32STD_H__)
    1.23 -#include <e32std.h>
    1.24 -#endif
    1.25 -
    1.26 -#if !defined(__E32BASE_H__)
    1.27 -#include <e32base.h>
    1.28 -#endif
    1.29 -
    1.30 -#if !defined(__APAMDR_H__)
    1.31 -#include <apamdr.h>
    1.32 -#endif
    1.33 -
    1.34 -#if !defined(__APAID_H__)
    1.35 -#include <apaid.h>
    1.36 -#endif
    1.37 -
    1.38 -//
    1.39 -// Classes defined
    1.40 -class CWordModelHeader;
    1.41 -class TWordModelHeaderFactory;
    1.42 -class CWordModelHeaderV2;
    1.43 -class TWordModelHeaderFactoryV2;
    1.44 -//
    1.45 -// Class referenced
    1.46 -class CWordModel;
    1.47 -class TWordModelStoreResolver;
    1.48 -
    1.49 -/** Application UID for word processor application. 
    1.50 -@internalComponent
    1.51 -@deprecated
    1.52 -*/
    1.53 -const TUid KUidWordApp = {0x10003A64};
    1.54 -
    1.55 -
    1.56 -//
    1.57 -// Takes ownership of the referenced word model
    1.58 -//
    1.59 -class CWordModelHeaderV2 : public CApaModelHeader
    1.60 -/** Wrapper for the word processor application engine.
    1.61 -
    1.62 -The class provides the knowledge for internalising and externalising an application 
    1.63 -model's data. It enables word processor documents to be embedded within rich 
    1.64 -text objects.
    1.65 -
    1.66 -Compared to CWordModelHeader, it also provides restoration support for objects 
    1.67 -embedded within embedded word documents. 
    1.68 -@publishedAll
    1.69 -@deprecated
    1.70 -*/
    1.71 -	{
    1.72 -	friend class TWordModelHeaderFactoryV2;
    1.73 -public:
    1.74 -	IMPORT_C ~CWordModelHeaderV2();
    1.75 -public:	// from CApaModelHeader
    1.76 -	IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aDict)const;
    1.77 -	IMPORT_C TApaAppIdentifier AppId()const;
    1.78 -	IMPORT_C void DetachFromStoreL(CPicture::TDetach aDegree);
    1.79 -public:
    1.80 -	IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
    1.81 -	IMPORT_C CWordModel* Model();
    1.82 -	void SetFactory(MApaModelHeaderFactory* aFactory); // takes ownership
    1.83 -private:
    1.84 -	CWordModelHeaderV2(CWordModel* aModel);
    1.85 -private:
    1.86 -	CWordModel*	iModel;
    1.87 -	TWordModelStoreResolver* iResolver; // created during restore
    1.88 -	MApaModelHeaderFactory* iHeaderFactory;
    1.89 -	};
    1.90 -
    1.91 -
    1.92 -//
    1.93 -//
    1.94 -
    1.95 -class TWordModelHeaderFactoryV2 : public MApaModelHeaderFactory
    1.96 -/** Factory to construct CWordModelHeaderV2 application wrapper objects.
    1.97 -@publishedAll
    1.98 -@deprecated
    1.99 -*/
   1.100 -	{
   1.101 -public:
   1.102 -	IMPORT_C TWordModelHeaderFactoryV2(const TFileName& aPrintDriverPath);
   1.103 -	IMPORT_C CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,
   1.104 -										const TApaAppIdentifier& aAppId)const;
   1.105 -private:
   1.106 -	TFileName iPrintDriverPath;
   1.107 -	};
   1.108 -
   1.109 -
   1.110 -
   1.111 -class CWordModelHeaderV3 : public CApaModelHeader
   1.112 -/** Wrapper for the word processor application engine.
   1.113 -
   1.114 -The class provides the knowledge for internalising and externalising an application 
   1.115 -model's data. It enables word processor documents to be embedded within rich 
   1.116 -text objects.
   1.117 -
   1.118 -Like CWordModelHeaderV2, it provides restoration support for objects embedded 
   1.119 -within embedded word documents. Unlike that class, however, it does not restore 
   1.120 -printer setup information, or process header and footer information. 
   1.121 -@publishedAll
   1.122 -@deprecated
   1.123 -*/
   1.124 -	{
   1.125 -	friend class TWordModelHeaderFactoryV3;
   1.126 -public:
   1.127 -	IMPORT_C ~CWordModelHeaderV3();
   1.128 -public:	// from CApaModelHeader
   1.129 -	IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aDict)const;
   1.130 -	IMPORT_C TApaAppIdentifier AppId()const;
   1.131 -	IMPORT_C void DetachFromStoreL(CPicture::TDetach aDegree);
   1.132 -public:
   1.133 -	IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
   1.134 -	IMPORT_C CWordModel* Model();
   1.135 -	void SetFactory(MApaModelHeaderFactory* aFactory); // takes ownership
   1.136 -private:
   1.137 -	CWordModelHeaderV3(CWordModel* aModel);
   1.138 -private:
   1.139 -	CWordModel*	iModel;
   1.140 -	TWordModelStoreResolver* iResolver; // created during restore
   1.141 -	MApaModelHeaderFactory* iHeaderFactory;
   1.142 -	};
   1.143 -
   1.144 -
   1.145 -// Mimimal header factory for efficiency
   1.146 -// Does not restore header or footer information from the document
   1.147 -//
   1.148 -class TWordModelHeaderFactoryV3 : public MApaModelHeaderFactory
   1.149 -/** Factory to construct CWordModelHeaderV3 application wrapper objects. 
   1.150 -@publishedAll
   1.151 -@deprecated
   1.152 -*/
   1.153 -	{
   1.154 -public:
   1.155 -	IMPORT_C TWordModelHeaderFactoryV3();
   1.156 -	IMPORT_C CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,
   1.157 -										const TApaAppIdentifier& aAppId) const;
   1.158 -	};
   1.159 -
   1.160 -
   1.161 -#endif