diff -r b5fbb9b25d57 -r 67369d1b217f meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp --- a/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp Tue May 11 15:57:15 2010 +0300 +++ b/meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrsaveandopenattachmentcommand.cpp Tue May 25 12:23:16 2010 +0300 @@ -22,7 +22,6 @@ #include #include #include -#include #include #include @@ -30,13 +29,6 @@ #include "emailtrace.h" -namespace { // codescanner::namespace - -// Notepad data type -_LIT8( KNotePadTextDataType, "text/plain" ); - -} - // ======== MEMBER FUNCTIONS ======== // --------------------------------------------------------------------------- @@ -134,21 +126,8 @@ TDataType datatype( aEntry.AttachmentL( aAttachmentIndex )->MimeType() ); - if( datatype == KNotePadTextDataType() ) - { - // Notepad will try to open text/plain type data - err = CNotepadApi::ExecFileViewerL( - copiedFile, - NULL, - ETrue, - EFalse, - KCharacterSetIdentifierIso88591 ); - } - else - { - // Doc handler will try to open other than text files - TRAP( err, iDocHandler.OpenFileEmbeddedL( copiedFile, datatype ) ); - } + // Doc handler will try to open file + TRAP( err, iDocHandler.OpenFileEmbeddedL( copiedFile, datatype ) ); CleanupStack::PopAndDestroy( &copiedFile ); CleanupStack::PopAndDestroy( &file );