// NERPRINT.H
//
// Copyright (c) 1998 Symbian Ltd. All rights reserved.
//
// Internet message printing utilities

#if !defined(__NERPRINT_H__)
#define __NERPRINT_H__

#if !defined(__MSVAPI_H__)
#include <msvapi.h>
#endif

#if !defined(__TXTRICH_H__)
#include <txtrich.h>
#endif

// Forward references
class TPrintParameters;
//

class InternetMessagePrintUtilities
	{
public:
	IMPORT_C static void PrintMessageL(CMsvSession& aSession, TMsvId anId, TPrintParameters& aParams);
	IMPORT_C static void PreviewMessageL(CMsvSession& aSession, TMsvId anId, TPrintParameters& aParams);

private:
	static void DoPrintMessageL(CMsvSession& aSession, TMsvId anId, TPrintParameters& aParams, TBool aPreview);
	static void AppendPrintTextL(CMsvEntry& aEntry, CRichText& aText);
	static void AddAddresseestoTextL(CEikonEnv* aEnv, CRichText& aText, TInt aStartPos, const CDesCArray& aAddresses, TInt aPrefixRid=0);
	static void InsertResourceIntoTextL(TInt aResourceId, CEikonEnv* aEnv, CPlainText& aText, TInt aPos);
	};

#endif //__NERPRINT_H__
