| Index: core/fpdfapi/fpdf_page/include/cpdf_page.h
|
| diff --git a/core/fpdfapi/fpdf_page/include/cpdf_page.h b/core/fpdfapi/fpdf_page/include/cpdf_page.h
|
| index 3ede3c94040f52bda1da21a8d83f05643de0150f..7f4430187ab4212d2a7df16df1151aed2cffe1e5 100644
|
| --- a/core/fpdfapi/fpdf_page/include/cpdf_page.h
|
| +++ b/core/fpdfapi/fpdf_page/include/cpdf_page.h
|
| @@ -7,30 +7,26 @@
|
| #ifndef CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
|
| #define CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
|
|
|
| +#include <memory>
|
| +
|
| #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h"
|
| #include "core/fxcrt/include/fx_basic.h"
|
| #include "core/fxcrt/include/fx_coordinates.h"
|
| #include "core/fxcrt/include/fx_system.h"
|
|
|
| -class CPDF_Document;
|
| class CPDF_Dictionary;
|
| +class CPDF_Document;
|
| class CPDF_Object;
|
| class CPDF_PageRenderCache;
|
| -class CPDF_ParseOptions;
|
| -
|
| -CPDF_Object* FPDFAPI_GetPageAttr(CPDF_Dictionary* pPageDict,
|
| - const CFX_ByteStringC& name);
|
|
|
| class CPDF_Page : public CPDF_PageObjectHolder, public CFX_PrivateData {
|
| public:
|
| - CPDF_Page();
|
| - ~CPDF_Page();
|
| -
|
| - void Load(CPDF_Document* pDocument,
|
| + CPDF_Page(CPDF_Document* pDocument,
|
| CPDF_Dictionary* pPageDict,
|
| - FX_BOOL bPageCache = TRUE);
|
| + bool bPageCache);
|
| + ~CPDF_Page();
|
|
|
| - void ParseContent(CPDF_ParseOptions* pOptions);
|
| + void ParseContent();
|
|
|
| void GetDisplayMatrix(CFX_Matrix& matrix,
|
| int xPos,
|
| @@ -43,18 +39,18 @@ class CPDF_Page : public CPDF_PageObjectHolder, public CFX_PrivateData {
|
| FX_FLOAT GetPageHeight() const { return m_PageHeight; }
|
| CFX_FloatRect GetPageBBox() const { return m_BBox; }
|
| const CFX_Matrix& GetPageMatrix() const { return m_PageMatrix; }
|
| - CPDF_Object* GetPageAttr(const CFX_ByteStringC& name) const;
|
| - CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender; }
|
| + CPDF_Object* GetPageAttr(const CFX_ByteString& name) const;
|
| + CPDF_PageRenderCache* GetRenderCache() const { return m_pPageRender.get(); }
|
|
|
| protected:
|
| friend class CPDF_ContentParser;
|
|
|
| - void StartParse(CPDF_ParseOptions* pOptions);
|
| + void StartParse();
|
|
|
| FX_FLOAT m_PageWidth;
|
| FX_FLOAT m_PageHeight;
|
| CFX_Matrix m_PageMatrix;
|
| - CPDF_PageRenderCache* m_pPageRender;
|
| + std::unique_ptr<CPDF_PageRenderCache> m_pPageRender;
|
| };
|
|
|
| #endif // CORE_FPDFAPI_FPDF_PAGE_INCLUDE_CPDF_PAGE_H_
|
|
|