equal
deleted
inserted
replaced
212 if ( AknLayoutUtils::PenEnabled() ) |
212 if ( AknLayoutUtils::PenEnabled() ) |
213 { |
213 { |
214 // set flags to default values |
214 // set flags to default values |
215 iExtension->iFlags = 0; |
215 iExtension->iFlags = 0; |
216 } |
216 } |
217 |
217 iExtension->iStatusPane = CEikStatusPaneBase::Current(); |
218 iExtension->iStatusPane = CEikStatusPaneBase::Current(); |
|
219 |
|
220 } |
218 } |
221 |
219 |
222 |
220 |
223 // ---------------------------------------------------------------------------- |
221 // ---------------------------------------------------------------------------- |
224 // CAknTitlePane::ConstructFromResourceL |
222 // CAknTitlePane::ConstructFromResourceL |
227 // |
225 // |
228 EXPORT_C void CAknTitlePane::ConstructFromResourceL( TResourceReader& aReader ) |
226 EXPORT_C void CAknTitlePane::ConstructFromResourceL( TResourceReader& aReader ) |
229 { |
227 { |
230 CommonConstructL(); |
228 CommonConstructL(); |
231 ReadFromResourceFileL( aReader ); |
229 ReadFromResourceFileL( aReader ); |
|
230 iExtension->iStatusPane = CEikStatusPaneBase::Current(); |
232 } |
231 } |
233 |
232 |
234 |
233 |
235 // ---------------------------------------------------------------------------- |
234 // ---------------------------------------------------------------------------- |
236 // CAknTitlePane::SetTextL |
235 // CAknTitlePane::SetTextL |
917 } |
916 } |
918 |
917 |
919 TPtr ptr = iText->Des(); |
918 TPtr ptr = iText->Des(); |
920 AknBidiTextUtils::ConvertToVisualAndWrapToStringL( |
919 AknBidiTextUtils::ConvertToVisualAndWrapToStringL( |
921 aText, *iLineWidthArray, *font, ptr, ETrue ); |
920 aText, *iLineWidthArray, *font, ptr, ETrue ); |
922 |
921 |
|
922 TInt len = iText->Length(); |
|
923 if (( aLineNum == 1 ) && ( iText->LocateReverseF( '\n' ) == len -1 ) && len >= 1 ) |
|
924 { |
|
925 ptr.Delete( len - 1, 1 ); |
|
926 } |
923 } |
927 } |
924 |
928 |
925 |
929 |
926 /** |
930 /** |
927 * Return type of layout set in DoLayout operation, either one line |
931 * Return type of layout set in DoLayout operation, either one line |