| 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 #include <memory> | 11 #include <memory> |
| 12 #include <vector> |
| 12 | 13 |
| 13 #include "core/include/fpdftext/fpdf_text.h" | 14 #include "core/include/fpdftext/fpdf_text.h" |
| 14 #include "fsdk_actionhandler.h" | 15 #include "fsdk_actionhandler.h" |
| 15 #include "fsdk_annothandler.h" | 16 #include "fsdk_annothandler.h" |
| 16 #include "fsdk_baseannot.h" | 17 #include "fsdk_baseannot.h" |
| 17 #include "fsdk_baseform.h" | 18 #include "fsdk_baseform.h" |
| 18 #include "fsdk_common.h" | 19 #include "fsdk_common.h" |
| 19 #include "fsdk_define.h" | 20 #include "fsdk_define.h" |
| 20 #include "fx_systemhandler.h" | 21 #include "fx_systemhandler.h" |
| 21 #include "javascript/IJavaScript.h" | 22 #include "javascript/IJavaScript.h" |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 void RemovePageView(UnderlyingPageType* pPage); | 513 void RemovePageView(UnderlyingPageType* pPage); |
| 513 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); | 514 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); |
| 514 | 515 |
| 515 CPDFSDK_Annot* GetFocusAnnot(); | 516 CPDFSDK_Annot* GetFocusAnnot(); |
| 516 | 517 |
| 517 IJS_Runtime* GetJsRuntime(); | 518 IJS_Runtime* GetJsRuntime(); |
| 518 | 519 |
| 519 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0); | 520 FX_BOOL SetFocusAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag = 0); |
| 520 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0); | 521 FX_BOOL KillFocusAnnot(FX_UINT nFlag = 0); |
| 521 | 522 |
| 522 FX_BOOL ExtractPages(const CFX_WordArray& arrExtraPages, | 523 FX_BOOL ExtractPages(const std::vector<FX_WORD>& arrExtraPages, |
| 523 CPDF_Document* pDstDoc); | 524 CPDF_Document* pDstDoc); |
| 524 FX_BOOL InsertPages(int nInsertAt, | 525 FX_BOOL InsertPages(int nInsertAt, |
| 525 const CPDF_Document* pSrcDoc, | 526 const CPDF_Document* pSrcDoc, |
| 526 const CFX_WordArray& arrSrcPages); | 527 const std::vector<FX_WORD>& arrSrcPages); |
| 527 FX_BOOL ReplacePages(int nPage, | 528 FX_BOOL ReplacePages(int nPage, |
| 528 const CPDF_Document* pSrcDoc, | 529 const CPDF_Document* pSrcDoc, |
| 529 const CFX_WordArray& arrSrcPages); | 530 const std::vector<FX_WORD>& arrSrcPages); |
| 530 | 531 |
| 531 void OnCloseDocument(); | 532 void OnCloseDocument(); |
| 532 | 533 |
| 533 int GetPageCount() { return m_pDoc->GetPageCount(); } | 534 int GetPageCount() { return m_pDoc->GetPageCount(); } |
| 534 FX_BOOL GetPermissions(int nFlag); | 535 FX_BOOL GetPermissions(int nFlag); |
| 535 FX_BOOL GetChangeMark() { return m_bChangeMask; } | 536 FX_BOOL GetChangeMark() { return m_bChangeMask; } |
| 536 void SetChangeMark() { m_bChangeMask = TRUE; } | 537 void SetChangeMark() { m_bChangeMask = TRUE; } |
| 537 void ClearChangeMark() { m_bChangeMask = FALSE; } | 538 void ClearChangeMark() { m_bChangeMask = FALSE; } |
| 538 CFX_WideString GetPath(); | 539 CFX_WideString GetPath(); |
| 539 UnderlyingPageType* GetPage(int nIndex); | 540 UnderlyingPageType* GetPage(int nIndex); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 FX_BOOL m_bTakeOverPage; | 654 FX_BOOL m_bTakeOverPage; |
| 654 #endif // PDF_ENABLE_XFA | 655 #endif // PDF_ENABLE_XFA |
| 655 FX_BOOL m_bEnterWidget; | 656 FX_BOOL m_bEnterWidget; |
| 656 FX_BOOL m_bExitWidget; | 657 FX_BOOL m_bExitWidget; |
| 657 FX_BOOL m_bOnWidget; | 658 FX_BOOL m_bOnWidget; |
| 658 FX_BOOL m_bValid; | 659 FX_BOOL m_bValid; |
| 659 FX_BOOL m_bLocked; | 660 FX_BOOL m_bLocked; |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 663 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |