00001
00002
00003
00004
00005 #ifndef BLUETOOTH_EX_RICHTEXTEDITOR_H
00006 #define BLUETOOTH_EX_RICHTEXTEDITOR_H
00007
00008
00009 #include <eikrted.h>
00010 #include <txtfrmat.h>
00011 #include <gdi.h>
00012
00013
00014
00015
00016
00017 const TInt KCarriageReturnToEnd = -1;
00018
00022 class CRichTextEditorRTE : public CEikRichTextEditor
00023 {
00024
00025
00026 public:
00027
00032 static CRichTextEditorRTE* NewL();
00033
00038 static CRichTextEditorRTE* NewLC();
00039
00040
00041 public:
00042
00043 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
00044
00045 public:
00046
00050 void AddCarriageReturnL (TInt pos);
00051
00056 void AddTextL (const TDesC& aText);
00057
00062 void SetTextUnderlineOn(TBool aUnderlineOn);
00063
00068 void DrawTextWithoutCarriageL( const TDesC& aText );
00069
00073 void DrawLineL();
00074
00078 void ClearScreenL();
00079
00080 private:
00081
00082 void ConstructL();
00083
00087 CRichTextEditorRTE();
00088
00089 private:
00090
00091
00092 TCharFormatMask iCharacterFormatMask;
00093 TCharFormat iCharacterFormat;
00094 };
00095
00096 #endif // BLUETOOTH_EX_RICHTEXTEDITOR_H