| 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 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 int CPDFSDK_InterForm::AfterCheckedStatusChange( |
| 2013 const CPDF_FormField* pField, | 2013 const CPDF_FormField* pField, |
| 2014 const CFX_ByteArray& statusArray) { | 2014 const std::vector<uint8_t>& statusArray) { |
| 2015 CPDF_FormField* pFormField = (CPDF_FormField*)pField; | 2015 CPDF_FormField* pFormField = (CPDF_FormField*)pField; |
| 2016 int nType = pFormField->GetFieldType(); | 2016 int nType = pFormField->GetFieldType(); |
| 2017 if (nType == FIELDTYPE_CHECKBOX || nType == FIELDTYPE_RADIOBUTTON) { | 2017 if (nType == FIELDTYPE_CHECKBOX || nType == FIELDTYPE_RADIOBUTTON) { |
| 2018 OnCalculate(pFormField); | 2018 OnCalculate(pFormField); |
| 2019 UpdateField(pFormField); | 2019 UpdateField(pFormField); |
| 2020 } | 2020 } |
| 2021 return 0; | 2021 return 0; |
| 2022 } | 2022 } |
| 2023 | 2023 |
| 2024 int CPDFSDK_InterForm::BeforeFormReset(const CPDF_InterForm* pForm) { | 2024 int CPDFSDK_InterForm::BeforeFormReset(const CPDF_InterForm* pForm) { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2231 break; | 2231 break; |
| 2232 } | 2232 } |
| 2233 } | 2233 } |
| 2234 } | 2234 } |
| 2235 | 2235 |
| 2236 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { | 2236 CPDF_Rect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { |
| 2237 CPDF_Rect rcAnnot; | 2237 CPDF_Rect rcAnnot; |
| 2238 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); | 2238 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); |
| 2239 return rcAnnot; | 2239 return rcAnnot; |
| 2240 } | 2240 } |
| OLD | NEW |