// EIKBPREV.H
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

#if !defined(__EIKPREV_H__)
#define __EIKPREV_H__

#if !defined(__EIKBCTRL_H__)
#include <eikbctrl.h>
#endif

#if !defined(__TXTFRMAT_H__)
#include <txtfrmat.h>
#endif

#if !defined(__FRMTLAY_H__)
#include <frmtlay.h>
#endif

class CEikBorderPreview : public CEikBorderedControl
	{
public:
	IMPORT_C CEikBorderPreview();
	IMPORT_C ~CEikBorderPreview();
	IMPORT_C void SetUp(const TParaBorderArray& aBorders,TRgb* aBackgroundColor);
	IMPORT_C void HandleChange();
private: // framework
	IMPORT_C void Draw(const TRect& aRect) const;  //can be protected
	IMPORT_C TSize MinimumSize();
private:
	void ClearRect(const TRect& aRect) const;
	void DrawParaBorders() const;
private:
	TPoint iOffset;
	TParaBorderArray iBorders;
	TRgb iBackgroundColor;
	};	

#endif
