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 "../../include/fpdfdoc/fpdf_doc.h" |
8 CFX_WideString» » GetFullName(CPDF_Dictionary* pFieldDict); | 8 #include "doc_utils.h" |
9 void» » » » SaveCheckedFieldStatus(CPDF_FormField* pField, C
FX_ByteArray& statusArray); | 9 |
10 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField *pField) | 10 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField *pField) |
11 { | 11 { |
12 FX_BOOL bUnison = FALSE; | 12 FX_BOOL bUnison = FALSE; |
13 if (pField->GetType() == CPDF_FormField::CheckBox) { | 13 if (pField->GetType() == CPDF_FormField::CheckBox) { |
14 bUnison = TRUE; | 14 bUnison = TRUE; |
15 } else { | 15 } else { |
16 FX_DWORD dwFlags = pField->GetFieldFlags(); | 16 FX_DWORD dwFlags = pField->GetFieldFlags(); |
17 bUnison = ((dwFlags & 0x2000000) != 0); | 17 bUnison = ((dwFlags & 0x2000000) != 0); |
18 } | 18 } |
19 return bUnison; | 19 return bUnison; |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 if (m_pForm->m_pFormDict && m_pForm->m_pFormDict->GetDict("DR") && | 1167 if (m_pForm->m_pFormDict && m_pForm->m_pFormDict->GetDict("DR") && |
1168 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font") ) | 1168 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font") ) |
1169 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict(fo
nt_name); | 1169 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict(fo
nt_name); |
1170 | 1170 |
1171 if (pFontDict == NULL) { | 1171 if (pFontDict == NULL) { |
1172 return; | 1172 return; |
1173 } | 1173 } |
1174 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); | 1174 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); |
1175 m_FontSize = FX_atof(syntax.GetWord()); | 1175 m_FontSize = FX_atof(syntax.GetWord()); |
1176 } | 1176 } |
OLD | NEW |