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> |
(...skipping 15 matching lines...) Expand all Loading... |
26 CPDFSDK_Document* pDocument); | 26 CPDFSDK_Document* pDocument); |
27 FX_BOOL DoAction_ResetForm(const CPDF_Action& action, | 27 FX_BOOL DoAction_ResetForm(const CPDF_Action& action, |
28 CPDFSDK_Document* pDocument); | 28 CPDFSDK_Document* pDocument); |
29 FX_BOOL DoAction_ImportData(const CPDF_Action& action, | 29 FX_BOOL DoAction_ImportData(const CPDF_Action& action, |
30 CPDFSDK_Document* pDocument); | 30 CPDFSDK_Document* pDocument); |
31 }; | 31 }; |
32 | 32 |
33 class CPDFSDK_ActionHandler { | 33 class CPDFSDK_ActionHandler { |
34 public: | 34 public: |
35 CPDFSDK_ActionHandler(); | 35 CPDFSDK_ActionHandler(); |
| 36 ~CPDFSDK_ActionHandler(); |
36 | 37 |
37 FX_BOOL DoAction_DocOpen(const CPDF_Action& action, | 38 FX_BOOL DoAction_DocOpen(const CPDF_Action& action, |
38 CPDFSDK_Document* pDocument); | 39 CPDFSDK_Document* pDocument); |
39 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction, | 40 FX_BOOL DoAction_JavaScript(const CPDF_Action& JsAction, |
40 CFX_WideString csJSName, | 41 CFX_WideString csJSName, |
41 CPDFSDK_Document* pDocument); | 42 CPDFSDK_Document* pDocument); |
42 FX_BOOL DoAction_Page(const CPDF_Action& action, | 43 FX_BOOL DoAction_Page(const CPDF_Action& action, |
43 enum CPDF_AAction::AActionType eType, | 44 enum CPDF_AAction::AActionType eType, |
44 CPDFSDK_Document* pDocument); | 45 CPDFSDK_Document* pDocument); |
45 FX_BOOL DoAction_Document(const CPDF_Action& action, | 46 FX_BOOL DoAction_Document(const CPDF_Action& action, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 115 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
115 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 116 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
116 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 117 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
117 void DoAction_SetOCGState(CPDFSDK_Document* pDocument, | 118 void DoAction_SetOCGState(CPDFSDK_Document* pDocument, |
118 const CPDF_Action& action); | 119 const CPDF_Action& action); |
119 | 120 |
120 std::unique_ptr<CPDFSDK_FormActionHandler> m_pFormActionHandler; | 121 std::unique_ptr<CPDFSDK_FormActionHandler> m_pFormActionHandler; |
121 }; | 122 }; |
122 | 123 |
123 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ | 124 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
OLD | NEW |