Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Side by Side Diff: xfa/fxfa/parser/xfa_script_nodehelper.h

Issue 2160343002: Rename remaining xfa_script_* files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@rename_cscript
Patch Set: Review fixes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/parser/xfa_script_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_nodehelper.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
9
10 #include "xfa/fxfa/parser/xfa_object.h"
11 #include "xfa/fxfa/parser/xfa_script.h"
12
13 class CXFA_ScriptContext;
14
15 enum XFA_LOGIC_TYPE {
16 XFA_LOGIC_NoTransparent,
17 XFA_LOGIC_Transparent,
18 };
19
20 class CXFA_NodeHelper {
21 public:
22 CXFA_NodeHelper();
23 ~CXFA_NodeHelper();
24
25 CXFA_Node* ResolveNodes_GetOneChild(CXFA_Node* parent,
26 const FX_WCHAR* pwsName,
27 FX_BOOL bIsClassName = FALSE);
28 CXFA_Node* ResolveNodes_GetParent(
29 CXFA_Node* pNode,
30 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent);
31
32 int32_t NodeAcc_TraverseSiblings(CXFA_Node* parent,
33 uint32_t dNameHash,
34 CXFA_NodeArray* pSiblings,
35 XFA_LOGIC_TYPE eLogicType,
36 FX_BOOL bIsClassName = FALSE,
37 FX_BOOL bIsFindProperty = TRUE);
38 int32_t NodeAcc_TraverseAnySiblings(CXFA_Node* parent,
39 uint32_t dNameHash,
40 CXFA_NodeArray* pSiblings,
41 FX_BOOL bIsClassName = FALSE);
42 int32_t CountSiblings(CXFA_Node* pNode,
43 XFA_LOGIC_TYPE eLogicType,
44 CXFA_NodeArray* pSiblings,
45 FX_BOOL bIsClassName = FALSE);
46 int32_t GetIndex(CXFA_Node* pNode,
47 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent,
48 FX_BOOL bIsProperty = FALSE,
49 FX_BOOL bIsClassIndex = FALSE);
50 void GetNameExpression(CXFA_Node* refNode,
51 CFX_WideString& wsName,
52 FX_BOOL bIsAllPath,
53 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent);
54 FX_BOOL NodeIsTransparent(CXFA_Node* refNode);
55 FX_BOOL ResolveNodes_CreateNode(CFX_WideString wsName,
56 CFX_WideString wsCondition,
57 FX_BOOL bLastNode,
58 CXFA_ScriptContext* pScriptContext);
59 FX_BOOL CreateNode_ForCondition(CFX_WideString& wsCondition);
60 void SetCreateNodeType(CXFA_Node* refNode);
61 FX_BOOL NodeIsProperty(CXFA_Node* refNode);
62
63 public:
64 XFA_Element m_eLastCreateType;
65 CXFA_Node* m_pCreateParent;
66 int32_t m_iCreateCount;
67 XFA_RESOVENODE_RSTYPE m_iCreateFlag;
68 int32_t m_iCurAllStart;
69 CXFA_Node* m_pAllStartParent;
70 };
71
72 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_nodehelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698