7#include "xfa/fxfa/cxfa_ffwidgethandler.h"
9#include "fxjs/xfa/cjx_object.h"
10#include "xfa/fxfa/cxfa_ffdoc.h"
11#include "xfa/fxfa/cxfa_ffdocview.h"
12#include "xfa/fxfa/cxfa_fffield.h"
13#include "xfa/fxfa/cxfa_ffwidget.h"
14#include "xfa/fxfa/cxfa_fwladapterwidgetmgr.h"
15#include "xfa/fxfa/layout/cxfa_layoutprocessor.h"
16#include "xfa/fxfa/parser/cxfa_calculate.h"
17#include "xfa/fxfa/parser/cxfa_checkbutton.h"
18#include "xfa/fxfa/parser/cxfa_measurement.h"
19#include "xfa/fxfa/parser/cxfa_node.h"
20#include "xfa/fxfa/parser/cxfa_ui.h"
21#include "xfa/fxfa/parser/cxfa_validate.h"
23CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(
CXFA_FFDocView* pDocView)
24 : m_pDocView(pDocView) {}
28void CXFA_FFWidgetHandler::Trace(
cppgc::Visitor* visitor)
const {
29 visitor->Trace(m_pDocView);
44 const CFX_PointF& point) {
52 if (m_pDocView->SetFocus(hWidget))
53 m_pDocView->GetDoc()->SetFocusWidget(hWidget);
60 const CFX_PointF& point) {
62 m_pDocView->SetLayoutEvent();
68 const CFX_PointF& point) {
74 const CFX_PointF& point) {
80 const CFX_PointF& point,
81 const CFX_Vector& delta) {
87 const CFX_PointF& point) {
94 if (m_pDocView->SetFocus(hWidget)) {
95 m_pDocView->GetDoc()->SetFocusWidget(hWidget);
102 const CFX_PointF& point) {
108 const CFX_PointF& point) {
116 m_pDocView->UpdateDocView();
134 return widget->Copy().value_or(WideString
());
138 const WideString& text) {
170 const CFX_PointF& point) {
192 switch (eEventType) {
216 case XFA_EVENT_Calculate:
217 return pNode->ProcessCalculate(m_pDocView.Get());
218 case XFA_EVENT_Validate:
219 if (m_pDocView->GetDoc()->IsValidationsEnabled())
220 return pNode->ProcessValidate(m_pDocView.Get(), 0);
228 return pNode->ExecuteScript(m_pDocView.Get(), calc->GetScriptIfExists(),
234 return pNode->ProcessEvent(m_pDocView.Get(),
235 kXFAEventActivity[pParam->m_eType], pParam);
CXFA_Script * GetScriptIfExists()
bool TestStatusBits(Mask< XFA_WidgetStatus > val) const
CXFA_Validate * GetValidateIfExists() const
CXFA_Calculate * GetCalculateIfExists() const
bool IsUserInteractive() const
XFA_Element GetElementType() const
CXFA_Script * GetScriptIfExists()
@ XFA_EVENT_InitCalculate
const XFA_AttributeValue kXFAEventActivity[]