| 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> |
| 11 | 11 |
| 12 #include "../../core/include/fpdftext/fpdf_text.h" | 12 #include "../../core/include/fpdftext/fpdf_text.h" |
| 13 #include "../../public/fpdf_formfill.h" | 13 #include "../../public/fpdf_formfill.h" |
| 14 #include "../../public/fpdf_fwlevent.h" // cross platform keycode and events de
fine. | 14 #include "../../public/fpdf_fwlevent.h" // cross platform keycode and events de
fine. |
| 15 #include "fsdk_common.h" | 15 #include "fsdk_common.h" |
| 16 #include "fsdk_define.h" | 16 #include "fsdk_define.h" |
| 17 #include "fx_systemhandler.h" | 17 #include "fx_systemhandler.h" |
| 18 #include "fpdfxfa/fpdfxfa_doc.h" | 18 #include "fpdfxfa/fpdfxfa_doc.h" |
| 19 #include "fpdfxfa/fpdfxfa_page.h" | 19 #include "fpdfxfa/fpdfxfa_page.h" |
| 20 #include "fsdk_baseannot.h" | 20 #include "fsdk_baseannot.h" |
| 21 #include "fsdk_baseform.h" | 21 #include "fsdk_baseform.h" |
| 22 #include "fsdk_annothandler.h" | 22 #include "fsdk_annothandler.h" |
| 23 #include "fsdk_actionhandler.h" | 23 #include "fsdk_actionhandler.h" |
| 24 #include "javascript/IJavaScript.h" | 24 #include "javascript/IJavaScript.h" |
| 25 | 25 |
| 26 class CFFL_IFormFiller; | 26 class CFFL_IFormFiller; |
| 27 class CJS_RuntimeFactory; | |
| 28 class CPDFSDK_ActionHandler; | 27 class CPDFSDK_ActionHandler; |
| 29 class CPDFSDK_Annot; | 28 class CPDFSDK_Annot; |
| 30 class CPDFSDK_Document; | 29 class CPDFSDK_Document; |
| 31 class CPDFSDK_InterForm; | 30 class CPDFSDK_InterForm; |
| 32 class CPDFSDK_PageView; | 31 class CPDFSDK_PageView; |
| 33 class CPDFSDK_Widget; | 32 class CPDFSDK_Widget; |
| 34 class IFX_SystemHandler; | 33 class IFX_SystemHandler; |
| 35 | 34 |
| 36 class CPDFDoc_Environment final { | 35 class CPDFDoc_Environment final { |
| 37 public: | 36 public: |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } | 461 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } |
| 463 | 462 |
| 464 CFFL_IFormFiller* GetIFormFiller(); // Creates if not present. | 463 CFFL_IFormFiller* GetIFormFiller(); // Creates if not present. |
| 465 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. | 464 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. |
| 466 IFXJS_Runtime* GetJSRuntime(); // Creates if not present. | 465 IFXJS_Runtime* GetJSRuntime(); // Creates if not present. |
| 467 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. | 466 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. |
| 468 | 467 |
| 469 private: | 468 private: |
| 470 CPDFSDK_AnnotHandlerMgr* m_pAnnotHandlerMgr; | 469 CPDFSDK_AnnotHandlerMgr* m_pAnnotHandlerMgr; |
| 471 CPDFSDK_ActionHandler* m_pActionHandler; | 470 CPDFSDK_ActionHandler* m_pActionHandler; |
| 472 IFXJS_Runtime* m_pJSRuntime; | 471 nonstd::unique_ptr<IFXJS_Runtime> m_pJSRuntime; |
| 473 FPDF_FORMFILLINFO* const m_pInfo; | 472 FPDF_FORMFILLINFO* const m_pInfo; |
| 474 CPDFSDK_Document* m_pSDKDoc; | 473 CPDFSDK_Document* m_pSDKDoc; |
| 475 CPDFXFA_Document* const m_pXFADoc; | 474 CPDFXFA_Document* const m_pXFADoc; |
| 476 CFFL_IFormFiller* m_pIFormFiller; | 475 CFFL_IFormFiller* m_pIFormFiller; |
| 477 IFX_SystemHandler* m_pSysHandler; | 476 IFX_SystemHandler* m_pSysHandler; |
| 478 }; | 477 }; |
| 479 | 478 |
| 480 class CPDFSDK_Document { | 479 class CPDFSDK_Document { |
| 481 public: | 480 public: |
| 482 CPDFSDK_Document(CPDFXFA_Document* pDoc, CPDFDoc_Environment* pEnv); | 481 CPDFSDK_Document(CPDFXFA_Document* pDoc, CPDFDoc_Environment* pEnv); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 } | 677 } |
| 679 | 678 |
| 680 if (nStartPos < m) | 679 if (nStartPos < m) |
| 681 QuickSort(nStartPos, m, bAscend, pCompare); | 680 QuickSort(nStartPos, m, bAscend, pCompare); |
| 682 if (nStopPos > m) | 681 if (nStopPos > m) |
| 683 QuickSort(m, nStopPos, bAscend, pCompare); | 682 QuickSort(m, nStopPos, bAscend, pCompare); |
| 684 } | 683 } |
| 685 }; | 684 }; |
| 686 | 685 |
| 687 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 686 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |