equal
deleted
inserted
replaced
3062 |
3062 |
3063 void CFormattedCellListBoxData::SetWordWrappedSubcellIndices( |
3063 void CFormattedCellListBoxData::SetWordWrappedSubcellIndices( |
3064 TInt aFirstIndex, |
3064 TInt aFirstIndex, |
3065 TInt aSecondIndex ) |
3065 TInt aSecondIndex ) |
3066 { |
3066 { |
3067 iExtension->iFirstWordWrappedSubcellIndex = (TInt16)aFirstIndex; |
3067 if ( iExtension ) |
3068 iExtension->iSecondWordWrappedSubcellIndex = (TInt16)aSecondIndex; |
3068 { |
|
3069 iExtension->iFirstWordWrappedSubcellIndex = (TInt16)aFirstIndex; |
|
3070 iExtension->iSecondWordWrappedSubcellIndex = (TInt16)aSecondIndex; |
|
3071 } |
3069 } |
3072 } |
3070 |
3073 |
3071 EXPORT_C void CFormattedCellListBoxData::EnableMarqueeL(TBool aEnable) |
3074 EXPORT_C void CFormattedCellListBoxData::EnableMarqueeL(TBool aEnable) |
3072 { |
3075 { |
3073 // CreateMarqueeControlL does nothing if marquee already exists, |
3076 // CreateMarqueeControlL does nothing if marquee already exists, |
4126 if (lastSubCell==KErrNotFound) |
4129 if (lastSubCell==KErrNotFound) |
4127 { |
4130 { |
4128 aGc.UseFont(CEikonEnv::Static()->NormalFont()); |
4131 aGc.UseFont(CEikonEnv::Static()->NormalFont()); |
4129 aGc.DrawText(TPtrC(),aRect,0); // use draw text so that don't need to change pen color/style |
4132 aGc.DrawText(TPtrC(),aRect,0); // use draw text so that don't need to change pen color/style |
4130 aGc.DiscardFont(); // Release the font cache |
4133 aGc.DiscardFont(); // Release the font cache |
|
4134 _AKNTRACE_FUNC_EXIT; |
4131 return; |
4135 return; |
4132 } |
4136 } |
4133 const CFont* font=SubCellFont(0); |
4137 const CFont* font=SubCellFont(0); |
4134 if (font==NULL) |
4138 if (font==NULL) |
4135 { |
4139 { |
4375 { |
4379 { |
4376 // graphics or text column |
4380 // graphics or text column |
4377 CGraphicsContext::TTextAlign align=sc->iAlign; |
4381 CGraphicsContext::TTextAlign align=sc->iAlign; |
4378 if (!sc->iGraphics) |
4382 if (!sc->iGraphics) |
4379 { |
4383 { |
|
4384 if ( !iExtension ) |
|
4385 { |
|
4386 _AKNTRACE_FUNC_EXIT; |
|
4387 return; |
|
4388 } |
4380 const CFont* rowAndCellFont=RowAndSubCellFont(iExtension->iCurrentlyDrawnItemIndex,subcell); |
4389 const CFont* rowAndCellFont=RowAndSubCellFont(iExtension->iCurrentlyDrawnItemIndex,subcell); |
4381 const CFont* cellFont=sc->iBaseFont; |
4390 const CFont* cellFont=sc->iBaseFont; |
4382 const CFont* tempFont=(cellFont) ? cellFont : font; |
4391 const CFont* tempFont=(cellFont) ? cellFont : font; |
4383 const CFont* usedFont=(rowAndCellFont) ? rowAndCellFont : tempFont; |
4392 const CFont* usedFont=(rowAndCellFont) ? rowAndCellFont : tempFont; |
4384 aGc.UseFont(usedFont); |
4393 aGc.UseFont(usedFont); |