487 gc->SetPenColor(color); |
487 gc->SetPenColor(color); |
488 gc->SetPenStyle(CGraphicsContext::ESolidPen); |
488 gc->SetPenStyle(CGraphicsContext::ESolidPen); |
489 gc->SetPenSize(PenSize()); |
489 gc->SetPenSize(PenSize()); |
490 |
490 |
491 TBuf<KDisplayTextLen> buf; |
491 TBuf<KDisplayTextLen> buf; |
492 AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont, |
492 if ( iAlign == CGraphicsContext::ERight ) |
493 itemRect.Width(), itemRect.Width()); |
493 { |
|
494 AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont, |
|
495 itemRect.Width(), itemRect.Width(), |
|
496 AknBidiTextUtils::ERightToLeft ); |
|
497 } |
|
498 else |
|
499 { |
|
500 AknBidiTextUtils::ConvertToVisualAndClip(item->iText, buf, *iFont, |
|
501 itemRect.Width(), itemRect.Width()); |
|
502 } |
494 gc->DrawText(buf, itemRect, baseLine, iAlign); |
503 gc->DrawText(buf, itemRect, baseLine, iAlign); |
495 gc->DiscardFont(); |
504 gc->DiscardFont(); |
496 } |
505 } |
497 |
506 |
498 EXPORT_C void CFepLayoutScrollableList::ConstructL() |
507 EXPORT_C void CFepLayoutScrollableList::ConstructL() |