meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrncseditor.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
child 16 b5fbb9b25d57
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 #ifndef CESMRNCSEDITOR_H
    18 #ifndef CESMRNCSEDITOR_H
    19 #define CESMRNCSEDITOR_H
    19 #define CESMRNCSEDITOR_H
    20 
    20 
    21 #include <eikrted.h>
    21 #include <eikrted.h>
    22 #include <AknUtils.h>
    22 #include <aknutils.h>
    23 
       
    24 class CAknsBasicBackgroundControlContext;
       
    25 class CNcsCustomDraw;
       
    26 class CESMRLayoutManager;
       
    27 
    23 
    28 /**
    24 /**
    29  *  CESMRNcsEditor is a specialised CEikRichTextEditor for 
    25  *  CESMRNcsEditor is a specialised CEikRichTextEditor for 
    30  *  the email address lists for attendee fields.
    26  *  the email address lists for attendee fields.
    31  */
    27  */
   158     TInt TrimmedTextLengthL();
   154     TInt TrimmedTextLengthL();
   159 
   155 
   160     /**
   156     /**
   161       * Set the font of the editor
   157       * Set the font of the editor
   162       * @param aFont font of the editor
   158       * @param aFont font of the editor
   163       * @param aLayout pointer to layout manager to get the font and sizes
       
   164       */
   159       */
   165     void SetFontL( const CFont* aFont, CESMRLayoutManager* aLayout );
   160     void SetFontL( const CFont* aFont );
   166     
   161     
   167 #ifdef _DEBUG
   162 #ifdef _DEBUG
   168     void DebugDump();
   163     void DebugDump();
   169 #endif
   164 #endif
   170 
   165 
   171 public: // from CoeControl
   166 public: // from CoeControl
   172     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
   167     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
   173     void SetTextL( const TDesC* aDes );
   168     void SetTextL( const TDesC* aDes );
   174     void SetRect( const TRect& aRect );
   169     void FocusChanged( TDrawNow aDrawNow );
       
   170     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
   171     
   175 
   172 
   176 protected: // from CEikEdwin
   173 protected: // from CEikEdwin
   177     virtual void HandleResourceChange( TInt aType );
   174     virtual void HandleResourceChange( TInt aType );
   178 
   175 
   179 protected: // from MEditObserver
   176 protected: // from MEditObserver
   188     TInt iPreviousFontHeight;
   185     TInt iPreviousFontHeight;
   189     TInt32 iPreviousLineSpacingInTwips;
   186     TInt32 iPreviousLineSpacingInTwips;
   190     HBufC* iDefaultText;//not own
   187     HBufC* iDefaultText;//not own
   191     TBool iHasDefaultText;
   188     TBool iHasDefaultText;
   192     TRgb iTextColor;
   189     TRgb iTextColor;
   193 
       
   194     // background control context. Owned.
       
   195     CAknsBasicBackgroundControlContext* iBgContext;
       
   196     };
   190     };
   197 
   191 
   198 
   192 
   199 #endif
   193 #endif