| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |