Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: core/fpdfdoc/doc_formfield.cpp

Issue 1840413002: Split core/include/fpdfdoc/fpdf_ap.h (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfdoc/doc_ap.cpp ('k') | core/fpdfdoc/doc_vt.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 7 #include "core/fpdfapi/fpdf_parser/include/cfdf_document.h"
8 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 8 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
9 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
10 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
11 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h"
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
13 #include "core/fpdfdoc/cpvt_generateap.h"
13 #include "core/fpdfdoc/doc_utils.h" 14 #include "core/fpdfdoc/doc_utils.h"
14 #include "core/include/fpdfdoc/fpdf_doc.h" 15 #include "core/include/fpdfdoc/fpdf_doc.h"
15 16
16 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { 17 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) {
17 FX_BOOL bUnison = FALSE; 18 FX_BOOL bUnison = FALSE;
18 if (pField->GetType() == CPDF_FormField::CheckBox) { 19 if (pField->GetType() == CPDF_FormField::CheckBox) {
19 bUnison = TRUE; 20 bUnison = TRUE;
20 } else { 21 } else {
21 uint32_t dwFlags = pField->GetFieldFlags(); 22 uint32_t dwFlags = pField->GetFieldFlags();
22 bUnison = ((dwFlags & 0x2000000) != 0); 23 bUnison = ((dwFlags & 0x2000000) != 0);
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR") 1063 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR")
1063 ->GetDictBy("Font") 1064 ->GetDictBy("Font")
1064 ->GetDictBy(font_name); 1065 ->GetDictBy(font_name);
1065 1066
1066 if (!pFontDict) { 1067 if (!pFontDict) {
1067 return; 1068 return;
1068 } 1069 }
1069 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); 1070 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict);
1070 m_FontSize = FX_atof(syntax.GetWord()); 1071 m_FontSize = FX_atof(syntax.GetWord());
1071 } 1072 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/doc_ap.cpp ('k') | core/fpdfdoc/doc_vt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698