pdfckonapplication.cpp

来自「Symbian界面设计的C++源代码例子:Designing and build」· C++ 代码 · 共 42 行

CPP
42
字号
//
// PdfCKONApplication.cpp
//

#include <eikapp.h>

// Ui
#include "PdfCKONDocument.h"

class CPdfCKONApplication: public CEikApplication
	{
// --o CEikApplication
private:
	TUid AppDllUid() const { return KUidPdf; }
	CApaDocument* CreateDocumentL();
	void GetDefaultDocumentFileName(TFileName& aDocumentName) const;
	};

CApaDocument* CPdfCKONApplication::CreateDocumentL()
	{
	CPdfCKONDocument* doc = new(ELeave) CPdfCKONDocument(*this);
	CleanupStack::PushL(doc);
	doc->ConstructL();
	CleanupStack::Pop(); // doc
	return doc;
	}

// We do not want a default document created
void CPdfCKONApplication::GetDefaultDocumentFileName(TFileName& aDocumentName) const
	{
	aDocumentName.Zero();
	} 

EXPORT_C CApaApplication* NewApplication()
	{
	return new CPdfCKONApplication;
	}

GLDEF_C TInt E32Dll(TDllReason /* aReason */)
	{
	return KErrNone;
	}

⌨️ 快捷键说明

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