summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-20 12:17:42 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-20 12:17:42 -0700
commit9f206f05eccf51089fe8a30bf52dc063ea5e2633 (patch)
tree484b1215a89619ca56b7957f07ff87f825bdcd80 /core/fpdfapi
parent5b7c9bbf6c26ca272706814ad3598894ce5e4e3b (diff)
downloadpdfium-9f206f05eccf51089fe8a30bf52dc063ea5e2633.tar.xz
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
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/fpdf_parser/include/cpdf_document.h5
1 files changed, 3 insertions, 2 deletions
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_