Lines Matching refs:CXFA_Node
545 std::vector<CXFA_Node*> NodesSortedByDocumentIdx( in NodesSortedByDocumentIdx()
546 const std::set<CXFA_Node*>& rgNodeSet) { in NodesSortedByDocumentIdx()
548 return std::vector<CXFA_Node*>(); in NodesSortedByDocumentIdx()
550 std::vector<CXFA_Node*> rgNodeArray; in NodesSortedByDocumentIdx()
551 CXFA_Node* pCommonParent = (*rgNodeSet.begin())->GetParent(); in NodesSortedByDocumentIdx()
552 for (CXFA_Node* pNode = pCommonParent->GetFirstChild(); pNode; in NodesSortedByDocumentIdx()
560 using CXFA_NodeSetPair = std::pair<std::set<CXFA_Node*>, std::set<CXFA_Node*>>;
564 std::map<CXFA_Node*, std::unique_ptr<CXFA_NodeSetPairMap>>;
566 CXFA_NodeSetPair* NodeSetPairForNode(CXFA_Node* pNode, in NodeSetPairForNode()
568 CXFA_Node* pParentNode = pNode->GetParent(); in NodeSetPairForNode()
583 void ReorderDataNodes(const std::set<CXFA_Node*>& sSet1, in ReorderDataNodes()
584 const std::set<CXFA_Node*>& sSet2, in ReorderDataNodes()
587 for (CXFA_Node* pNode : sSet1) { in ReorderDataNodes()
592 for (CXFA_Node* pNode : sSet2) { in ReorderDataNodes()
611 std::vector<CXFA_Node*> rgNodeArray1 = in ReorderDataNodes()
613 std::vector<CXFA_Node*> rgNodeArray2 = in ReorderDataNodes()
615 CXFA_Node* pParentNode = nullptr; in ReorderDataNodes()
616 CXFA_Node* pBeforeNode = nullptr; in ReorderDataNodes()
621 CXFA_Node* pLastNode = rgNodeArray2.back(); in ReorderDataNodes()
685 CXFA_Node* FindFirstSiblingNamedInList(CXFA_Node* parent,
688 CXFA_Node* FindFirstSiblingOfClassInList(CXFA_Node* parent,
692 CXFA_Node* FindFirstSiblingNamed(CXFA_Node* parent, uint32_t dwNameHash) { in FindFirstSiblingNamed()
693 CXFA_Node* result = FindFirstSiblingNamedInList(parent, dwNameHash, in FindFirstSiblingNamed()
702 CXFA_Node* FindFirstSiblingNamedInList(CXFA_Node* parent, in FindFirstSiblingNamedInList()
705 for (CXFA_Node* child : parent->GetNodeListWithFilter(dwFilter)) { in FindFirstSiblingNamedInList()
709 CXFA_Node* result = FindFirstSiblingNamed(child, dwNameHash); in FindFirstSiblingNamedInList()
716 CXFA_Node* FindFirstSiblingOfClass(CXFA_Node* parent, XFA_Element element) { in FindFirstSiblingOfClass()
717 CXFA_Node* result = in FindFirstSiblingOfClass()
726 CXFA_Node* FindFirstSiblingOfClassInList(CXFA_Node* parent, in FindFirstSiblingOfClassInList()
729 for (CXFA_Node* child : parent->GetNodeListWithFilter(dwFilter)) { in FindFirstSiblingOfClassInList()
733 CXFA_Node* result = FindFirstSiblingOfClass(child, element); in FindFirstSiblingOfClassInList()
740 WideString GetNameExpressionSinglePath(CXFA_Node* pNode) { in GetNameExpressionSinglePath()
760 void TraverseSiblings(CXFA_Node* parent, in TraverseSiblings()
762 std::vector<CXFA_Node*>* pSiblings, in TraverseSiblings()
769 for (CXFA_Node* child : in TraverseSiblings()
791 for (CXFA_Node* child : in TraverseSiblings()
835 void LoadText(CXFA_FFDoc* doc, CXFA_Node* pNode) { in LoadText()
857 bool LoadImageData(CXFA_FFDoc* doc, CXFA_Node* pNode) { in LoadImageData()
890 bool LoadCaption(CXFA_FFDoc* doc, CXFA_Node* pNode) { in LoadCaption()
925 bool LoadImageData(CXFA_FFDoc* doc, CXFA_Node* pNode) { in LoadImageData()
948 CXFA_Node::CXFA_Node(CXFA_Document* pDoc, in CXFA_Node() function in CXFA_Node
964 CXFA_Node::~CXFA_Node() = default;
966 CXFA_Node* CXFA_Node::Clone(bool bRecursive) { in Clone()
967 CXFA_Node* pClone = m_pDocument->CreateNode(m_ePacket, m_elementType); in Clone()
997 for (CXFA_Node* pChild = GetFirstChild(); pChild; in Clone()
1007 CXFA_Node* CXFA_Node::GetNextContainerSibling() const { in GetNextContainerSibling()
1015 CXFA_Node* CXFA_Node::GetPrevContainerSibling() const { in GetPrevContainerSibling()
1023 CXFA_Node* CXFA_Node::GetFirstContainerChild() const { in GetFirstContainerChild()
1031 CXFA_Node* CXFA_Node::GetContainerParent() const { in GetContainerParent()
1039 bool CXFA_Node::IsValidInPacket(XFA_PacketType packet) const { in IsValidInPacket()
1043 const CXFA_Node::PropertyData* CXFA_Node::GetPropertyData( in GetPropertyData()
1053 bool CXFA_Node::HasProperty(XFA_Element property) const { in HasProperty()
1057 bool CXFA_Node::HasPropertyFlags(XFA_Element property, uint8_t flags) const { in HasPropertyFlags()
1062 uint8_t CXFA_Node::PropertyOccuranceCount(XFA_Element property) const { in PropertyOccuranceCount()
1067 std::pair<CXFA_Node*, int32_t> CXFA_Node::GetProperty( in GetProperty()
1074 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetProperty()
1085 CXFA_Node* CXFA_Node::GetOrCreateProperty(int32_t index, in GetOrCreateProperty()
1091 CXFA_Node* node; in GetOrCreateProperty()
1097 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetOrCreateProperty()
1105 CXFA_Node* pNewNode = nullptr; in GetOrCreateProperty()
1117 Optional<XFA_Element> CXFA_Node::GetFirstPropertyWithFlag(uint8_t flag) const { in GetFirstPropertyWithFlag()
1125 const CXFA_Node::AttributeData* CXFA_Node::GetAttributeData( in GetAttributeData()
1135 bool CXFA_Node::HasAttribute(XFA_Attribute attr) const { in HasAttribute()
1139 XFA_Attribute CXFA_Node::GetAttribute(size_t i) const { in GetAttribute()
1144 XFA_AttributeType CXFA_Node::GetAttributeType(XFA_Attribute type) const { in GetAttributeType()
1149 std::vector<CXFA_Node*> CXFA_Node::GetNodeListForType(XFA_Element eTypeFilter) { in GetNodeListForType()
1150 std::vector<CXFA_Node*> nodes; in GetNodeListForType()
1151 for (CXFA_Node* pChild = GetFirstChild(); pChild; in GetNodeListForType()
1159 std::vector<CXFA_Node*> CXFA_Node::GetNodeListWithFilter( in GetNodeListWithFilter()
1161 std::vector<CXFA_Node*> nodes; in GetNodeListWithFilter()
1163 for (CXFA_Node* pChild = GetFirstChild(); pChild; in GetNodeListWithFilter()
1175 for (CXFA_Node* pChild = GetFirstChild(); pChild; in GetNodeListWithFilter()
1202 CXFA_Node* pNewNode = in GetNodeListWithFilter()
1212 CXFA_Node* CXFA_Node::CreateSamePacketNode(XFA_Element eType) { in CreateSamePacketNode()
1213 CXFA_Node* pNode = m_pDocument->CreateNode(m_ePacket, eType); in CreateSamePacketNode()
1221 CXFA_Node* CXFA_Node::CloneTemplateToForm(bool bRecursive) { in CloneTemplateToForm()
1223 CXFA_Node* pClone = in CloneTemplateToForm()
1232 for (CXFA_Node* pChild = GetFirstChild(); pChild; in CloneTemplateToForm()
1242 CXFA_Node* CXFA_Node::GetTemplateNodeIfExists() const { in GetTemplateNodeIfExists()
1246 void CXFA_Node::SetTemplateNode(CXFA_Node* pTemplateNode) { in SetTemplateNode()
1250 CXFA_Node* CXFA_Node::GetBindData() { in GetBindData()
1255 int32_t CXFA_Node::AddBindItem(CXFA_Node* pFormNode) { in AddBindItem()
1271 CXFA_Node* pOldFormItem = GetBindingNode(); in AddBindItem()
1279 std::vector<CXFA_Node*> items; in AddBindItem()
1288 int32_t CXFA_Node::RemoveBindItem(CXFA_Node* pFormNode) { in RemoveBindItem()
1302 CXFA_Node* pOldFormItem = GetBindingNode(); in RemoveBindItem()
1310 bool CXFA_Node::HasBindItem() const { in HasBindItem()
1314 CXFA_Node* CXFA_Node::GetContainerNode() { in GetContainerNode()
1320 CXFA_Node* pParentNode = GetParent(); in GetContainerNode()
1332 CXFA_Node* pDataNode = GetBindData(); in GetContainerNode()
1336 CXFA_Node* pFieldNode = nullptr; in GetContainerNode()
1351 CXFA_Node* pGrandNode = pParentNode ? pParentNode->GetParent() : nullptr; in GetContainerNode()
1352 CXFA_Node* pValueNode = in GetContainerNode()
1362 CXFA_Node* pParentOfValueNode = in GetContainerNode()
1367 LocaleIface* CXFA_Node::GetLocale() { in GetLocale()
1376 Optional<WideString> CXFA_Node::GetLocaleName() { in GetLocaleName()
1377 CXFA_Node* pForm = ToNode(GetDocument()->GetXFAObject(XFA_HASHCODE_Form)); in GetLocaleName()
1386 CXFA_Node* pLocaleNode = this; in GetLocaleName()
1396 CXFA_Node* pConfig = ToNode(GetDocument()->GetXFAObject(XFA_HASHCODE_Config)); in GetLocaleName()
1416 XFA_AttributeValue CXFA_Node::GetIntact() { in GetIntact()
1437 CXFA_Node* parent = GetParent(); in GetIntact()
1468 WideString CXFA_Node::GetNameExpression() { in GetNameExpression()
1470 CXFA_Node* parent = GetParent(); in GetNameExpression()
1481 CXFA_Node* CXFA_Node::GetDataDescriptionNode() { in GetDataDescriptionNode()
1487 void CXFA_Node::SetDataDescriptionNode(CXFA_Node* pDataDescriptionNode) { in SetDataDescriptionNode()
1492 CXFA_Node* CXFA_Node::GetModelNode() { in GetModelNode()
1517 size_t CXFA_Node::CountChildren(XFA_Element eType, bool bOnlyChild) { in CountChildren()
1519 for (CXFA_Node* pNode = GetFirstChild(); pNode; in CountChildren()
1530 CXFA_Node* CXFA_Node::GetChildInternal(size_t index, in GetChildInternal()
1534 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetChildInternal()
1548 void CXFA_Node::InsertChildAndNotify(int32_t index, CXFA_Node* pNode) { in InsertChildAndNotify()
1552 void CXFA_Node::InsertChildAndNotify(CXFA_Node* pNode, CXFA_Node* pBeforeNode) { in InsertChildAndNotify()
1570 void CXFA_Node::RemoveChildAndNotify(CXFA_Node* pNode, bool bNotify) { in RemoveChildAndNotify()
1576 TreeNode<CXFA_Node>::RemoveChild(pNode); in RemoveChildAndNotify()
1610 CXFA_Node* CXFA_Node::GetFirstChildByName(WideStringView wsName) const { in GetFirstChildByName()
1614 CXFA_Node* CXFA_Node::GetFirstChildByName(uint32_t dwNameHash) const { in GetFirstChildByName()
1615 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetFirstChildByName()
1623 CXFA_Node* CXFA_Node::GetFirstChildByClassInternal(XFA_Element eType) const { in GetFirstChildByClassInternal()
1624 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetFirstChildByClassInternal()
1632 CXFA_Node* CXFA_Node::GetNextSameNameSibling(uint32_t dwNameHash) const { in GetNextSameNameSibling()
1633 for (CXFA_Node* pNode = GetNextSibling(); pNode; in GetNextSameNameSibling()
1641 CXFA_Node* CXFA_Node::GetNextSameNameSiblingInternal( in GetNextSameNameSiblingInternal()
1646 CXFA_Node* CXFA_Node::GetNextSameClassSiblingInternal(XFA_Element eType) const { in GetNextSameClassSiblingInternal()
1647 for (CXFA_Node* pNode = GetNextSibling(); pNode; in GetNextSameClassSiblingInternal()
1655 CXFA_Node* CXFA_Node::GetOneChildNamed(WideStringView wsName) { in GetOneChildNamed()
1659 CXFA_Node* CXFA_Node::GetOneChildOfClass(WideStringView wsClass) { in GetOneChildOfClass()
1667 std::vector<CXFA_Node*> CXFA_Node::GetSiblings(bool bIsClassName) { in GetSiblings()
1668 std::vector<CXFA_Node*> siblings; in GetSiblings()
1669 CXFA_Node* parent = GetParent(); in GetSiblings()
1683 size_t CXFA_Node::GetIndex(bool bIsProperty, bool bIsClassIndex) { in GetIndex()
1684 CXFA_Node* parent = GetParent(); in GetIndex()
1694 std::vector<CXFA_Node*> siblings; in GetIndex()
1703 size_t CXFA_Node::GetIndexByName() { in GetIndexByName()
1707 size_t CXFA_Node::GetIndexByClassName() { in GetIndexByClassName()
1711 CXFA_Node* CXFA_Node::GetInstanceMgrOfSubform() { in GetInstanceMgrOfSubform()
1712 CXFA_Node* pInstanceMgr = nullptr; in GetInstanceMgrOfSubform()
1714 CXFA_Node* pParentNode = GetParent(); in GetInstanceMgrOfSubform()
1718 for (CXFA_Node* pNode = GetPrevSibling(); pNode; in GetInstanceMgrOfSubform()
1740 CXFA_Occur* CXFA_Node::GetOccurIfExists() { in GetOccurIfExists()
1744 bool CXFA_Node::HasFlag(XFA_NodeFlag dwFlag) const { in HasFlag()
1752 void CXFA_Node::SetFlagAndNotify(uint32_t dwFlag) { in SetFlagAndNotify()
1764 void CXFA_Node::SetFlag(uint32_t dwFlag) { in SetFlag()
1768 void CXFA_Node::ClearFlag(uint32_t dwFlag) { in ClearFlag()
1772 bool CXFA_Node::IsAttributeInXML() { in IsAttributeInXML()
1777 void CXFA_Node::OnRemoved(bool bNotify) const { in OnRemoved()
1786 void CXFA_Node::UpdateNameHash() { in UpdateNameHash()
1791 CFX_XMLNode* CXFA_Node::CreateXMLMappingNode() { in CreateXMLMappingNode()
1799 bool CXFA_Node::IsNeedSavingXMLNode() const { in IsNeedSavingXMLNode()
1804 CXFA_Node* CXFA_Node::GetItemIfExists(int32_t iIndex) { in GetItemIfExists()
1807 for (CXFA_Node* pNode = GetNextSibling(); pNode; in GetItemIfExists()
1835 int32_t CXFA_Node::GetCount() { in GetCount()
1838 for (CXFA_Node* pNode = GetNextSibling(); pNode; in GetCount()
1864 void CXFA_Node::InsertItem(CXFA_Node* pNewInstance, in InsertItem()
1873 CXFA_Node* item = GetItemIfExists(iCount - 1); in InsertItem()
1877 CXFA_Node* pNextSibling = in InsertItem()
1881 std::set<CXFA_Node*> sNew; in InsertItem()
1882 std::set<CXFA_Node*> sAfter; in InsertItem()
1883 CXFA_NodeIteratorTemplate<CXFA_Node, in InsertItem()
1886 for (CXFA_Node* pNode = sIteratorNew.GetCurrent(); pNode; in InsertItem()
1888 CXFA_Node* pDataNode = pNode->GetBindData(); in InsertItem()
1894 CXFA_NodeIteratorTemplate<CXFA_Node, in InsertItem()
1897 for (CXFA_Node* pNode = sIteratorAfter.GetCurrent(); pNode; in InsertItem()
1899 CXFA_Node* pDataNode = pNode->GetBindData(); in InsertItem()
1908 CXFA_Node* pBeforeInstance = GetItemIfExists(iPos); in InsertItem()
1916 std::set<CXFA_Node*> sNew; in InsertItem()
1917 std::set<CXFA_Node*> sBefore; in InsertItem()
1918 CXFA_NodeIteratorTemplate<CXFA_Node, in InsertItem()
1921 for (CXFA_Node* pNode = sIteratorNew.GetCurrent(); pNode; in InsertItem()
1923 CXFA_Node* pDataNode = pNode->GetBindData(); in InsertItem()
1929 CXFA_NodeIteratorTemplate<CXFA_Node, in InsertItem()
1932 for (CXFA_Node* pNode = sIteratorBefore.GetCurrent(); pNode; in InsertItem()
1934 CXFA_Node* pDataNode = pNode->GetBindData(); in InsertItem()
1945 void CXFA_Node::RemoveItem(CXFA_Node* pRemoveInstance, in RemoveItem()
1951 CXFA_NodeIteratorTemplate<CXFA_Node, CXFA_TraverseStrategy_XFAContainerNode> in RemoveItem()
1953 for (CXFA_Node* pFormNode = sIterator.GetCurrent(); pFormNode; in RemoveItem()
1955 CXFA_Node* pDataNode = pFormNode->GetBindData(); in RemoveItem()
1960 if (CXFA_Node* pDataParent = pDataNode->GetParent()) { in RemoveItem()
1968 CXFA_Node* CXFA_Node::CreateInstanceIfPossible(bool bDataMerge) { in CreateInstanceIfPossible()
1970 CXFA_Node* pTemplateNode = GetTemplateNodeIfExists(); in CreateInstanceIfPossible()
1974 CXFA_Node* pFormParent = GetParent(); in CreateInstanceIfPossible()
1975 CXFA_Node* pDataScope = nullptr; in CreateInstanceIfPossible()
1976 for (CXFA_Node* pRootBoundNode = pFormParent; in CreateInstanceIfPossible()
1988 CXFA_Node* pInstance = pDocument->DataMerge_CopyContainer( in CreateInstanceIfPossible()
1997 Optional<bool> CXFA_Node::GetDefaultBoolean(XFA_Attribute attr) const { in GetDefaultBoolean()
2004 Optional<int32_t> CXFA_Node::GetDefaultInteger(XFA_Attribute attr) const { in GetDefaultInteger()
2011 Optional<CXFA_Measurement> CXFA_Node::GetDefaultMeasurement( in GetDefaultMeasurement()
2021 Optional<WideString> CXFA_Node::GetDefaultCData(XFA_Attribute attr) const { in GetDefaultCData()
2029 Optional<XFA_AttributeValue> CXFA_Node::GetDefaultEnum( in GetDefaultEnum()
2037 Optional<void*> CXFA_Node::GetDefaultValue(XFA_Attribute attr, in GetDefaultValue()
2047 void CXFA_Node::SendAttributeChangeMessage(XFA_Attribute eAttribute, in SendAttributeChangeMessage()
2067 CXFA_Node* pParentNode = GetParent(); in SendAttributeChangeMessage()
2078 CXFA_Node* pParentNode = GetParent(); in SendAttributeChangeMessage()
2086 CXFA_Node* pNode = pParentNode->GetParent(); in SendAttributeChangeMessage()
2093 CXFA_Node* pEditNode = GetParent(); in SendAttributeChangeMessage()
2098 CXFA_Node* pUINode = pEditNode->GetParent(); in SendAttributeChangeMessage()
2113 CXFA_Node* pUINode = GetParent(); in SendAttributeChangeMessage()
2122 CXFA_Node* pUINode = GetParent(); in SendAttributeChangeMessage()
2149 CXFA_Node* pTextNode = GetParent(); in SendAttributeChangeMessage()
2153 CXFA_Node* pValueNode = pTextNode->GetParent(); in SendAttributeChangeMessage()
2160 CXFA_Node* pNode = pValueNode->GetParent(); in SendAttributeChangeMessage()
2171 CXFA_Node* pNode = pValueNode->GetParent(); in SendAttributeChangeMessage()
2186 CXFA_Node* pParent = this; in SendAttributeChangeMessage()
2194 void CXFA_Node::SyncValue(const WideString& wsValue, bool bNotify) { in SyncValue()
2196 CXFA_Node* pContainerNode = GetContainerNode(); in SyncValue()
2203 WideString CXFA_Node::GetRawValue() { in GetRawValue()
2207 int32_t CXFA_Node::GetRotate() const { in GetRotate()
2213 CXFA_Border* CXFA_Node::GetBorderIfExists() const { in GetBorderIfExists()
2217 CXFA_Border* CXFA_Node::GetOrCreateBorderIfPossible() { in GetOrCreateBorderIfPossible()
2221 CXFA_Caption* CXFA_Node::GetCaptionIfExists() const { in GetCaptionIfExists()
2225 CXFA_Font* CXFA_Node::GetOrCreateFontIfPossible() { in GetOrCreateFontIfPossible()
2229 CXFA_Font* CXFA_Node::GetFontIfExists() const { in GetFontIfExists()
2233 float CXFA_Node::GetFontSize() const { in GetFontSize()
2239 float CXFA_Node::GetLineHeight() const { in GetLineHeight()
2250 FX_ARGB CXFA_Node::GetTextColor() const { in GetTextColor()
2255 CXFA_Margin* CXFA_Node::GetMarginIfExists() const { in GetMarginIfExists()
2259 CXFA_Para* CXFA_Node::GetParaIfExists() const { in GetParaIfExists()
2263 bool CXFA_Node::IsOpenAccess() const { in IsOpenAccess()
2272 CXFA_Value* CXFA_Node::GetDefaultValueIfExists() { in GetDefaultValueIfExists()
2273 CXFA_Node* pTemNode = GetTemplateNodeIfExists(); in GetDefaultValueIfExists()
2279 CXFA_Value* CXFA_Node::GetFormValueIfExists() const { in GetFormValueIfExists()
2283 CXFA_Calculate* CXFA_Node::GetCalculateIfExists() const { in GetCalculateIfExists()
2287 CXFA_Validate* CXFA_Node::GetValidateIfExists() const { in GetValidateIfExists()
2291 CXFA_Validate* CXFA_Node::GetOrCreateValidateIfPossible() { in GetOrCreateValidateIfPossible()
2296 CXFA_Bind* CXFA_Node::GetBindIfExists() const { in GetBindIfExists()
2300 Optional<XFA_AttributeValue> CXFA_Node::GetIntactFromKeep( in GetIntactFromKeep()
2314 CXFA_Node* pPreviewRow = GetPrevContainerSibling(); in GetIntactFromKeep()
2343 Optional<float> CXFA_Node::TryWidth() { in TryWidth()
2347 Optional<float> CXFA_Node::TryHeight() { in TryHeight()
2351 Optional<float> CXFA_Node::TryMinWidth() { in TryMinWidth()
2355 Optional<float> CXFA_Node::TryMinHeight() { in TryMinHeight()
2359 Optional<float> CXFA_Node::TryMaxWidth() { in TryMaxWidth()
2363 Optional<float> CXFA_Node::TryMaxHeight() { in TryMaxHeight()
2367 CXFA_Node* CXFA_Node::GetExclGroupIfExists() { in GetExclGroupIfExists()
2368 CXFA_Node* pExcl = GetParent(); in GetExclGroupIfExists()
2374 XFA_EventError CXFA_Node::ProcessEvent(CXFA_FFDocView* pDocView, in ProcessEvent()
2394 XFA_EventError CXFA_Node::ProcessEventInternal(CXFA_FFDocView* pDocView, in ProcessEventInternal()
2431 XFA_EventError CXFA_Node::ProcessCalculate(CXFA_FFDocView* pDocView) { in ProcessCalculate()
2455 void CXFA_Node::ProcessScriptTestValidate(CXFA_FFDocView* pDocView, in ProcessScriptTestValidate()
2500 XFA_EventError CXFA_Node::ProcessFormatTestValidate(CXFA_FFDocView* pDocView, in ProcessFormatTestValidate()
2555 XFA_EventError CXFA_Node::ProcessNullTestValidate(CXFA_FFDocView* pDocView, in ProcessNullTestValidate()
2627 XFA_EventError CXFA_Node::ProcessValidate(CXFA_FFDocView* pDocView, in ProcessValidate()
2670 WideString CXFA_Node::GetValidateCaptionName(bool bVersionFlag) { in GetValidateCaptionName()
2689 WideString CXFA_Node::GetValidateMessage(bool bError, bool bVersionFlag) { in GetValidateMessage()
2702 XFA_EventError CXFA_Node::ExecuteScript(CXFA_FFDocView* pDocView, in ExecuteScript()
2708 std::pair<XFA_EventError, bool> CXFA_Node::ExecuteBoolScript( in ExecuteBoolScript()
2734 std::vector<CXFA_Node*> refNodes; in ExecuteBoolScript()
2769 for (CXFA_Node* pRefNode : refNodes) { in ExecuteBoolScript()
2791 CXFA_Node::CreateChildUIAndValueNodesIfNeeded() { in CreateChildUIAndValueNodesIfNeeded()
2800 CXFA_Node* pUIChild = nullptr; in CreateChildUIAndValueNodesIfNeeded()
2803 for (CXFA_Node* pChild = pUI->GetFirstChild(); pChild; in CreateChildUIAndValueNodesIfNeeded()
2823 CXFA_Node* child = value->GetFirstChild(); in CreateChildUIAndValueNodesIfNeeded()
2890 pUIChild = pUI->JSObject()->GetOrCreateProperty<CXFA_Node>( in CreateChildUIAndValueNodesIfNeeded()
2898 XFA_FFWidgetType CXFA_Node::GetDefaultFFWidgetType() const { in GetDefaultFFWidgetType()
2903 CXFA_Node* CXFA_Node::CreateUINodeIfNeeded(CXFA_Ui* ui, XFA_Element type) { in CreateUINodeIfNeeded()
2904 return ui->JSObject()->GetOrCreateProperty<CXFA_Node>(0, type); in CreateUINodeIfNeeded()
2907 void CXFA_Node::CreateValueNodeIfNeeded(CXFA_Value* value, in CreateValueNodeIfNeeded()
2908 CXFA_Node* pUIChild) { in CreateValueNodeIfNeeded()
2918 CXFA_Node* pItem = in CreateValueNodeIfNeeded()
2919 pItems->GetChild<CXFA_Node>(0, XFA_Element::Unknown, false); in CreateValueNodeIfNeeded()
2924 value->JSObject()->GetOrCreateProperty<CXFA_Node>(0, valueType); in CreateValueNodeIfNeeded()
2927 XFA_Element CXFA_Node::GetValueNodeType() const { in GetValueNodeType()
2931 CXFA_Node* CXFA_Node::GetUIChildNode() { in GetUIChildNode()
2950 XFA_FFWidgetType CXFA_Node::GetFFWidgetType() { in GetFFWidgetType()
2955 CXFA_Border* CXFA_Node::GetUIBorder() { in GetUIBorder()
2956 CXFA_Node* pUIChild = GetUIChildNode(); in GetUIBorder()
2962 CFX_RectF CXFA_Node::GetUIMargin() { in GetUIMargin()
2963 CXFA_Node* pUIChild = GetUIChildNode(); in GetUIMargin()
3001 std::vector<CXFA_Event*> CXFA_Node::GetEventByActivity( in GetEventByActivity()
3005 for (CXFA_Node* node : GetNodeListForType(XFA_Element::Event)) { in GetEventByActivity()
3028 void CXFA_Node::ResetData() { in ResetData()
3044 CXFA_Node* pNextChild = GetFirstContainerChild(); in ResetData()
3046 CXFA_Node* pChild = pNextChild; in ResetData()
3069 pItems->GetChild<CXFA_Node>(1, XFA_Element::Unknown, false) in ResetData()
3093 void CXFA_Node::SetImageEdit(const WideString& wsContentType, in SetImageEdit()
3105 CXFA_Node* pBind = GetBindData(); in SetImageEdit()
3113 CXFA_Node* pHrefNode = pBind->GetFirstChild(); in SetImageEdit()
3122 void CXFA_Node::CalcCaptionSize(CXFA_FFDoc* doc, CFX_SizeF* pszCap) { in CalcCaptionSize()
3180 bool CXFA_Node::CalculateFieldAutoSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculateFieldAutoSize()
3212 bool CXFA_Node::CalculateWidgetAutoSize(CFX_SizeF* pSize) { in CalculateWidgetAutoSize()
3251 void CXFA_Node::CalculateTextContentSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculateTextContentSize()
3281 bool CXFA_Node::CalculateTextEditAutoSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculateTextEditAutoSize()
3334 bool CXFA_Node::CalculateCheckButtonAutoSize(CXFA_FFDoc* doc, in CalculateCheckButtonAutoSize()
3341 bool CXFA_Node::CalculatePushButtonAutoSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculatePushButtonAutoSize()
3346 CFX_SizeF CXFA_Node::CalculateImageSize(float img_width, in CalculateImageSize()
3372 bool CXFA_Node::CalculateImageAutoSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculateImageAutoSize()
3386 bool CXFA_Node::CalculateImageEditAutoSize(CXFA_FFDoc* doc, CFX_SizeF* pSize) { in CalculateImageEditAutoSize()
3400 bool CXFA_Node::LoadImageImage(CXFA_FFDoc* doc) { in LoadImageImage()
3405 bool CXFA_Node::LoadImageEditImage(CXFA_FFDoc* doc) { in LoadImageEditImage()
3411 CFX_Size CXFA_Node::GetImageDpi() const { in GetImageDpi()
3416 CFX_Size CXFA_Node::GetImageEditDpi() const { in GetImageEditDpi()
3422 float CXFA_Node::CalculateWidgetAutoWidth(float fWidthCalc) { in CalculateWidgetAutoWidth()
3438 float CXFA_Node::GetWidthWithoutMargin(float fWidthCalc) const { in GetWidthWithoutMargin()
3445 float CXFA_Node::CalculateWidgetAutoHeight(float fHeightCalc) { in CalculateWidgetAutoHeight()
3461 float CXFA_Node::GetHeightWithoutMargin(float fHeightCalc) const { in GetHeightWithoutMargin()
3468 void CXFA_Node::StartWidgetLayout(CXFA_FFDoc* doc, in StartWidgetLayout()
3517 CFX_SizeF CXFA_Node::CalculateAccWidthAndHeight(CXFA_FFDoc* doc, float fWidth) { in CalculateAccWidthAndHeight()
3559 Optional<float> CXFA_Node::FindSplitPos(CXFA_FFDocView* pDocView, in FindSplitPos()
3781 void CXFA_Node::InitLayoutData() { in InitLayoutData()
3808 void CXFA_Node::StartTextLayout(CXFA_FFDoc* doc, in StartTextLayout()
3852 bool CXFA_Node::LoadCaption(CXFA_FFDoc* doc) { in LoadCaption()
3857 CXFA_TextLayout* CXFA_Node::GetCaptionTextLayout() { in GetCaptionTextLayout()
3863 CXFA_TextLayout* CXFA_Node::GetTextLayout() { in GetTextLayout()
3868 RetainPtr<CFX_DIBitmap> CXFA_Node::GetImageImage() { in GetImageImage()
3873 RetainPtr<CFX_DIBitmap> CXFA_Node::GetImageEditImage() { in GetImageEditImage()
3880 void CXFA_Node::SetImageImage(const RetainPtr<CFX_DIBitmap>& newImage) { in SetImageImage()
3886 void CXFA_Node::SetImageEditImage(const RetainPtr<CFX_DIBitmap>& newImage) { in SetImageEditImage()
3893 RetainPtr<CFGAS_GEFont> CXFA_Node::GetFDEFont(CXFA_FFDoc* doc) { in GetFDEFont()
3909 bool CXFA_Node::HasButtonRollover() { in HasButtonRollover()
3914 for (CXFA_Node* pText = pItems->GetFirstChild(); pText; in HasButtonRollover()
3925 bool CXFA_Node::HasButtonDown() { in HasButtonDown()
3930 for (CXFA_Node* pText = pItems->GetFirstChild(); pText; in HasButtonDown()
3939 bool CXFA_Node::IsRadioButton() { in IsRadioButton()
3940 CXFA_Node* pParent = GetParent(); in IsRadioButton()
3944 float CXFA_Node::GetCheckButtonSize() { in GetCheckButtonSize()
3945 CXFA_Node* pUIChild = GetUIChildNode(); in GetCheckButtonSize()
3953 XFA_CHECKSTATE CXFA_Node::GetCheckState() { in GetCheckState()
3962 CXFA_Node* pText = pItems->GetFirstChild(); in GetCheckState()
3975 void CXFA_Node::SetCheckState(XFA_CHECKSTATE eCheckState, bool bNotify) { in SetCheckState()
3976 CXFA_Node* node = GetExclGroupIfExists(); in SetCheckState()
3983 CXFA_Node* pText = pItems->GetFirstChild(); in SetCheckState()
4002 CXFA_Node* pText = pItems->GetFirstChild(); in SetCheckState()
4007 CXFA_Node* pChild = node->GetFirstChild(); in SetCheckState()
4017 CXFA_Node* pItemchild = pItem->GetFirstChild(); in SetCheckState()
4035 CXFA_Node* CXFA_Node::GetSelectedMember() { in GetSelectedMember()
4036 CXFA_Node* pSelectedMember = nullptr; in GetSelectedMember()
4041 for (CXFA_Node* pNode = ToNode(GetFirstChild()); pNode; in GetSelectedMember()
4051 CXFA_Node* CXFA_Node::SetSelectedMember(WideStringView wsName, bool bNotify) { in SetSelectedMember()
4053 for (CXFA_Node* pNode = ToNode(GetFirstChild()); pNode; in SetSelectedMember()
4063 void CXFA_Node::SetSelectedMemberByValue(WideStringView wsValue, in SetSelectedMemberByValue()
4068 for (CXFA_Node* pNode = GetFirstChild(); pNode; in SetSelectedMemberByValue()
4078 CXFA_Node* pItemchild = pItem->GetFirstChild(); in SetSelectedMemberByValue()
4099 CXFA_Node* CXFA_Node::GetExclGroupFirstMember() { in GetExclGroupFirstMember()
4100 CXFA_Node* pNode = GetFirstChild(); in GetExclGroupFirstMember()
4110 CXFA_Node* CXFA_Node::GetExclGroupNextMember(CXFA_Node* pNode) { in GetExclGroupNextMember()
4114 CXFA_Node* pNodeField = pNode->GetNextSibling(); in GetExclGroupNextMember()
4124 bool CXFA_Node::IsChoiceListCommitOnSelect() { in IsChoiceListCommitOnSelect()
4125 CXFA_Node* pUIChild = GetUIChildNode(); in IsChoiceListCommitOnSelect()
4133 bool CXFA_Node::IsChoiceListAllowTextEntry() { in IsChoiceListAllowTextEntry()
4134 CXFA_Node* pUIChild = GetUIChildNode(); in IsChoiceListAllowTextEntry()
4138 bool CXFA_Node::IsChoiceListMultiSelect() { in IsChoiceListMultiSelect()
4139 CXFA_Node* pUIChild = GetUIChildNode(); in IsChoiceListMultiSelect()
4147 bool CXFA_Node::IsListBox() { in IsListBox()
4148 CXFA_Node* pUIChild = GetUIChildNode(); in IsListBox()
4157 int32_t CXFA_Node::CountChoiceListItems(bool bSaveValue) { in CountChoiceListItems()
4158 std::vector<CXFA_Node*> pItems; in CountChoiceListItems()
4160 for (CXFA_Node* pNode = GetFirstChild(); pNode; in CountChoiceListItems()
4172 CXFA_Node* pItem = pItems[0]; in CountChoiceListItems()
4184 Optional<WideString> CXFA_Node::GetChoiceListItem(int32_t nIndex, in GetChoiceListItem()
4186 std::vector<CXFA_Node*> pItemsArray; in GetChoiceListItem()
4188 for (CXFA_Node* pNode = GetFirstChild(); pNode; in GetChoiceListItem()
4201 CXFA_Node* pItems = pItemsArray[0]; in GetChoiceListItem()
4213 CXFA_Node* pItem = in GetChoiceListItem()
4214 pItems->GetChild<CXFA_Node>(nIndex, XFA_Element::Unknown, false); in GetChoiceListItem()
4220 std::vector<WideString> CXFA_Node::GetChoiceListItems(bool bSaveValue) { in GetChoiceListItems()
4221 std::vector<CXFA_Node*> items; in GetChoiceListItems()
4222 for (CXFA_Node* pNode = GetFirstChild(); pNode && items.size() < 2; in GetChoiceListItems()
4230 CXFA_Node* pItem = items.front(); in GetChoiceListItems()
4241 for (CXFA_Node* pNode = pItem->GetFirstChild(); pNode; in GetChoiceListItems()
4248 int32_t CXFA_Node::CountSelectedItems() { in CountSelectedItems()
4262 int32_t CXFA_Node::GetSelectedItem(int32_t nIndex) { in GetSelectedItem()
4273 std::vector<int32_t> CXFA_Node::GetSelectedItems() { in GetSelectedItems()
4285 std::vector<WideString> CXFA_Node::GetSelectedItemsValue() { in GetSelectedItemsValue()
4295 bool CXFA_Node::GetItemState(int32_t nIndex) { in GetItemState()
4302 void CXFA_Node::SetItemState(int32_t nIndex, in SetItemState()
4351 void CXFA_Node::SetSelectedItems(const std::vector<int32_t>& iSelArray, in SetSelectedItems()
4373 void CXFA_Node::ClearAllSelections() { in ClearAllSelections()
4374 CXFA_Node* pBind = GetBindData(); in ClearAllSelections()
4380 while (CXFA_Node* pChildNode = pBind->GetFirstChild()) in ClearAllSelections()
4384 void CXFA_Node::InsertItem(const WideString& wsLabel, in InsertItem()
4392 std::vector<CXFA_Node*> listitems; in InsertItem()
4393 for (CXFA_Node* pItem = GetFirstChild(); pItem; in InsertItem()
4399 CXFA_Node* pItems = CreateSamePacketNode(XFA_Element::Items); in InsertItem()
4402 CXFA_Node* pSaveItems = CreateSamePacketNode(XFA_Element::Items); in InsertItem()
4408 CXFA_Node* pNode = listitems[i]; in InsertItem()
4416 CXFA_Node* pNode = listitems[0]; in InsertItem()
4420 CXFA_Node* pSaveItems = CreateSamePacketNode(XFA_Element::Items); in InsertItem()
4425 CXFA_Node* pListNode = pNode->GetFirstChild(); in InsertItem()
4441 WideString CXFA_Node::GetItemLabel(WideStringView wsValue) const { in GetItemLabel()
4442 std::vector<CXFA_Node*> listitems; in GetItemLabel()
4443 CXFA_Node* pItems = GetFirstChild(); in GetItemLabel()
4453 CXFA_Node* pLabelItems = listitems[0]; in GetItemLabel()
4455 CXFA_Node* pSaveItems = nullptr; in GetItemLabel()
4465 for (CXFA_Node* pChildItem = pSaveItems->GetFirstChild(); pChildItem; in GetItemLabel()
4476 CXFA_Node* pText = in GetItemLabel()
4477 pLabelItems->GetChild<CXFA_Node>(iSearch, XFA_Element::Unknown, false); in GetItemLabel()
4481 WideString CXFA_Node::GetItemValue(WideStringView wsLabel) { in GetItemValue()
4483 std::vector<CXFA_Node*> listitems; in GetItemValue()
4484 for (CXFA_Node* pItems = GetFirstChild(); pItems; in GetItemValue()
4494 CXFA_Node* pLabelItems = listitems[0]; in GetItemValue()
4496 CXFA_Node* pSaveItems = nullptr; in GetItemValue()
4507 CXFA_Node* pChildItem = pLabelItems->GetFirstChild(); in GetItemValue()
4518 CXFA_Node* pText = in GetItemValue()
4519 pSaveItems->GetChild<CXFA_Node>(iSearch, XFA_Element::Unknown, false); in GetItemValue()
4523 bool CXFA_Node::DeleteItem(int32_t nIndex, bool bNotify, bool bScriptModify) { in DeleteItem()
4525 CXFA_Node* pItems = GetFirstChild(); in DeleteItem()
4531 while (CXFA_Node* pNode = pItems->GetFirstChild()) { in DeleteItem()
4540 CXFA_Node* pNode = pItems->GetFirstChild(); in DeleteItem()
4556 bool CXFA_Node::IsHorizontalScrollPolicyOff() { in IsHorizontalScrollPolicyOff()
4557 CXFA_Node* pUIChild = GetUIChildNode(); in IsHorizontalScrollPolicyOff()
4565 bool CXFA_Node::IsVerticalScrollPolicyOff() { in IsVerticalScrollPolicyOff()
4566 CXFA_Node* pUIChild = GetUIChildNode(); in IsVerticalScrollPolicyOff()
4574 Optional<int32_t> CXFA_Node::GetNumberOfCells() { in GetNumberOfCells()
4575 CXFA_Node* pUIChild = GetUIChildNode(); in GetNumberOfCells()
4584 bool CXFA_Node::IsMultiLine() { in IsMultiLine()
4585 CXFA_Node* pUIChild = GetUIChildNode(); in IsMultiLine()
4589 std::pair<XFA_Element, int32_t> CXFA_Node::GetMaxChars() { in GetMaxChars()
4591 if (CXFA_Node* pChild = pNode->GetFirstChild()) { in GetMaxChars()
4609 int32_t CXFA_Node::GetFracDigits() { in GetFracDigits()
4624 int32_t CXFA_Node::GetLeadDigits() { in GetLeadDigits()
4639 bool CXFA_Node::SetValue(XFA_VALUEPICTURE eValueType, in SetValue()
4653 CXFA_Node* pNode = GetUIChildNode(); in SetValue()
4685 WideString CXFA_Node::GetPictureContent(XFA_VALUEPICTURE ePicture) { in GetPictureContent()
4765 WideString CXFA_Node::GetValue(XFA_VALUEPICTURE eValueType) { in GetValue()
4772 CXFA_Node* pNode = GetUIChildNode(); in GetValue()
4831 WideString CXFA_Node::GetNormalizeDataValue(const WideString& wsValue) { in GetNormalizeDataValue()
4850 WideString CXFA_Node::GetFormatDataValue(const WideString& wsValue) { in GetFormatDataValue()
4864 CXFA_Node* pValueChild = pNodeValue->GetFirstChild(); in GetFormatDataValue()
4932 WideString CXFA_Node::NormalizeNumStr(const WideString& wsValue) { in NormalizeNumStr()
4949 void CXFA_Node::InsertListTextItem(CXFA_Node* pItems, in InsertListTextItem()
4952 CXFA_Node* pText = pItems->CreateSamePacketNode(XFA_Element::Text); in InsertListTextItem()
4957 WideString CXFA_Node::NumericLimit(const WideString& wsValue) { in NumericLimit()
5002 bool CXFA_Node::IsTransparent() const { in IsTransparent()
5008 bool CXFA_Node::IsProperty() const { in IsProperty()
5009 CXFA_Node* parent = GetParent(); in IsProperty()
5013 bool CXFA_Node::PresenceRequiresSpace() const { in PresenceRequiresSpace()
5020 void CXFA_Node::SetBindingNode(CXFA_Node* node) { in SetBindingNode()
5026 void CXFA_Node::SetNodeAndDescendantsUnused() { in SetNodeAndDescendantsUnused()
5028 for (CXFA_Node* pNode = sIterator.GetCurrent(); pNode; in SetNodeAndDescendantsUnused()
5034 void CXFA_Node::SetToXML(const WideString& value) { in SetToXML()
5047 for (CXFA_Node* pChildDataNode = GetFirstChild(); pChildDataNode; in SetToXML()
5070 CXFA_Node* CXFA_Node::GetTransparentParent() { in GetTransparentParent()
5071 CXFA_Node* parent = GetParent(); in GetTransparentParent()
5083 CFX_XMLDocument* CXFA_Node::GetXMLDocument() const { in GetXMLDocument()
5088 std::unique_ptr<CXFA_Node> CXFA_Node::Create(CXFA_Document* doc, in Create()
5091 std::unique_ptr<CXFA_Node> node; in Create()