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

Side by Side Diff: xfa/fxfa/app/xfa_ffpageview.cpp

Issue 2045013004: Fix GetPageIndex() for dynamic XFA documents. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Remove redundant CXFA_FFPageView::GetPageViewIndex Created 4 years, 6 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/include/fsdk_mgr.h ('k') | xfa/fxfa/include/xfa_ffpageview.h » ('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 "xfa/fxfa/include/xfa_ffpageview.h" 7 #include "xfa/fxfa/include/xfa_ffpageview.h"
8 8
9 #include "xfa/fde/fde_render.h" 9 #include "xfa/fde/fde_render.h"
10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h" 10 #include "xfa/fxfa/app/xfa_ffcheckbutton.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) 96 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea)
97 : CXFA_ContainerLayoutItem(pPageArea), m_pDocView(pDocView) {} 97 : CXFA_ContainerLayoutItem(pPageArea), m_pDocView(pDocView) {}
98 98
99 CXFA_FFPageView::~CXFA_FFPageView() {} 99 CXFA_FFPageView::~CXFA_FFPageView() {}
100 100
101 CXFA_FFDocView* CXFA_FFPageView::GetDocView() const { 101 CXFA_FFDocView* CXFA_FFPageView::GetDocView() const {
102 return m_pDocView; 102 return m_pDocView;
103 } 103 }
104 104
105 int32_t CXFA_FFPageView::GetPageViewIndex() const {
106 return GetPageIndex();
107 }
108
109 void CXFA_FFPageView::GetPageViewRect(CFX_RectF& rtPage) const { 105 void CXFA_FFPageView::GetPageViewRect(CFX_RectF& rtPage) const {
110 CFX_SizeF sz; 106 CFX_SizeF sz;
111 GetPageSize(sz); 107 GetPageSize(sz);
112 rtPage.Set(0, 0, sz); 108 rtPage.Set(0, 0, sz);
113 } 109 }
114 void CXFA_FFPageView::GetDisplayMatrix(CFX_Matrix& mt, 110 void CXFA_FFPageView::GetDisplayMatrix(CFX_Matrix& mt,
115 const CFX_Rect& rtDisp, 111 const CFX_Rect& rtDisp,
116 int32_t iRotate) const { 112 int32_t iRotate) const {
117 CFX_SizeF sz; 113 CFX_SizeF sz;
118 GetPageSize(sz); 114 GetPageSize(sz);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 CXFA_LayoutItem* pLayoutItem) { 425 CXFA_LayoutItem* pLayoutItem) {
430 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) { 426 if (CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem)) {
431 if (!pWidget->IsLoaded() && 427 if (!pWidget->IsLoaded() &&
432 (pWidget->GetStatus() & XFA_WidgetStatus_Visible)) { 428 (pWidget->GetStatus() & XFA_WidgetStatus_Visible)) {
433 pWidget->LoadWidget(); 429 pWidget->LoadWidget();
434 } 430 }
435 return pWidget; 431 return pWidget;
436 } 432 }
437 return NULL; 433 return NULL;
438 } 434 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | xfa/fxfa/include/xfa_ffpageview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698