messagingappbase/msgeditor/viewsrc/MsgBodyControlEditor.cpp
branchRCL_3
changeset 33 94cccd85bd25
parent 28 fbb813aef148
child 53 696bfeff199e
equal deleted inserted replaced
29:7e4e4bcc75b6 33:94cccd85bd25
   117                                       CItemFinder::EEmailAddress | 
   117                                       CItemFinder::EEmailAddress | 
   118                                       CItemFinder::EPhoneNumber | 
   118                                       CItemFinder::EPhoneNumber | 
   119                                       CItemFinder::EUriScheme );
   119                                       CItemFinder::EUriScheme );
   120 
   120 
   121     iItemFinder->AddObserver( *this );
   121     iItemFinder->AddObserver( *this );
   122     iItemFinder->SetItemFinderObserverL( this );  
       
   123     
   122     
   124     iFocusChangedBeforeParseFinish = EFalse;
   123     iFocusChangedBeforeParseFinish = EFalse;
   125 
   124 
   126     CEikRichTextEditor::ConstructL( iParentControl, 0, iMaxNumberOfChars, edwinFlags );
   125     CEikRichTextEditor::ConstructL( iParentControl, 0, iMaxNumberOfChars, edwinFlags );
   127     // 107-24185 : Emoticon support for SMS and MMS
   126     // 107-24185 : Emoticon support for SMS and MMS
   736     if ( aType == KAknsMessageSkinChange &&  MsgEditorCustomDraw() )
   735     if ( aType == KAknsMessageSkinChange &&  MsgEditorCustomDraw() )
   737         {
   736         {
   738          MsgEditorCustomDraw()->SkinChanged();;    
   737          MsgEditorCustomDraw()->SkinChanged();;    
   739     	}
   738     	}
   740     }
   739     }
       
   740 // ---------------------------------------------------------
       
   741 // CMsgBodyControlEditor::PrepareForReadOnlyL
       
   742 //
       
   743 // Sets SetItemFinderObserverL for viewers
       
   744 // ---------------------------------------------------------
       
   745 //
       
   746 
       
   747 void CMsgBodyControlEditor::PrepareForReadOnlyL( TBool aReadOnly )
       
   748    {
       
   749    if ( iItemFinder )
       
   750        {
       
   751        if ( aReadOnly )
       
   752            {
       
   753            iItemFinder->SetItemFinderObserverL( this ); 
       
   754            }
       
   755        else
       
   756            {
       
   757            iItemFinder->SetItemFinderObserverL( NULL );
       
   758            }
       
   759        } 
       
   760 
       
   761    CMsgExpandableControlEditor::PrepareForReadOnlyL( aReadOnly );
       
   762    }
       
   763 
   741 
   764 
   742 //  End of File
   765 //  End of File