OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ | 7 #ifndef CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ |
8 #define CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ | 8 #define CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 FX_FLOAT* pKerning, | 90 FX_FLOAT* pKerning, |
91 int count); | 91 int count); |
92 | 92 |
93 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); | 93 void ConvertUserSpace(FX_FLOAT& x, FX_FLOAT& y); |
94 void ConvertTextSpace(FX_FLOAT& x, FX_FLOAT& y); | 94 void ConvertTextSpace(FX_FLOAT& x, FX_FLOAT& y); |
95 void OnChangeTextMatrix(); | 95 void OnChangeTextMatrix(); |
96 void ParsePathObject(); | 96 void ParsePathObject(); |
97 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, int flag); | 97 void AddPathPoint(FX_FLOAT x, FX_FLOAT y, int flag); |
98 void AddPathRect(FX_FLOAT x, FX_FLOAT y, FX_FLOAT w, FX_FLOAT h); | 98 void AddPathRect(FX_FLOAT x, FX_FLOAT y, FX_FLOAT w, FX_FLOAT h); |
99 void AddPathObject(int FillType, bool bStroke); | 99 void AddPathObject(int FillType, bool bStroke); |
100 CPDF_ImageObject* AddImage(UniqueStream pStream); | 100 CPDF_ImageObject* AddImage(std::unique_ptr<CPDF_Stream> pStream); |
101 CPDF_ImageObject* AddImage(uint32_t streamObjNum); | 101 CPDF_ImageObject* AddImage(uint32_t streamObjNum); |
102 CPDF_ImageObject* AddImage(CPDF_Image* pImage); | 102 CPDF_ImageObject* AddImage(CPDF_Image* pImage); |
103 | 103 |
104 void AddForm(CPDF_Stream* pStream); | 104 void AddForm(CPDF_Stream* pStream); |
105 void SetGraphicStates(CPDF_PageObject* pObj, | 105 void SetGraphicStates(CPDF_PageObject* pObj, |
106 bool bColor, | 106 bool bColor, |
107 bool bText, | 107 bool bText, |
108 bool bGraph); | 108 bool bGraph); |
109 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); | 109 CPDF_ColorSpace* FindColorSpace(const CFX_ByteString& name); |
110 CPDF_Pattern* FindPattern(const CFX_ByteString& name, bool bShading); | 110 CPDF_Pattern* FindPattern(const CFX_ByteString& name, bool bShading); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 CPDF_Image* m_pLastImage; | 216 CPDF_Image* m_pLastImage; |
217 CPDF_Dictionary* m_pLastImageDict; | 217 CPDF_Dictionary* m_pLastImageDict; |
218 CPDF_Dictionary* m_pLastCloneImageDict; | 218 CPDF_Dictionary* m_pLastCloneImageDict; |
219 bool m_bColored; | 219 bool m_bColored; |
220 FX_FLOAT m_Type3Data[6]; | 220 FX_FLOAT m_Type3Data[6]; |
221 bool m_bResourceMissing; | 221 bool m_bResourceMissing; |
222 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack; | 222 std::vector<std::unique_ptr<CPDF_AllStates>> m_StateStack; |
223 }; | 223 }; |
224 | 224 |
225 #endif // CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ | 225 #endif // CORE_FPDFAPI_PAGE_CPDF_STREAMCONTENTPARSER_H_ |
OLD | NEW |