| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 void OnChangeTextMatrix(); | 131 void OnChangeTextMatrix(); |
| 132 FX_DWORD Parse(const uint8_t* pData, FX_DWORD dwSize, FX_DWORD max_cost); | 132 FX_DWORD Parse(const uint8_t* pData, FX_DWORD dwSize, FX_DWORD max_cost); |
| 133 void ParsePathObject(); | 133 void ParsePathObject(); |
| 134 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, int flag); | 134 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, int flag); |
| 135 void AddPathRect(FX_FLOAT x, FX_FLOAT y, FX_FLOAT w, FX_FLOAT h); | 135 void AddPathRect(FX_FLOAT x, FX_FLOAT y, FX_FLOAT w, FX_FLOAT h); |
| 136 void AddPathObject(int FillType, FX_BOOL bStroke); | 136 void AddPathObject(int FillType, FX_BOOL bStroke); |
| 137 CPDF_ImageObject* AddImage(CPDF_Stream* pStream, | 137 CPDF_ImageObject* AddImage(CPDF_Stream* pStream, |
| 138 CPDF_Image* pImage, | 138 CPDF_Image* pImage, |
| 139 FX_BOOL bInline); | 139 FX_BOOL bInline); |
| 140 void AddDuplicateImage(); | 140 void AddDuplicateImage(); |
| 141 void AddForm(CPDF_Stream*); | 141 void AddForm(CPDF_Stream* pStream); |
| 142 void SetGraphicStates(CPDF_PageObject* pObj, | 142 void SetGraphicStates(CPDF_PageObject* pObj, |
| 143 FX_BOOL bColor, | 143 FX_BOOL bColor, |
| 144 FX_BOOL bText, | 144 FX_BOOL bText, |
| 145 FX_BOOL bGraph); | 145 FX_BOOL bGraph); |
| 146 void SaveStates(CPDF_AllStates*); | 146 void SaveStates(CPDF_AllStates* pState); |
| 147 void RestoreStates(CPDF_AllStates*); | 147 void RestoreStates(CPDF_AllStates* pState); |
| 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 OpCodes InitializeOpCodes(); | 157 static OpCodes InitializeOpCodes(); |
| (...skipping 291 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 |