| 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_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ |
| 8 #define FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| 11 #include "core/fxcrt/include/fx_coordinates.h" | 11 #include "core/fxcrt/include/fx_coordinates.h" |
| 12 | 12 |
| 13 #ifdef PDF_ENABLE_XFA | |
| 14 #define FSDK_XFAWIDGET_TYPENAME "XFAWidget" | |
| 15 #endif // PDF_ENABLE_XFA | |
| 16 | |
| 17 class CFX_Matrix; | 13 class CFX_Matrix; |
| 18 class CFX_RenderDevice; | 14 class CFX_RenderDevice; |
| 19 class CPDF_Annot; | 15 class CPDF_Annot; |
| 20 class CPDFSDK_Annot; | 16 class CPDFSDK_Annot; |
| 21 class CPDFSDK_PageView; | 17 class CPDFSDK_PageView; |
| 22 | 18 |
| 23 #ifdef PDF_ENABLE_XFA | 19 #ifdef PDF_ENABLE_XFA |
| 24 class CXFA_FFWidget; | 20 class CXFA_FFWidget; |
| 25 #endif // PDF_ENABLE_XFA | 21 #endif // PDF_ENABLE_XFA |
| 26 | 22 |
| 27 class IPDFSDK_AnnotHandler { | 23 class IPDFSDK_AnnotHandler { |
| 28 public: | 24 public: |
| 29 virtual ~IPDFSDK_AnnotHandler() {} | 25 virtual ~IPDFSDK_AnnotHandler() {} |
| 30 | 26 |
| 31 virtual CFX_ByteString GetType() = 0; | |
| 32 virtual FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) = 0; | 27 virtual FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) = 0; |
| 33 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, | 28 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, |
| 34 CPDFSDK_PageView* pPage) = 0; | 29 CPDFSDK_PageView* pPage) = 0; |
| 35 | 30 |
| 36 #ifdef PDF_ENABLE_XFA | 31 #ifdef PDF_ENABLE_XFA |
| 37 virtual CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, | 32 virtual CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, |
| 38 CPDFSDK_PageView* pPage) = 0; | 33 CPDFSDK_PageView* pPage) = 0; |
| 39 #endif // PDF_ENABLE_XFA | 34 #endif // PDF_ENABLE_XFA |
| 40 | 35 |
| 41 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0; | 36 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual void OnSelected(CPDFSDK_Annot* pAnnot) = 0; | 104 virtual void OnSelected(CPDFSDK_Annot* pAnnot) = 0; |
| 110 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; | 105 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; |
| 111 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; | 106 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; |
| 112 #ifdef PDF_ENABLE_XFA | 107 #ifdef PDF_ENABLE_XFA |
| 113 virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, | 108 virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, |
| 114 CPDFSDK_Annot* pNewAnnot) = 0; | 109 CPDFSDK_Annot* pNewAnnot) = 0; |
| 115 #endif // PDF_ENABLE_XFA | 110 #endif // PDF_ENABLE_XFA |
| 116 }; | 111 }; |
| 117 | 112 |
| 118 #endif // FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ | 113 #endif // FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ |
| OLD | NEW |