Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Unified Diff: fpdfsdk/include/cpdfsdk_document.h

Issue 2354933002: Rename CPDFXFA_Document::GetPageCount (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/include/cpdfsdk_document.h
diff --git a/fpdfsdk/include/cpdfsdk_document.h b/fpdfsdk/include/cpdfsdk_document.h
index 5a83b74296a3ea323034e40bbed258ac746d26a1..463fce36c52dab66e22869e0ee1911d7ccad95b5 100644
--- a/fpdfsdk/include/cpdfsdk_document.h
+++ b/fpdfsdk/include/cpdfsdk_document.h
@@ -82,7 +82,13 @@ class CPDFSDK_Document : public CFX_Observable<CPDFSDK_Document> {
void OnCloseDocument();
- int GetPageCount() { return m_pDoc->GetPageCount(); }
+ int GetPageCount() {
+#ifdef PDF_ENABLE_XFA
+ return m_pDoc->GetXFAPageCount();
+#else // PDF_ENABLE_XFA
+ return m_pDoc->GetPageCount();
+#endif // PDF_ENABLE_XFA
+ }
FX_BOOL GetPermissions(int nFlag);
FX_BOOL GetChangeMark() { return m_bChangeMask; }
void SetChangeMark() { m_bChangeMask = TRUE; }
« core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp ('K') | « fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698