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

Side by Side Diff: fpdfsdk/cpdfsdk_pageview.cpp

Issue 2383593002: Move xfa/fxfa/include to xfa/fxfa (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widget.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_parser/cpdf_document.h" 12 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
13 #include "core/fpdfapi/fpdf_render/cpdf_renderoptions.h" 13 #include "core/fpdfapi/fpdf_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 21
22 #ifdef PDF_ENABLE_XFA 22 #ifdef PDF_ENABLE_XFA
23 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h" 23 #include "fpdfsdk/fpdfxfa/fpdfxfa_page.h"
24 #include "xfa/fxfa/include/xfa_ffdocview.h" 24 #include "xfa/fxfa/xfa_ffdocview.h"
25 #include "xfa/fxfa/include/xfa_ffpageview.h" 25 #include "xfa/fxfa/xfa_ffpageview.h"
26 #include "xfa/fxfa/include/xfa_ffwidgethandler.h" 26 #include "xfa/fxfa/xfa_ffwidgethandler.h"
27 #include "xfa/fxfa/include/xfa_rendercontext.h" 27 #include "xfa/fxfa/xfa_rendercontext.h"
28 #include "xfa/fxgraphics/cfx_graphics.h" 28 #include "xfa/fxgraphics/cfx_graphics.h"
29 #endif // PDF_ENABLE_XFA 29 #endif // PDF_ENABLE_XFA
30 30
31 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, 31 CPDFSDK_PageView::CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc,
32 UnderlyingPageType* page) 32 UnderlyingPageType* page)
33 : m_page(page), 33 : m_page(page),
34 m_pSDKDoc(pSDKDoc), 34 m_pSDKDoc(pSDKDoc),
35 #ifndef PDF_ENABLE_XFA 35 #ifndef PDF_ENABLE_XFA
36 m_bOwnsPage(false), 36 m_bOwnsPage(false),
37 #endif // PDF_ENABLE_XFA 37 #endif // PDF_ENABLE_XFA
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 return pAnnot; 582 return pAnnot;
583 } 583 }
584 return nullptr; 584 return nullptr;
585 } 585 }
586 586
587 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const { 587 int CPDFSDK_PageView::GetPageIndexForStaticPDF() const {
588 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict; 588 CPDF_Dictionary* pDict = GetPDFPage()->m_pFormDict;
589 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument(); 589 CPDF_Document* pDoc = m_pSDKDoc->GetPDFDocument();
590 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1; 590 return (pDoc && pDict) ? pDoc->GetPageIndex(pDict->GetObjNum()) : -1;
591 } 591 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_interform.cpp ('k') | fpdfsdk/cpdfsdk_widget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698