| OLD | NEW |
| 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 #ifndef FPDFSDK_CPDFSDK_DOCUMENT_H_ | 7 #ifndef FPDFSDK_CPDFSDK_DOCUMENT_H_ |
| 8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_ | 8 #define FPDFSDK_CPDFSDK_DOCUMENT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 CPDFSDK_PageView* GetPageView(int nIndex); | 62 CPDFSDK_PageView* GetPageView(int nIndex); |
| 63 CPDFSDK_PageView* GetCurrentView(); | 63 CPDFSDK_PageView* GetCurrentView(); |
| 64 void RemovePageView(UnderlyingPageType* pPage); | 64 void RemovePageView(UnderlyingPageType* pPage); |
| 65 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); | 65 void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot); |
| 66 | 66 |
| 67 IJS_Runtime* GetJsRuntime(); | 67 IJS_Runtime* GetJsRuntime(); |
| 68 | 68 |
| 69 CPDFSDK_Annot* GetFocusAnnot() { return m_pFocusAnnot.Get(); } | 69 CPDFSDK_Annot* GetFocusAnnot() { return m_pFocusAnnot.Get(); } |
| 70 FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot); | 70 FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot); |
| 71 FX_BOOL KillFocusAnnot(uint32_t nFlag); | 71 FX_BOOL KillFocusAnnot(uint32_t nFlag); |
| 72 void ClearAllFocusedAnnots(); |
| 72 | 73 |
| 73 FX_BOOL ExtractPages(const std::vector<uint16_t>& arrExtraPages, | 74 FX_BOOL ExtractPages(const std::vector<uint16_t>& arrExtraPages, |
| 74 CPDF_Document* pDstDoc); | 75 CPDF_Document* pDstDoc); |
| 75 FX_BOOL InsertPages(int nInsertAt, | 76 FX_BOOL InsertPages(int nInsertAt, |
| 76 const CPDF_Document* pSrcDoc, | 77 const CPDF_Document* pSrcDoc, |
| 77 const std::vector<uint16_t>& arrSrcPages); | 78 const std::vector<uint16_t>& arrSrcPages); |
| 78 FX_BOOL ReplacePages(int nPage, | 79 FX_BOOL ReplacePages(int nPage, |
| 79 const CPDF_Document* pSrcDoc, | 80 const CPDF_Document* pSrcDoc, |
| 80 const std::vector<uint16_t>& arrSrcPages); | 81 const std::vector<uint16_t>& arrSrcPages); |
| 81 | 82 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 98 UnderlyingDocumentType* m_pDoc; | 99 UnderlyingDocumentType* m_pDoc; |
| 99 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; | 100 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; |
| 100 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; | 101 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; |
| 101 CPDFSDK_Environment* m_pEnv; | 102 CPDFSDK_Environment* m_pEnv; |
| 102 std::unique_ptr<CPDF_OCContext> m_pOccontent; | 103 std::unique_ptr<CPDF_OCContext> m_pOccontent; |
| 103 FX_BOOL m_bChangeMask; | 104 FX_BOOL m_bChangeMask; |
| 104 FX_BOOL m_bBeingDestroyed; | 105 FX_BOOL m_bBeingDestroyed; |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_ | 108 #endif // FPDFSDK_CPDFSDK_DOCUMENT_H_ |
| OLD | NEW |