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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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 | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/formfiller/FFL_CheckBox.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/formfiller/FormFiller.h" 7 #include "../../include/formfiller/FormFiller.h"
8 #include "../../include/formfiller/FFL_CBA_Fontmap.h" 8 #include "../../include/formfiller/FFL_CBA_Fontmap.h"
9 9
10 CBA_FontMap::CBA_FontMap(CPDFSDK_Annot* pAnnot, IFX_SystemHandler* pSystemHandle r) : 10 CBA_FontMap::CBA_FontMap(CPDFSDK_Annot* pAnnot, IFX_SystemHandler* pSystemHandle r) :
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 } 224 }
225 225
226 CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString &sAlias) 226 CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString &sAlias)
227 { 227 {
228 ASSERT(m_pAnnotDict != NULL); 228 ASSERT(m_pAnnotDict != NULL);
229 ASSERT(m_pDocument != NULL); 229 ASSERT(m_pDocument != NULL);
230 230
231 CPDF_Dictionary* pAcroFormDict = NULL; 231 CPDF_Dictionary* pAcroFormDict = NULL;
232 232
233 » FX_BOOL bWidget = (m_pAnnotDict->GetString("Subtype") == "Widget"); 233 » bool bWidget = (m_pAnnotDict->GetString("Subtype") == "Widget");
234 234
235 if (bWidget) 235 if (bWidget)
236 { 236 {
237 if (CPDF_Dictionary * pRootDict = m_pDocument->GetRoot()) 237 if (CPDF_Dictionary * pRootDict = m_pDocument->GetRoot())
238 pAcroFormDict = pRootDict->GetDict("AcroForm"); 238 pAcroFormDict = pRootDict->GetDict("AcroForm");
239 } 239 }
240 240
241 CFX_ByteString sDA; 241 CFX_ByteString sDA;
242 CPDF_Object* pObj; 242 CPDF_Object* pObj;
243 if ((pObj = FPDF_GetFieldAttr(m_pAnnotDict, "DA"))) 243 if ((pObj = FPDF_GetFieldAttr(m_pAnnotDict, "DA")))
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 290 }
291 291
292 void CBA_FontMap::SetAPType(const CFX_ByteString& sAPType) 292 void CBA_FontMap::SetAPType(const CFX_ByteString& sAPType)
293 { 293 {
294 m_sAPType = sAPType; 294 m_sAPType = sAPType;
295 295
296 Reset(); 296 Reset();
297 Initial(); 297 Initial();
298 } 298 }
299 299
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_Wnd.h ('k') | fpdfsdk/src/formfiller/FFL_CheckBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698