| 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 "fpdfsdk/include/fsdk_baseform.h" | 7 #include "fpdfsdk/include/fsdk_baseform.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 int CPDFSDK_InterForm::AfterSelectionChange(const CPDF_FormField* pField) { | 2002 int CPDFSDK_InterForm::AfterSelectionChange(const CPDF_FormField* pField) { |
| 2003 CPDF_FormField* pFormField = (CPDF_FormField*)pField; | 2003 CPDF_FormField* pFormField = (CPDF_FormField*)pField; |
| 2004 if (pFormField->GetFieldType() == FIELDTYPE_LISTBOX) { | 2004 if (pFormField->GetFieldType() == FIELDTYPE_LISTBOX) { |
| 2005 OnCalculate(pFormField); | 2005 OnCalculate(pFormField); |
| 2006 ResetFieldAppearance(pFormField, NULL, TRUE); | 2006 ResetFieldAppearance(pFormField, NULL, TRUE); |
| 2007 UpdateField(pFormField); | 2007 UpdateField(pFormField); |
| 2008 } | 2008 } |
| 2009 return 0; | 2009 return 0; |
| 2010 } | 2010 } |
| 2011 | 2011 |
| 2012 int CPDFSDK_InterForm::AfterCheckedStatusChange( | 2012 void CPDFSDK_InterForm::AfterCheckedStatusChange(CPDF_FormField* pField) { |
| 2013 const CPDF_FormField* pField, | 2013 int nType = pField->GetFieldType(); |
| 2014 const CFX_ByteArray& statusArray) { | |
| 2015 CPDF_FormField* pFormField = (CPDF_FormField*)pField; | |
| 2016 int nType = pFormField->GetFieldType(); | |
| 2017 if (nType == FIELDTYPE_CHECKBOX || nType == FIELDTYPE_RADIOBUTTON) { | 2014 if (nType == FIELDTYPE_CHECKBOX || nType == FIELDTYPE_RADIOBUTTON) { |
| 2018 OnCalculate(pFormField); | 2015 OnCalculate(pField); |
| 2019 UpdateField(pFormField); | 2016 UpdateField(pField); |
| 2020 } | 2017 } |
| 2021 return 0; | |
| 2022 } | 2018 } |
| 2023 | 2019 |
| 2024 int CPDFSDK_InterForm::BeforeFormReset(const CPDF_InterForm* pForm) { | 2020 int CPDFSDK_InterForm::BeforeFormReset(const CPDF_InterForm* pForm) { |
| 2025 return 0; | 2021 return 0; |
| 2026 } | 2022 } |
| 2027 | 2023 |
| 2028 int CPDFSDK_InterForm::AfterFormReset(const CPDF_InterForm* pForm) { | 2024 int CPDFSDK_InterForm::AfterFormReset(const CPDF_InterForm* pForm) { |
| 2029 OnCalculate(nullptr); | 2025 OnCalculate(nullptr); |
| 2030 return 0; | 2026 return 0; |
| 2031 } | 2027 } |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 break; | 2227 break; |
| 2232 } | 2228 } |
| 2233 } | 2229 } |
| 2234 } | 2230 } |
| 2235 | 2231 |
| 2236 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { | 2232 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { |
| 2237 CPDF_Rect rcAnnot; | 2233 CPDF_Rect rcAnnot; |
| 2238 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); | 2234 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); |
| 2239 return rcAnnot; | 2235 return rcAnnot; |
| 2240 } | 2236 } |
| OLD | NEW |