| 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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 562 |
| 563 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); | 563 FX_BOOL DeleteAnnot(CPDFSDK_Annot* pAnnot); |
| 564 size_t CountAnnots() const; | 564 size_t CountAnnots() const; |
| 565 CPDFSDK_Annot* GetAnnot(size_t nIndex); | 565 CPDFSDK_Annot* GetAnnot(size_t nIndex); |
| 566 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); | 566 CPDFSDK_Annot* GetAnnotByDict(CPDF_Dictionary* pDict); |
| 567 | 567 |
| 568 #ifdef PDF_ENABLE_XFA | 568 #ifdef PDF_ENABLE_XFA |
| 569 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot); | 569 CPDFSDK_Annot* AddAnnot(CXFA_FFWidget* pPDFAnnot); |
| 570 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget); | 570 CPDFSDK_Annot* GetAnnotByXFAWidget(CXFA_FFWidget* hWidget); |
| 571 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } | 571 CPDFXFA_Page* GetPDFXFAPage() { return m_page; } |
| 572 CPDF_Page* GetPDFPage(); | |
| 573 #else | |
| 574 CPDF_Page* GetPDFPage() { return m_page; } | |
| 575 #endif // PDF_ENABLE_XFA | 572 #endif // PDF_ENABLE_XFA |
| 576 | 573 |
| 574 CPDF_Page* GetPDFPage() const; |
| 577 CPDF_Document* GetPDFDocument(); | 575 CPDF_Document* GetPDFDocument(); |
| 578 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } | 576 CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } |
| 579 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); | 577 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); |
| 580 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); | 578 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); |
| 581 #ifdef PDF_ENABLE_XFA | 579 #ifdef PDF_ENABLE_XFA |
| 582 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); | 580 FX_BOOL OnRButtonDown(const CFX_FloatPoint& point, FX_UINT nFlag); |
| 583 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); | 581 FX_BOOL OnRButtonUp(const CFX_FloatPoint& point, FX_UINT nFlag); |
| 584 #endif // PDF_ENABLE_XFA | 582 #endif // PDF_ENABLE_XFA |
| 585 FX_BOOL OnChar(int nChar, FX_UINT nFlag); | 583 FX_BOOL OnChar(int nChar, FX_UINT nFlag); |
| 586 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); | 584 FX_BOOL OnKeyDown(int nKeyCode, int nFlag); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 FX_BOOL m_bTakeOverPage; | 623 FX_BOOL m_bTakeOverPage; |
| 626 #endif // PDF_ENABLE_XFA | 624 #endif // PDF_ENABLE_XFA |
| 627 FX_BOOL m_bEnterWidget; | 625 FX_BOOL m_bEnterWidget; |
| 628 FX_BOOL m_bExitWidget; | 626 FX_BOOL m_bExitWidget; |
| 629 FX_BOOL m_bOnWidget; | 627 FX_BOOL m_bOnWidget; |
| 630 FX_BOOL m_bValid; | 628 FX_BOOL m_bValid; |
| 631 FX_BOOL m_bLocked; | 629 FX_BOOL m_bLocked; |
| 632 }; | 630 }; |
| 633 | 631 |
| 634 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ | 632 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ |
| OLD | NEW |