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 CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ |
8 #define CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ | 8 #define CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ |
9 | 9 |
10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
11 | 11 |
12 class CPDF_FormField; | 12 class CPDF_FormField; |
13 class CPDF_InterForm; | 13 class CPDF_InterForm; |
14 | 14 |
15 class IPDF_FormNotify { | 15 class IPDF_FormNotify { |
16 public: | 16 public: |
17 virtual ~IPDF_FormNotify(); | 17 virtual ~IPDF_FormNotify() {} |
18 | 18 |
19 virtual int BeforeValueChange(CPDF_FormField* pField, | 19 virtual int BeforeValueChange(CPDF_FormField* pField, |
20 const CFX_WideString& csValue); | 20 const CFX_WideString& csValue) = 0; |
21 virtual void AfterValueChange(CPDF_FormField* pField); | 21 virtual void AfterValueChange(CPDF_FormField* pField) = 0; |
22 virtual int BeforeSelectionChange(CPDF_FormField* pField, | 22 virtual int BeforeSelectionChange(CPDF_FormField* pField, |
23 const CFX_WideString& csValue); | 23 const CFX_WideString& csValue) = 0; |
24 virtual void AfterSelectionChange(CPDF_FormField* pField); | 24 virtual void AfterSelectionChange(CPDF_FormField* pField) = 0; |
25 virtual void AfterCheckedStatusChange(CPDF_FormField* pField); | 25 virtual void AfterCheckedStatusChange(CPDF_FormField* pField) = 0; |
26 virtual int BeforeFormReset(CPDF_InterForm* pForm); | 26 virtual int BeforeFormReset(CPDF_InterForm* pForm) = 0; |
27 virtual void AfterFormReset(CPDF_InterForm* pForm); | 27 virtual void AfterFormReset(CPDF_InterForm* pForm) = 0; |
28 virtual int BeforeFormImportData(CPDF_InterForm* pForm); | 28 virtual int BeforeFormImportData(CPDF_InterForm* pForm) = 0; |
29 virtual void AfterFormImportData(CPDF_InterForm* pForm); | 29 virtual void AfterFormImportData(CPDF_InterForm* pForm) = 0; |
30 }; | 30 }; |
31 | 31 |
32 #endif // CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ | 32 #endif // CORE_FPDFDOC_INCLUDE_IPDF_FORMNOTIFY_H_ |
OLD | NEW |