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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #ifdef PDF_ENABLE_XFA | 23 #ifdef PDF_ENABLE_XFA |
24 class CXFA_FFWidget; | 24 class CXFA_FFWidget; |
25 #endif // PDF_ENABLE_XFA | 25 #endif // PDF_ENABLE_XFA |
26 | 26 |
27 class IPDFSDK_AnnotHandler { | 27 class IPDFSDK_AnnotHandler { |
28 public: | 28 public: |
29 virtual ~IPDFSDK_AnnotHandler() {} | 29 virtual ~IPDFSDK_AnnotHandler() {} |
30 | 30 |
31 virtual CFX_ByteString GetType() = 0; | 31 virtual CFX_ByteString GetType() = 0; |
32 virtual CFX_ByteString GetName() = 0; | |
33 virtual FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) = 0; | 32 virtual FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) = 0; |
34 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, | 33 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, |
35 CPDFSDK_PageView* pPage) = 0; | 34 CPDFSDK_PageView* pPage) = 0; |
36 | 35 |
37 #ifdef PDF_ENABLE_XFA | 36 #ifdef PDF_ENABLE_XFA |
38 virtual CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, | 37 virtual CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, |
39 CPDFSDK_PageView* pPage) = 0; | 38 CPDFSDK_PageView* pPage) = 0; |
40 #endif // PDF_ENABLE_XFA | 39 #endif // PDF_ENABLE_XFA |
41 | 40 |
42 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0; | 41 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 virtual void OnSelected(CPDFSDK_Annot* pAnnot) = 0; | 109 virtual void OnSelected(CPDFSDK_Annot* pAnnot) = 0; |
111 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; | 110 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; |
112 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; | 111 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) = 0; |
113 #ifdef PDF_ENABLE_XFA | 112 #ifdef PDF_ENABLE_XFA |
114 virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, | 113 virtual FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, |
115 CPDFSDK_Annot* pNewAnnot) = 0; | 114 CPDFSDK_Annot* pNewAnnot) = 0; |
116 #endif // PDF_ENABLE_XFA | 115 #endif // PDF_ENABLE_XFA |
117 }; | 116 }; |
118 | 117 |
119 #endif // FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ | 118 #endif // FPDFSDK_INCLUDE_IPDFSDK_ANNOTHANDLER_H_ |
OLD | NEW |