normaltexteditordocument.cpp

来自「《基于symbian手机开发与应用》一书的源代码」· C++ 代码 · 共 58 行

CPP
58
字号
/*
* ============================================================================
*  Name     : CNormalTextEditorDocument from NormalTextEditorDocument.h
*  Part of  : NormalTextEditor
*  Created  : 2006-4-7 by hewei
*  Implementation notes:
*     Initial content was generated by Series 60 AppWizard.
*  Version  :
*  Copyright: myself
* ============================================================================
*/

// INCLUDE FILES
#include "NormalTextEditorDocument.h"
#include "NormalTextEditorAppUi.h"

// ================= MEMBER FUNCTIONS =======================

// constructor
CNormalTextEditorDocument::CNormalTextEditorDocument(CEikApplication& aApp)
: CAknDocument(aApp)    
    {
    }

// destructor
CNormalTextEditorDocument::~CNormalTextEditorDocument()
    {
    }

// EPOC default constructor can leave.
void CNormalTextEditorDocument::ConstructL()
    {
    }

// Two-phased constructor.
CNormalTextEditorDocument* CNormalTextEditorDocument::NewL(
        CEikApplication& aApp)     // CNormalTextEditorApp reference
    {
    CNormalTextEditorDocument* self = new (ELeave) CNormalTextEditorDocument( aApp );
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop();

    return self;
    }
    
// ----------------------------------------------------
// CNormalTextEditorDocument::CreateAppUiL()
// constructs CNormalTextEditorAppUi
// ----------------------------------------------------
//
CEikAppUi* CNormalTextEditorDocument::CreateAppUiL()
    {
    return new (ELeave) CNormalTextEditorAppUi;
    }

// End of File  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?