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 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 void RestoreStates(CPDF_AllStates*); | 147 void RestoreStates(CPDF_AllStates*); |
148 CPDF_Font* FindFont(const CFX_ByteString& name); | 148 CPDF_Font* FindFont(const CFX_ByteString& name); |
149 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); | 149 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); |
150 CPDF_Pattern* FindPattern(const CFX_ByteString& name, FX_BOOL bShading); | 150 CPDF_Pattern* FindPattern(const CFX_ByteString& name, FX_BOOL bShading); |
151 CPDF_Object* FindResourceObj(const CFX_ByteStringC& type, | 151 CPDF_Object* FindResourceObj(const CFX_ByteStringC& type, |
152 const CFX_ByteString& name); | 152 const CFX_ByteString& name); |
153 | 153 |
154 protected: | 154 protected: |
155 using OpCodes = | 155 using OpCodes = |
156 std::unordered_map<FX_DWORD, void (CPDF_StreamContentParser::*)()>; | 156 std::unordered_map<FX_DWORD, void (CPDF_StreamContentParser::*)()>; |
157 static const OpCodes s_OpCodes; | 157 static OpCodes InitializeOpCodes(); |
158 | 158 |
159 void Handle_CloseFillStrokePath(); | 159 void Handle_CloseFillStrokePath(); |
160 void Handle_FillStrokePath(); | 160 void Handle_FillStrokePath(); |
161 void Handle_CloseEOFillStrokePath(); | 161 void Handle_CloseEOFillStrokePath(); |
162 void Handle_EOFillStrokePath(); | 162 void Handle_EOFillStrokePath(); |
163 void Handle_BeginMarkedContent_Dictionary(); | 163 void Handle_BeginMarkedContent_Dictionary(); |
164 void Handle_BeginImage(); | 164 void Handle_BeginImage(); |
165 void Handle_BeginMarkedContent(); | 165 void Handle_BeginMarkedContent(); |
166 void Handle_BeginText(); | 166 void Handle_BeginText(); |
167 void Handle_CurveTo_123(); | 167 void Handle_CurveTo_123(); |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 449 |
450 private: | 450 private: |
451 CPDF_ColorSpace* m_pBaseCS; | 451 CPDF_ColorSpace* m_pBaseCS; |
452 CPDF_CountedColorSpace* m_pCountedBaseCS; | 452 CPDF_CountedColorSpace* m_pCountedBaseCS; |
453 }; | 453 }; |
454 | 454 |
455 void PDF_ReplaceAbbr(CPDF_Object* pObj); | 455 void PDF_ReplaceAbbr(CPDF_Object* pObj); |
456 bool IsPathOperator(const uint8_t* buf, size_t len); | 456 bool IsPathOperator(const uint8_t* buf, size_t len); |
457 | 457 |
458 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ | 458 #endif // CORE_SRC_FPDFAPI_FPDF_PAGE_PAGEINT_H_ |
OLD | NEW |