summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffdocview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_ffdocview.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffdocview.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/xfa/fxfa/cxfa_ffdocview.cpp b/xfa/fxfa/cxfa_ffdocview.cpp
index 3a3637a1ef..375a319c20 100644
--- a/xfa/fxfa/cxfa_ffdocview.cpp
+++ b/xfa/fxfa/cxfa_ffdocview.cpp
@@ -256,52 +256,6 @@ void CXFA_FFDocView::ResetNode(CXFA_Node* pNode) {
m_pDoc->GetDocEnvironment()->SetChangeMark(m_pDoc.Get());
}
-int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
- CXFA_WidgetAcc* pWidgetAcc) {
- if (!pParam)
- return XFA_EVENTERROR_Error;
-
- if (pParam->m_eType == XFA_EVENT_Validate) {
- WideString wsValidateStr(L"preSubmit");
- CXFA_Node* pConfigItem =
- ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config));
- if (pConfigItem) {
- CXFA_Acrobat* pAcrobatNode =
- pConfigItem->GetChild<CXFA_Acrobat>(0, XFA_Element::Acrobat, false);
- CXFA_Validate* pValidateNode =
- pAcrobatNode ? pAcrobatNode->GetChild<CXFA_Validate>(
- 0, XFA_Element::Validate, false)
- : nullptr;
- if (!pValidateNode) {
- CXFA_Present* pPresentNode =
- pConfigItem->GetChild<CXFA_Present>(0, XFA_Element::Present, false);
- pValidateNode = pPresentNode ? pPresentNode->GetChild<CXFA_Validate>(
- 0, XFA_Element::Validate, false)
- : nullptr;
- }
- if (pValidateNode)
- wsValidateStr = pValidateNode->JSObject()->GetContent(false);
- }
-
- if (!wsValidateStr.Contains(L"preSubmit"))
- return XFA_EVENTERROR_Success;
- }
-
- CXFA_Node* pNode = pWidgetAcc ? pWidgetAcc->GetNode() : nullptr;
- if (!pNode) {
- CXFA_Node* pRootItem =
- ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
- if (!pRootItem)
- return XFA_EVENTERROR_Error;
-
- pNode = pRootItem->GetChild<CXFA_Node>(0, XFA_Element::Subform, false);
- }
-
- ExecEventActivityByDeepFirst(pNode, pParam->m_eType, pParam->m_bIsFormReady,
- true);
- return XFA_EVENTERROR_Success;
-}
-
CXFA_FFWidget* CXFA_FFDocView::GetWidgetForNode(CXFA_Node* node) {
return static_cast<CXFA_FFWidget*>(GetXFALayout()->GetLayoutItem(node));
}