| 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 "../../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) { |
| 11 FX_BOOL bUnison = FALSE; | 11 FX_BOOL bUnison = FALSE; |
| 12 if (pField->GetType() == CPDF_FormField::CheckBox) { | 12 if (pField->GetType() == CPDF_FormField::CheckBox) { |
| 13 bUnison = TRUE; | 13 bUnison = TRUE; |
| 14 } else { | 14 } else { |
| 15 FX_DWORD dwFlags = pField->GetFieldFlags(); | 15 FX_DWORD dwFlags = pField->GetFieldFlags(); |
| 16 bUnison = ((dwFlags & 0x2000000) != 0); | 16 bUnison = ((dwFlags & 0x2000000) != 0); |
| 17 } | 17 } |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")) | 1112 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")) |
| 1113 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict( | 1113 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict( |
| 1114 font_name); | 1114 font_name); |
| 1115 | 1115 |
| 1116 if (pFontDict == NULL) { | 1116 if (pFontDict == NULL) { |
| 1117 return; | 1117 return; |
| 1118 } | 1118 } |
| 1119 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); | 1119 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); |
| 1120 m_FontSize = FX_atof(syntax.GetWord()); | 1120 m_FontSize = FX_atof(syntax.GetWord()); |
| 1121 } | 1121 } |
| OLD | NEW |