summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/fsdk_mgr.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-24 10:21:01 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-24 10:21:01 -0800
commit5259ef39ae47831a3533f475234b30f22a2ca849 (patch)
tree35fabb0624aaf68617bae56692306b68b98bece1 /fpdfsdk/include/fsdk_mgr.h
parent51a458c75a07ec17dd3e0e142ccd10157cadb21f (diff)
downloadpdfium-5259ef39ae47831a3533f475234b30f22a2ca849.tar.xz
XFA: add underlying document type comment
TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1469413002 .
Diffstat (limited to 'fpdfsdk/include/fsdk_mgr.h')
-rw-r--r--fpdfsdk/include/fsdk_mgr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h
index c35d2ff344..3e65a17ad6 100644
--- a/fpdfsdk/include/fsdk_mgr.h
+++ b/fpdfsdk/include/fsdk_mgr.h
@@ -479,12 +479,19 @@ class CPDFSDK_Document {
CPDFSDK_InterForm* GetInterForm();
+ // Gets the document object for the next layer down; for master this is
+ // a CPDF_Document, but for XFA it is a CPDFXFA_Document.
UnderlyingDocumentType* GetUnderlyingDocument() const {
return GetXFADocument();
}
+
+ // Gets the CPDF_Document, either directly in master, or from the
+ // CPDFXFA_Document for XFA.
CPDF_Document* GetPDFDocument() const {
return m_pDoc ? m_pDoc->GetPDFDoc() : nullptr;
}
+
+ // Gets the XFA document directly (XFA-only).
CPDFXFA_Document* GetXFADocument() const { return m_pDoc; }
int GetPageViewCount() const { return m_pageMap.size(); }