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/fpdfapi/fpdf_parser/include/cfdf_document.h" |
| 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" |
| 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h" |
| 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
7 #include "core/fpdfdoc/doc_utils.h" | 13 #include "core/fpdfdoc/doc_utils.h" |
8 #include "core/include/fpdfapi/cfdf_document.h" | |
9 #include "core/include/fpdfapi/cpdf_array.h" | |
10 #include "core/include/fpdfapi/cpdf_document.h" | |
11 #include "core/include/fpdfapi/cpdf_number.h" | |
12 #include "core/include/fpdfapi/cpdf_simple_parser.h" | |
13 #include "core/include/fpdfapi/cpdf_string.h" | |
14 #include "core/include/fpdfdoc/fpdf_doc.h" | 14 #include "core/include/fpdfdoc/fpdf_doc.h" |
15 | 15 |
16 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { | 16 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { |
17 FX_BOOL bUnison = FALSE; | 17 FX_BOOL bUnison = FALSE; |
18 if (pField->GetType() == CPDF_FormField::CheckBox) { | 18 if (pField->GetType() == CPDF_FormField::CheckBox) { |
19 bUnison = TRUE; | 19 bUnison = TRUE; |
20 } else { | 20 } else { |
21 FX_DWORD dwFlags = pField->GetFieldFlags(); | 21 FX_DWORD dwFlags = pField->GetFieldFlags(); |
22 bUnison = ((dwFlags & 0x2000000) != 0); | 22 bUnison = ((dwFlags & 0x2000000) != 0); |
23 } | 23 } |
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR") | 1088 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR") |
1089 ->GetDictBy("Font") | 1089 ->GetDictBy("Font") |
1090 ->GetDictBy(font_name); | 1090 ->GetDictBy(font_name); |
1091 | 1091 |
1092 if (!pFontDict) { | 1092 if (!pFontDict) { |
1093 return; | 1093 return; |
1094 } | 1094 } |
1095 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); | 1095 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); |
1096 m_FontSize = FX_atof(syntax.GetWord()); | 1096 m_FontSize = FX_atof(syntax.GetWord()); |
1097 } | 1097 } |
OLD | NEW |