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

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

Issue 1780503002: Split off CPDF_Document into its own .cpp/.h files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits. Created 4 years, 9 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/src/fpdfdoc/doc_formcontrol.cpp ('k') | core/src/fpdfdoc/doc_metadata.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/include/fpdfapi/cpdf_document.h"
7 #include "core/include/fpdfdoc/fpdf_doc.h" 8 #include "core/include/fpdfdoc/fpdf_doc.h"
8 #include "core/src/fpdfdoc/doc_utils.h" 9 #include "core/src/fpdfdoc/doc_utils.h"
9 10
10 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) { 11 FX_BOOL PDF_FormField_IsUnison(CPDF_FormField* pField) {
11 FX_BOOL bUnison = FALSE; 12 FX_BOOL bUnison = FALSE;
12 if (pField->GetType() == CPDF_FormField::CheckBox) { 13 if (pField->GetType() == CPDF_FormField::CheckBox) {
13 bUnison = TRUE; 14 bUnison = TRUE;
14 } else { 15 } else {
15 FX_DWORD dwFlags = pField->GetFieldFlags(); 16 FX_DWORD dwFlags = pField->GetFieldFlags();
16 bUnison = ((dwFlags & 0x2000000) != 0); 17 bUnison = ((dwFlags & 0x2000000) != 0);
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR") 1083 pFontDict = m_pForm->m_pFormDict->GetDictBy("DR")
1083 ->GetDictBy("Font") 1084 ->GetDictBy("Font")
1084 ->GetDictBy(font_name); 1085 ->GetDictBy(font_name);
1085 1086
1086 if (!pFontDict) { 1087 if (!pFontDict) {
1087 return; 1088 return;
1088 } 1089 }
1089 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); 1090 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict);
1090 m_FontSize = FX_atof(syntax.GetWord()); 1091 m_FontSize = FX_atof(syntax.GetWord());
1091 } 1092 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_formcontrol.cpp ('k') | core/src/fpdfdoc/doc_metadata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698