// TXTMFMTX.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__TXTMFMTX_H__)
#define __TXTMFMTX_H__

#if !defined(__E32STD_H__)
#include <e32std.h>
#endif

#if !defined(__TXTFRMAT_H__)
#include <txtfrmat.h>
#endif

// Defines interface for getting/setting formatting attributes.

class MFormatText
	{
public:
	//
	// Paragraph format attributes
	virtual void GetParaFormatL(CParaFormat* aFormat,TParaFormatMask& aVaries,TInt aPos,TInt aLength,
								CParaFormat::TParaFormatGetMode aMode=CParaFormat::EAllAttributes)const=0;
	virtual void ApplyParaFormatL(const CParaFormat* aFormat,const TParaFormatMask& aMask,TInt aPos,TInt aLength)=0;
	//
	// Character format attributes
	virtual void GetCharFormat(TCharFormat& aFormat,TCharFormatMask& aVaries,TInt aPos,TInt aLength)const=0;
	virtual void ApplyCharFormatL(const TCharFormat& aFormat,const TCharFormatMask& aMask,TInt aPos,TInt aLength)=0;
	};

#endif

