From b657e87fa1e25997c8277fa49ed33ff245391f31 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 24 Jan 2018 20:05:29 +0000 Subject: Cleanup CreateUIChild node creation This CL cleans up some of the code around creating the XML nodes related to the UI widgets. Change-Id: Ib91364439ab039f46e44690e92cc0cb93a8da203 Reviewed-on: https://pdfium-review.googlesource.com/23770 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_node.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_node.h') diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 451e90c15b..5e1a31c63b 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -437,6 +437,8 @@ class CXFA_Node : public CXFA_Object { int32_t iLead, int32_t iTread) const; + virtual XFA_Element GetValueNodeType() const; + protected: CXFA_Node(CXFA_Document* pDoc, XFA_PacketType ePacket, @@ -515,6 +517,7 @@ class CXFA_Node : public CXFA_Object { WideString FormatNumStr(const WideString& wsValue, IFX_Locale* pLocale); void GetItemLabel(const WideStringView& wsValue, WideString& wsLabel); std::pair CreateUIChild(); + void CreateValueNodeIfNeeded(CXFA_Value* value, CXFA_Node* pUIChild); const PropertyData* const m_Properties; const AttributeData* const m_Attributes; -- cgit v1.2.3