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_INCLUDE_FPDFAPI_FPDF_PAGE_H_ | 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ |
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ | 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ |
9 | 9 |
10 #include "core/include/fxge/fx_dib.h" | 10 #include "core/include/fxge/fx_dib.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 int level = 0); | 159 int level = 0); |
160 | 160 |
161 void ParseContent(CPDF_AllStates* pGraphicStates, | 161 void ParseContent(CPDF_AllStates* pGraphicStates, |
162 CFX_Matrix* pParentMatrix, | 162 CFX_Matrix* pParentMatrix, |
163 CPDF_Type3Char* pType3Char, | 163 CPDF_Type3Char* pType3Char, |
164 CPDF_ParseOptions* pOptions, | 164 CPDF_ParseOptions* pOptions, |
165 int level = 0); | 165 int level = 0); |
166 | 166 |
167 CPDF_Form* Clone() const; | 167 CPDF_Form* Clone() const; |
168 }; | 168 }; |
169 class CPDF_PageContentGenerate { | 169 class CPDF_PageContentGenerator { |
170 public: | 170 public: |
171 CPDF_PageContentGenerate(CPDF_Page* pPage); | 171 CPDF_PageContentGenerator(CPDF_Page* pPage); |
172 ~CPDF_PageContentGenerate(); | 172 ~CPDF_PageContentGenerator(); |
173 FX_BOOL InsertPageObject(CPDF_PageObject* pPageObject); | 173 FX_BOOL InsertPageObject(CPDF_PageObject* pPageObject); |
174 void GenerateContent(); | 174 void GenerateContent(); |
175 void TransformContent(CFX_Matrix& matrix); | 175 void TransformContent(CFX_Matrix& matrix); |
176 | 176 |
177 protected: | 177 private: |
178 void ProcessImage(CFX_ByteTextBuf& buf, CPDF_ImageObject* pImageObj); | 178 void ProcessImage(CFX_ByteTextBuf& buf, CPDF_ImageObject* pImageObj); |
179 void ProcessForm(CFX_ByteTextBuf& buf, | 179 void ProcessForm(CFX_ByteTextBuf& buf, |
180 const uint8_t* data, | 180 const uint8_t* data, |
181 FX_DWORD size, | 181 FX_DWORD size, |
182 CFX_Matrix& matrix); | 182 CFX_Matrix& matrix); |
183 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj, | 183 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj, |
184 const FX_CHAR* szType); | 184 const FX_CHAR* szType); |
185 | 185 |
186 private: | |
187 CPDF_Page* m_pPage; | 186 CPDF_Page* m_pPage; |
188 CPDF_Document* m_pDocument; | 187 CPDF_Document* m_pDocument; |
189 CFX_ArrayTemplate<CPDF_PageObject*> m_pageObjects; | 188 CFX_ArrayTemplate<CPDF_PageObject*> m_pageObjects; |
190 }; | 189 }; |
191 | 190 |
192 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ | 191 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PAGE_H_ |
OLD | NEW |