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

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

Issue 1805663002: Move core/include/fpdfapi/fpdf_page.h to correct locations. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
9
10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h"
11 #include "core/include/fxcrt/fx_basic.h"
12 #include "core/include/fxcrt/fx_coordinates.h"
13 #include "core/include/fxcrt/fx_system.h"
14
15 class CPDF_Document;
16 class CPDF_Dictionary;
17 class CPDF_Object;
18 class CPDF_PageRenderCache;
19 class CPDF_ParseOptions;
20
21 class CPDF_Page : public CPDF_PageObjectHolder, public CFX_PrivateData {
22 public:
23 CPDF_Page();
24 ~CPDF_Page();
25
26 void Load(CPDF_Document* pDocument,
27 CPDF_Dictionary* pPageDict,
28 FX_BOOL bPageCache = TRUE);
29
30 void ParseContent(CPDF_ParseOptions* pOptions);
31
32 void GetDisplayMatrix(CFX_Matrix& matrix,
33 int xPos,
34 int yPos,
35 int xSize,
36 int ySize,
37 int iRotate) const;
38
39 FX_FLOAT GetPageWidth() const { return m_PageWidth; }
40 FX_FLOAT GetPageHeight() const { return m_PageHeight; }
41 CFX_FloatRect GetPageBBox() const { return m_BBox; }
42 const CFX_Matrix& GetPageMatrix() const { return m_PageMatrix; }
43 CPDF_Object* GetPageAttr(const CFX_ByteStringC& name) const;
44 CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender; }
45
46 protected:
47 friend class CPDF_ContentParser;
48
49 void StartParse(CPDF_ParseOptions* pOptions);
50
51 FX_FLOAT m_PageWidth;
52 FX_FLOAT m_PageHeight;
53 CFX_Matrix m_PageMatrix;
54 CPDF_PageRenderCache* m_pPageRender;
55 };
56
57 #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_form.h ('k') | core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698