diff options
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_eventdata.cpp (renamed from xfa/fxfa/parser/cxfa_event.cpp) | 16 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_eventdata.h (renamed from xfa/fxfa/parser/cxfa_event.h) | 10 | ||||
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.cpp | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/xfa/fxfa/parser/cxfa_event.cpp b/xfa/fxfa/parser/cxfa_eventdata.cpp index 8ba68fb294..5b48df6d88 100644 --- a/xfa/fxfa/parser/cxfa_event.cpp +++ b/xfa/fxfa/parser/cxfa_eventdata.cpp @@ -4,17 +4,17 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#include "xfa/fxfa/parser/cxfa_event.h" +#include "xfa/fxfa/parser/cxfa_eventdata.h" #include "xfa/fxfa/parser/cxfa_node.h" -CXFA_Event::CXFA_Event(CXFA_Node* pNode) : CXFA_Data(pNode) {} +CXFA_EventData::CXFA_EventData(CXFA_Node* pNode) : CXFA_Data(pNode) {} -int32_t CXFA_Event::GetActivity() { +int32_t CXFA_EventData::GetActivity() { return m_pNode->JSNode()->GetEnum(XFA_ATTRIBUTE_Activity); } -XFA_Element CXFA_Event::GetEventType() const { +XFA_Element CXFA_EventData::GetEventType() const { CXFA_Node* pChild = m_pNode->GetNodeItem(XFA_NODEITEM_FirstChild); while (pChild) { XFA_Element eType = pChild->GetElementType(); @@ -26,19 +26,19 @@ XFA_Element CXFA_Event::GetEventType() const { return XFA_Element::Unknown; } -void CXFA_Event::GetRef(WideStringView& wsRef) { +void CXFA_EventData::GetRef(WideStringView& wsRef) { m_pNode->JSNode()->TryCData(XFA_ATTRIBUTE_Ref, wsRef, true); } -CXFA_Script CXFA_Event::GetScript() const { +CXFA_Script CXFA_EventData::GetScript() const { return CXFA_Script(m_pNode->GetChild(0, XFA_Element::Script, false)); } -CXFA_Submit CXFA_Event::GetSubmit() const { +CXFA_Submit CXFA_EventData::GetSubmit() const { return CXFA_Submit(m_pNode->GetChild(0, XFA_Element::Submit, false)); } -void CXFA_Event::GetSignDataTarget(WideString& wsTarget) { +void CXFA_EventData::GetSignDataTarget(WideString& wsTarget) { CXFA_Node* pNode = m_pNode->JSNode()->GetProperty(0, XFA_Element::SignData, true); if (!pNode) diff --git a/xfa/fxfa/parser/cxfa_event.h b/xfa/fxfa/parser/cxfa_eventdata.h index 3835454c28..b6fdc48e99 100644 --- a/xfa/fxfa/parser/cxfa_event.h +++ b/xfa/fxfa/parser/cxfa_eventdata.h @@ -4,8 +4,8 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#ifndef XFA_FXFA_PARSER_CXFA_EVENT_H_ -#define XFA_FXFA_PARSER_CXFA_EVENT_H_ +#ifndef XFA_FXFA_PARSER_CXFA_EVENTDATA_H_ +#define XFA_FXFA_PARSER_CXFA_EVENTDATA_H_ #include <stdint.h> @@ -16,9 +16,9 @@ class CXFA_Node; -class CXFA_Event : public CXFA_Data { +class CXFA_EventData : public CXFA_Data { public: - explicit CXFA_Event(CXFA_Node* pNode); + explicit CXFA_EventData(CXFA_Node* pNode); int32_t GetActivity(); XFA_Element GetEventType() const; @@ -28,4 +28,4 @@ class CXFA_Event : public CXFA_Data { void GetSignDataTarget(WideString& wsTarget); }; -#endif // XFA_FXFA_PARSER_CXFA_EVENT_H_ +#endif // XFA_FXFA_PARSER_CXFA_EVENTDATA_H_ diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index ccce8cf501..362f0b5e54 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -12,7 +12,7 @@ #include "third_party/base/stl_util.h" #include "xfa/fxfa/cxfa_ffnotify.h" #include "xfa/fxfa/parser/cxfa_document.h" -#include "xfa/fxfa/parser/cxfa_event.h" +#include "xfa/fxfa/parser/cxfa_eventdata.h" #include "xfa/fxfa/parser/cxfa_localevalue.h" #include "xfa/fxfa/parser/cxfa_measurement.h" #include "xfa/fxfa/parser/cxfa_node.h" @@ -311,11 +311,11 @@ std::vector<CXFA_Node*> CXFA_WidgetData::GetEventByActivity(int32_t iActivity, bool bIsFormReady) { std::vector<CXFA_Node*> events; for (CXFA_Node* pNode : GetEventList()) { - CXFA_Event event(pNode); - if (event.GetActivity() == iActivity) { + CXFA_EventData eventData(pNode); + if (eventData.GetActivity() == iActivity) { if (iActivity == XFA_ATTRIBUTEENUM_Ready) { WideStringView wsRef; - event.GetRef(wsRef); + eventData.GetRef(wsRef); if (bIsFormReady) { if (wsRef == WideStringView(L"$form")) events.push_back(pNode); |