| 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 "xfa/fxfa/include/xfa_ffdocview.h" | 7 #include "xfa/fxfa/include/xfa_ffdocview.h" |
| 8 | 8 |
| 9 #include "core/fxcrt/include/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
| 10 #include "xfa/fxfa/app/xfa_ffbarcode.h" | 10 #include "xfa/fxfa/app/xfa_ffbarcode.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 if (bChanged) { | 249 if (bChanged) { |
| 250 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc); | 250 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc); |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam, | 253 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam, |
| 254 CXFA_WidgetAcc* pWidgetAcc) { | 254 CXFA_WidgetAcc* pWidgetAcc) { |
| 255 if (pParam == NULL) { | 255 if (pParam == NULL) { |
| 256 return XFA_EVENTERROR_Error; | 256 return XFA_EVENTERROR_Error; |
| 257 } | 257 } |
| 258 if (pParam->m_eType == XFA_EVENT_Validate) { | 258 if (pParam->m_eType == XFA_EVENT_Validate) { |
| 259 CFX_WideString wsValidateStr = FX_WSTRC(L"preSubmit"); | 259 CFX_WideString wsValidateStr(L"preSubmit"); |
| 260 CXFA_Node* pConfigItem = | 260 CXFA_Node* pConfigItem = |
| 261 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config)); | 261 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config)); |
| 262 if (pConfigItem) { | 262 if (pConfigItem) { |
| 263 CXFA_Node* pValidateNode = NULL; | 263 CXFA_Node* pValidateNode = NULL; |
| 264 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_ELEMENT_Acrobat); | 264 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_ELEMENT_Acrobat); |
| 265 pValidateNode = | 265 pValidateNode = |
| 266 pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_ELEMENT_Validate) : NULL; | 266 pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_ELEMENT_Validate) : NULL; |
| 267 if (!pValidateNode) { | 267 if (!pValidateNode) { |
| 268 CXFA_Node* pPresentNode = pConfigItem->GetChild(0, XFA_ELEMENT_Present); | 268 CXFA_Node* pPresentNode = pConfigItem->GetChild(0, XFA_ELEMENT_Present); |
| 269 pValidateNode = pPresentNode | 269 pValidateNode = pPresentNode |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { | 906 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { |
| 907 return NULL; | 907 return NULL; |
| 908 } | 908 } |
| 909 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { | 909 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { |
| 910 return FALSE; | 910 return FALSE; |
| 911 } | 911 } |
| 912 void CXFA_WidgetAccIterator::SkipTree() { | 912 void CXFA_WidgetAccIterator::SkipTree() { |
| 913 m_ContentIterator.SkipChildrenAndMoveToNext(); | 913 m_ContentIterator.SkipChildrenAndMoveToNext(); |
| 914 m_pCurWidgetAcc = NULL; | 914 m_pCurWidgetAcc = NULL; |
| 915 } | 915 } |
| OLD | NEW |