From 9f206f05eccf51089fe8a30bf52dc063ea5e2633 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 20 Sep 2016 12:17:42 -0700 Subject: Cleanup CPDFXFA and CPDF document methods This CL renames and cleans up some methods that are similar between CPDF_Document and CPDFXFA_Document. Review-Url: https://codereview.chromium.org/2351673004 --- core/fpdfapi/fpdf_parser/include/cpdf_document.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/fpdf_parser') diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_document.h b/core/fpdfapi/fpdf_parser/include/cpdf_document.h index 0b865cb7f2..5f3b2d277a 100644 --- a/core/fpdfapi/fpdf_parser/include/cpdf_document.h +++ b/core/fpdfapi/fpdf_parser/include/cpdf_document.h @@ -48,7 +48,9 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { CPDF_Dictionary* GetRoot() const { return m_pRootDict; } CPDF_Dictionary* GetInfo() const { return m_pInfoDict; } + void DeletePage(int iPage); int GetPageCount() const; + CPDF_Dictionary* GetPage(int iPage); int GetPageIndex(uint32_t objnum); uint32_t GetUserPermissions() const; @@ -78,10 +80,9 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { void LoadLinearizedDoc(CPDF_Dictionary* pLinearizationParams); void LoadPages(); - // Editing methods. void CreateNewDoc(); CPDF_Dictionary* CreateNewPage(int iPage); - void DeletePage(int iPage); + CPDF_Font* AddStandardFont(const FX_CHAR* font, CPDF_FontEncoding* pEncoding); CPDF_Font* AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert); #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -- cgit v1.2.3