equal
deleted
inserted
replaced
113 // <cmail> Platform layout changes |
113 // <cmail> Platform layout changes |
114 void SetNcsFontType( NcsUtility::TNcsLayoutFont aFontType ); |
114 void SetNcsFontType( NcsUtility::TNcsLayoutFont aFontType ); |
115 // </cmail> Platform layout changes |
115 // </cmail> Platform layout changes |
116 |
116 |
117 public: // from CoeControl |
117 public: // from CoeControl |
118 |
|
119 virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
|
120 |
118 |
121 virtual void SetRect( const TRect& aRect ); |
119 TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
122 void ActivateL(); |
120 void ActivateL(); |
123 |
121 |
124 public: // from CEikEdwin |
122 public: // from CEikEdwin |
125 |
123 |
126 virtual void SetTextL( const TDesC* aDes ); |
124 virtual void SetTextL( const TDesC* aDes ); |
127 |
125 |
128 virtual void HandleResourceChange( TInt aType ); |
126 virtual void HandleResourceChange( TInt aType ); |
147 void UpdateFontL(); |
145 void UpdateFontL(); |
148 // </cmail> Platform layout change |
146 // </cmail> Platform layout change |
149 |
147 |
150 void UpdateColors(); |
148 void UpdateColors(); |
151 |
149 |
152 void UpdateGraphics(); |
|
153 |
|
154 void DoUpdateGraphicsL(); |
|
155 |
|
156 TAknTextComponentLayout GetLayout(); |
150 TAknTextComponentLayout GetLayout(); |
157 //<cmail> |
151 |
158 void Draw( const TRect& aRect ) const; |
152 void Draw( const TRect& aRect ) const; |
159 //</cmail> |
153 |
160 private: // data |
154 private: // data |
161 |
155 |
162 TInt iPreviousFontHeight; |
156 TInt iPreviousFontHeight; |
163 TInt32 iPreviousLineSpacingInTwips; |
157 TInt32 iPreviousLineSpacingInTwips; |
164 |
158 |
166 CCharFormatLayer* iGlobalCharFormat; |
160 CCharFormatLayer* iGlobalCharFormat; |
167 |
161 |
168 // Flag indicating whether this control is header field. |
162 // Flag indicating whether this control is header field. |
169 // Header fields have different backgrounds than message field. |
163 // Header fields have different backgrounds than message field. |
170 TBool iHeaderField; |
164 TBool iHeaderField; |
171 |
|
172 // background control context. Owned. |
|
173 CAknsBasicBackgroundControlContext* iBgContext; |
|
174 |
165 |
175 // Custom drawer. Not owned. |
166 // Custom drawer. Not owned. |
176 CNcsCustomDraw* iCustomDrawer; |
167 CNcsCustomDraw* iCustomDrawer; |
177 |
168 |
178 // Platform layout change |
169 // Platform layout change |