emailuis/emailui/src/ncseditor.cpp
branchRCL_3
changeset 35 e64954c2c8e2
parent 33 da5135c61bad
child 24 b5fbb9b25d57
--- a/emailuis/emailui/src/ncseditor.cpp	Wed Apr 14 15:42:15 2010 +0300
+++ b/emailuis/emailui/src/ncseditor.cpp	Tue Apr 27 16:20:14 2010 +0300
@@ -83,15 +83,8 @@
 CNcsEditor::~CNcsEditor()
     {
     FUNC_LOG;
-    // <cmail> Platform layout change
-    delete iBgContext;
-    // </cmail>
     delete iGlobalCharFormat;
-    
-    if ( iEditorCustomDrawer )
-        {
-        delete iEditorCustomDrawer;        
-        }
+    delete iEditorCustomDrawer;
     delete iCaptionText;
     }
 
@@ -196,17 +189,6 @@
     }
 
 // -----------------------------------------------------------------------------
-// CNcsEditor::SetRect
-// -----------------------------------------------------------------------------
-//
-void CNcsEditor::SetRect( const TRect& aRect )
-    {
-    FUNC_LOG;
-    //CCoeControl::SetRect( aRect );
-    CEikRichTextEditor::SetRect( aRect );
-    }
-
-// -----------------------------------------------------------------------------
 // CNcsEditor::HandleResourceChange
 // -----------------------------------------------------------------------------
 //
@@ -217,8 +199,6 @@
 
     if ( aType == KAknsMessageSkinChange )
         {
-        // S60 skin support
-        UpdateGraphics();
         UpdateFontSize();
         UpdateColors();
         if ( iCustomDrawer )
@@ -292,10 +272,7 @@
     SetCursorPosL(0,EFalse);
     UpdateFontSize();
     UpdateColors();
-    // <cmail> S60 skin support
-    UpdateGraphics();
-    // </cmail>
-	}
+    }
 
 // -----------------------------------------------------------------------------
 // CNcsEditor::LineCount() const
@@ -496,41 +473,6 @@
     GlobalText()->SetGlobalCharFormat( iGlobalCharFormat );
     }
 
-// </cmail>
-
-// -----------------------------------------------------------------------------
-// CNcsEditor::UpdateGraphics
-// -----------------------------------------------------------------------------
-//
-void CNcsEditor::UpdateGraphics()
-    {
-    TRAP_IGNORE( DoUpdateGraphicsL() );
-    }
-
-// -----------------------------------------------------------------------------
-// CNcsEditor::DoUpdateGraphicsL
-// -----------------------------------------------------------------------------
-//
-void CNcsEditor::DoUpdateGraphicsL()
-    {
-	// <cmail> S60 Skin support
-    delete iBgContext;
-    iBgContext = NULL;
-
-    TSize mainPaneSize;
- 	AknLayoutUtils::LayoutMetricsSize(
- 	    AknLayoutUtils::EMainPane, mainPaneSize );
-
-    iBgContext = CAknsBasicBackgroundControlContext::NewL(
-        //KAknsIIDQgnFsGrafEmailContent,
-        KAknsIIDQsnBgAreaMain,
-        TRect( mainPaneSize ),
-        EFalse );
-
-    SetSkinBackgroundControlContextL( iBgContext );
-	// </cmail>
-    }
-
 // ---------------------------------------------------------------------------
 // CNcsEditor::GetLabelText
 // ---------------------------------------------------------------------------