dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 1 | // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Dan Sinclair | 80c4878 | 2017-03-23 12:11:20 -0400 | [diff] [blame] | 7 | #ifndef XFA_FXFA_CXFA_FFDOCHANDLER_H_ |
| 8 | #define XFA_FXFA_CXFA_FFDOCHANDLER_H_ |
dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 9 | |
dsinclair | 5b49309 | 2016-09-29 20:20:24 -0700 | [diff] [blame] | 10 | #include "xfa/fxfa/fxfa.h" |
dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 11 | |
Dan Sinclair | ddb7016 | 2017-03-30 14:01:31 -0400 | [diff] [blame] | 12 | class CFX_ChecksumContext; |
dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 13 | |
| 14 | class CXFA_FFDocHandler { |
| 15 | public: |
| 16 | CXFA_FFDocHandler(); |
| 17 | ~CXFA_FFDocHandler(); |
| 18 | |
dsinclair | 12a6b0c | 2016-05-26 11:14:08 -0700 | [diff] [blame] | 19 | CFXJSE_Value* GetXFAScriptObject(CXFA_FFDoc* hDoc); |
dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 20 | XFA_ATTRIBUTEENUM GetRestoreState(CXFA_FFDoc* hDoc); |
dsinclair | 221caf6 | 2016-04-04 12:08:40 -0700 | [diff] [blame] | 21 | |
tsepez | d19e912 | 2016-11-02 15:43:18 -0700 | [diff] [blame] | 22 | bool RunDocScript(CXFA_FFDoc* hDoc, |
| 23 | XFA_SCRIPTTYPE eScriptType, |
Ryan Harrison | 275e260 | 2017-09-18 14:23:18 -0400 | [diff] [blame] | 24 | const WideStringView& wsScript, |
tsepez | d19e912 | 2016-11-02 15:43:18 -0700 | [diff] [blame] | 25 | CFXJSE_Value* pRetValue, |
| 26 | CFXJSE_Value* pThisObject); |
dsinclair | df4bc59 | 2016-03-31 20:34:43 -0700 | [diff] [blame] | 27 | }; |
| 28 | |
Dan Sinclair | 80c4878 | 2017-03-23 12:11:20 -0400 | [diff] [blame] | 29 | #endif // XFA_FXFA_CXFA_FFDOCHANDLER_H_ |