| 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 <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "fpdfsdk/include/fsdk_mgr.h" | 9 #include "fpdfsdk/include/fsdk_mgr.h" |
| 10 | 10 |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 CFX_WideString CPDFSDK_Document::GetPath() { | 610 CFX_WideString CPDFSDK_Document::GetPath() { |
| 611 ASSERT(m_pEnv != NULL); | 611 ASSERT(m_pEnv != NULL); |
| 612 return m_pEnv->JS_docGetFilePath(); | 612 return m_pEnv->JS_docGetFilePath(); |
| 613 } | 613 } |
| 614 | 614 |
| 615 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, | 615 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, |
| 616 UnderlyingPageType* page) | 616 UnderlyingPageType* page) |
| 617 : m_page(page), | 617 : m_page(page), |
| 618 m_pSDKDoc(pSDKDoc), | 618 m_pSDKDoc(pSDKDoc), |
| 619 m_CaptureWidget(nullptr), | 619 m_CaptureWidget(nullptr), |
| 620 #ifndef PDF_ENABLE_XFA |
| 621 m_bTakeOverPage(FALSE), |
| 622 #endif // PDF_ENABLE_XFA |
| 620 m_bEnterWidget(FALSE), | 623 m_bEnterWidget(FALSE), |
| 621 m_bExitWidget(FALSE), | 624 m_bExitWidget(FALSE), |
| 622 m_bOnWidget(FALSE), | 625 m_bOnWidget(FALSE), |
| 623 m_bValid(FALSE), | 626 m_bValid(FALSE), |
| 624 #ifdef PDF_ENABLE_XFA | |
| 625 m_bLocked(FALSE) { | 627 m_bLocked(FALSE) { |
| 626 #else // PDF_ENABLE_XFA | |
| 627 m_bLocked(FALSE), | |
| 628 m_bTakeOverPage(FALSE) { | |
| 629 #endif // PDF_ENABLE_XFA | |
| 630 CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); | 628 CPDFSDK_InterForm* pInterForm = pSDKDoc->GetInterForm(); |
| 631 if (pInterForm) { | 629 if (pInterForm) { |
| 632 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); | 630 CPDF_InterForm* pPDFInterForm = pInterForm->GetInterForm(); |
| 633 #ifdef PDF_ENABLE_XFA | 631 #ifdef PDF_ENABLE_XFA |
| 634 if (page->GetPDFPage()) | 632 if (page->GetPDFPage()) |
| 635 pPDFInterForm->FixPageFields(page->GetPDFPage()); | 633 pPDFInterForm->FixPageFields(page->GetPDFPage()); |
| 636 #else // PDF_ENABLE_XFA | 634 #else // PDF_ENABLE_XFA |
| 637 pPDFInterForm->FixPageFields(page); | 635 pPDFInterForm->FixPageFields(page); |
| 638 #endif // PDF_ENABLE_XFA | 636 #endif // PDF_ENABLE_XFA |
| 639 } | 637 } |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); | 1154 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); |
| 1157 if (!pFocusAnnot) | 1155 if (!pFocusAnnot) |
| 1158 return nullptr; | 1156 return nullptr; |
| 1159 | 1157 |
| 1160 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { | 1158 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { |
| 1161 if (pAnnot == pFocusAnnot) | 1159 if (pAnnot == pFocusAnnot) |
| 1162 return pAnnot; | 1160 return pAnnot; |
| 1163 } | 1161 } |
| 1164 return nullptr; | 1162 return nullptr; |
| 1165 } | 1163 } |
| OLD | NEW |