From 31f8740fe51ceca8e973a2efe40d4d440d7a5cb7 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 20 Jul 2016 06:34:45 -0700 Subject: Rename remaining xfa_script_* files. This Cl renames the remaining xfa_script_* files to match the class names contained within the files. Review-Url: https://codereview.chromium.org/2160343002 --- xfa/fxfa/parser/cxfa_nodehelper.h | 72 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 xfa/fxfa/parser/cxfa_nodehelper.h (limited to 'xfa/fxfa/parser/cxfa_nodehelper.h') diff --git a/xfa/fxfa/parser/cxfa_nodehelper.h b/xfa/fxfa/parser/cxfa_nodehelper.h new file mode 100644 index 0000000000..a913d5de04 --- /dev/null +++ b/xfa/fxfa/parser/cxfa_nodehelper.h @@ -0,0 +1,72 @@ +// Copyright 2014 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef XFA_FXFA_PARSER_CXFA_NODEHELPER_H_ +#define XFA_FXFA_PARSER_CXFA_NODEHELPER_H_ + +#include "xfa/fxfa/parser/xfa_object.h" +#include "xfa/fxfa/parser/xfa_resolvenode_rs.h" + +class CXFA_ScriptContext; + +enum XFA_LOGIC_TYPE { + XFA_LOGIC_NoTransparent, + XFA_LOGIC_Transparent, +}; + +class CXFA_NodeHelper { + public: + CXFA_NodeHelper(); + ~CXFA_NodeHelper(); + + CXFA_Node* ResolveNodes_GetOneChild(CXFA_Node* parent, + const FX_WCHAR* pwsName, + FX_BOOL bIsClassName = FALSE); + CXFA_Node* ResolveNodes_GetParent( + CXFA_Node* pNode, + XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent); + + int32_t NodeAcc_TraverseSiblings(CXFA_Node* parent, + uint32_t dNameHash, + CXFA_NodeArray* pSiblings, + XFA_LOGIC_TYPE eLogicType, + FX_BOOL bIsClassName = FALSE, + FX_BOOL bIsFindProperty = TRUE); + int32_t NodeAcc_TraverseAnySiblings(CXFA_Node* parent, + uint32_t dNameHash, + CXFA_NodeArray* pSiblings, + FX_BOOL bIsClassName = FALSE); + int32_t CountSiblings(CXFA_Node* pNode, + XFA_LOGIC_TYPE eLogicType, + CXFA_NodeArray* pSiblings, + FX_BOOL bIsClassName = FALSE); + int32_t GetIndex(CXFA_Node* pNode, + XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent, + FX_BOOL bIsProperty = FALSE, + FX_BOOL bIsClassIndex = FALSE); + void GetNameExpression(CXFA_Node* refNode, + CFX_WideString& wsName, + FX_BOOL bIsAllPath, + XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent); + FX_BOOL NodeIsTransparent(CXFA_Node* refNode); + FX_BOOL ResolveNodes_CreateNode(CFX_WideString wsName, + CFX_WideString wsCondition, + FX_BOOL bLastNode, + CXFA_ScriptContext* pScriptContext); + FX_BOOL CreateNode_ForCondition(CFX_WideString& wsCondition); + void SetCreateNodeType(CXFA_Node* refNode); + FX_BOOL NodeIsProperty(CXFA_Node* refNode); + + public: + XFA_Element m_eLastCreateType; + CXFA_Node* m_pCreateParent; + int32_t m_iCreateCount; + XFA_RESOVENODE_RSTYPE m_iCreateFlag; + int32_t m_iCurAllStart; + CXFA_Node* m_pAllStartParent; +}; + +#endif // XFA_FXFA_PARSER_CXFA_NODEHELPER_H_ -- cgit v1.2.3