summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/include
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-09-22 13:18:45 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-22 13:18:45 -0700
commita939bfe3e102bfb28b4e8a5d951333d16badf80b (patch)
treed9dc20fc9dbf6649a460f3aa10be7124b51caa7d /fpdfsdk/fpdfxfa/include
parent62356867b331bc9f71f9a0c8fce0cff9927d3356 (diff)
downloadpdfium-a939bfe3e102bfb28b4e8a5d951333d16badf80b.tar.xz
Make creation of CPDFSDK_Document clearer
Move the creation of the CPDFSDK_Document into FPDFDOC_InitFormFillEnvironment instead of hidden inside a Get method in CDPFXFA_Document. Review-Url: https://codereview.chromium.org/2353303004
Diffstat (limited to 'fpdfsdk/fpdfxfa/include')
-rw-r--r--fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h b/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h
index ed788eac55..5398c57519 100644
--- a/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h
+++ b/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h
@@ -38,9 +38,11 @@ class CPDFXFA_Document {
CPDF_Document* GetPDFDoc() { return m_pPDFDoc.get(); }
CXFA_FFDoc* GetXFADoc() { return m_pXFADoc.get(); }
CXFA_FFDocView* GetXFADocView() { return m_pXFADocView; }
- CPDFSDK_Document* GetSDKDocument(CPDFSDK_Environment* pFormFillEnv);
int GetDocType() const { return m_iDocType; }
+ CPDFSDK_Document* GetSDKDoc() const { return m_pSDKDoc.get(); }
+ void SetSDKDoc(std::unique_ptr<CPDFSDK_Document> pSDKDoc);
+
void DeletePage(int page_index);
int GetPageCount() const;
@@ -54,7 +56,6 @@ class CPDFXFA_Document {
protected:
friend class CPDFXFA_DocEnvironment;
- CPDFSDK_Document* GetSDKDoc() { return m_pSDKDoc.get(); }
int GetOriginalPageCount() const { return m_nPageCount; }
void SetOriginalPageCount(int count) {
m_nPageCount = count;