emailuis/emailui/src/ncseditor.cpp
branchRCL_3
changeset 23 dcf0eedfc1a3
parent 16 b5fbb9b25d57
equal deleted inserted replaced
22:d620048b4810 23:dcf0eedfc1a3
    26 #include <AknsConstants.h>
    26 #include <AknsConstants.h>
    27 #include <AknsUtils.h>
    27 #include <AknsUtils.h>
    28 #include <AknsSkinInstance.h>
    28 #include <AknsSkinInstance.h>
    29 #include <aknedsts.h>
    29 #include <aknedsts.h>
    30 #include <AknsBasicBackgroundControlContext.h>
    30 #include <AknsBasicBackgroundControlContext.h>
       
    31 #include <centralrepository.h>
    31 
    32 
    32 #include "ncseditor.h"
    33 #include "ncseditor.h"
    33 #include "ncsutility.h"
    34 #include "ncsutility.h"
    34 #include "ncscustomdraw.h"
    35 #include "ncscustomdraw.h"
    35 #include "ncseditorcustomdraw.h"
    36 #include "ncseditorcustomdraw.h"
       
    37 #include "freestyleemailcenrepkeys.h"
    36 
    38 
    37 // ========================= MEMBER FUNCTIONS ==================================
    39 // ========================= MEMBER FUNCTIONS ==================================
    38 
    40 
    39 // ---------------------------------------------------------------------------
    41 // ---------------------------------------------------------------------------
    40 // constructor
    42 // constructor
    69     CEikRichTextEditor::ConstructL( aParent, aNumberOfLines, aTextLimit,
    71     CEikRichTextEditor::ConstructL( aParent, aNumberOfLines, aTextLimit,
    70             CEikEdwin::EAvkonEditor | CEikEdwin::EResizable |
    72             CEikEdwin::EAvkonEditor | CEikEdwin::EResizable |
    71             CEikEdwin::ENoAutoSelection | CEikEdwin::EInclusiveSizeFixed |
    73             CEikEdwin::ENoAutoSelection | CEikEdwin::EInclusiveSizeFixed |
    72             CEikEdwin::ENoHorizScrolling | CEikRichTextEditor::EPasteAsPlainText );
    74             CEikEdwin::ENoHorizScrolling | CEikRichTextEditor::EPasteAsPlainText );
    73     
    75     
       
    76     CRepository* repository = NULL;
       
    77     TRAPD( err, repository = CRepository::NewL( KFreestyleEmailCenRep ) );
       
    78     if ( !err )
       
    79         {
       
    80         TInt value( 0 );
       
    81         err = repository->Get( KEmailFeatureSplitScreen, value );
       
    82         if( !err && value )
       
    83             {
       
    84             SetAknEditorFlags( AknEditorFlags() | EAknEditorFlagEnablePartialScreen );  
       
    85             }
       
    86         }
       
    87     delete repository;
       
    88     repository = NULL;
    74     iGlobalCharFormat = CCharFormatLayer::NewL();
    89     iGlobalCharFormat = CCharFormatLayer::NewL();
    75     iGlobalCharFormat->SetBase( GlobalText()->GlobalCharFormatLayer() );
    90     iGlobalCharFormat->SetBase( GlobalText()->GlobalCharFormatLayer() );
    76     GlobalText()->SetGlobalCharFormat( iGlobalCharFormat );
    91     GlobalText()->SetGlobalCharFormat( iGlobalCharFormat );
    77     }
    92     }
    78 
    93