1.1 --- a/epoc32/include/wngdoor.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/wngdoor.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,158 @@
1.4 -wngdoor.h
1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#if !defined(__WNGDOOR_H__)
1.21 +#define __WNGDOOR_H__
1.22 +
1.23 +#if !defined(__E32STD_H__)
1.24 +#include <e32std.h>
1.25 +#endif
1.26 +
1.27 +#if !defined(__E32BASE_H__)
1.28 +#include <e32base.h>
1.29 +#endif
1.30 +
1.31 +#if !defined(__APAMDR_H__)
1.32 +#include <apamdr.h>
1.33 +#endif
1.34 +
1.35 +#if !defined(__APAID_H__)
1.36 +#include <apaid.h>
1.37 +#endif
1.38 +
1.39 +//
1.40 +// Classes defined
1.41 +class CWordModelHeader;
1.42 +class TWordModelHeaderFactory;
1.43 +class CWordModelHeaderV2;
1.44 +class TWordModelHeaderFactoryV2;
1.45 +//
1.46 +// Class referenced
1.47 +class CWordModel;
1.48 +class TWordModelStoreResolver;
1.49 +
1.50 +/** Application UID for word processor application.
1.51 +@internalComponent
1.52 +@deprecated
1.53 +*/
1.54 +const TUid KUidWordApp = {0x10003A64};
1.55 +
1.56 +
1.57 +//
1.58 +// Takes ownership of the referenced word model
1.59 +//
1.60 +class CWordModelHeaderV2 : public CApaModelHeader
1.61 +/** Wrapper for the word processor application engine.
1.62 +
1.63 +The class provides the knowledge for internalising and externalising an application
1.64 +model's data. It enables word processor documents to be embedded within rich
1.65 +text objects.
1.66 +
1.67 +Compared to CWordModelHeader, it also provides restoration support for objects
1.68 +embedded within embedded word documents.
1.69 +@publishedAll
1.70 +@deprecated
1.71 +*/
1.72 + {
1.73 + friend class TWordModelHeaderFactoryV2;
1.74 +public:
1.75 + IMPORT_C ~CWordModelHeaderV2();
1.76 +public: // from CApaModelHeader
1.77 + IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aDict)const;
1.78 + IMPORT_C TApaAppIdentifier AppId()const;
1.79 + IMPORT_C void DetachFromStoreL(CPicture::TDetach aDegree);
1.80 +public:
1.81 + IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
1.82 + IMPORT_C CWordModel* Model();
1.83 + void SetFactory(MApaModelHeaderFactory* aFactory); // takes ownership
1.84 +private:
1.85 + CWordModelHeaderV2(CWordModel* aModel);
1.86 +private:
1.87 + CWordModel* iModel;
1.88 + TWordModelStoreResolver* iResolver; // created during restore
1.89 + MApaModelHeaderFactory* iHeaderFactory;
1.90 + };
1.91 +
1.92 +
1.93 +//
1.94 +//
1.95 +
1.96 +class TWordModelHeaderFactoryV2 : public MApaModelHeaderFactory
1.97 +/** Factory to construct CWordModelHeaderV2 application wrapper objects.
1.98 +@publishedAll
1.99 +@deprecated
1.100 +*/
1.101 + {
1.102 +public:
1.103 + IMPORT_C TWordModelHeaderFactoryV2(const TFileName& aPrintDriverPath);
1.104 + IMPORT_C CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,
1.105 + const TApaAppIdentifier& aAppId)const;
1.106 +private:
1.107 + TFileName iPrintDriverPath;
1.108 + };
1.109 +
1.110 +
1.111 +
1.112 +class CWordModelHeaderV3 : public CApaModelHeader
1.113 +/** Wrapper for the word processor application engine.
1.114 +
1.115 +The class provides the knowledge for internalising and externalising an application
1.116 +model's data. It enables word processor documents to be embedded within rich
1.117 +text objects.
1.118 +
1.119 +Like CWordModelHeaderV2, it provides restoration support for objects embedded
1.120 +within embedded word documents. Unlike that class, however, it does not restore
1.121 +printer setup information, or process header and footer information.
1.122 +@publishedAll
1.123 +@deprecated
1.124 +*/
1.125 + {
1.126 + friend class TWordModelHeaderFactoryV3;
1.127 +public:
1.128 + IMPORT_C ~CWordModelHeaderV3();
1.129 +public: // from CApaModelHeader
1.130 + IMPORT_C void StoreL(CStreamStore& aStore,CStreamDictionary& aDict)const;
1.131 + IMPORT_C TApaAppIdentifier AppId()const;
1.132 + IMPORT_C void DetachFromStoreL(CPicture::TDetach aDegree);
1.133 +public:
1.134 + IMPORT_C void RestoreL(const CStreamStore& aStore,const CStreamDictionary& aDict);
1.135 + IMPORT_C CWordModel* Model();
1.136 + void SetFactory(MApaModelHeaderFactory* aFactory); // takes ownership
1.137 +private:
1.138 + CWordModelHeaderV3(CWordModel* aModel);
1.139 +private:
1.140 + CWordModel* iModel;
1.141 + TWordModelStoreResolver* iResolver; // created during restore
1.142 + MApaModelHeaderFactory* iHeaderFactory;
1.143 + };
1.144 +
1.145 +
1.146 +// Mimimal header factory for efficiency
1.147 +// Does not restore header or footer information from the document
1.148 +//
1.149 +class TWordModelHeaderFactoryV3 : public MApaModelHeaderFactory
1.150 +/** Factory to construct CWordModelHeaderV3 application wrapper objects.
1.151 +@publishedAll
1.152 +@deprecated
1.153 +*/
1.154 + {
1.155 +public:
1.156 + IMPORT_C TWordModelHeaderFactoryV3();
1.157 + IMPORT_C CApaModelHeader* NewHeaderL(const CStreamStore& aStore,const CStreamDictionary& aDict,
1.158 + const TApaAppIdentifier& aAppId) const;
1.159 + };
1.160 +
1.161 +
1.162 +#endif