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) : |
11 CPWL_FontMap(pSystemHandler), | 11 CPWL_FontMap(pSystemHandler), |
12 m_pDocument(NULL), | 12 m_pDocument(NULL), |
13 m_pAnnotDict(NULL), | 13 m_pAnnotDict(NULL), |
14 m_pDefaultFont(NULL), | 14 m_pDefaultFont(NULL), |
15 m_sAPType("N") | 15 m_sAPType("N") |
16 { | 16 { |
17 ASSERT(pAnnot != NULL); | 17 ASSERT(pAnnot != NULL); |
18 | 18 |
19 CPDF_Page* pPage = pAnnot->GetPDFPage(); | 19 CPDF_Page* pPage = pAnnot->GetPDFPage(); |
20 | 20 |
21 m_pDocument = pPage->m_pDocument; | 21 m_pDocument = pPage->m_pDocument; |
22 » m_pAnnotDict = pAnnot->GetPDFAnnot()->m_pAnnotDict; | 22 » m_pAnnotDict = pAnnot->GetPDFAnnot()->GetAnnotDict(); |
23 } | 23 } |
24 | 24 |
25 CBA_FontMap::CBA_FontMap(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict, | 25 CBA_FontMap::CBA_FontMap(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict, |
26 IFX_SystemHandler* pSystemHandl
er) : | 26 IFX_SystemHandler* pSystemHandl
er) : |
27 CPWL_FontMap(pSystemHandler), | 27 CPWL_FontMap(pSystemHandler), |
28 m_pDocument(pDocument), | 28 m_pDocument(pDocument), |
29 m_pAnnotDict(pAnnotDict), | 29 m_pAnnotDict(pAnnotDict), |
30 m_pDefaultFont(NULL), | 30 m_pDefaultFont(NULL), |
31 m_sAPType("N") | 31 m_sAPType("N") |
32 { | 32 { |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 293 } |
294 | 294 |
295 void CBA_FontMap::SetAPType(const CFX_ByteString& sAPType) | 295 void CBA_FontMap::SetAPType(const CFX_ByteString& sAPType) |
296 { | 296 { |
297 m_sAPType = sAPType; | 297 m_sAPType = sAPType; |
298 | 298 |
299 Reset(); | 299 Reset(); |
300 Initial(); | 300 Initial(); |
301 } | 301 } |
302 | 302 |
OLD | NEW |