| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |