richtexteditordocument.cpp

来自「在syambian s60 3rd上开发的超级计算器 可实现大浮点数的计算」· C++ 代码 · 共 61 行

CPP
61
字号
/*
* ============================================================================
*  Name     : CRTEDocument from RichTextEditorDocument.h
*  Part of  : RichTextEditor
*  Created  : 05/08/2006 by Forum Nokia 
*  Implementation notes: - standard Avkon document class source
*  Version  : 2.0
*
*  Copyright (c) 2006 - 2007 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ============================================================================
*/

// INCLUDE FILES
#include "RichTextEditorDocument.h"
#include "RichTextEditorAppUi.h"

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

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

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

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

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

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

// End of File  

⌨️ 快捷键说明

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