Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: core/include/fpdfapi/fpdf_page.h

Issue 1613163003: Merge to XFA: Rename CPDF_PageContentGenerate to CPDF_PageContentGenerator. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698