Home
last modified time | relevance | path

Searched refs:pNode (Results 1 – 25 of 114) sorted by relevance

12345

/external/pdfium/xfa/fxfa/parser/
Dcxfa_dataexporter.cpp79 void SaveAttribute(CXFA_Node* pNode, in SaveAttribute() argument
85 if ((!bProto && !pNode->HasAttribute((XFA_ATTRIBUTE)eName, bProto)) || in SaveAttribute()
86 !pNode->GetAttribute((XFA_ATTRIBUTE)eName, wsValue, false)) { in SaveAttribute()
97 bool AttributeSaveInDataModel(CXFA_Node* pNode, XFA_ATTRIBUTE eAttribute) { in AttributeSaveInDataModel() argument
99 if (pNode->GetElementType() != XFA_Element::Image) in AttributeSaveInDataModel()
102 CXFA_Node* pValueNode = pNode->GetNodeItem(XFA_NODEITEM_Parent); in AttributeSaveInDataModel()
155 void RegenerateFormFile_Changed(CXFA_Node* pNode, in RegenerateFormFile_Changed() argument
161 XFA_GetElementAttributes(pNode->GetElementType(), iAttrs); in RegenerateFormFile_Changed()
166 (AttributeSaveInDataModel(pNode, pAttr->eName) && !bSaveXML)) { in RegenerateFormFile_Changed()
170 SaveAttribute(pNode, pAttr->eName, pAttr->pName, bSaveXML, wsAttr); in RegenerateFormFile_Changed()
[all …]
Dcxfa_fill.cpp11 CXFA_Fill::CXFA_Fill(CXFA_Node* pNode) : CXFA_Data(pNode) {} in CXFA_Fill() argument
20 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Color); in SetColor() local
25 pNode->SetCData(XFA_ATTRIBUTE_Value, wsColor); in SetColor()
29 if (CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Color)) { in GetColor() local
31 if (pNode->TryCData(XFA_ATTRIBUTE_Value, wsColor, false)) in GetColor()
52 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Pattern); in GetPattern() local
53 if (CXFA_Node* pColor = pNode->GetChild(0, XFA_Element::Color)) { in GetPattern()
60 return pNode->GetEnum(XFA_ATTRIBUTE_Type); in GetPattern()
64 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Stipple); in GetStipple() local
66 pNode->TryInteger(XFA_ATTRIBUTE_Rate, eAttr); in GetStipple()
[all …]
Dcxfa_document.cpp63 for (CXFA_Node* pNode = sIterator.GetCurrent(); pNode; in MergeNode() local
64 pNode = sIterator.MoveToNext()) { in MergeNode()
65 pNode->SetFlag(XFA_NodeFlag_UnusedNode, true); in MergeNode()
77 for (CXFA_Node* pNode = sIterator.GetCurrent(); pNode; in MergeNode() local
78 pNode = sIterator.MoveToNext()) { in MergeNode()
79 pNode->ClearFlag(XFA_NodeFlag_UnusedNode); in MergeNode()
233 CXFA_Node* pNode = in CreateNode() local
236 AddPurgeNode(pNode); in CreateNode()
237 return pNode; in CreateNode()
243 void CXFA_Document::AddPurgeNode(CXFA_Node* pNode) { in AddPurgeNode() argument
[all …]
Dcxfa_node.cpp57 for (CXFA_Node* pNode = pInstMgrNode->GetNodeItem(XFA_NODEITEM_NextSibling); in GetCount() local
58 pNode; pNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling)) { in GetCount()
59 XFA_Element eCurType = pNode->GetElementType(); in GetCount()
67 CFX_WideStringC wsName = pNode->GetCData(XFA_ATTRIBUTE_Name); in GetCount()
73 dwNameHash = pNode->GetNameHash(); in GetCount()
75 if (dwNameHash != pNode->GetNameHash()) in GetCount()
96 for (CXFA_Node* pNode = pCommonParent->GetNodeItem(XFA_NODEITEM_FirstChild); in SortNodeArrayByDocumentIdx() local
97 pNode && iIndex < iCount; in SortNodeArrayByDocumentIdx()
98 pNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling)) { in SortNodeArrayByDocumentIdx()
100 if (pdfium::ContainsValue(rgNodeSet, pNode)) { in SortNodeArrayByDocumentIdx()
[all …]
Dcxfa_simple_parser.cpp60 bool MatchNodeName(CFDE_XMLNode* pNode, in MatchNodeName() argument
64 if (!pNode || pNode->GetType() != FDE_XMLNODE_Element) in MatchNodeName()
67 CFDE_XMLElement* pElement = reinterpret_cast<CFDE_XMLElement*>(pNode); in MatchNodeName()
408 CFDE_XMLElement* pNode, in XFA_FDEExtension_ResolveNamespaceQualifier() argument
411 if (!pNode) in XFA_FDEExtension_ResolveNamespaceQualifier()
414 CFDE_XMLNode* pFakeRoot = pNode->GetNodeItem(CFDE_XMLNode::Root); in XFA_FDEExtension_ResolveNamespaceQualifier()
423 for (; pNode != pFakeRoot; pNode = static_cast<CFDE_XMLElement*>( in XFA_FDEExtension_ResolveNamespaceQualifier()
424 pNode->GetNodeItem(CFDE_XMLNode::Parent))) { in XFA_FDEExtension_ResolveNamespaceQualifier()
425 if (pNode->GetType() != FDE_XMLNODE_Element) in XFA_FDEExtension_ResolveNamespaceQualifier()
428 if (pNode->HasAttribute(wsNSAttribute.c_str())) { in XFA_FDEExtension_ResolveNamespaceQualifier()
[all …]
Dcxfa_validate.cpp11 CXFA_Validate::CXFA_Validate(CXFA_Node* pNode) : CXFA_Data(pNode) {} in CXFA_Validate() argument
44 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Message, false); in GetMessageText() local
45 if (!pNode) in GetMessageText()
48 CXFA_Node* pItemNode = pNode->GetNodeItem(XFA_NODEITEM_FirstChild); in GetMessageText()
81 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Message, true); in SetMessageText() local
82 if (!pNode) in SetMessageText()
85 CXFA_Node* pItemNode = pNode->GetNodeItem(XFA_NODEITEM_FirstChild); in SetMessageText()
98 CXFA_Node* pTextNode = pNode->CreateSamePacketNode(XFA_Element::Text); in SetMessageText()
99 pNode->InsertChild(pTextNode); in SetMessageText()
113 if (CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Picture)) in GetPicture() local
[all …]
Dcxfa_widgetdata.cpp75 CXFA_Node* CreateUIChild(CXFA_Node* pNode, XFA_Element& eWidgetType) { in CreateUIChild() argument
76 XFA_Element eType = pNode->GetElementType(); in CreateUIChild()
83 CXFA_Value defValue(pNode->GetProperty(0, XFA_Element::Value, true)); in CreateUIChild()
119 CXFA_Node* pUI = pNode->GetProperty(0, XFA_Element::Ui, true); in CreateUIChild()
175 if (CXFA_Node* pItems = pNode->GetChild(0, XFA_Element::Items)) { in CreateUIChild()
246 CXFA_WidgetData::CXFA_WidgetData(CXFA_Node* pNode) in CXFA_WidgetData() argument
247 : CXFA_Data(pNode), in CXFA_WidgetData()
271 CXFA_Node* pNode = m_pNode->GetTemplateNode(); in GetAccess() local
272 if (pNode) in GetAccess()
273 return pNode->GetEnum(XFA_ATTRIBUTE_Access); in GetAccess()
[all …]
Dcxfa_nodelist.cpp44 CXFA_Node* pNode = static_cast<CXFA_Node*>(pArguments->GetObject(0)); in Script_ListClass_Append() local
45 if (!pNode) { in Script_ListClass_Append()
49 Append(pNode); in Script_ListClass_Append()
75 CXFA_Node* pNode = static_cast<CXFA_Node*>(pArguments->GetObject(0)); in Script_ListClass_Remove() local
76 if (!pNode) { in Script_ListClass_Remove()
80 Remove(pNode); in Script_ListClass_Remove()
108 CXFA_Node* pNode = in Script_TreelistClass_NamedItem() local
110 if (!pNode) in Script_TreelistClass_NamedItem()
114 m_pDocument->GetScriptContext()->GetJSValueFromMap(pNode)); in Script_TreelistClass_NamedItem()
Dcxfa_attachnodelist.cpp21 bool CXFA_AttachNodeList::Append(CXFA_Node* pNode) { in Append() argument
22 CXFA_Node* pParent = pNode->GetNodeItem(XFA_NODEITEM_Parent); in Append()
24 pParent->RemoveChild(pNode); in Append()
26 return m_pAttachNode->InsertChild(pNode); in Append()
37 bool CXFA_AttachNodeList::Remove(CXFA_Node* pNode) { in Remove() argument
38 return m_pAttachNode->RemoveChild(pNode); in Remove()
Dcxfa_nodehelper.cpp42 int32_t CXFA_NodeHelper::CountSiblings(CXFA_Node* pNode, in CountSiblings() argument
46 if (!pNode) in CountSiblings()
48 CXFA_Node* parent = ResolveNodes_GetParent(pNode, XFA_LOGIC_NoTransparent); in CountSiblings()
52 parent->GetElementType(), pNode->GetElementType(), XFA_XDPPACKET_UNKNOWN); in CountSiblings()
54 parent = ResolveNodes_GetParent(pNode, XFA_LOGIC_Transparent); in CountSiblings()
60 return NodeAcc_TraverseSiblings(parent, pNode->GetClassHashCode(), in CountSiblings()
63 return NodeAcc_TraverseSiblings(parent, pNode->GetNameHash(), pSiblings, in CountSiblings()
205 CXFA_Node* CXFA_NodeHelper::ResolveNodes_GetParent(CXFA_Node* pNode, in ResolveNodes_GetParent() argument
207 if (!pNode) { in ResolveNodes_GetParent()
211 return pNode->GetNodeItem(XFA_NODEITEM_Parent); in ResolveNodes_GetParent()
[all …]
Dcxfa_calculate.cpp12 CXFA_Calculate::CXFA_Calculate(CXFA_Node* pNode) : CXFA_Data(pNode) {} in CXFA_Calculate() argument
25 CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Message); in GetMessageText() local
26 if (!pNode) in GetMessageText()
29 CXFA_Text text(pNode->GetChild(0, XFA_Element::Text)); in GetMessageText()
Dxfa_utils.h22 CFDE_XMLElement* pNode,
55 NodeType* pNode; in SetCurrent() local
56 for (pNode = pCurNode; pNode && pNode != m_pRoot; in SetCurrent()
57 pNode = TraverseStrategy::GetParent(pNode)) { in SetCurrent()
58 revStack.Push(pNode); in SetCurrent()
60 if (!pNode) { in SetCurrent()
176 CXFA_Node* pNode,
Dcxfa_event.cpp11 CXFA_Event::CXFA_Event(CXFA_Node* pNode) : CXFA_Data(pNode) {} in CXFA_Event() argument
42 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::SignData); in GetSignDataTarget() local
43 if (!pNode) in GetSignDataTarget()
47 pNode->TryCData(XFA_ATTRIBUTE_Target, wsCData); in GetSignDataTarget()
Dcxfa_layoutitem.cpp15 CXFA_LayoutItem* pNode = pLayoutItem->m_pFirstChild; in XFA_ReleaseLayoutItem() local
19 while (pNode) { in XFA_ReleaseLayoutItem()
20 CXFA_LayoutItem* pNext = pNode->m_pNextSibling; in XFA_ReleaseLayoutItem()
21 pNode->m_pParent = nullptr; in XFA_ReleaseLayoutItem()
23 static_cast<CXFA_LayoutItem*>(pNode)); in XFA_ReleaseLayoutItem()
24 XFA_ReleaseLayoutItem(pNode); in XFA_ReleaseLayoutItem()
25 pNode = pNext; in XFA_ReleaseLayoutItem()
36 CXFA_LayoutItem::CXFA_LayoutItem(CXFA_Node* pNode, bool bIsContentLayoutItem) in CXFA_LayoutItem() argument
37 : m_pFormNode(pNode), in CXFA_LayoutItem()
Dcxfa_layoutpagemgr.cpp159 CXFA_Node* pNode = pDocument->GetNodeByID( in ResolveBreakTarget() local
162 if (pNode) in ResolveBreakTarget()
163 return pNode; in ResolveBreakTarget()
183 void SetLayoutGeneratedNodeFlag(CXFA_Node* pNode) { in SetLayoutGeneratedNodeFlag() argument
184 pNode->SetFlag(XFA_NodeFlag_LayoutGeneratedNode, false); in SetLayoutGeneratedNodeFlag()
185 pNode->ClearFlag(XFA_NodeFlag_UnusedNode); in SetLayoutGeneratedNodeFlag()
632 CXFA_Node* pNode = m_pCurPageArea; in FinishPaginatedPageSets() local
634 pNode->GetEnum(XFA_ATTRIBUTE_PagePosition); in FinishPaginatedPageSets()
637 pNode->TryEnum(XFA_ATTRIBUTE_OddOrEven, eOddOrEven); in FinishPaginatedPageSets()
645 AddPageAreaLayoutItem(pRecord, pNode); in FinishPaginatedPageSets()
[all …]
Dxfa_document_datamerger_imp.cpp473 CXFA_Node* pNode = ToNode(pObject); in FindDataRefDataNode() local
474 return (bForceBind || !pNode || !pNode->HasBindItem()) ? pNode : nullptr; in FindDataRefDataNode()
504 for (CXFA_Node* pNode = in CloneOrMergeInstanceManager() local
506 pNode;) { in CloneOrMergeInstanceManager()
507 XFA_Element eCurType = pNode->GetElementType(); in CloneOrMergeInstanceManager()
513 pNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling); in CloneOrMergeInstanceManager()
516 if (dwNameHash != pNode->GetNameHash()) in CloneOrMergeInstanceManager()
519 CXFA_Node* pNextNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling); in CloneOrMergeInstanceManager()
520 pFormParent->RemoveChild(pNode); in CloneOrMergeInstanceManager()
521 subforms.Add(pNode); in CloneOrMergeInstanceManager()
[all …]
Dcxfa_stroke.cpp50 CXFA_Node* pNode = m_pNode->GetChild(0, XFA_Element::Color); in GetColor() local
51 if (!pNode) in GetColor()
55 pNode->TryCData(XFA_ATTRIBUTE_Value, wsColor); in GetColor()
63 CXFA_Node* pNode = m_pNode->GetProperty(0, XFA_Element::Color); in SetColor() local
71 pNode->SetCData(XFA_ATTRIBUTE_Value, wsColor); in SetColor()
Dcxfa_value.cpp14 if (CXFA_Node* pNode = m_pNode->GetNodeItem(XFA_NODEITEM_FirstChild)) in GetChildValueClassID() local
15 return pNode->GetElementType(); in GetChildValueClassID()
22 if (CXFA_Node* pNode = m_pNode->GetNodeItem(XFA_NODEITEM_FirstChild)) in GetChildValueContent() local
23 return pNode->TryContent(wsContent); in GetChildValueContent()
/external/pdfium/xfa/fde/xml/
Dfde_xml_imp.cpp127 int32_t CFDE_XMLNode::GetChildNodeIndex(CFDE_XMLNode* pNode) const { in GetChildNodeIndex()
131 if (pChild == pNode) { in GetChildNodeIndex()
172 CFDE_XMLNode* pNode = m_pChild; in GetPath() local
173 while (pNode) { in GetPath()
174 if (pNode->GetType() == FDE_XMLNODE_Element) { in GetPath()
176 ((CFDE_XMLElement*)pNode)->GetTagName(wsTag); in GetPath()
178 ((CFDE_XMLElement*)pNode)->GetLocalTagName(wsTag); in GetPath()
182 pFind = pNode; in GetPath()
184 pFind = pNode->GetPath(pStart, iLength, bQualifiedName); in GetPath()
190 pNode = pNode->m_pNext; in GetPath()
[all …]
/external/pdfium/xfa/fxfa/app/
Dxfa_ffdocview.cpp71 void CXFA_FFDocView::InitLayout(CXFA_Node* pNode) { in InitLayout() argument
73 ExecEventActivityByDeepFirst(pNode, XFA_EVENT_Initialize, false, true, in InitLayout()
75 ExecEventActivityByDeepFirst(pNode, XFA_EVENT_IndexChange, false, true, in InitLayout()
179 for (CXFA_Node* pNode : m_NewAddedNodes) { in UpdateDocView()
180 InitCalculate(pNode); in UpdateDocView()
181 InitValidate(pNode); in UpdateDocView()
182 ExecEventActivityByDeepFirst(pNode, XFA_EVENT_Ready, true, true, nullptr); in UpdateDocView()
215 CXFA_Node* pNode = pWidgetAcc->GetNode(); in ResetSingleWidgetAccData() local
216 XFA_Element eType = pNode->GetElementType(); in ResetSingleWidgetAccData()
300 CXFA_Node* pNode = pWidgetAcc ? pWidgetAcc->GetNode() : nullptr; in ProcessWidgetEvent() local
[all …]
Dxfa_ffnotify.cpp89 CXFA_LayoutItem* CXFA_FFNotify::OnCreateLayoutItem(CXFA_Node* pNode) { in OnCreateLayoutItem() argument
92 XFA_Element eType = pNode->GetElementType(); in OnCreateLayoutItem()
94 return new CXFA_FFPageView(pDocView, pNode); in OnCreateLayoutItem()
96 return new CXFA_ContainerLayoutItem(pNode); in OnCreateLayoutItem()
98 CXFA_WidgetAcc* pAcc = static_cast<CXFA_WidgetAcc*>(pNode->GetWidgetData()); in OnCreateLayoutItem()
100 return new CXFA_ContentLayoutItem(pNode); in OnCreateLayoutItem()
225 void CXFA_FFNotify::AddCalcValidate(CXFA_Node* pNode) { in AddCalcValidate() argument
231 static_cast<CXFA_WidgetAcc*>(pNode->GetWidgetData()); in AddCalcValidate()
284 void CXFA_FFNotify::RunNodeInitialize(CXFA_Node* pNode) { in RunNodeInitialize() argument
289 pDocView->AddNewFormNode(pNode); in RunNodeInitialize()
[all …]
Dxfa_ffnotify.h29 void OnNodeReady(CXFA_Node* pNode);
38 CXFA_LayoutItem* OnCreateLayoutItem(CXFA_Node* pNode);
58 void AddCalcValidate(CXFA_Node* pNode);
68 void RunNodeInitialize(CXFA_Node* pNode);
71 void SetFocusWidgetNode(CXFA_Node* pNode);
/external/pdfium/core/fpdfdoc/
Dcpdf_nametree.cpp17 CPDF_Object* SearchNameNode(CPDF_Dictionary* pNode, in SearchNameNode() argument
25 CPDF_Array* pLimits = pNode->GetArrayFor("Limits"); in SearchNameNode()
40 CPDF_Array* pNames = pNode->GetArrayFor("Names"); in SearchNameNode()
61 CPDF_Array* pKids = pNode->GetArrayFor("Kids"); in SearchNameNode()
78 CPDF_Object* SearchNameNode(CPDF_Dictionary* pNode, in SearchNameNode() argument
87 CPDF_Array* pNames = pNode->GetArrayFor("Names"); in SearchNameNode()
99 CPDF_Array* pKids = pNode->GetArrayFor("Kids"); in SearchNameNode()
114 size_t CountNames(CPDF_Dictionary* pNode, int nLevel = 0) { in CountNames() argument
118 CPDF_Array* pNames = pNode->GetArrayFor("Names"); in CountNames()
122 CPDF_Array* pKids = pNode->GetArrayFor("Kids"); in CountNames()
Dcpdf_interform.cpp401 void AddChildNode(Node* pNode) { m_Children.push_back(pNode); } in AddChildNode() argument
467 void RemoveNode(Node* pNode, int nLevel = 0);
486 Node* pNode = new Node(short_name, pField); in AddChild() local
487 pParent->AddChildNode(pNode); in AddChild()
488 return pNode; in AddChild()
491 void CFieldTree::RemoveNode(Node* pNode, int nLevel) { in RemoveNode() argument
492 if (!pNode) in RemoveNode()
496 for (size_t i = 0; i < pNode->GetChildrenCount(); ++i) in RemoveNode()
497 RemoveNode(pNode->GetChildAt(i), nLevel + 1); in RemoveNode()
499 delete pNode; in RemoveNode()
[all …]
Dcpdf_numbertree.cpp14 CPDF_Object* SearchNumberNode(const CPDF_Dictionary* pNode, int num) { in SearchNumberNode() argument
15 CPDF_Array* pLimits = pNode->GetArrayFor("Limits"); in SearchNumberNode()
20 CPDF_Array* pNumbers = pNode->GetArrayFor("Nums"); in SearchNumberNode()
32 CPDF_Array* pKids = pNode->GetArrayFor("Kids"); in SearchNumberNode()

12345