examples/ForumNokia/BluetoothPMPExample/inc/BluetoothPMPExampleRichtexteditorrte.h

00001 /*
00002  * Copyright © 2009 Nokia Corporation.
00003  */
00004 
00005 #ifndef BLUETOOTH_EX_RICHTEXTEDITOR_H
00006 #define BLUETOOTH_EX_RICHTEXTEDITOR_H
00007 
00008 // INCLUDES
00009 #include <eikrted.h> // CCEikRichTextEditor
00010 #include <txtfrmat.h> // TCharFormatMask
00011 #include <gdi.h>
00012 
00013 // CLASS DECLARATION
00014 
00015 // Constant used with function AddCarriageReturnL when
00016 // the carriage return is wished to be added to end of document
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: // from CoeControl
00042 
00043         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
00044 
00045     public: // members
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: // Basic two-phase symbian OS constructors
00081 
00082         void ConstructL();
00083 
00087         CRichTextEditorRTE();
00088 
00089     private: //data
00090 
00091         // Formatting options for the RichText
00092         TCharFormatMask iCharacterFormatMask;
00093         TCharFormat iCharacterFormat;
00094     };
00095 
00096 #endif  // BLUETOOTH_EX_RICHTEXTEDITOR_H

Generated by  doxygen 1.6.2