| 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_CPDFSDK_BAANNOTHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 #ifdef PDF_ENABLE_XFA | 22 #ifdef PDF_ENABLE_XFA |
| 23 class CXFA_FFWidget; | 23 class CXFA_FFWidget; |
| 24 #endif // PDF_ENABLE_XFA | 24 #endif // PDF_ENABLE_XFA |
| 25 | 25 |
| 26 class CPDFSDK_BAAnnotHandler : public IPDFSDK_AnnotHandler { | 26 class CPDFSDK_BAAnnotHandler : public IPDFSDK_AnnotHandler { |
| 27 public: | 27 public: |
| 28 CPDFSDK_BAAnnotHandler(); | 28 CPDFSDK_BAAnnotHandler(); |
| 29 ~CPDFSDK_BAAnnotHandler() override; | 29 ~CPDFSDK_BAAnnotHandler() override; |
| 30 | 30 |
| 31 CFX_ByteString GetType() override; | |
| 32 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; | 31 FX_BOOL CanAnswer(CPDFSDK_Annot* pAnnot) override; |
| 33 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; | 32 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; |
| 34 #ifdef PDF_ENABLE_XFA | 33 #ifdef PDF_ENABLE_XFA |
| 35 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, | 34 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* hWidget, |
| 36 CPDFSDK_PageView* pPage) override; | 35 CPDFSDK_PageView* pPage) override; |
| 37 #endif // PDF_ENABLE_XFA | 36 #endif // PDF_ENABLE_XFA |
| 38 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; | 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; |
| 39 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; | 38 void DeleteAnnot(CPDFSDK_Annot* pAnnot) override; |
| 40 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, | 39 CFX_FloatRect GetViewBBox(CPDFSDK_PageView* pPageView, |
| 41 CPDFSDK_Annot* pAnnot) override; | 40 CPDFSDK_Annot* pAnnot) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void OnSelected(CPDFSDK_Annot* pAnnot) override; | 104 void OnSelected(CPDFSDK_Annot* pAnnot) override; |
| 106 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; | 105 FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; |
| 107 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; | 106 FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, uint32_t nFlag) override; |
| 108 #ifdef PDF_ENABLE_XFA | 107 #ifdef PDF_ENABLE_XFA |
| 109 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, | 108 FX_BOOL OnXFAChangedFocus(CPDFSDK_Annot* pOldAnnot, |
| 110 CPDFSDK_Annot* pNewAnnot) override; | 109 CPDFSDK_Annot* pNewAnnot) override; |
| 111 #endif // PDF_ENABLE_XFA | 110 #endif // PDF_ENABLE_XFA |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_ | 113 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOTHANDLER_H_ |
| OLD | NEW |