diff options
author | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-03 18:38:41 -0800 |
---|---|---|
committer | Bo Xu <bo_xu@foxitsoftware.com> | 2014-11-03 18:38:41 -0800 |
commit | 9d9f6c347f56b07ec519c93097066a7eb541263d (patch) | |
tree | 040b7a6aa6618e31fc11500d658b56567fbc89b7 /xfa_test/FormFiller_Test/ReaderVCDoc.cpp | |
parent | 062a0798d91646959e8092a129fbe706534ca387 (diff) | |
download | pdfium-9d9f6c347f56b07ec519c93097066a7eb541263d.tar.xz |
Remove xfa_test for delivery
Diffstat (limited to 'xfa_test/FormFiller_Test/ReaderVCDoc.cpp')
-rw-r--r-- | xfa_test/FormFiller_Test/ReaderVCDoc.cpp | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/xfa_test/FormFiller_Test/ReaderVCDoc.cpp b/xfa_test/FormFiller_Test/ReaderVCDoc.cpp deleted file mode 100644 index e06515d67e..0000000000 --- a/xfa_test/FormFiller_Test/ReaderVCDoc.cpp +++ /dev/null @@ -1,113 +0,0 @@ -// ReaderVCDoc.cpp : implementation of the CReaderVCDoc class
-//
-
-#include "stdafx.h"
-#include "ReaderVC.h"
-
-#include "MainFrm.h"
-#include "ChildFrm.h"
-#include "ReaderVCDoc.h"
-#include "ReaderVCView.h"
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CReaderVCDoc
-
-IMPLEMENT_DYNCREATE(CReaderVCDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CReaderVCDoc, CDocument)
- //{{AFX_MSG_MAP(CReaderVCDoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CReaderVCDoc construction/destruction
-
-CReaderVCDoc::CReaderVCDoc()
-{
- // TODO: add one-time construction code here
-
-}
-
-CReaderVCDoc::~CReaderVCDoc()
-{
-}
-
-BOOL CReaderVCDoc::OnNewDocument()
-{
- if (!CDocument::OnNewDocument())
- return FALSE;
-
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
-
- return TRUE;
-}
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CReaderVCDoc serialization
-
-void CReaderVCDoc::Serialize(CArchive& ar)
-{
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CReaderVCDoc diagnostics
-
-#ifdef _DEBUG
-void CReaderVCDoc::AssertValid() const
-{
- CDocument::AssertValid();
-}
-
-void CReaderVCDoc::Dump(CDumpContext& dc) const
-{
- CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CReaderVCDoc commands
-
-BOOL CReaderVCDoc::OnOpenDocument(LPCTSTR lpszPathName)
-{
- if (!CDocument::OnOpenDocument(lpszPathName))
- return FALSE;
-
- // TODO: Add your specialized creation code here
- void* pDoc = FPDF_LoadDocument(lpszPathName, NULL);
-
- m_strPDFName=lpszPathName;
- if(NULL == pDoc) return FALSE;
- POSITION pos = GetFirstViewPosition();
- int nCount = FPDF_GetPageCount(pDoc);
- while (pos != NULL)
- {
- CView* pView = GetNextView(pos);
- if(pView->IsKindOf(RUNTIME_CLASS(CReaderVCView)))
- {
- CMainFrame* pMFrm = (CMainFrame*)AfxGetMainWnd();
- CChildFrame* pChildFrm =(CChildFrame*) pMFrm->GetActiveFrame();
- pChildFrm->SetActiveView(pView, TRUE);
-// FPDFApp_SetDocument(((CReaderVCView*)pView)->GetFPDFApp(), (FPDF_DOCUMENT)pDoc);
- ((CReaderVCView*)pView)->SetPDFDocument(pDoc, nCount);
- }
- }
- return TRUE;
-}
|