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

Side by Side Diff: core/fpdfapi/edit/cpdf_pagecontentgenerator.h

Issue 2411703003: Get rid of CFX_ArrayTemplate<CPDF_Object*> (Closed)
Patch Set: Fix inlcude, logic error Created 4 years, 2 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
OLDNEW
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_EDIT_CPDF_PAGECONTENTGENERATOR_H_ 7 #ifndef CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_
8 #define CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_ 8 #define CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_
9 9
10 #include <vector>
11
10 #include "core/fpdfapi/parser/cpdf_document.h" 12 #include "core/fpdfapi/parser/cpdf_document.h"
11 #include "core/fxcrt/fx_basic.h" 13 #include "core/fxcrt/fx_basic.h"
12 #include "core/fxcrt/fx_coordinates.h" 14 #include "core/fxcrt/fx_coordinates.h"
13 #include "core/fxcrt/fx_system.h" 15 #include "core/fxcrt/fx_system.h"
14 16
15 class CPDF_Object; 17 class CPDF_Object;
16 class CPDF_Page; 18 class CPDF_Page;
17 class CPDF_PageObject; 19 class CPDF_PageObject;
18 class CPDF_ImageObject; 20 class CPDF_ImageObject;
19 21
20 class CPDF_PageContentGenerator { 22 class CPDF_PageContentGenerator {
21 public: 23 public:
22 explicit CPDF_PageContentGenerator(CPDF_Page* pPage); 24 explicit CPDF_PageContentGenerator(CPDF_Page* pPage);
23 ~CPDF_PageContentGenerator(); 25 ~CPDF_PageContentGenerator();
24 26
25 FX_BOOL InsertPageObject(CPDF_PageObject* pPageObject); 27 void InsertPageObject(CPDF_PageObject* pPageObject);
26 void GenerateContent(); 28 void GenerateContent();
27 void TransformContent(CFX_Matrix& matrix); 29 void TransformContent(CFX_Matrix& matrix);
28 30
29 private: 31 private:
30 void ProcessImage(CFX_ByteTextBuf& buf, CPDF_ImageObject* pImageObj); 32 void ProcessImage(CFX_ByteTextBuf& buf, CPDF_ImageObject* pImageObj);
31 void ProcessForm(CFX_ByteTextBuf& buf, 33 void ProcessForm(CFX_ByteTextBuf& buf,
32 const uint8_t* data, 34 const uint8_t* data,
33 uint32_t size, 35 uint32_t size,
34 CFX_Matrix& matrix); 36 CFX_Matrix& matrix);
35 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj, 37 CFX_ByteString RealizeResource(CPDF_Object* pResourceObj,
36 const CFX_ByteString& bsType); 38 const CFX_ByteString& bsType);
37 39
38 CPDF_Page* m_pPage; 40 CPDF_Page* m_pPage;
39 CPDF_Document* m_pDocument; 41 CPDF_Document* m_pDocument;
40 CFX_ArrayTemplate<CPDF_PageObject*> m_pageObjects; 42 std::vector<CPDF_PageObject*> m_pageObjects;
41 }; 43 };
42 44
43 #endif // CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_ 45 #endif // CORE_FPDFAPI_EDIT_CPDF_PAGECONTENTGENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp » ('j') | core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698