summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfa/fxfa/cxfa_ffdocview.cpp46
-rw-r--r--xfa/fxfa/cxfa_ffdocview.h2
2 files changed, 0 insertions, 48 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));
}
diff --git a/xfa/fxfa/cxfa_ffdocview.h b/xfa/fxfa/cxfa_ffdocview.h
index e943f446ec..72563dd2f4 100644
--- a/xfa/fxfa/cxfa_ffdocview.h
+++ b/xfa/fxfa/cxfa_ffdocview.h
@@ -56,8 +56,6 @@ class CXFA_FFDocView {
CXFA_FFPageView* GetPageView(int32_t nIndex) const;
void ResetNode(CXFA_Node* pNode);
- int32_t ProcessWidgetEvent(CXFA_EventParam* pParam,
- CXFA_WidgetAcc* pWidgetAcc);
CXFA_FFWidgetHandler* GetWidgetHandler();
std::unique_ptr<CXFA_ReadyNodeIterator> CreateReadyNodeIterator();
CXFA_FFWidget* GetFocusWidget() const { return m_pFocusWidget.Get(); }