| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ | 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ | 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| 9 | 9 |
| 10 #include <unordered_set> | 10 #include <unordered_set> |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 CXFA_Node* AsNode(); | 81 CXFA_Node* AsNode(); |
| 82 CXFA_NodeList* AsNodeList(); | 82 CXFA_NodeList* AsNodeList(); |
| 83 | 83 |
| 84 const CXFA_Node* AsNode() const; | 84 const CXFA_Node* AsNode() const; |
| 85 const CXFA_NodeList* AsNodeList() const; | 85 const CXFA_NodeList* AsNodeList() const; |
| 86 | 86 |
| 87 XFA_Element GetElementType() const; | 87 XFA_Element GetElementType() const; |
| 88 CFX_WideStringC GetClassName() const; | 88 CFX_WideStringC GetClassName() const; |
| 89 uint32_t GetClassHashCode() const; | 89 uint32_t GetClassHashCode() const; |
| 90 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, | 90 void Script_ObjectClass_ClassName(CFXJSE_Value* pValue, |
| 91 FX_BOOL bSetting, | 91 bool bSetting, |
| 92 XFA_ATTRIBUTE eAttribute); | 92 XFA_ATTRIBUTE eAttribute); |
| 93 void ThrowException(int32_t iStringID, ...); | 93 void ThrowException(int32_t iStringID, ...); |
| 94 | 94 |
| 95 protected: | 95 protected: |
| 96 CXFA_Document* const m_pDocument; | 96 CXFA_Document* const m_pDocument; |
| 97 const XFA_ObjectType m_objectType; | 97 const XFA_ObjectType m_objectType; |
| 98 const XFA_Element m_elementType; | 98 const XFA_Element m_elementType; |
| 99 | 99 |
| 100 const uint32_t m_elementNameHash; | 100 const uint32_t m_elementNameHash; |
| 101 const CFX_WideStringC m_elementName; | 101 const CFX_WideStringC m_elementName; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 bool IsUnusedNode() const { return HasFlag(XFA_NodeFlag_UnusedNode); } | 161 bool IsUnusedNode() const { return HasFlag(XFA_NodeFlag_UnusedNode); } |
| 162 bool IsLayoutGeneratedNode() const { | 162 bool IsLayoutGeneratedNode() const { |
| 163 return HasFlag(XFA_NodeFlag_LayoutGeneratedNode); | 163 return HasFlag(XFA_NodeFlag_LayoutGeneratedNode); |
| 164 } | 164 } |
| 165 bool BindsFormItems() const { return HasFlag(XFA_NodeFlag_BindFormItems); } | 165 bool BindsFormItems() const { return HasFlag(XFA_NodeFlag_BindFormItems); } |
| 166 bool HasRemovedChildren() const { | 166 bool HasRemovedChildren() const { |
| 167 return HasFlag(XFA_NodeFlag_HasRemovedChildren); | 167 return HasFlag(XFA_NodeFlag_HasRemovedChildren); |
| 168 } | 168 } |
| 169 bool NeedsInitApp() const { return HasFlag(XFA_NodeFlag_NeedsInitApp); } | 169 bool NeedsInitApp() const { return HasFlag(XFA_NodeFlag_NeedsInitApp); } |
| 170 | 170 |
| 171 FX_BOOL IsAttributeInXML(); | 171 bool IsAttributeInXML(); |
| 172 bool IsFormContainer() const { | 172 bool IsFormContainer() const { |
| 173 return m_ePacket == XFA_XDPPACKET_Form && IsContainerNode(); | 173 return m_ePacket == XFA_XDPPACKET_Form && IsContainerNode(); |
| 174 } | 174 } |
| 175 void SetXMLMappingNode(CFDE_XMLNode* pXMLNode) { m_pXMLNode = pXMLNode; } | 175 void SetXMLMappingNode(CFDE_XMLNode* pXMLNode) { m_pXMLNode = pXMLNode; } |
| 176 CFDE_XMLNode* GetXMLMappingNode() const { return m_pXMLNode; } | 176 CFDE_XMLNode* GetXMLMappingNode() const { return m_pXMLNode; } |
| 177 CFDE_XMLNode* CreateXMLMappingNode(); | 177 CFDE_XMLNode* CreateXMLMappingNode(); |
| 178 FX_BOOL IsNeedSavingXMLNode(); | 178 bool IsNeedSavingXMLNode(); |
| 179 uint32_t GetNameHash() const { return m_dwNameHash; } | 179 uint32_t GetNameHash() const { return m_dwNameHash; } |
| 180 bool IsUnnamed() const { return m_dwNameHash == 0; } | 180 bool IsUnnamed() const { return m_dwNameHash == 0; } |
| 181 CXFA_Node* GetModelNode(); | 181 CXFA_Node* GetModelNode(); |
| 182 void UpdateNameHash(); | 182 void UpdateNameHash(); |
| 183 FX_BOOL HasAttribute(XFA_ATTRIBUTE eAttr, FX_BOOL bCanInherit = FALSE); | 183 bool HasAttribute(XFA_ATTRIBUTE eAttr, bool bCanInherit = false); |
| 184 FX_BOOL SetAttribute(XFA_ATTRIBUTE eAttr, | 184 bool SetAttribute(XFA_ATTRIBUTE eAttr, |
| 185 const CFX_WideStringC& wsValue, | 185 const CFX_WideStringC& wsValue, |
| 186 bool bNotify = false); | 186 bool bNotify = false); |
| 187 FX_BOOL GetAttribute(XFA_ATTRIBUTE eAttr, | 187 bool GetAttribute(XFA_ATTRIBUTE eAttr, |
| 188 CFX_WideString& wsValue, | 188 CFX_WideString& wsValue, |
| 189 FX_BOOL bUseDefault = TRUE); | 189 bool bUseDefault = true); |
| 190 FX_BOOL SetAttribute(const CFX_WideStringC& wsAttr, | 190 bool SetAttribute(const CFX_WideStringC& wsAttr, |
| 191 const CFX_WideStringC& wsValue, | 191 const CFX_WideStringC& wsValue, |
| 192 bool bNotify = false); | 192 bool bNotify = false); |
| 193 FX_BOOL GetAttribute(const CFX_WideStringC& wsAttr, | 193 bool GetAttribute(const CFX_WideStringC& wsAttr, |
| 194 CFX_WideString& wsValue, | 194 CFX_WideString& wsValue, |
| 195 FX_BOOL bUseDefault = TRUE); | 195 bool bUseDefault = true); |
| 196 FX_BOOL RemoveAttribute(const CFX_WideStringC& wsAttr); | 196 bool RemoveAttribute(const CFX_WideStringC& wsAttr); |
| 197 FX_BOOL SetContent(const CFX_WideString& wsContent, | 197 bool SetContent(const CFX_WideString& wsContent, |
| 198 const CFX_WideString& wsXMLValue, | 198 const CFX_WideString& wsXMLValue, |
| 199 bool bNotify = false, | 199 bool bNotify = false, |
| 200 FX_BOOL bScriptModify = FALSE, | 200 bool bScriptModify = false, |
| 201 FX_BOOL bSyncData = TRUE); | 201 bool bSyncData = true); |
| 202 FX_BOOL TryContent(CFX_WideString& wsContent, | 202 bool TryContent(CFX_WideString& wsContent, |
| 203 FX_BOOL bScriptModify = FALSE, | 203 bool bScriptModify = false, |
| 204 FX_BOOL bProto = TRUE); | 204 bool bProto = true); |
| 205 CFX_WideString GetContent(); | 205 CFX_WideString GetContent(); |
| 206 | 206 |
| 207 FX_BOOL TryNamespace(CFX_WideString& wsNamespace); | 207 bool TryNamespace(CFX_WideString& wsNamespace); |
| 208 | 208 |
| 209 FX_BOOL SetBoolean(XFA_ATTRIBUTE eAttr, | 209 bool SetBoolean(XFA_ATTRIBUTE eAttr, bool bValue, bool bNotify = false) { |
| 210 FX_BOOL bValue, | |
| 211 bool bNotify = false) { | |
| 212 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Boolean, (void*)(uintptr_t)bValue, | 210 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Boolean, (void*)(uintptr_t)bValue, |
| 213 bNotify); | 211 bNotify); |
| 214 } | 212 } |
| 215 FX_BOOL TryBoolean(XFA_ATTRIBUTE eAttr, | 213 bool TryBoolean(XFA_ATTRIBUTE eAttr, bool& bValue, bool bUseDefault = true); |
| 216 FX_BOOL& bValue, | 214 bool GetBoolean(XFA_ATTRIBUTE eAttr) { |
| 217 FX_BOOL bUseDefault = TRUE); | 215 bool bValue; |
| 218 FX_BOOL GetBoolean(XFA_ATTRIBUTE eAttr) { | 216 return TryBoolean(eAttr, bValue, true) ? bValue : false; |
| 219 FX_BOOL bValue; | |
| 220 return TryBoolean(eAttr, bValue, TRUE) ? bValue : FALSE; | |
| 221 } | 217 } |
| 222 FX_BOOL SetInteger(XFA_ATTRIBUTE eAttr, | 218 bool SetInteger(XFA_ATTRIBUTE eAttr, int32_t iValue, bool bNotify = false) { |
| 223 int32_t iValue, | |
| 224 bool bNotify = false) { | |
| 225 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Integer, (void*)(uintptr_t)iValue, | 219 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Integer, (void*)(uintptr_t)iValue, |
| 226 bNotify); | 220 bNotify); |
| 227 } | 221 } |
| 228 FX_BOOL TryInteger(XFA_ATTRIBUTE eAttr, | 222 bool TryInteger(XFA_ATTRIBUTE eAttr, |
| 229 int32_t& iValue, | 223 int32_t& iValue, |
| 230 FX_BOOL bUseDefault = TRUE); | 224 bool bUseDefault = true); |
| 231 int32_t GetInteger(XFA_ATTRIBUTE eAttr) { | 225 int32_t GetInteger(XFA_ATTRIBUTE eAttr) { |
| 232 int32_t iValue; | 226 int32_t iValue; |
| 233 return TryInteger(eAttr, iValue, TRUE) ? iValue : 0; | 227 return TryInteger(eAttr, iValue, true) ? iValue : 0; |
| 234 } | 228 } |
| 235 FX_BOOL SetEnum(XFA_ATTRIBUTE eAttr, | 229 bool SetEnum(XFA_ATTRIBUTE eAttr, |
| 236 XFA_ATTRIBUTEENUM eValue, | 230 XFA_ATTRIBUTEENUM eValue, |
| 237 bool bNotify = false) { | 231 bool bNotify = false) { |
| 238 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Enum, (void*)(uintptr_t)eValue, | 232 return SetValue(eAttr, XFA_ATTRIBUTETYPE_Enum, (void*)(uintptr_t)eValue, |
| 239 bNotify); | 233 bNotify); |
| 240 } | 234 } |
| 241 FX_BOOL TryEnum(XFA_ATTRIBUTE eAttr, | 235 bool TryEnum(XFA_ATTRIBUTE eAttr, |
| 242 XFA_ATTRIBUTEENUM& eValue, | 236 XFA_ATTRIBUTEENUM& eValue, |
| 243 FX_BOOL bUseDefault = TRUE); | 237 bool bUseDefault = true); |
| 244 XFA_ATTRIBUTEENUM GetEnum(XFA_ATTRIBUTE eAttr) { | 238 XFA_ATTRIBUTEENUM GetEnum(XFA_ATTRIBUTE eAttr) { |
| 245 XFA_ATTRIBUTEENUM eValue; | 239 XFA_ATTRIBUTEENUM eValue; |
| 246 return TryEnum(eAttr, eValue, TRUE) ? eValue : XFA_ATTRIBUTEENUM_Unknown; | 240 return TryEnum(eAttr, eValue, true) ? eValue : XFA_ATTRIBUTEENUM_Unknown; |
| 247 } | 241 } |
| 248 FX_BOOL SetCData(XFA_ATTRIBUTE eAttr, | 242 bool SetCData(XFA_ATTRIBUTE eAttr, |
| 249 const CFX_WideString& wsValue, | 243 const CFX_WideString& wsValue, |
| 250 bool bNotify = false, | 244 bool bNotify = false, |
| 251 FX_BOOL bScriptModify = FALSE); | 245 bool bScriptModify = false); |
| 252 FX_BOOL SetAttributeValue(const CFX_WideString& wsValue, | 246 bool SetAttributeValue(const CFX_WideString& wsValue, |
| 253 const CFX_WideString& wsXMLValue, | 247 const CFX_WideString& wsXMLValue, |
| 254 bool bNotify = false, | 248 bool bNotify = false, |
| 255 FX_BOOL bScriptModify = FALSE); | 249 bool bScriptModify = false); |
| 256 FX_BOOL TryCData(XFA_ATTRIBUTE eAttr, | 250 bool TryCData(XFA_ATTRIBUTE eAttr, |
| 257 CFX_WideString& wsValue, | 251 CFX_WideString& wsValue, |
| 258 FX_BOOL bUseDefault = TRUE, | 252 bool bUseDefault = true, |
| 259 FX_BOOL bProto = TRUE); | 253 bool bProto = true); |
| 260 FX_BOOL TryCData(XFA_ATTRIBUTE eAttr, | 254 bool TryCData(XFA_ATTRIBUTE eAttr, |
| 261 CFX_WideStringC& wsValue, | 255 CFX_WideStringC& wsValue, |
| 262 FX_BOOL bUseDefault = TRUE, | 256 bool bUseDefault = true, |
| 263 FX_BOOL bProto = TRUE); | 257 bool bProto = true); |
| 264 CFX_WideStringC GetCData(XFA_ATTRIBUTE eAttr) { | 258 CFX_WideStringC GetCData(XFA_ATTRIBUTE eAttr) { |
| 265 CFX_WideStringC wsValue; | 259 CFX_WideStringC wsValue; |
| 266 return TryCData(eAttr, wsValue) ? wsValue : CFX_WideStringC(); | 260 return TryCData(eAttr, wsValue) ? wsValue : CFX_WideStringC(); |
| 267 } | 261 } |
| 268 FX_BOOL SetMeasure(XFA_ATTRIBUTE eAttr, | 262 bool SetMeasure(XFA_ATTRIBUTE eAttr, |
| 269 CXFA_Measurement mValue, | 263 CXFA_Measurement mValue, |
| 270 bool bNotify = false); | 264 bool bNotify = false); |
| 271 FX_BOOL TryMeasure(XFA_ATTRIBUTE eAttr, | 265 bool TryMeasure(XFA_ATTRIBUTE eAttr, |
| 272 CXFA_Measurement& mValue, | 266 CXFA_Measurement& mValue, |
| 273 FX_BOOL bUseDefault = TRUE) const; | 267 bool bUseDefault = true) const; |
| 274 CXFA_Measurement GetMeasure(XFA_ATTRIBUTE eAttr) const; | 268 CXFA_Measurement GetMeasure(XFA_ATTRIBUTE eAttr) const; |
| 275 FX_BOOL SetObject(XFA_ATTRIBUTE eAttr, | 269 bool SetObject(XFA_ATTRIBUTE eAttr, |
| 276 void* pData, | 270 void* pData, |
| 277 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); | 271 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); |
| 278 FX_BOOL TryObject(XFA_ATTRIBUTE eAttr, void*& pData); | 272 bool TryObject(XFA_ATTRIBUTE eAttr, void*& pData); |
| 279 void* GetObject(XFA_ATTRIBUTE eAttr) { | 273 void* GetObject(XFA_ATTRIBUTE eAttr) { |
| 280 void* pData; | 274 void* pData; |
| 281 return TryObject(eAttr, pData) ? pData : nullptr; | 275 return TryObject(eAttr, pData) ? pData : nullptr; |
| 282 } | 276 } |
| 283 FX_BOOL SetUserData(void* pKey, | 277 bool SetUserData(void* pKey, |
| 284 void* pData, | 278 void* pData, |
| 285 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); | 279 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); |
| 286 FX_BOOL TryUserData(void* pKey, void*& pData, FX_BOOL bProtoAlso = FALSE); | 280 bool TryUserData(void* pKey, void*& pData, bool bProtoAlso = false); |
| 287 void* GetUserData(void* pKey, FX_BOOL bProtoAlso = FALSE) { | 281 void* GetUserData(void* pKey, bool bProtoAlso = false) { |
| 288 void* pData; | 282 void* pData; |
| 289 return TryUserData(pKey, pData, bProtoAlso) ? pData : nullptr; | 283 return TryUserData(pKey, pData, bProtoAlso) ? pData : nullptr; |
| 290 } | 284 } |
| 291 CXFA_Node* GetProperty(int32_t index, | 285 CXFA_Node* GetProperty(int32_t index, |
| 292 XFA_Element eType, | 286 XFA_Element eType, |
| 293 FX_BOOL bCreateProperty = TRUE); | 287 bool bCreateProperty = true); |
| 294 int32_t CountChildren(XFA_Element eType, FX_BOOL bOnlyChild = FALSE); | 288 int32_t CountChildren(XFA_Element eType, bool bOnlyChild = false); |
| 295 CXFA_Node* GetChild(int32_t index, | 289 CXFA_Node* GetChild(int32_t index, |
| 296 XFA_Element eType, | 290 XFA_Element eType, |
| 297 FX_BOOL bOnlyChild = FALSE); | 291 bool bOnlyChild = false); |
| 298 int32_t InsertChild(int32_t index, CXFA_Node* pNode); | 292 int32_t InsertChild(int32_t index, CXFA_Node* pNode); |
| 299 FX_BOOL InsertChild(CXFA_Node* pNode, CXFA_Node* pBeforeNode = nullptr); | 293 bool InsertChild(CXFA_Node* pNode, CXFA_Node* pBeforeNode = nullptr); |
| 300 FX_BOOL RemoveChild(CXFA_Node* pNode, bool bNotify = true); | 294 bool RemoveChild(CXFA_Node* pNode, bool bNotify = true); |
| 301 CXFA_Node* Clone(FX_BOOL bRecursive); | 295 CXFA_Node* Clone(bool bRecursive); |
| 302 CXFA_Node* GetNodeItem(XFA_NODEITEM eItem) const; | 296 CXFA_Node* GetNodeItem(XFA_NODEITEM eItem) const; |
| 303 CXFA_Node* GetNodeItem(XFA_NODEITEM eItem, XFA_ObjectType eType) const; | 297 CXFA_Node* GetNodeItem(XFA_NODEITEM eItem, XFA_ObjectType eType) const; |
| 304 int32_t GetNodeList(CXFA_NodeArray& nodes, | 298 int32_t GetNodeList(CXFA_NodeArray& nodes, |
| 305 uint32_t dwTypeFilter = XFA_NODEFILTER_Children | | 299 uint32_t dwTypeFilter = XFA_NODEFILTER_Children | |
| 306 XFA_NODEFILTER_Properties, | 300 XFA_NODEFILTER_Properties, |
| 307 XFA_Element eTypeFilter = XFA_Element::Unknown, | 301 XFA_Element eTypeFilter = XFA_Element::Unknown, |
| 308 int32_t iLevel = 1); | 302 int32_t iLevel = 1); |
| 309 CXFA_Node* CreateSamePacketNode(XFA_Element eType, | 303 CXFA_Node* CreateSamePacketNode(XFA_Element eType, |
| 310 uint32_t dwFlags = XFA_NodeFlag_Initialized); | 304 uint32_t dwFlags = XFA_NodeFlag_Initialized); |
| 311 CXFA_Node* CloneTemplateToForm(FX_BOOL bRecursive); | 305 CXFA_Node* CloneTemplateToForm(bool bRecursive); |
| 312 CXFA_Node* GetTemplateNode() const; | 306 CXFA_Node* GetTemplateNode() const; |
| 313 void SetTemplateNode(CXFA_Node* pTemplateNode); | 307 void SetTemplateNode(CXFA_Node* pTemplateNode); |
| 314 CXFA_Node* GetDataDescriptionNode(); | 308 CXFA_Node* GetDataDescriptionNode(); |
| 315 void SetDataDescriptionNode(CXFA_Node* pDataDescriptionNode); | 309 void SetDataDescriptionNode(CXFA_Node* pDataDescriptionNode); |
| 316 CXFA_Node* GetBindData(); | 310 CXFA_Node* GetBindData(); |
| 317 int32_t GetBindItems(CXFA_NodeArray& formItems); | 311 int32_t GetBindItems(CXFA_NodeArray& formItems); |
| 318 int32_t AddBindItem(CXFA_Node* pFormNode); | 312 int32_t AddBindItem(CXFA_Node* pFormNode); |
| 319 int32_t RemoveBindItem(CXFA_Node* pFormNode); | 313 int32_t RemoveBindItem(CXFA_Node* pFormNode); |
| 320 FX_BOOL HasBindItem(); | 314 bool HasBindItem(); |
| 321 CXFA_WidgetData* GetWidgetData(); | 315 CXFA_WidgetData* GetWidgetData(); |
| 322 CXFA_WidgetData* GetContainerWidgetData(); | 316 CXFA_WidgetData* GetContainerWidgetData(); |
| 323 FX_BOOL GetLocaleName(CFX_WideString& wsLocaleName); | 317 bool GetLocaleName(CFX_WideString& wsLocaleName); |
| 324 XFA_ATTRIBUTEENUM GetIntact(); | 318 XFA_ATTRIBUTEENUM GetIntact(); |
| 325 CXFA_Node* GetFirstChildByName(const CFX_WideStringC& wsNodeName) const; | 319 CXFA_Node* GetFirstChildByName(const CFX_WideStringC& wsNodeName) const; |
| 326 CXFA_Node* GetFirstChildByName(uint32_t dwNodeNameHash) const; | 320 CXFA_Node* GetFirstChildByName(uint32_t dwNodeNameHash) const; |
| 327 CXFA_Node* GetFirstChildByClass(XFA_Element eType) const; | 321 CXFA_Node* GetFirstChildByClass(XFA_Element eType) const; |
| 328 CXFA_Node* GetNextSameNameSibling(uint32_t dwNodeNameHash) const; | 322 CXFA_Node* GetNextSameNameSibling(uint32_t dwNodeNameHash) const; |
| 329 CXFA_Node* GetNextSameNameSibling(const CFX_WideStringC& wsNodeName) const; | 323 CXFA_Node* GetNextSameNameSibling(const CFX_WideStringC& wsNodeName) const; |
| 330 CXFA_Node* GetNextSameClassSibling(XFA_Element eType) const; | 324 CXFA_Node* GetNextSameClassSibling(XFA_Element eType) const; |
| 331 int32_t GetNodeSameNameIndex() const; | 325 int32_t GetNodeSameNameIndex() const; |
| 332 int32_t GetNodeSameClassIndex() const; | 326 int32_t GetNodeSameClassIndex() const; |
| 333 void GetSOMExpression(CFX_WideString& wsSOMExpression); | 327 void GetSOMExpression(CFX_WideString& wsSOMExpression); |
| 334 CXFA_Node* GetInstanceMgrOfSubform(); | 328 CXFA_Node* GetInstanceMgrOfSubform(); |
| 335 | 329 |
| 336 CXFA_Node* GetOccurNode(); | 330 CXFA_Node* GetOccurNode(); |
| 337 void Script_TreeClass_ResolveNode(CFXJSE_Arguments* pArguments); | 331 void Script_TreeClass_ResolveNode(CFXJSE_Arguments* pArguments); |
| 338 void Script_TreeClass_ResolveNodes(CFXJSE_Arguments* pArguments); | 332 void Script_TreeClass_ResolveNodes(CFXJSE_Arguments* pArguments); |
| 339 void Script_Som_ResolveNodeList(CFXJSE_Value* pValue, | 333 void Script_Som_ResolveNodeList(CFXJSE_Value* pValue, |
| 340 CFX_WideString wsExpression, | 334 CFX_WideString wsExpression, |
| 341 uint32_t dwFlag, | 335 uint32_t dwFlag, |
| 342 CXFA_Node* refNode = nullptr); | 336 CXFA_Node* refNode = nullptr); |
| 343 void Script_TreeClass_All(CFXJSE_Value* pValue, | 337 void Script_TreeClass_All(CFXJSE_Value* pValue, |
| 344 FX_BOOL bSetting, | 338 bool bSetting, |
| 345 XFA_ATTRIBUTE eAttribute); | 339 XFA_ATTRIBUTE eAttribute); |
| 346 void Script_TreeClass_Nodes(CFXJSE_Value* pValue, | 340 void Script_TreeClass_Nodes(CFXJSE_Value* pValue, |
| 347 FX_BOOL bSetting, | 341 bool bSetting, |
| 348 XFA_ATTRIBUTE eAttribute); | 342 XFA_ATTRIBUTE eAttribute); |
| 349 void Script_TreeClass_ClassAll(CFXJSE_Value* pValue, | 343 void Script_TreeClass_ClassAll(CFXJSE_Value* pValue, |
| 350 FX_BOOL bSetting, | 344 bool bSetting, |
| 351 XFA_ATTRIBUTE eAttribute); | 345 XFA_ATTRIBUTE eAttribute); |
| 352 void Script_TreeClass_Parent(CFXJSE_Value* pValue, | 346 void Script_TreeClass_Parent(CFXJSE_Value* pValue, |
| 353 FX_BOOL bSetting, | 347 bool bSetting, |
| 354 XFA_ATTRIBUTE eAttribute); | 348 XFA_ATTRIBUTE eAttribute); |
| 355 void Script_TreeClass_Index(CFXJSE_Value* pValue, | 349 void Script_TreeClass_Index(CFXJSE_Value* pValue, |
| 356 FX_BOOL bSetting, | 350 bool bSetting, |
| 357 XFA_ATTRIBUTE eAttribute); | 351 XFA_ATTRIBUTE eAttribute); |
| 358 void Script_TreeClass_ClassIndex(CFXJSE_Value* pValue, | 352 void Script_TreeClass_ClassIndex(CFXJSE_Value* pValue, |
| 359 FX_BOOL bSetting, | 353 bool bSetting, |
| 360 XFA_ATTRIBUTE eAttribute); | 354 XFA_ATTRIBUTE eAttribute); |
| 361 void Script_TreeClass_SomExpression(CFXJSE_Value* pValue, | 355 void Script_TreeClass_SomExpression(CFXJSE_Value* pValue, |
| 362 FX_BOOL bSetting, | 356 bool bSetting, |
| 363 XFA_ATTRIBUTE eAttribute); | 357 XFA_ATTRIBUTE eAttribute); |
| 364 void Script_NodeClass_ApplyXSL(CFXJSE_Arguments* pArguments); | 358 void Script_NodeClass_ApplyXSL(CFXJSE_Arguments* pArguments); |
| 365 void Script_NodeClass_AssignNode(CFXJSE_Arguments* pArguments); | 359 void Script_NodeClass_AssignNode(CFXJSE_Arguments* pArguments); |
| 366 void Script_NodeClass_Clone(CFXJSE_Arguments* pArguments); | 360 void Script_NodeClass_Clone(CFXJSE_Arguments* pArguments); |
| 367 void Script_NodeClass_GetAttribute(CFXJSE_Arguments* pArguments); | 361 void Script_NodeClass_GetAttribute(CFXJSE_Arguments* pArguments); |
| 368 void Script_NodeClass_GetElement(CFXJSE_Arguments* pArguments); | 362 void Script_NodeClass_GetElement(CFXJSE_Arguments* pArguments); |
| 369 void Script_NodeClass_IsPropertySpecified(CFXJSE_Arguments* pArguments); | 363 void Script_NodeClass_IsPropertySpecified(CFXJSE_Arguments* pArguments); |
| 370 void Script_NodeClass_LoadXML(CFXJSE_Arguments* pArguments); | 364 void Script_NodeClass_LoadXML(CFXJSE_Arguments* pArguments); |
| 371 void Script_NodeClass_SaveFilteredXML(CFXJSE_Arguments* pArguments); | 365 void Script_NodeClass_SaveFilteredXML(CFXJSE_Arguments* pArguments); |
| 372 void Script_NodeClass_SaveXML(CFXJSE_Arguments* pArguments); | 366 void Script_NodeClass_SaveXML(CFXJSE_Arguments* pArguments); |
| 373 void Script_NodeClass_SetAttribute(CFXJSE_Arguments* pArguments); | 367 void Script_NodeClass_SetAttribute(CFXJSE_Arguments* pArguments); |
| 374 void Script_NodeClass_SetElement(CFXJSE_Arguments* pArguments); | 368 void Script_NodeClass_SetElement(CFXJSE_Arguments* pArguments); |
| 375 void Script_NodeClass_Ns(CFXJSE_Value* pValue, | 369 void Script_NodeClass_Ns(CFXJSE_Value* pValue, |
| 376 FX_BOOL bSetting, | 370 bool bSetting, |
| 377 XFA_ATTRIBUTE eAttribute); | 371 XFA_ATTRIBUTE eAttribute); |
| 378 void Script_NodeClass_Model(CFXJSE_Value* pValue, | 372 void Script_NodeClass_Model(CFXJSE_Value* pValue, |
| 379 FX_BOOL bSetting, | 373 bool bSetting, |
| 380 XFA_ATTRIBUTE eAttribute); | 374 XFA_ATTRIBUTE eAttribute); |
| 381 void Script_NodeClass_IsContainer(CFXJSE_Value* pValue, | 375 void Script_NodeClass_IsContainer(CFXJSE_Value* pValue, |
| 382 FX_BOOL bSetting, | 376 bool bSetting, |
| 383 XFA_ATTRIBUTE eAttribute); | 377 XFA_ATTRIBUTE eAttribute); |
| 384 void Script_NodeClass_IsNull(CFXJSE_Value* pValue, | 378 void Script_NodeClass_IsNull(CFXJSE_Value* pValue, |
| 385 FX_BOOL bSetting, | 379 bool bSetting, |
| 386 XFA_ATTRIBUTE eAttribute); | 380 XFA_ATTRIBUTE eAttribute); |
| 387 void Script_NodeClass_OneOfChild(CFXJSE_Value* pValue, | 381 void Script_NodeClass_OneOfChild(CFXJSE_Value* pValue, |
| 388 FX_BOOL bSetting, | 382 bool bSetting, |
| 389 XFA_ATTRIBUTE eAttribute); | 383 XFA_ATTRIBUTE eAttribute); |
| 390 void Script_ContainerClass_GetDelta(CFXJSE_Arguments* pArguments); | 384 void Script_ContainerClass_GetDelta(CFXJSE_Arguments* pArguments); |
| 391 void Script_ContainerClass_GetDeltas(CFXJSE_Arguments* pArguments); | 385 void Script_ContainerClass_GetDeltas(CFXJSE_Arguments* pArguments); |
| 392 void Script_ModelClass_ClearErrorList(CFXJSE_Arguments* pArguments); | 386 void Script_ModelClass_ClearErrorList(CFXJSE_Arguments* pArguments); |
| 393 void Script_ModelClass_CreateNode(CFXJSE_Arguments* pArguments); | 387 void Script_ModelClass_CreateNode(CFXJSE_Arguments* pArguments); |
| 394 void Script_ModelClass_IsCompatibleNS(CFXJSE_Arguments* pArguments); | 388 void Script_ModelClass_IsCompatibleNS(CFXJSE_Arguments* pArguments); |
| 395 void Script_ModelClass_Context(CFXJSE_Value* pValue, | 389 void Script_ModelClass_Context(CFXJSE_Value* pValue, |
| 396 FX_BOOL bSetting, | 390 bool bSetting, |
| 397 XFA_ATTRIBUTE eAttribute); | 391 XFA_ATTRIBUTE eAttribute); |
| 398 void Script_ModelClass_AliasNode(CFXJSE_Value* pValue, | 392 void Script_ModelClass_AliasNode(CFXJSE_Value* pValue, |
| 399 FX_BOOL bSetting, | 393 bool bSetting, |
| 400 XFA_ATTRIBUTE eAttribute); | 394 XFA_ATTRIBUTE eAttribute); |
| 401 void Script_WsdlConnection_Execute(CFXJSE_Arguments* pArguments); | 395 void Script_WsdlConnection_Execute(CFXJSE_Arguments* pArguments); |
| 402 void Script_Delta_Restore(CFXJSE_Arguments* pArguments); | 396 void Script_Delta_Restore(CFXJSE_Arguments* pArguments); |
| 403 void Script_Delta_CurrentValue(CFXJSE_Value* pValue, | 397 void Script_Delta_CurrentValue(CFXJSE_Value* pValue, |
| 404 FX_BOOL bSetting, | 398 bool bSetting, |
| 405 XFA_ATTRIBUTE eAttribute); | 399 XFA_ATTRIBUTE eAttribute); |
| 406 void Script_Delta_SavedValue(CFXJSE_Value* pValue, | 400 void Script_Delta_SavedValue(CFXJSE_Value* pValue, |
| 407 FX_BOOL bSetting, | 401 bool bSetting, |
| 408 XFA_ATTRIBUTE eAttribute); | 402 XFA_ATTRIBUTE eAttribute); |
| 409 void Script_Delta_Target(CFXJSE_Value* pValue, | 403 void Script_Delta_Target(CFXJSE_Value* pValue, |
| 410 FX_BOOL bSetting, | 404 bool bSetting, |
| 411 XFA_ATTRIBUTE eAttribute); | 405 XFA_ATTRIBUTE eAttribute); |
| 412 void Script_Attribute_SendAttributeChangeMessage(XFA_ATTRIBUTE eAttribute, | 406 void Script_Attribute_SendAttributeChangeMessage(XFA_ATTRIBUTE eAttribute, |
| 413 FX_BOOL bScriptModify); | 407 bool bScriptModify); |
| 414 void Script_Attribute_Integer(CFXJSE_Value* pValue, | 408 void Script_Attribute_Integer(CFXJSE_Value* pValue, |
| 415 FX_BOOL bSetting, | 409 bool bSetting, |
| 416 XFA_ATTRIBUTE eAttribute); | 410 XFA_ATTRIBUTE eAttribute); |
| 417 void Script_Attribute_IntegerRead(CFXJSE_Value* pValue, | 411 void Script_Attribute_IntegerRead(CFXJSE_Value* pValue, |
| 418 FX_BOOL bSetting, | 412 bool bSetting, |
| 419 XFA_ATTRIBUTE eAttribute); | 413 XFA_ATTRIBUTE eAttribute); |
| 420 void Script_Attribute_BOOL(CFXJSE_Value* pValue, | 414 void Script_Attribute_BOOL(CFXJSE_Value* pValue, |
| 421 FX_BOOL bSetting, | 415 bool bSetting, |
| 422 XFA_ATTRIBUTE eAttribute); | 416 XFA_ATTRIBUTE eAttribute); |
| 423 void Script_Attribute_BOOLRead(CFXJSE_Value* pValue, | 417 void Script_Attribute_BOOLRead(CFXJSE_Value* pValue, |
| 424 FX_BOOL bSetting, | 418 bool bSetting, |
| 425 XFA_ATTRIBUTE eAttribute); | 419 XFA_ATTRIBUTE eAttribute); |
| 426 void Script_Attribute_String(CFXJSE_Value* pValue, | 420 void Script_Attribute_String(CFXJSE_Value* pValue, |
| 427 FX_BOOL bSetting, | 421 bool bSetting, |
| 428 XFA_ATTRIBUTE eAttribute); | 422 XFA_ATTRIBUTE eAttribute); |
| 429 void Script_Attribute_StringRead(CFXJSE_Value* pValue, | 423 void Script_Attribute_StringRead(CFXJSE_Value* pValue, |
| 430 FX_BOOL bSetting, | 424 bool bSetting, |
| 431 XFA_ATTRIBUTE eAttribute); | 425 XFA_ATTRIBUTE eAttribute); |
| 432 void Script_Som_ValidationMessage(CFXJSE_Value* pValue, | 426 void Script_Som_ValidationMessage(CFXJSE_Value* pValue, |
| 433 FX_BOOL bSetting, | 427 bool bSetting, |
| 434 XFA_ATTRIBUTE eAttribute); | 428 XFA_ATTRIBUTE eAttribute); |
| 435 void Script_Field_Length(CFXJSE_Value* pValue, | 429 void Script_Field_Length(CFXJSE_Value* pValue, |
| 436 FX_BOOL bSetting, | 430 bool bSetting, |
| 437 XFA_ATTRIBUTE eAttribute); | 431 XFA_ATTRIBUTE eAttribute); |
| 438 void Script_Som_DefaultValue(CFXJSE_Value* pValue, | 432 void Script_Som_DefaultValue(CFXJSE_Value* pValue, |
| 439 FX_BOOL bSetting, | 433 bool bSetting, |
| 440 XFA_ATTRIBUTE eAttribute); | 434 XFA_ATTRIBUTE eAttribute); |
| 441 void Script_Som_DefaultValue_Read(CFXJSE_Value* pValue, | 435 void Script_Som_DefaultValue_Read(CFXJSE_Value* pValue, |
| 442 FX_BOOL bSetting, | 436 bool bSetting, |
| 443 XFA_ATTRIBUTE eAttribute); | 437 XFA_ATTRIBUTE eAttribute); |
| 444 void Script_Boolean_Value(CFXJSE_Value* pValue, | 438 void Script_Boolean_Value(CFXJSE_Value* pValue, |
| 445 FX_BOOL bSetting, | 439 bool bSetting, |
| 446 XFA_ATTRIBUTE eAttribute); | 440 XFA_ATTRIBUTE eAttribute); |
| 447 void Script_Som_Message(CFXJSE_Value* pValue, | 441 void Script_Som_Message(CFXJSE_Value* pValue, |
| 448 FX_BOOL bSetting, | 442 bool bSetting, |
| 449 XFA_SOM_MESSAGETYPE iMessageType); | 443 XFA_SOM_MESSAGETYPE iMessageType); |
| 450 void Script_Som_BorderColor(CFXJSE_Value* pValue, | 444 void Script_Som_BorderColor(CFXJSE_Value* pValue, |
| 451 FX_BOOL bSetting, | 445 bool bSetting, |
| 452 XFA_ATTRIBUTE eAttribute); | 446 XFA_ATTRIBUTE eAttribute); |
| 453 void Script_Som_BorderWidth(CFXJSE_Value* pValue, | 447 void Script_Som_BorderWidth(CFXJSE_Value* pValue, |
| 454 FX_BOOL bSetting, | 448 bool bSetting, |
| 455 XFA_ATTRIBUTE eAttribute); | 449 XFA_ATTRIBUTE eAttribute); |
| 456 void Script_Som_FillColor(CFXJSE_Value* pValue, | 450 void Script_Som_FillColor(CFXJSE_Value* pValue, |
| 457 FX_BOOL bSetting, | 451 bool bSetting, |
| 458 XFA_ATTRIBUTE eAttribute); | 452 XFA_ATTRIBUTE eAttribute); |
| 459 void Script_Som_DataNode(CFXJSE_Value* pValue, | 453 void Script_Som_DataNode(CFXJSE_Value* pValue, |
| 460 FX_BOOL bSetting, | 454 bool bSetting, |
| 461 XFA_ATTRIBUTE eAttribute); | 455 XFA_ATTRIBUTE eAttribute); |
| 462 void Script_Som_FontColor(CFXJSE_Value* pValue, | 456 void Script_Som_FontColor(CFXJSE_Value* pValue, |
| 463 FX_BOOL bSetting, | 457 bool bSetting, |
| 464 XFA_ATTRIBUTE eAttribute); | 458 XFA_ATTRIBUTE eAttribute); |
| 465 void Script_Som_Mandatory(CFXJSE_Value* pValue, | 459 void Script_Som_Mandatory(CFXJSE_Value* pValue, |
| 466 FX_BOOL bSetting, | 460 bool bSetting, |
| 467 XFA_ATTRIBUTE eAttribute); | 461 XFA_ATTRIBUTE eAttribute); |
| 468 void Script_Som_MandatoryMessage(CFXJSE_Value* pValue, | 462 void Script_Som_MandatoryMessage(CFXJSE_Value* pValue, |
| 469 FX_BOOL bSetting, | 463 bool bSetting, |
| 470 XFA_ATTRIBUTE eAttribute); | 464 XFA_ATTRIBUTE eAttribute); |
| 471 void Script_Som_InstanceIndex(CFXJSE_Value* pValue, | 465 void Script_Som_InstanceIndex(CFXJSE_Value* pValue, |
| 472 FX_BOOL bSetting, | 466 bool bSetting, |
| 473 XFA_ATTRIBUTE eAttribute); | 467 XFA_ATTRIBUTE eAttribute); |
| 474 void Script_Draw_DefaultValue(CFXJSE_Value* pValue, | 468 void Script_Draw_DefaultValue(CFXJSE_Value* pValue, |
| 475 FX_BOOL bSetting, | 469 bool bSetting, |
| 476 XFA_ATTRIBUTE eAttribute); | 470 XFA_ATTRIBUTE eAttribute); |
| 477 void Script_Field_DefaultValue(CFXJSE_Value* pValue, | 471 void Script_Field_DefaultValue(CFXJSE_Value* pValue, |
| 478 FX_BOOL bSetting, | 472 bool bSetting, |
| 479 XFA_ATTRIBUTE eAttribute); | 473 XFA_ATTRIBUTE eAttribute); |
| 480 void Script_Field_EditValue(CFXJSE_Value* pValue, | 474 void Script_Field_EditValue(CFXJSE_Value* pValue, |
| 481 FX_BOOL bSetting, | 475 bool bSetting, |
| 482 XFA_ATTRIBUTE eAttribute); | 476 XFA_ATTRIBUTE eAttribute); |
| 483 void Script_Field_FormatMessage(CFXJSE_Value* pValue, | 477 void Script_Field_FormatMessage(CFXJSE_Value* pValue, |
| 484 FX_BOOL bSetting, | 478 bool bSetting, |
| 485 XFA_ATTRIBUTE eAttribute); | 479 XFA_ATTRIBUTE eAttribute); |
| 486 void Script_Field_FormattedValue(CFXJSE_Value* pValue, | 480 void Script_Field_FormattedValue(CFXJSE_Value* pValue, |
| 487 FX_BOOL bSetting, | 481 bool bSetting, |
| 488 XFA_ATTRIBUTE eAttribute); | 482 XFA_ATTRIBUTE eAttribute); |
| 489 void Script_Field_ParentSubform(CFXJSE_Value* pValue, | 483 void Script_Field_ParentSubform(CFXJSE_Value* pValue, |
| 490 FX_BOOL bSetting, | 484 bool bSetting, |
| 491 XFA_ATTRIBUTE eAttribute); | 485 XFA_ATTRIBUTE eAttribute); |
| 492 void Script_Field_SelectedIndex(CFXJSE_Value* pValue, | 486 void Script_Field_SelectedIndex(CFXJSE_Value* pValue, |
| 493 FX_BOOL bSetting, | 487 bool bSetting, |
| 494 XFA_ATTRIBUTE eAttribute); | 488 XFA_ATTRIBUTE eAttribute); |
| 495 void Script_Field_ClearItems(CFXJSE_Arguments* pArguments); | 489 void Script_Field_ClearItems(CFXJSE_Arguments* pArguments); |
| 496 void Script_Field_ExecEvent(CFXJSE_Arguments* pArguments); | 490 void Script_Field_ExecEvent(CFXJSE_Arguments* pArguments); |
| 497 void Script_Field_ExecInitialize(CFXJSE_Arguments* pArguments); | 491 void Script_Field_ExecInitialize(CFXJSE_Arguments* pArguments); |
| 498 void Script_Field_DeleteItem(CFXJSE_Arguments* pArguments); | 492 void Script_Field_DeleteItem(CFXJSE_Arguments* pArguments); |
| 499 void Script_Field_GetSaveItem(CFXJSE_Arguments* pArguments); | 493 void Script_Field_GetSaveItem(CFXJSE_Arguments* pArguments); |
| 500 void Script_Field_BoundItem(CFXJSE_Arguments* pArguments); | 494 void Script_Field_BoundItem(CFXJSE_Arguments* pArguments); |
| 501 void Script_Field_GetItemState(CFXJSE_Arguments* pArguments); | 495 void Script_Field_GetItemState(CFXJSE_Arguments* pArguments); |
| 502 void Script_Field_ExecCalculate(CFXJSE_Arguments* pArguments); | 496 void Script_Field_ExecCalculate(CFXJSE_Arguments* pArguments); |
| 503 void Script_Field_SetItems(CFXJSE_Arguments* pArguments); | 497 void Script_Field_SetItems(CFXJSE_Arguments* pArguments); |
| 504 void Script_Field_GetDisplayItem(CFXJSE_Arguments* pArguments); | 498 void Script_Field_GetDisplayItem(CFXJSE_Arguments* pArguments); |
| 505 void Script_Field_SetItemState(CFXJSE_Arguments* pArguments); | 499 void Script_Field_SetItemState(CFXJSE_Arguments* pArguments); |
| 506 void Script_Field_AddItem(CFXJSE_Arguments* pArguments); | 500 void Script_Field_AddItem(CFXJSE_Arguments* pArguments); |
| 507 void Script_Field_ExecValidate(CFXJSE_Arguments* pArguments); | 501 void Script_Field_ExecValidate(CFXJSE_Arguments* pArguments); |
| 508 void Script_ExclGroup_DefaultAndRawValue(CFXJSE_Value* pValue, | 502 void Script_ExclGroup_DefaultAndRawValue(CFXJSE_Value* pValue, |
| 509 FX_BOOL bSetting, | 503 bool bSetting, |
| 510 XFA_ATTRIBUTE eAttribute); | 504 XFA_ATTRIBUTE eAttribute); |
| 511 void Script_ExclGroup_ErrorText(CFXJSE_Value* pValue, | 505 void Script_ExclGroup_ErrorText(CFXJSE_Value* pValue, |
| 512 FX_BOOL bSetting, | 506 bool bSetting, |
| 513 XFA_ATTRIBUTE eAttribute); | 507 XFA_ATTRIBUTE eAttribute); |
| 514 void Script_ExclGroup_Transient(CFXJSE_Value* pValue, | 508 void Script_ExclGroup_Transient(CFXJSE_Value* pValue, |
| 515 FX_BOOL bSetting, | 509 bool bSetting, |
| 516 XFA_ATTRIBUTE eAttribute); | 510 XFA_ATTRIBUTE eAttribute); |
| 517 void Script_ExclGroup_ExecEvent(CFXJSE_Arguments* pArguments); | 511 void Script_ExclGroup_ExecEvent(CFXJSE_Arguments* pArguments); |
| 518 void Script_ExclGroup_SelectedMember(CFXJSE_Arguments* pArguments); | 512 void Script_ExclGroup_SelectedMember(CFXJSE_Arguments* pArguments); |
| 519 void Script_ExclGroup_ExecInitialize(CFXJSE_Arguments* pArguments); | 513 void Script_ExclGroup_ExecInitialize(CFXJSE_Arguments* pArguments); |
| 520 void Script_ExclGroup_ExecCalculate(CFXJSE_Arguments* pArguments); | 514 void Script_ExclGroup_ExecCalculate(CFXJSE_Arguments* pArguments); |
| 521 void Script_ExclGroup_ExecValidate(CFXJSE_Arguments* pArguments); | 515 void Script_ExclGroup_ExecValidate(CFXJSE_Arguments* pArguments); |
| 522 void Script_Subform_InstanceManager(CFXJSE_Value* pValue, | 516 void Script_Subform_InstanceManager(CFXJSE_Value* pValue, |
| 523 FX_BOOL bSetting, | 517 bool bSetting, |
| 524 XFA_ATTRIBUTE eAttribute); | 518 XFA_ATTRIBUTE eAttribute); |
| 525 void Script_Subform_Locale(CFXJSE_Value* pValue, | 519 void Script_Subform_Locale(CFXJSE_Value* pValue, |
| 526 FX_BOOL bSetting, | 520 bool bSetting, |
| 527 XFA_ATTRIBUTE eAttribute); | 521 XFA_ATTRIBUTE eAttribute); |
| 528 void Script_Subform_ExecEvent(CFXJSE_Arguments* pArguments); | 522 void Script_Subform_ExecEvent(CFXJSE_Arguments* pArguments); |
| 529 void Script_Subform_ExecInitialize(CFXJSE_Arguments* pArguments); | 523 void Script_Subform_ExecInitialize(CFXJSE_Arguments* pArguments); |
| 530 void Script_Subform_ExecCalculate(CFXJSE_Arguments* pArguments); | 524 void Script_Subform_ExecCalculate(CFXJSE_Arguments* pArguments); |
| 531 void Script_Subform_ExecValidate(CFXJSE_Arguments* pArguments); | 525 void Script_Subform_ExecValidate(CFXJSE_Arguments* pArguments); |
| 532 void Script_Subform_GetInvalidObjects(CFXJSE_Arguments* pArguments); | 526 void Script_Subform_GetInvalidObjects(CFXJSE_Arguments* pArguments); |
| 533 | 527 |
| 534 int32_t Subform_and_SubformSet_InstanceIndex(); | 528 int32_t Subform_and_SubformSet_InstanceIndex(); |
| 535 void Script_Template_FormNodes(CFXJSE_Arguments* pArguments); | 529 void Script_Template_FormNodes(CFXJSE_Arguments* pArguments); |
| 536 void Script_Template_Remerge(CFXJSE_Arguments* pArguments); | 530 void Script_Template_Remerge(CFXJSE_Arguments* pArguments); |
| 537 void Script_Template_ExecInitialize(CFXJSE_Arguments* pArguments); | 531 void Script_Template_ExecInitialize(CFXJSE_Arguments* pArguments); |
| 538 void Script_Template_CreateNode(CFXJSE_Arguments* pArguments); | 532 void Script_Template_CreateNode(CFXJSE_Arguments* pArguments); |
| 539 void Script_Template_Recalculate(CFXJSE_Arguments* pArguments); | 533 void Script_Template_Recalculate(CFXJSE_Arguments* pArguments); |
| 540 void Script_Template_ExecCalculate(CFXJSE_Arguments* pArguments); | 534 void Script_Template_ExecCalculate(CFXJSE_Arguments* pArguments); |
| 541 void Script_Template_ExecValidate(CFXJSE_Arguments* pArguments); | 535 void Script_Template_ExecValidate(CFXJSE_Arguments* pArguments); |
| 542 void Script_Manifest_Evaluate(CFXJSE_Arguments* pArguments); | 536 void Script_Manifest_Evaluate(CFXJSE_Arguments* pArguments); |
| 543 void Script_InstanceManager_Count(CFXJSE_Value* pValue, | 537 void Script_InstanceManager_Count(CFXJSE_Value* pValue, |
| 544 FX_BOOL bSetting, | 538 bool bSetting, |
| 545 XFA_ATTRIBUTE eAttribute); | 539 XFA_ATTRIBUTE eAttribute); |
| 546 void Script_InstanceManager_Max(CFXJSE_Value* pValue, | 540 void Script_InstanceManager_Max(CFXJSE_Value* pValue, |
| 547 FX_BOOL bSetting, | 541 bool bSetting, |
| 548 XFA_ATTRIBUTE eAttribute); | 542 XFA_ATTRIBUTE eAttribute); |
| 549 void Script_InstanceManager_Min(CFXJSE_Value* pValue, | 543 void Script_InstanceManager_Min(CFXJSE_Value* pValue, |
| 550 FX_BOOL bSetting, | 544 bool bSetting, |
| 551 XFA_ATTRIBUTE eAttribute); | 545 XFA_ATTRIBUTE eAttribute); |
| 552 void Script_InstanceManager_MoveInstance(CFXJSE_Arguments* pArguments); | 546 void Script_InstanceManager_MoveInstance(CFXJSE_Arguments* pArguments); |
| 553 void Script_InstanceManager_RemoveInstance(CFXJSE_Arguments* pArguments); | 547 void Script_InstanceManager_RemoveInstance(CFXJSE_Arguments* pArguments); |
| 554 void Script_InstanceManager_SetInstances(CFXJSE_Arguments* pArguments); | 548 void Script_InstanceManager_SetInstances(CFXJSE_Arguments* pArguments); |
| 555 void Script_InstanceManager_AddInstance(CFXJSE_Arguments* pArguments); | 549 void Script_InstanceManager_AddInstance(CFXJSE_Arguments* pArguments); |
| 556 void Script_InstanceManager_InsertInstance(CFXJSE_Arguments* pArguments); | 550 void Script_InstanceManager_InsertInstance(CFXJSE_Arguments* pArguments); |
| 557 int32_t InstanceManager_SetInstances(int32_t iCount); | 551 int32_t InstanceManager_SetInstances(int32_t iCount); |
| 558 int32_t InstanceManager_MoveInstance(int32_t iTo, int32_t iFrom); | 552 int32_t InstanceManager_MoveInstance(int32_t iTo, int32_t iFrom); |
| 559 void Script_Occur_Max(CFXJSE_Value* pValue, | 553 void Script_Occur_Max(CFXJSE_Value* pValue, |
| 560 FX_BOOL bSetting, | 554 bool bSetting, |
| 561 XFA_ATTRIBUTE eAttribute); | 555 XFA_ATTRIBUTE eAttribute); |
| 562 void Script_Occur_Min(CFXJSE_Value* pValue, | 556 void Script_Occur_Min(CFXJSE_Value* pValue, |
| 563 FX_BOOL bSetting, | 557 bool bSetting, |
| 564 XFA_ATTRIBUTE eAttribute); | 558 XFA_ATTRIBUTE eAttribute); |
| 565 void Script_Desc_Metadata(CFXJSE_Arguments* pArguments); | 559 void Script_Desc_Metadata(CFXJSE_Arguments* pArguments); |
| 566 void Script_Form_FormNodes(CFXJSE_Arguments* pArguments); | 560 void Script_Form_FormNodes(CFXJSE_Arguments* pArguments); |
| 567 void Script_Form_Remerge(CFXJSE_Arguments* pArguments); | 561 void Script_Form_Remerge(CFXJSE_Arguments* pArguments); |
| 568 void Script_Form_ExecInitialize(CFXJSE_Arguments* pArguments); | 562 void Script_Form_ExecInitialize(CFXJSE_Arguments* pArguments); |
| 569 void Script_Form_Recalculate(CFXJSE_Arguments* pArguments); | 563 void Script_Form_Recalculate(CFXJSE_Arguments* pArguments); |
| 570 void Script_Form_ExecCalculate(CFXJSE_Arguments* pArguments); | 564 void Script_Form_ExecCalculate(CFXJSE_Arguments* pArguments); |
| 571 void Script_Form_ExecValidate(CFXJSE_Arguments* pArguments); | 565 void Script_Form_ExecValidate(CFXJSE_Arguments* pArguments); |
| 572 void Script_Form_Checksum(CFXJSE_Value* pValue, | 566 void Script_Form_Checksum(CFXJSE_Value* pValue, |
| 573 FX_BOOL bSetting, | 567 bool bSetting, |
| 574 XFA_ATTRIBUTE eAttribute); | 568 XFA_ATTRIBUTE eAttribute); |
| 575 void Script_Packet_GetAttribute(CFXJSE_Arguments* pArguments); | 569 void Script_Packet_GetAttribute(CFXJSE_Arguments* pArguments); |
| 576 void Script_Packet_SetAttribute(CFXJSE_Arguments* pArguments); | 570 void Script_Packet_SetAttribute(CFXJSE_Arguments* pArguments); |
| 577 void Script_Packet_RemoveAttribute(CFXJSE_Arguments* pArguments); | 571 void Script_Packet_RemoveAttribute(CFXJSE_Arguments* pArguments); |
| 578 void Script_Packet_Content(CFXJSE_Value* pValue, | 572 void Script_Packet_Content(CFXJSE_Value* pValue, |
| 579 FX_BOOL bSetting, | 573 bool bSetting, |
| 580 XFA_ATTRIBUTE eAttribute); | 574 XFA_ATTRIBUTE eAttribute); |
| 581 void Script_Source_Next(CFXJSE_Arguments* pArguments); | 575 void Script_Source_Next(CFXJSE_Arguments* pArguments); |
| 582 void Script_Source_CancelBatch(CFXJSE_Arguments* pArguments); | 576 void Script_Source_CancelBatch(CFXJSE_Arguments* pArguments); |
| 583 void Script_Source_First(CFXJSE_Arguments* pArguments); | 577 void Script_Source_First(CFXJSE_Arguments* pArguments); |
| 584 void Script_Source_UpdateBatch(CFXJSE_Arguments* pArguments); | 578 void Script_Source_UpdateBatch(CFXJSE_Arguments* pArguments); |
| 585 void Script_Source_Previous(CFXJSE_Arguments* pArguments); | 579 void Script_Source_Previous(CFXJSE_Arguments* pArguments); |
| 586 void Script_Source_IsBOF(CFXJSE_Arguments* pArguments); | 580 void Script_Source_IsBOF(CFXJSE_Arguments* pArguments); |
| 587 void Script_Source_IsEOF(CFXJSE_Arguments* pArguments); | 581 void Script_Source_IsEOF(CFXJSE_Arguments* pArguments); |
| 588 void Script_Source_Cancel(CFXJSE_Arguments* pArguments); | 582 void Script_Source_Cancel(CFXJSE_Arguments* pArguments); |
| 589 void Script_Source_Update(CFXJSE_Arguments* pArguments); | 583 void Script_Source_Update(CFXJSE_Arguments* pArguments); |
| 590 void Script_Source_Open(CFXJSE_Arguments* pArguments); | 584 void Script_Source_Open(CFXJSE_Arguments* pArguments); |
| 591 void Script_Source_Delete(CFXJSE_Arguments* pArguments); | 585 void Script_Source_Delete(CFXJSE_Arguments* pArguments); |
| 592 void Script_Source_AddNew(CFXJSE_Arguments* pArguments); | 586 void Script_Source_AddNew(CFXJSE_Arguments* pArguments); |
| 593 void Script_Source_Requery(CFXJSE_Arguments* pArguments); | 587 void Script_Source_Requery(CFXJSE_Arguments* pArguments); |
| 594 void Script_Source_Resync(CFXJSE_Arguments* pArguments); | 588 void Script_Source_Resync(CFXJSE_Arguments* pArguments); |
| 595 void Script_Source_Close(CFXJSE_Arguments* pArguments); | 589 void Script_Source_Close(CFXJSE_Arguments* pArguments); |
| 596 void Script_Source_Last(CFXJSE_Arguments* pArguments); | 590 void Script_Source_Last(CFXJSE_Arguments* pArguments); |
| 597 void Script_Source_HasDataChanged(CFXJSE_Arguments* pArguments); | 591 void Script_Source_HasDataChanged(CFXJSE_Arguments* pArguments); |
| 598 void Script_Source_Db(CFXJSE_Value* pValue, | 592 void Script_Source_Db(CFXJSE_Value* pValue, |
| 599 FX_BOOL bSetting, | 593 bool bSetting, |
| 600 XFA_ATTRIBUTE eAttribute); | 594 XFA_ATTRIBUTE eAttribute); |
| 601 void Script_Xfa_This(CFXJSE_Value* pValue, | 595 void Script_Xfa_This(CFXJSE_Value* pValue, |
| 602 FX_BOOL bSetting, | 596 bool bSetting, |
| 603 XFA_ATTRIBUTE eAttribute); | 597 XFA_ATTRIBUTE eAttribute); |
| 604 void Script_Handler_Version(CFXJSE_Value* pValue, | 598 void Script_Handler_Version(CFXJSE_Value* pValue, |
| 605 FX_BOOL bSetting, | 599 bool bSetting, |
| 606 XFA_ATTRIBUTE eAttribute); | 600 XFA_ATTRIBUTE eAttribute); |
| 607 void Script_SubmitFormat_Mode(CFXJSE_Value* pValue, | 601 void Script_SubmitFormat_Mode(CFXJSE_Value* pValue, |
| 608 FX_BOOL bSetting, | 602 bool bSetting, |
| 609 XFA_ATTRIBUTE eAttribute); | 603 XFA_ATTRIBUTE eAttribute); |
| 610 void Script_Extras_Type(CFXJSE_Value* pValue, | 604 void Script_Extras_Type(CFXJSE_Value* pValue, |
| 611 FX_BOOL bSetting, | 605 bool bSetting, |
| 612 XFA_ATTRIBUTE eAttribute); | 606 XFA_ATTRIBUTE eAttribute); |
| 613 void Script_Encrypt_Format(CFXJSE_Value* pValue, | 607 void Script_Encrypt_Format(CFXJSE_Value* pValue, |
| 614 FX_BOOL bSetting, | 608 bool bSetting, |
| 615 XFA_ATTRIBUTE eAttribute); | 609 XFA_ATTRIBUTE eAttribute); |
| 616 void Script_Script_Stateless(CFXJSE_Value* pValue, | 610 void Script_Script_Stateless(CFXJSE_Value* pValue, |
| 617 FX_BOOL bSetting, | 611 bool bSetting, |
| 618 XFA_ATTRIBUTE eAttribute); | 612 XFA_ATTRIBUTE eAttribute); |
| 619 | 613 |
| 620 protected: | 614 protected: |
| 621 friend class CXFA_Document; | 615 friend class CXFA_Document; |
| 622 | 616 |
| 623 CXFA_Node(CXFA_Document* pDoc, | 617 CXFA_Node(CXFA_Document* pDoc, |
| 624 uint16_t ePacket, | 618 uint16_t ePacket, |
| 625 XFA_ObjectType oType, | 619 XFA_ObjectType oType, |
| 626 XFA_Element eType, | 620 XFA_Element eType, |
| 627 const CFX_WideStringC& elementName); | 621 const CFX_WideStringC& elementName); |
| 628 ~CXFA_Node() override; | 622 ~CXFA_Node() override; |
| 629 | 623 |
| 630 bool HasFlag(XFA_NodeFlag dwFlag) const; | 624 bool HasFlag(XFA_NodeFlag dwFlag) const; |
| 631 CXFA_Node* Deprecated_GetPrevSibling(); | 625 CXFA_Node* Deprecated_GetPrevSibling(); |
| 632 FX_BOOL SetValue(XFA_ATTRIBUTE eAttr, | 626 bool SetValue(XFA_ATTRIBUTE eAttr, |
| 633 XFA_ATTRIBUTETYPE eType, | 627 XFA_ATTRIBUTETYPE eType, |
| 634 void* pValue, | 628 void* pValue, |
| 635 bool bNotify); | 629 bool bNotify); |
| 636 FX_BOOL GetValue(XFA_ATTRIBUTE eAttr, | 630 bool GetValue(XFA_ATTRIBUTE eAttr, |
| 637 XFA_ATTRIBUTETYPE eType, | 631 XFA_ATTRIBUTETYPE eType, |
| 638 FX_BOOL bUseDefault, | 632 bool bUseDefault, |
| 639 void*& pValue); | 633 void*& pValue); |
| 640 void OnRemoved(bool bNotify); | 634 void OnRemoved(bool bNotify); |
| 641 void OnChanging(XFA_ATTRIBUTE eAttr, bool bNotify); | 635 void OnChanging(XFA_ATTRIBUTE eAttr, bool bNotify); |
| 642 void OnChanged(XFA_ATTRIBUTE eAttr, bool bNotify, FX_BOOL bScriptModify); | 636 void OnChanged(XFA_ATTRIBUTE eAttr, bool bNotify, bool bScriptModify); |
| 643 int32_t execSingleEventByName(const CFX_WideStringC& wsEventName, | 637 int32_t execSingleEventByName(const CFX_WideStringC& wsEventName, |
| 644 XFA_Element eType); | 638 XFA_Element eType); |
| 645 FX_BOOL SetScriptContent(const CFX_WideString& wsContent, | 639 bool SetScriptContent(const CFX_WideString& wsContent, |
| 646 const CFX_WideString& wsXMLValue, | 640 const CFX_WideString& wsXMLValue, |
| 647 bool bNotify = true, | 641 bool bNotify = true, |
| 648 FX_BOOL bScriptModify = FALSE, | 642 bool bScriptModify = false, |
| 649 FX_BOOL bSyncData = TRUE); | 643 bool bSyncData = true); |
| 650 CFX_WideString GetScriptContent(FX_BOOL bScriptModify = FALSE); | 644 CFX_WideString GetScriptContent(bool bScriptModify = false); |
| 651 XFA_MAPMODULEDATA* CreateMapModuleData(); | 645 XFA_MAPMODULEDATA* CreateMapModuleData(); |
| 652 XFA_MAPMODULEDATA* GetMapModuleData() const; | 646 XFA_MAPMODULEDATA* GetMapModuleData() const; |
| 653 void SetMapModuleValue(void* pKey, void* pValue); | 647 void SetMapModuleValue(void* pKey, void* pValue); |
| 654 FX_BOOL GetMapModuleValue(void* pKey, void*& pValue); | 648 bool GetMapModuleValue(void* pKey, void*& pValue); |
| 655 void SetMapModuleString(void* pKey, const CFX_WideStringC& wsValue); | 649 void SetMapModuleString(void* pKey, const CFX_WideStringC& wsValue); |
| 656 FX_BOOL GetMapModuleString(void* pKey, CFX_WideStringC& wsValue); | 650 bool GetMapModuleString(void* pKey, CFX_WideStringC& wsValue); |
| 657 void SetMapModuleBuffer( | 651 void SetMapModuleBuffer( |
| 658 void* pKey, | 652 void* pKey, |
| 659 void* pValue, | 653 void* pValue, |
| 660 int32_t iBytes, | 654 int32_t iBytes, |
| 661 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); | 655 XFA_MAPDATABLOCKCALLBACKINFO* pCallbackInfo = nullptr); |
| 662 FX_BOOL GetMapModuleBuffer(void* pKey, | 656 bool GetMapModuleBuffer(void* pKey, |
| 663 void*& pValue, | 657 void*& pValue, |
| 664 int32_t& iBytes, | 658 int32_t& iBytes, |
| 665 FX_BOOL bProtoAlso = TRUE) const; | 659 bool bProtoAlso = true) const; |
| 666 FX_BOOL HasMapModuleKey(void* pKey, FX_BOOL bProtoAlso = FALSE); | 660 bool HasMapModuleKey(void* pKey, bool bProtoAlso = false); |
| 667 void RemoveMapModuleKey(void* pKey = nullptr); | 661 void RemoveMapModuleKey(void* pKey = nullptr); |
| 668 void MergeAllData(void* pDstModule, FX_BOOL bUseSrcAttr = TRUE); | 662 void MergeAllData(void* pDstModule, bool bUseSrcAttr = true); |
| 669 void MoveBufferMapData(CXFA_Node* pDstModule, void* pKey); | 663 void MoveBufferMapData(CXFA_Node* pDstModule, void* pKey); |
| 670 void MoveBufferMapData(CXFA_Node* pSrcModule, | 664 void MoveBufferMapData(CXFA_Node* pSrcModule, |
| 671 CXFA_Node* pDstModule, | 665 CXFA_Node* pDstModule, |
| 672 void* pKey, | 666 void* pKey, |
| 673 FX_BOOL bRecursive = FALSE); | 667 bool bRecursive = false); |
| 674 | 668 |
| 675 CXFA_Node* m_pNext; | 669 CXFA_Node* m_pNext; |
| 676 CXFA_Node* m_pChild; | 670 CXFA_Node* m_pChild; |
| 677 CXFA_Node* m_pLastChild; | 671 CXFA_Node* m_pLastChild; |
| 678 CXFA_Node* m_pParent; | 672 CXFA_Node* m_pParent; |
| 679 CFDE_XMLNode* m_pXMLNode; | 673 CFDE_XMLNode* m_pXMLNode; |
| 680 uint16_t m_ePacket; | 674 uint16_t m_ePacket; |
| 681 uint16_t m_uNodeFlags; | 675 uint16_t m_uNodeFlags; |
| 682 uint32_t m_dwNameHash; | 676 uint32_t m_dwNameHash; |
| 683 CXFA_Node* m_pAuxNode; | 677 CXFA_Node* m_pAuxNode; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 697 CXFA_Node* m_pScriptNode; | 691 CXFA_Node* m_pScriptNode; |
| 698 }; | 692 }; |
| 699 | 693 |
| 700 class CXFA_NodeList : public CXFA_Object { | 694 class CXFA_NodeList : public CXFA_Object { |
| 701 public: | 695 public: |
| 702 explicit CXFA_NodeList(CXFA_Document* pDocument); | 696 explicit CXFA_NodeList(CXFA_Document* pDocument); |
| 703 ~CXFA_NodeList() override; | 697 ~CXFA_NodeList() override; |
| 704 | 698 |
| 705 CXFA_Node* NamedItem(const CFX_WideStringC& wsName); | 699 CXFA_Node* NamedItem(const CFX_WideStringC& wsName); |
| 706 virtual int32_t GetLength() = 0; | 700 virtual int32_t GetLength() = 0; |
| 707 virtual FX_BOOL Append(CXFA_Node* pNode) = 0; | 701 virtual bool Append(CXFA_Node* pNode) = 0; |
| 708 virtual FX_BOOL Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) = 0; | 702 virtual bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) = 0; |
| 709 virtual FX_BOOL Remove(CXFA_Node* pNode) = 0; | 703 virtual bool Remove(CXFA_Node* pNode) = 0; |
| 710 virtual CXFA_Node* Item(int32_t iIndex) = 0; | 704 virtual CXFA_Node* Item(int32_t iIndex) = 0; |
| 711 | 705 |
| 712 void Script_ListClass_Append(CFXJSE_Arguments* pArguments); | 706 void Script_ListClass_Append(CFXJSE_Arguments* pArguments); |
| 713 void Script_ListClass_Insert(CFXJSE_Arguments* pArguments); | 707 void Script_ListClass_Insert(CFXJSE_Arguments* pArguments); |
| 714 void Script_ListClass_Remove(CFXJSE_Arguments* pArguments); | 708 void Script_ListClass_Remove(CFXJSE_Arguments* pArguments); |
| 715 void Script_ListClass_Item(CFXJSE_Arguments* pArguments); | 709 void Script_ListClass_Item(CFXJSE_Arguments* pArguments); |
| 716 | 710 |
| 717 void Script_TreelistClass_NamedItem(CFXJSE_Arguments* pArguments); | 711 void Script_TreelistClass_NamedItem(CFXJSE_Arguments* pArguments); |
| 718 void Script_ListClass_Length(CFXJSE_Value* pValue, | 712 void Script_ListClass_Length(CFXJSE_Value* pValue, |
| 719 FX_BOOL bSetting, | 713 bool bSetting, |
| 720 XFA_ATTRIBUTE eAttribute); | 714 XFA_ATTRIBUTE eAttribute); |
| 721 }; | 715 }; |
| 722 | 716 |
| 723 class CXFA_ArrayNodeList : public CXFA_NodeList { | 717 class CXFA_ArrayNodeList : public CXFA_NodeList { |
| 724 public: | 718 public: |
| 725 explicit CXFA_ArrayNodeList(CXFA_Document* pDocument); | 719 explicit CXFA_ArrayNodeList(CXFA_Document* pDocument); |
| 726 ~CXFA_ArrayNodeList() override; | 720 ~CXFA_ArrayNodeList() override; |
| 727 | 721 |
| 728 // From CXFA_NodeList. | 722 // From CXFA_NodeList. |
| 729 int32_t GetLength() override; | 723 int32_t GetLength() override; |
| 730 FX_BOOL Append(CXFA_Node* pNode) override; | 724 bool Append(CXFA_Node* pNode) override; |
| 731 FX_BOOL Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override; | 725 bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override; |
| 732 FX_BOOL Remove(CXFA_Node* pNode) override; | 726 bool Remove(CXFA_Node* pNode) override; |
| 733 CXFA_Node* Item(int32_t iIndex) override; | 727 CXFA_Node* Item(int32_t iIndex) override; |
| 734 | 728 |
| 735 void SetArrayNodeList(const CXFA_NodeArray& srcArray); | 729 void SetArrayNodeList(const CXFA_NodeArray& srcArray); |
| 736 | 730 |
| 737 protected: | 731 protected: |
| 738 CXFA_NodeArray m_array; | 732 CXFA_NodeArray m_array; |
| 739 }; | 733 }; |
| 740 | 734 |
| 741 class CXFA_AttachNodeList : public CXFA_NodeList { | 735 class CXFA_AttachNodeList : public CXFA_NodeList { |
| 742 public: | 736 public: |
| 743 CXFA_AttachNodeList(CXFA_Document* pDocument, CXFA_Node* pAttachNode); | 737 CXFA_AttachNodeList(CXFA_Document* pDocument, CXFA_Node* pAttachNode); |
| 744 | 738 |
| 745 // From CXFA_NodeList. | 739 // From CXFA_NodeList. |
| 746 int32_t GetLength() override; | 740 int32_t GetLength() override; |
| 747 FX_BOOL Append(CXFA_Node* pNode) override; | 741 bool Append(CXFA_Node* pNode) override; |
| 748 FX_BOOL Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override; | 742 bool Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) override; |
| 749 FX_BOOL Remove(CXFA_Node* pNode) override; | 743 bool Remove(CXFA_Node* pNode) override; |
| 750 CXFA_Node* Item(int32_t iIndex) override; | 744 CXFA_Node* Item(int32_t iIndex) override; |
| 751 | 745 |
| 752 protected: | 746 protected: |
| 753 CXFA_Node* m_pAttachNode; | 747 CXFA_Node* m_pAttachNode; |
| 754 }; | 748 }; |
| 755 class CXFA_TraverseStrategy_XFAContainerNode { | 749 class CXFA_TraverseStrategy_XFAContainerNode { |
| 756 public: | 750 public: |
| 757 static CXFA_Node* GetFirstChild(CXFA_Node* pTemplateNode, | 751 static CXFA_Node* GetFirstChild(CXFA_Node* pTemplateNode, |
| 758 void* pUserData = nullptr) { | 752 void* pUserData = nullptr) { |
| 759 return pTemplateNode->GetNodeItem(XFA_NODEITEM_FirstChild, | 753 return pTemplateNode->GetNodeItem(XFA_NODEITEM_FirstChild, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 | 800 |
| 807 inline CXFA_Node* ToNode(CXFA_Object* pObj) { | 801 inline CXFA_Node* ToNode(CXFA_Object* pObj) { |
| 808 return pObj ? pObj->AsNode() : nullptr; | 802 return pObj ? pObj->AsNode() : nullptr; |
| 809 } | 803 } |
| 810 | 804 |
| 811 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { | 805 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { |
| 812 return pObj ? pObj->AsNode() : nullptr; | 806 return pObj ? pObj->AsNode() : nullptr; |
| 813 } | 807 } |
| 814 | 808 |
| 815 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ | 809 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ |
| OLD | NEW |