emailuis/emailui/inc/ncseditor.h
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 14 b13141f05c3d
equal deleted inserted replaced
0:8466d47a6819 1:12c456ceeff2
    32 class CNcsEditorCustomDraw;
    32 class CNcsEditorCustomDraw;
    33 
    33 
    34 /**
    34 /**
    35 *  CNcsEditor
    35 *  CNcsEditor
    36 */
    36 */
    37 class CNcsEditor : public CEikRichTextEditor, public MNcsControl
    37 class CNcsEditor : public CEikRichTextEditor, public MNcsControl, public MCoeCaptionRetrieverForFep
    38     {
    38     {
    39 public: // construction and destruction
    39 public: // construction and destruction
    40     
    40     
    41     CNcsEditor(
    41     CNcsEditor(
    42         MNcsFieldSizeObserver* aSizeObserver = NULL,
    42         MNcsFieldSizeObserver* aSizeObserver = NULL,
    43         TBool aHeaderField = ETrue,
    43         TBool aHeaderField = ETrue,
    44         TNcsEditorUsage aEditorUsage = ENcsEditorDefault );
    44         TNcsEditorUsage aEditorUsage = ENcsEditorDefault,
       
    45         const TDesC& aCaptionText = TPtrC() );
    45     
    46     
    46     void ConstructL( const CCoeControl* aParent,
    47     void ConstructL( const CCoeControl* aParent,
    47                      TInt aNumberOfLines,
    48                      TInt aNumberOfLines,
    48                      TInt aTextLimit );    
    49                      TInt aTextLimit );    
    49 
    50 
   134 
   135 
   135 protected: // from MEditObserver
   136 protected: // from MEditObserver
   136 
   137 
   137     virtual void EditObserver( TInt aStart, TInt aExtent );
   138     virtual void EditObserver( TInt aStart, TInt aExtent );
   138     
   139     
   139 private: // methods used internally
   140 public: // CEikEdwin
   140     
   141     TCoeInputCapabilities InputCapabilities() const;  
       
   142 public: // MCoeCaptionRetrieverForFep
       
   143     void GetCaptionForFep(TDes& aCaption) const;
       
   144 
       
   145 private: // methods used internally    
   141 	// <cmail> Platform layout change 
   146 	// <cmail> Platform layout change 
   142     void UpdateFontL();
   147     void UpdateFontL();
   143     // </cmail> Platform layout change 
   148     // </cmail> Platform layout change 
   144 	
   149 	
   145     void UpdateColors();
   150     void UpdateColors();
   179     // what purpose editor is used to
   184     // what purpose editor is used to
   180     TNcsEditorUsage iEditorUsage;
   185     TNcsEditorUsage iEditorUsage;
   181     
   186     
   182     // Real screen rectangle
   187     // Real screen rectangle
   183     TRect iRealRect;
   188     TRect iRealRect;
       
   189 
       
   190 	// Caption text for virtual ITU-T
       
   191     HBufC*   iCaptionText; 
   184     };
   192     };
   185 
   193 
   186 
   194 
   187 #endif
   195 #endif