📄 chvdocument.cpp
字号:
/*
* HView [c]2004 Marcin Skoczylas, All rights reserved
*
* This file is under GPL license, see gpl.txt file
*
*/
#include "CHVAppUi.h"
#include "CHVDocument.h"
#include "DBG_LOGF.h"
CHVDocument* CHVDocument::NewL(CEikApplication& aApp)
{
CHVDocument* self = NewLC(aApp);
CleanupStack::Pop(self);
return self;
}
CHVDocument* CHVDocument::NewLC(CEikApplication& aApp)
{
CHVDocument* self = new (ELeave) CHVDocument(aApp);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
void CHVDocument::ConstructL()
{
}
CHVDocument::CHVDocument(CEikApplication& aApp) : CAknDocument(aApp)
{
}
CFileStore* CHVDocument::OpenFileL(TBool aDoOpen,const TDesC& aFilename, RFs& aFs)
{
/* don't work not called, I wonder why?
LOGF("doc: OpenFileL\n");
if(aDoOpen)
{
LOGF("aFname:\n");
LOGD(&aFilename);
LOGF("\nok\n");
}
*/
return CEikDocument::OpenFileL(aDoOpen, aFilename, aFs);
}
CHVDocument::~CHVDocument()
{
// Any destruction code here
DBG_shutdownLogFile();
}
CEikAppUi* CHVDocument::CreateAppUiL()
{
// Create the application user interface, and return a pointer to it
CEikAppUi* appUi = new (ELeave) CHVAppUi;
return appUi;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -