equal
deleted
inserted
replaced
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description : CEikRichTextEditor based Rich Text viewer |
14 * Description : CEikRichTextEditor based Rich Text viewer |
15 * Version : %version: e002sa33#45.3 % |
15 * Version : %version: e002sa33#45.4 % |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 #include "cesmrrichtextviewer.h" |
19 #include "cesmrrichtextviewer.h" |
20 |
20 |
427 { |
427 { |
428 FUNC_LOG; |
428 FUNC_LOG; |
429 |
429 |
430 iLinkList.ResetAndDestroy(); |
430 iLinkList.ResetAndDestroy(); |
431 |
431 |
432 TextView()->SetMarginWidths( KDefaultTextSideMargin ,0); |
|
433 |
|
434 // Clear edwin text |
432 // Clear edwin text |
435 CEikEdwin::SetCursorPosL( 0, EFalse ); |
433 CEikEdwin::SetCursorPosL( 0, EFalse ); |
436 CEikRichTextEditor::SetTextL( &KNullDesC ); |
434 CEikRichTextEditor::SetTextL( &KNullDesC ); |
437 RichText()->Reset(); |
435 RichText()->Reset(); |
438 |
436 |
441 SetUpperFullFormattingLength( aText->Length() + 1 ); |
439 SetUpperFullFormattingLength( aText->Length() + 1 ); |
442 |
440 |
443 // Set new edwin text |
441 // Set new edwin text |
444 CEikEdwin::SetTextLimit( aText->Length ( ) ); |
442 CEikEdwin::SetTextLimit( aText->Length ( ) ); |
445 CEikRichTextEditor::SetTextL( aText ); |
443 CEikRichTextEditor::SetTextL( aText ); |
|
444 |
|
445 TextView()->SetMarginWidths( KDefaultTextSideMargin ,0); |
446 |
446 |
447 //Make sure cursor is invisible and selection visible |
447 //Make sure cursor is invisible and selection visible |
448 TextView()->SetCursorVisibilityL( |
448 TextView()->SetCursorVisibilityL( |
449 TCursor::EFCursorInvisible, |
449 TCursor::EFCursorInvisible, |
450 TCursor::EFCursorInvisible ); |
450 TCursor::EFCursorInvisible ); |