| 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_ACTIONHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 | 12 |
| 13 #include "core/fpdfdoc/include/cpdf_action.h" |
| 14 #include "core/fpdfdoc/include/cpdf_aaction.h" |
| 13 #include "core/fxcrt/include/fx_string.h" | 15 #include "core/fxcrt/include/fx_string.h" |
| 14 #include "fpdfsdk/include/fsdk_baseform.h" | 16 #include "fpdfsdk/include/pdfsdk_fieldaction.h" |
| 15 | 17 |
| 16 class CPDFSDK_Annot; | 18 class CPDFSDK_Annot; |
| 17 class CPDFSDK_Document; | 19 class CPDFSDK_Document; |
| 18 class CPDF_Bookmark; | 20 class CPDF_Bookmark; |
| 19 class CPDF_Dictionary; | 21 class CPDF_Dictionary; |
| 22 class CPDF_FormField; |
| 20 | 23 |
| 21 class CPDFSDK_ActionHandler { | 24 class CPDFSDK_ActionHandler { |
| 22 public: | 25 public: |
| 23 FX_BOOL DoAction_DocOpen(const CPDF_Action& action, | 26 FX_BOOL DoAction_DocOpen(const CPDF_Action& action, |
| 24 CPDFSDK_Document* pDocument); | 27 CPDFSDK_Document* pDocument); |
| 25 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction, | 28 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction, |
| 26 CFX_WideString csJSName, | 29 CFX_WideString csJSName, |
| 27 CPDFSDK_Document* pDocument); | 30 CPDFSDK_Document* pDocument); |
| 28 FX_BOOL DoAction_Page(const CPDF_Action& action, | 31 FX_BOOL DoAction_Page(const CPDF_Action& action, |
| 29 enum CPDF_AAction::AActionType eType, | 32 enum CPDF_AAction::AActionType eType, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument); | 109 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument); |
| 107 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action, | 110 FX_BOOL DoAction_SubmitForm(const CPDF_Action& action, |
| 108 CPDFSDK_Document* pDocument); | 111 CPDFSDK_Document* pDocument); |
| 109 FX_BOOL DoAction_ResetForm(const CPDF_Action& action, | 112 FX_BOOL DoAction_ResetForm(const CPDF_Action& action, |
| 110 CPDFSDK_Document* pDocument); | 113 CPDFSDK_Document* pDocument); |
| 111 FX_BOOL DoAction_ImportData(const CPDF_Action& action, | 114 FX_BOOL DoAction_ImportData(const CPDF_Action& action, |
| 112 CPDFSDK_Document* pDocument); | 115 CPDFSDK_Document* pDocument); |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ | 118 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| OLD | NEW |