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

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

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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_link.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 "../../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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")) 1035 m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font"))
1036 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict( 1036 pFontDict = m_pForm->m_pFormDict->GetDict("DR")->GetDict("Font")->GetDict(
1037 font_name); 1037 font_name);
1038 1038
1039 if (pFontDict == NULL) { 1039 if (pFontDict == NULL) {
1040 return; 1040 return;
1041 } 1041 }
1042 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict); 1042 m_pFont = m_pForm->m_pDocument->LoadFont(pFontDict);
1043 m_FontSize = FX_atof(syntax.GetWord()); 1043 m_FontSize = FX_atof(syntax.GetWord());
1044 } 1044 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_formcontrol.cpp ('k') | core/src/fpdfdoc/doc_link.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698