// EIKFPREV.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__EIKFPREV_H__)
#define __EIKFPREV_H__

#if !defined(__EIKLABEL_H__)
#include <eiklabel.h>
#endif

class TResourceReader;

class CEikFontPreviewLabel : public CEikLabel
	{
public:
	IMPORT_C CEikFontPreviewLabel();
	IMPORT_C ~CEikFontPreviewLabel();
	inline void SetMinimumSize(const TSize& aSize);
	inline void SetBackgroundColor(TRgb aColor);
	inline void SetPenColor(TRgb aColor);
	IMPORT_C void SetUnderline(TFontUnderline aUnderline);
	IMPORT_C void SetStrikethrough(TFontStrikethrough aStrikethrough);
public: // framework
	IMPORT_C void ConstructFromResourceL(TResourceReader& aReader);
	IMPORT_C TSize MinimumSize();
	IMPORT_C void Draw(const TRect& aRect) const;
protected:
	enum
		{
		EUnderline		=0x01,
		EStrikethrough	=0x02
		};
protected:
	TSize iMinSize;
	TRgb iBackgroundColor;
	TRgb iPenColor;
	};

inline void CEikFontPreviewLabel::SetMinimumSize(const TSize& aSize)
	{ iMinSize=aSize; }

inline void CEikFontPreviewLabel::SetBackgroundColor(TRgb aColor)
	{ iBackgroundColor=aColor; }

inline void CEikFontPreviewLabel::SetPenColor(TRgb aColor)
	{ iPenColor=aColor; }

#endif
