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

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

Issue 1157773012: Cleanup: Make CPDF_Annot::m_pAnnotDict private. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 6 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_annot.cpp ('k') | fpdfsdk/src/fpdf_ext.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) :
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
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
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_annot.cpp ('k') | fpdfsdk/src/fpdf_ext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698