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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1415803002: XFA: add CPDFDocumentToFPDFDocument() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Address comments Created 5 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/include/fsdk_define.h ('k') | fpdfsdk/src/fpdf_dataavail.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 CFFL_IFormFiller* m_pIFormFiller; 468 CFFL_IFormFiller* m_pIFormFiller;
469 IFX_SystemHandler* m_pSysHandler; 469 IFX_SystemHandler* m_pSysHandler;
470 }; 470 };
471 471
472 class CPDFSDK_Document { 472 class CPDFSDK_Document {
473 public: 473 public:
474 CPDFSDK_Document(CPDFXFA_Document* pDoc, CPDFDoc_Environment* pEnv); 474 CPDFSDK_Document(CPDFXFA_Document* pDoc, CPDFDoc_Environment* pEnv);
475 ~CPDFSDK_Document(); 475 ~CPDFSDK_Document();
476 476
477 CPDFSDK_InterForm* GetInterForm(); 477 CPDFSDK_InterForm* GetInterForm();
478 CPDFXFA_Document* GetDocument() { return m_pDoc; } 478 CPDFXFA_Document* GetDocument() const { return m_pDoc; }
479 CPDF_Document* GetPDFDocument() const {
480 return m_pDoc ? m_pDoc->GetPDFDoc() : nullptr;
481 }
479 482
480 int GetPageViewCount() const { return m_pageMap.size(); } 483 int GetPageViewCount() const { return m_pageMap.size(); }
481 CPDFSDK_PageView* GetPageView(CPDFXFA_Page* pPDFXFAPage, 484 CPDFSDK_PageView* GetPageView(CPDFXFA_Page* pPDFXFAPage,
482 FX_BOOL ReNew = TRUE); 485 FX_BOOL ReNew = TRUE);
483 CPDFSDK_PageView* GetPageView(int nIndex); 486 CPDFSDK_PageView* GetPageView(int nIndex);
484 CPDFSDK_PageView* GetCurrentView(); 487 CPDFSDK_PageView* GetCurrentView();
485 void ReMovePageView(CPDFXFA_Page* pPDFPage); 488 void ReMovePageView(CPDFXFA_Page* pPDFPage);
486 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); 489 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
487 490
488 CPDFSDK_Annot* GetFocusAnnot(); 491 CPDFSDK_Annot* GetFocusAnnot();
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } 672 }
670 673
671 if (nStartPos < m) 674 if (nStartPos < m)
672 QuickSort(nStartPos, m, bAscend, pCompare); 675 QuickSort(nStartPos, m, bAscend, pCompare);
673 if (nStopPos > m) 676 if (nStopPos > m)
674 QuickSort(m, nStopPos, bAscend, pCompare); 677 QuickSort(m, nStopPos, bAscend, pCompare);
675 } 678 }
676 }; 679 };
677 680
678 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 681 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/src/fpdf_dataavail.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698