Nokia N97 SDK
Example Applications Guide

RichTextEditorDocument.cpp

00001 /*
00002 * ============================================================================
00003 *  Name     : CRTEDocument from RichTextEditorDocument.h
00004 *  Part of  : RichTextEditor
00005 *  Created  : 05/08/2006 by Forum Nokia 
00006 *  Implementation notes: - standard Avkon document class source
00007 *  Version  : 2.0
00008 *
00009 *  Copyright (c) 2006 - 2007 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 #include "RichTextEditorDocument.h"
00018 #include "RichTextEditorAppUi.h"
00019 
00020 // ================= MEMBER FUNCTIONS =======================
00021 
00022 // constructor
00023 CRTEDocument::CRTEDocument(CEikApplication& aApp)
00024 : CAknDocument(aApp)    
00025     {
00026     }
00027 
00028 // destructor
00029 CRTEDocument::~CRTEDocument()
00030     {
00031     }
00032 
00033 // EPOC default constructor can leave.
00034 void CRTEDocument::ConstructL()
00035     {
00036     }
00037 
00038 // Two-phased constructor.
00039 CRTEDocument* CRTEDocument::NewL(
00040         CEikApplication& aApp)     // CRTEApp reference
00041     {
00042     CRTEDocument* self = new (ELeave) CRTEDocument( aApp );
00043     CleanupStack::PushL( self );
00044     self->ConstructL();
00045     CleanupStack::Pop();//Self
00046 
00047     return self;
00048     }
00049     
00050 // ----------------------------------------------------
00051 // CRTEDocument::CreateAppUiL()
00052 // constructs CRTEAppUi
00053 // ----------------------------------------------------
00054 //
00055 CEikAppUi* CRTEDocument::CreateAppUiL()
00056     {
00057     return new (ELeave) CRTEAppUi;
00058     }
00059 
00060 // End of File  

© Nokia 2009

Back to top