equal
deleted
inserted
replaced
68 |
68 |
69 // A message may contain more than one text part. |
69 // A message may contain more than one text part. |
70 TInt count = iEmailMessage.Selection().Count(); |
70 TInt count = iEmailMessage.Selection().Count(); |
71 for(TInt i=0;i<count;++i) |
71 for(TInt i=0;i<count;++i) |
72 { |
72 { |
73 textIdArray.AppendL(iEmailMessage.Selection().At(i)); |
73 textIdArray.Append(iEmailMessage.Selection().At(i)); |
74 } |
74 } |
75 |
75 |
76 TUint charset = 0; // Will contain the charset when GetCharacterSetL returns. |
76 TUint charset = 0; // Will contain the charset when GetCharacterSetL returns. |
77 TBool override = EFalse; // Will be set to ETrue if the existing charset was overidden. |
77 TBool override = EFalse; // Will be set to ETrue if the existing charset was overidden. |
78 iEmailMessage.GetCharacterSetL(iMessageId,charset,override); |
78 iEmailMessage.GetCharacterSetL(iMessageId,charset,override); |
91 CleanupStack::PopAndDestroy(2,characterConverter); // charConv, characterConverter |
91 CleanupStack::PopAndDestroy(2,characterConverter); // charConv, characterConverter |
92 |
92 |
93 iMsvEntry.SetEntryL(textIdArray[0]); |
93 iMsvEntry.SetEntryL(textIdArray[0]); |
94 iStore = iMsvEntry.EditStoreL(); |
94 iStore = iMsvEntry.EditStoreL(); |
95 // Body text is stored in MailStore as 16 bit so set iIs8Bit to EFalse. |
95 // Body text is stored in MailStore as 16 bit so set iIs8Bit to EFalse. |
96 iPlainTextArray.AppendL(iStore->InitialisePlainBodyTextForWriteL(EFalse, charset, defaultCharset)); |
96 iPlainTextArray.Append(iStore->InitialisePlainBodyTextForWriteL(EFalse, charset, defaultCharset)); |
97 } |
97 } |
98 else |
98 else |
99 { |
99 { |
100 TInt textIdCount = textIdArray.Count(); |
100 TInt textIdCount = textIdArray.Count(); |
101 for(TInt i=0; i<textIdCount; ++i) |
101 for(TInt i=0; i<textIdCount; ++i) |
103 // Pointing to the text entry. |
103 // Pointing to the text entry. |
104 iMsvEntry.SetEntryL(textIdArray[i]); |
104 iMsvEntry.SetEntryL(textIdArray[i]); |
105 CMsvStore* store = iMsvEntry.ReadStoreL(); |
105 CMsvStore* store = iMsvEntry.ReadStoreL(); |
106 CleanupStack::PushL(store); |
106 CleanupStack::PushL(store); |
107 |
107 |
108 iPlainTextArray.AppendL( store->InitialisePlainBodyTextForReadL(aChunkLength)); |
108 iPlainTextArray.Append( store->InitialisePlainBodyTextForReadL(aChunkLength)); |
109 // if the existing charset was overidden by calling CImEmailMessage::SetCharacterSetL |
109 // if the existing charset was overidden by calling CImEmailMessage::SetCharacterSetL |
110 if(override) |
110 if(override) |
111 { |
111 { |
112 iPlainTextArray[i]->SetCharacterSetL(charset); |
112 iPlainTextArray[i]->SetCharacterSetL(charset); |
113 } |
113 } |
466 Cancels the relavent CMsvPlainBodyText object |
466 Cancels the relavent CMsvPlainBodyText object |
467 */ |
467 */ |
468 void CImPlainBodyText::DoCancel() |
468 void CImPlainBodyText::DoCancel() |
469 { |
469 { |
470 iPlainTextArray[iIndex]->Cancel(); |
470 iPlainTextArray[iIndex]->Cancel(); |
471 CMsgActive::DoCancel(); |
471 } |
472 } |
|