From f6fd22f6226f69d728ecaa5a961f4bc10a4a225e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 10 Jun 2015 23:14:43 -0700 Subject: Merge to XFA: Convert CPDF_FontMap to std::map. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1151133004. (cherry picked from commit 3c949d5d2b0d680839766ea99c86b263230b263d) Review URL: https://codereview.chromium.org/1174173005. --- core/src/fpdfapi/fpdf_page/pageint.h | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'core/src/fpdfapi/fpdf_page/pageint.h') diff --git a/core/src/fpdfapi/fpdf_page/pageint.h b/core/src/fpdfapi/fpdf_page/pageint.h index 5bf854948a..08c4301e74 100644 --- a/core/src/fpdfapi/fpdf_page/pageint.h +++ b/core/src/fpdfapi/fpdf_page/pageint.h @@ -1,18 +1,20 @@ // Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - + // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ +#include + #include "../../../include/fpdfapi/fpdf_pageobj.h" #define PARSE_STEP_LIMIT 100 #define STREAM_PARSE_BUFSIZE 20480 -class CPDF_QuickFontCache; -class CPDF_StreamParser + +class CPDF_StreamParser { public: @@ -119,7 +121,7 @@ typedef struct { #define _FPDF_MAX_FORM_LEVEL_ 30 #define _FPDF_MAX_TYPE3_FORM_LEVEL_ 4 #define _FPDF_MAX_OBJECT_STACK_SIZE_ 512 -class CPDF_StreamContentParser +class CPDF_StreamContentParser { public: CPDF_StreamContentParser(); @@ -281,7 +283,7 @@ public: void Handle_NextLineShowText_Space(); void Handle_Invalid(); }; -class CPDF_ContentParser +class CPDF_ContentParser { public: CPDF_ContentParser(); @@ -360,11 +362,12 @@ FX_BOOL PDF_DocPageData_Release(CFX_MapPtrTemplate; + using CPDF_FontMap = std::map; + + CPDF_FontMap m_FontMap; }; -class CPDF_Function + +class CPDF_Function { public: static CPDF_Function* Load(CPDF_Object* pFuncObj); @@ -417,7 +426,7 @@ protected: virtual FX_BOOL v_Init(CPDF_Object* pObj) = 0; virtual FX_BOOL v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const = 0; }; -class CPDF_IccProfile +class CPDF_IccProfile { public: CPDF_IccProfile(const uint8_t* pData, FX_DWORD dwSize); @@ -453,7 +462,7 @@ public: CPDF_CountedColorSpace* m_pCountedBaseCS; }; #define MAX_PAGE_OBJECTS_UNIFY_NAMING 4096 -class CPDF_ResourceNaming +class CPDF_ResourceNaming { public: struct _NamingState { -- cgit v1.2.3