| 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 "../../../public/fpdf_formfill.h" | 7 #include "../../../public/fpdf_formfill.h" |
| 8 #include "../../include/fsdk_define.h" | 8 #include "../../include/fsdk_define.h" |
| 9 #include "../../include/fpdfxfa/fpdfxfa_doc.h" | 9 #include "../../include/fpdfxfa/fpdfxfa_doc.h" |
| 10 #include "../../include/fsdk_mgr.h" | 10 #include "../../include/fsdk_mgr.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 return; | 539 return; |
| 540 CPDFXFA_Page* pXFAPage = GetPage(pPageView); | 540 CPDFXFA_Page* pXFAPage = GetPage(pPageView); |
| 541 if (pXFAPage == NULL) | 541 if (pXFAPage == NULL) |
| 542 return; | 542 return; |
| 543 | 543 |
| 544 CPDFSDK_PageView* pSdkPageView = m_pSDKDoc->GetPageView(pXFAPage); | 544 CPDFSDK_PageView* pSdkPageView = m_pSDKDoc->GetPageView(pXFAPage); |
| 545 | 545 |
| 546 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandlerMgr(); | 546 CPDFSDK_AnnotHandlerMgr* pAnnotHandlerMgr = pEnv->GetAnnotHandlerMgr(); |
| 547 | 547 |
| 548 if (dwEvent == XFA_WIDGETEVENT_PostAdded) { | 548 if (dwEvent == XFA_WIDGETEVENT_PostAdded) { |
| 549 // »» » CPDFSDK_Annot* pAnnot = pAnnotHandlerMgr->NewAnnot(hWidg
et, | 549 // »» » CPDFSDK_Annot* pAnnot = |
| 550 // pAnnotHandlerMgr->NewAnnot(hWidget, |
| 550 // pSdkPageView); | 551 // pSdkPageView); |
| 551 // pAnnotHandlerMgr->Annot_OnLoad(pAnnot); | 552 // pAnnotHandlerMgr->Annot_OnLoad(pAnnot); |
| 552 | 553 |
| 553 // pEnv->FFI_WidgetEvent(hWidget, XFA_WIDGETEVENT_PostAdded); | 554 // pEnv->FFI_WidgetEvent(hWidget, XFA_WIDGETEVENT_PostAdded); |
| 554 // IXFA_PageView* pOldPageView = (IXFA_PageView*)pAdditional; | 555 // IXFA_PageView* pOldPageView = (IXFA_PageView*)pAdditional; |
| 555 // if (pOldPageView) | 556 // if (pOldPageView) |
| 556 // { | 557 // { |
| 557 // CPDFXFA_Page* pDestPage = | 558 // CPDFXFA_Page* pDestPage = |
| 558 // m_pSDKDoc->GetPageView((IXFA_PageView*)pOldPageView); | 559 // m_pSDKDoc->GetPageView((IXFA_PageView*)pOldPageView); |
| 559 // ASSERT(pDestPage); | 560 // ASSERT(pDestPage); |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1342 } | 1343 } |
| 1343 | 1344 |
| 1344 return _GetHValueByName(szPropName, hValue, | 1345 return _GetHValueByName(szPropName, hValue, |
| 1345 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1346 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
| 1346 } | 1347 } |
| 1347 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1348 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
| 1348 FXJSE_HVALUE hValue, | 1349 FXJSE_HVALUE hValue, |
| 1349 IFXJS_Runtime* runTime) { | 1350 IFXJS_Runtime* runTime) { |
| 1350 return runTime->GetHValueByName(utf8Name, hValue); | 1351 return runTime->GetHValueByName(utf8Name, hValue); |
| 1351 } | 1352 } |
| OLD | NEW |