| 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 "core/include/fpdfdoc/fpdf_doc.h" | 7 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 8 #include "doc_utils.h" | 8 #include "doc_utils.h" |
| 9 | 9 |
| 10 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { | 10 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 if (bNotify && m_pForm->m_pFormNotify != NULL) { | 810 if (bNotify && m_pForm->m_pFormNotify != NULL) { |
| 811 if (GetType() == ListBox) | 811 if (GetType() == ListBox) |
| 812 m_pForm->m_pFormNotify->AfterSelectionChange(this); | 812 m_pForm->m_pFormNotify->AfterSelectionChange(this); |
| 813 if (GetType() == ComboBox) | 813 if (GetType() == ComboBox) |
| 814 m_pForm->m_pFormNotify->AfterValueChange(this); | 814 m_pForm->m_pFormNotify->AfterValueChange(this); |
| 815 } | 815 } |
| 816 | 816 |
| 817 m_pForm->m_bUpdated = TRUE; | 817 m_pForm->m_bUpdated = TRUE; |
| 818 return TRUE; | 818 return TRUE; |
| 819 } | 819 } |
| 820 #endif | 820 #endif // PDF_ENABLE_XFA |
| 821 FX_BOOL CPDF_FormField::CheckControl(int iControlIndex, | 821 FX_BOOL CPDF_FormField::CheckControl(int iControlIndex, |
| 822 FX_BOOL bChecked, | 822 FX_BOOL bChecked, |
| 823 FX_BOOL bNotify) { | 823 FX_BOOL bNotify) { |
| 824 ASSERT(GetType() == CheckBox || GetType() == RadioButton); | 824 ASSERT(GetType() == CheckBox || GetType() == RadioButton); |
| 825 CPDF_FormControl* pControl = GetControl(iControlIndex); | 825 CPDF_FormControl* pControl = GetControl(iControlIndex); |
| 826 if (pControl == NULL) { | 826 if (pControl == NULL) { |
| 827 return FALSE; | 827 return FALSE; |
| 828 } | 828 } |
| 829 if (!bChecked && pControl->IsChecked() == bChecked) { | 829 if (!bChecked && pControl->IsChecked() == bChecked) { |
| 830 return FALSE; | 830 return FALSE; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")) | 1114 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")) |
| 1115 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict( | 1115 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict( |
| 1116 font_name); | 1116 font_name); |
| 1117 | 1117 |
| 1118 if (pFontDict == NULL) { | 1118 if (pFontDict == NULL) { |
| 1119 return; | 1119 return; |
| 1120 } | 1120 } |
| 1121 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); | 1121 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); |
| 1122 m_FontSize = FX_atof(syntax.GetWord()); | 1122 m_FontSize = FX_atof(syntax.GetWord()); |
| 1123 } | 1123 } |
| OLD | NEW |