OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "fpdfsdk/cpdfsdk_pageview.h" | 7 #include "fpdfsdk/cpdfsdk_pageview.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" | |
13 #include "core/fpdfapi/parser/cpdf_document.h" | 12 #include "core/fpdfapi/parser/cpdf_document.h" |
| 13 #include "core/fpdfapi/render/cpdf_renderoptions.h" |
14 #include "core/fpdfdoc/cpdf_annotlist.h" | 14 #include "core/fpdfdoc/cpdf_annotlist.h" |
15 #include "core/fpdfdoc/cpdf_interform.h" | 15 #include "core/fpdfdoc/cpdf_interform.h" |
16 #include "fpdfsdk/cpdfsdk_annot.h" | 16 #include "fpdfsdk/cpdfsdk_annot.h" |
17 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" | 17 #include "fpdfsdk/cpdfsdk_annothandlermgr.h" |
18 #include "fpdfsdk/cpdfsdk_annotiterator.h" | 18 #include "fpdfsdk/cpdfsdk_annotiterator.h" |
19 #include "fpdfsdk/cpdfsdk_environment.h" | 19 #include "fpdfsdk/cpdfsdk_environment.h" |
20 #include "fpdfsdk/cpdfsdk_interform.h" | 20 #include "fpdfsdk/cpdfsdk_interform.h" |
21 #include "third_party/base/ptr_util.h" | 21 #include "third_party/base/ptr_util.h" |
22 | 22 |
23 #ifdef PDF_ENABLE_XFA | 23 #ifdef PDF_ENABLE_XFA |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 return pAnnot; | 570 return pAnnot; |
571 } | 571 } |
572 return nullptr; | 572 return nullptr; |
573 } | 573 } |
574 | 574 |
575 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const { | 575 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const { |
576 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict; | 576 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict; |
577 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument(); | 577 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument(); |
578 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1; | 578 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1; |
579 } | 579 } |
OLD | NEW |