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 #include "../../../foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "../common/xfa_utils.h" | 8 #include "xfa/src/fxfa/src/common/xfa_utils.h" |
9 #include "../common/xfa_object.h" | 9 #include "xfa/src/fxfa/src/common/xfa_object.h" |
10 #include "../common/xfa_document.h" | 10 #include "xfa/src/fxfa/src/common/xfa_document.h" |
11 #include "../common/xfa_parser.h" | 11 #include "xfa/src/fxfa/src/common/xfa_parser.h" |
12 #include "../common/xfa_script.h" | 12 #include "xfa/src/fxfa/src/common/xfa_script.h" |
13 #include "../common/xfa_docdata.h" | 13 #include "xfa/src/fxfa/src/common/xfa_docdata.h" |
14 #include "../common/xfa_doclayout.h" | 14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" |
15 #include "../common/xfa_debug.h" | 15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" |
16 #include "../common/xfa_localemgr.h" | 16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" |
17 #include "../common/xfa_fm2jsapi.h" | |
18 #include "xfa_debug_parser.h" | |
19 #include "xfa_script_eventpseudomodel.h" | 17 #include "xfa_script_eventpseudomodel.h" |
20 CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument) | 18 CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument) |
21 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_EventPseudoModel) { | 19 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_EventPseudoModel) { |
22 m_uScriptHash = XFA_HASHCODE_Event; | 20 m_uScriptHash = XFA_HASHCODE_Event; |
23 } | 21 } |
24 CScript_EventPseudoModel::~CScript_EventPseudoModel() {} | 22 CScript_EventPseudoModel::~CScript_EventPseudoModel() {} |
25 void Script_EventPseudoModel_StringProperty(FXJSE_HVALUE hValue, | 23 void Script_EventPseudoModel_StringProperty(FXJSE_HVALUE hValue, |
26 CFX_WideString& wsValue, | 24 CFX_WideString& wsValue, |
27 FX_BOOL bSetting) { | 25 FX_BOOL bSetting) { |
28 if (bSetting) { | 26 if (bSetting) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); | 259 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); |
262 if (!pScriptContext) { | 260 if (!pScriptContext) { |
263 return; | 261 return; |
264 } | 262 } |
265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); | 263 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); |
266 if (!pEventParam) { | 264 if (!pEventParam) { |
267 return; | 265 return; |
268 } | 266 } |
269 pEventParam->Reset(); | 267 pEventParam->Reset(); |
270 } | 268 } |
OLD | NEW |