| 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/app/xfa_ffwidgetacc.h" | 7 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 case XFA_Element::Execute: | 327 case XFA_Element::Execute: |
| 328 break; | 328 break; |
| 329 case XFA_Element::Script: { | 329 case XFA_Element::Script: { |
| 330 CXFA_Script script = event.GetScript(); | 330 CXFA_Script script = event.GetScript(); |
| 331 return ExecuteScript(script, pEventParam); | 331 return ExecuteScript(script, pEventParam); |
| 332 } break; | 332 } break; |
| 333 case XFA_Element::SignData: | 333 case XFA_Element::SignData: |
| 334 break; | 334 break; |
| 335 case XFA_Element::Submit: { | 335 case XFA_Element::Submit: { |
| 336 CXFA_Submit submit = event.GetSubmit(); | 336 CXFA_Submit submit = event.GetSubmit(); |
| 337 return GetDoc()->GetDocProvider()->SubmitData(GetDoc(), submit); | 337 return GetDoc()->GetDocEnvironment()->SubmitData(GetDoc(), submit); |
| 338 } | 338 } |
| 339 default: | 339 default: |
| 340 break; | 340 break; |
| 341 } | 341 } |
| 342 return XFA_EVENTERROR_NotExist; | 342 return XFA_EVENTERROR_NotExist; |
| 343 } | 343 } |
| 344 | 344 |
| 345 int32_t CXFA_WidgetAcc::ProcessCalculate() { | 345 int32_t CXFA_WidgetAcc::ProcessCalculate() { |
| 346 if (GetElementType() == XFA_Element::Draw) | 346 if (GetElementType() == XFA_Element::Draw) |
| 347 return XFA_EVENTERROR_NotExist; | 347 return XFA_EVENTERROR_NotExist; |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 if (pIDNode) { | 1687 if (pIDNode) { |
| 1688 pEmbAcc = static_cast<CXFA_WidgetAcc*>(pIDNode->GetWidgetData()); | 1688 pEmbAcc = static_cast<CXFA_WidgetAcc*>(pIDNode->GetWidgetData()); |
| 1689 } | 1689 } |
| 1690 if (pEmbAcc) { | 1690 if (pEmbAcc) { |
| 1691 pEmbAcc->GetValue(wsValue, XFA_VALUEPICTURE_Display); | 1691 pEmbAcc->GetValue(wsValue, XFA_VALUEPICTURE_Display); |
| 1692 return TRUE; | 1692 return TRUE; |
| 1693 } | 1693 } |
| 1694 } | 1694 } |
| 1695 return FALSE; | 1695 return FALSE; |
| 1696 } | 1696 } |
| OLD | NEW |