richtexteditorapp.cpp

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

CPP
86
字号
/*
* ============================================================================
*  Name     : CRTEApp from RichTextEditorApp.cpp
*  Part of  : RichTextEditor
*  Created  : 05/08/2006 by Forum Nokia 
*  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
#ifndef RICHTEXTEDITORAPP_h
#include    "RichTextEditorApp.h"
#endif
#include    "RichTextEditorDocument.h"
#ifdef __SERIES60_3X__
#include <eikstart.h>
#endif
// ================= MEMBER FUNCTIONS =======================

/*enum TOperator { EOpAdd = 0, EOpSub, EOpMult, EOpDiv } CurOp;
TBuf<100> bufResult; */

// ---------------------------------------------------------
// CRTEApp::AppDllUid()
// Returns application UID
// ---------------------------------------------------------
//
TUid CRTEApp::AppDllUid() const
    {
    return KUidRTE;
    }

// ---------------------------------------------------------
// CRTEApp::CreateDocumentL()
// Creates CRTEDocument object
// ---------------------------------------------------------
//
CApaDocument* CRTEApp::CreateDocumentL()
    {
    return CRTEDocument::NewL( *this );
    }

// ================= OTHER EXPORTED FUNCTIONS ==============
//
// ---------------------------------------------------------
// NewApplication() 
// Constructs CRTEApp
// Returns: created application object
// ---------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
    {
    return new CRTEApp;
    }

#ifndef __SERIES60_3X__
// ---------------------------------------------------------
// E32Dll(TDllReason) 
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//
GLDEF_C TInt E32Dll( TDllReason )
{
    return KErrNone;
}
#else
// ---------------------------------------------------------
// E32Main()
// Entry point function for new (>= 9.0) EPOC Apps (exe)
// Returns: Sistem Wide error codes or KErrNone if all goes well
// ---------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
	return EikStart::RunApplication( NewApplication );
}
#endif
// End of File  

⌨️ 快捷键说明

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