blob: 7da03b014801578a263700248188c5089f5be6d0 [file] [log] [blame]
dsinclairdf4bc592016-03-31 20:34:43 -07001// 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 Sinclair80c48782017-03-23 12:11:20 -04007#ifndef XFA_FXFA_CXFA_FFDOCHANDLER_H_
8#define XFA_FXFA_CXFA_FFDOCHANDLER_H_
dsinclairdf4bc592016-03-31 20:34:43 -07009
dsinclair5b493092016-09-29 20:20:24 -070010#include "xfa/fxfa/fxfa.h"
dsinclairdf4bc592016-03-31 20:34:43 -070011
Dan Sinclairddb70162017-03-30 14:01:31 -040012class CFX_ChecksumContext;
dsinclairdf4bc592016-03-31 20:34:43 -070013
14class CXFA_FFDocHandler {
15 public:
16 CXFA_FFDocHandler();
17 ~CXFA_FFDocHandler();
18
dsinclair12a6b0c2016-05-26 11:14:08 -070019 CFXJSE_Value* GetXFAScriptObject(CXFA_FFDoc* hDoc);
dsinclairdf4bc592016-03-31 20:34:43 -070020 XFA_ATTRIBUTEENUM GetRestoreState(CXFA_FFDoc* hDoc);
dsinclair221caf62016-04-04 12:08:40 -070021
tsepezd19e9122016-11-02 15:43:18 -070022 bool RunDocScript(CXFA_FFDoc* hDoc,
23 XFA_SCRIPTTYPE eScriptType,
Ryan Harrison275e2602017-09-18 14:23:18 -040024 const WideStringView& wsScript,
tsepezd19e9122016-11-02 15:43:18 -070025 CFXJSE_Value* pRetValue,
26 CFXJSE_Value* pThisObject);
dsinclairdf4bc592016-03-31 20:34:43 -070027};
28
Dan Sinclair80c48782017-03-23 12:11:20 -040029#endif // XFA_FXFA_CXFA_FFDOCHANDLER_H_