| OLD | NEW |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) | 114 CXFA_FFPageView::CXFA_FFPageView(CXFA_FFDocView* pDocView, CXFA_Node* pPageArea) |
| 115 : CXFA_ContainerLayoutItem(pPageArea), m_pDocView(pDocView) {} | 115 : CXFA_ContainerLayoutItem(pPageArea), m_pDocView(pDocView) {} |
| 116 | 116 |
| 117 CXFA_FFPageView::~CXFA_FFPageView() {} | 117 CXFA_FFPageView::~CXFA_FFPageView() {} |
| 118 | 118 |
| 119 CXFA_FFDocView* CXFA_FFPageView::GetDocView() const { | 119 CXFA_FFDocView* CXFA_FFPageView::GetDocView() const { |
| 120 return m_pDocView; | 120 return m_pDocView; |
| 121 } | 121 } |
| 122 | 122 |
| 123 void CXFA_FFPageView::GetPageViewRect(CFX_RectF& rtPage) const { | 123 void CXFA_FFPageView::GetPageViewRect(CFX_RectF& rtPage) const { |
| 124 CFX_SizeF sz; | 124 rtPage.Set(0, 0, GetPageSize()); |
| 125 GetPageSize(sz); | |
| 126 rtPage.Set(0, 0, sz); | |
| 127 } | 125 } |
| 126 |
| 128 void CXFA_FFPageView::GetDisplayMatrix(CFX_Matrix& mt, | 127 void CXFA_FFPageView::GetDisplayMatrix(CFX_Matrix& mt, |
| 129 const CFX_Rect& rtDisp, | 128 const CFX_Rect& rtDisp, |
| 130 int32_t iRotate) const { | 129 int32_t iRotate) const { |
| 131 CFX_SizeF sz; | 130 CFX_SizeF sz = GetPageSize(); |
| 132 GetPageSize(sz); | |
| 133 CFX_RectF fdePage; | 131 CFX_RectF fdePage; |
| 134 fdePage.Set(0, 0, sz.x, sz.y); | 132 fdePage.Set(0, 0, sz.x, sz.y); |
| 135 GetPageMatrix(mt, fdePage, rtDisp, iRotate, 0); | 133 GetPageMatrix(mt, fdePage, rtDisp, iRotate, 0); |
| 136 } | 134 } |
| 137 | 135 |
| 138 IXFA_WidgetIterator* CXFA_FFPageView::CreateWidgetIterator( | 136 IXFA_WidgetIterator* CXFA_FFPageView::CreateWidgetIterator( |
| 139 uint32_t dwTraverseWay, | 137 uint32_t dwTraverseWay, |
| 140 uint32_t dwWidgetFilter) { | 138 uint32_t dwWidgetFilter) { |
| 141 switch (dwTraverseWay) { | 139 switch (dwTraverseWay) { |
| 142 case XFA_TRAVERSEWAY_Tranvalse: | 140 case XFA_TRAVERSEWAY_Tranvalse: |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 pWidget->LoadWidget(); | 445 pWidget->LoadWidget(); |
| 448 } | 446 } |
| 449 return pWidget; | 447 return pWidget; |
| 450 } | 448 } |
| 451 return nullptr; | 449 return nullptr; |
| 452 } | 450 } |
| 453 | 451 |
| 454 CXFA_TabParam::CXFA_TabParam() : m_pWidget(nullptr) {} | 452 CXFA_TabParam::CXFA_TabParam() : m_pWidget(nullptr) {} |
| 455 | 453 |
| 456 CXFA_TabParam::~CXFA_TabParam() {} | 454 CXFA_TabParam::~CXFA_TabParam() {} |
| OLD | NEW |