Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: fpdfsdk/fpdfxfa/fpdfxfa_page.cpp

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/fsdk_annothandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h" 7 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
11 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h" 11 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
12 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h" 12 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_util.h"
13 #include "fpdfsdk/include/fsdk_define.h" 13 #include "fpdfsdk/include/fsdk_define.h"
14 #include "fpdfsdk/include/fsdk_mgr.h" 14 #include "fpdfsdk/include/fsdk_mgr.h"
15 #include "xfa/include/fxfa/xfa_ffdocview.h"
16 #include "xfa/include/fxfa/xfa_ffpageview.h"
15 17
16 CPDFXFA_Page::CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index) 18 CPDFXFA_Page::CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index)
17 : m_pPDFPage(NULL), 19 : m_pPDFPage(NULL),
18 m_pXFAPageView(NULL), 20 m_pXFAPageView(NULL),
19 m_iPageIndex(page_index), 21 m_iPageIndex(page_index),
20 m_pDocument(pDoc), 22 m_pDocument(pDoc),
21 m_iRef(1) {} 23 m_iRef(1) {}
22 24
23 CPDFXFA_Page::~CPDFXFA_Page() { 25 CPDFXFA_Page::~CPDFXFA_Page() {
24 if (m_pPDFPage) 26 if (m_pPDFPage)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 m_pPDFPage->ParseContent(nullptr); 61 m_pPDFPage->ParseContent(nullptr);
60 return TRUE; 62 return TRUE;
61 } 63 }
62 64
63 return FALSE; 65 return FALSE;
64 } 66 }
65 67
66 FX_BOOL CPDFXFA_Page::LoadXFAPageView() { 68 FX_BOOL CPDFXFA_Page::LoadXFAPageView() {
67 if (!m_pDocument) 69 if (!m_pDocument)
68 return FALSE; 70 return FALSE;
69 IXFA_Doc* pXFADoc = m_pDocument->GetXFADoc(); 71 CXFA_FFDoc* pXFADoc = m_pDocument->GetXFADoc();
70 if (!pXFADoc) 72 if (!pXFADoc)
71 return FALSE; 73 return FALSE;
72 74
73 IXFA_DocView* pXFADocView = m_pDocument->GetXFADocView(); 75 CXFA_FFDocView* pXFADocView = m_pDocument->GetXFADocView();
74 if (!pXFADocView) 76 if (!pXFADocView)
75 return FALSE; 77 return FALSE;
76 78
77 IXFA_PageView* pPageView = pXFADocView->GetPageView(m_iPageIndex); 79 CXFA_FFPageView* pPageView = pXFADocView->GetPageView(m_iPageIndex);
78 if (!pPageView) 80 if (!pPageView)
79 return FALSE; 81 return FALSE;
80 82
81 if (m_pXFAPageView == pPageView) 83 if (m_pXFAPageView == pPageView)
82 return TRUE; 84 return TRUE;
83 85
84 m_pXFAPageView = pPageView; 86 m_pXFAPageView = pPageView;
85 (void)m_pXFAPageView->LoadPageView(nullptr); 87 (void)m_pXFAPageView->LoadPageView(nullptr);
86 return TRUE; 88 return TRUE;
87 } 89 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 case DOCTYPE_PDF: 241 case DOCTYPE_PDF:
240 case DOCTYPE_STATIC_XFA: { 242 case DOCTYPE_STATIC_XFA: {
241 if (m_pPDFPage) { 243 if (m_pPDFPage) {
242 m_pPDFPage->GetDisplayMatrix(matrix, xPos, yPos, xSize, ySize, iRotate); 244 m_pPDFPage->GetDisplayMatrix(matrix, xPos, yPos, xSize, ySize, iRotate);
243 } 245 }
244 } break; 246 } break;
245 default: 247 default:
246 return; 248 return;
247 } 249 }
248 } 250 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp ('k') | fpdfsdk/fsdk_annothandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698