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

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

Issue 1803723002: Move xfa/src up to xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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
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_SRC_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
8 #define XFA_SRC_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
9
10 #include "xfa/src/fxfa/parser/xfa_object.h"
11 #include "xfa/src/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(void);
23 ~CXFA_NodeHelper(void);
24 CXFA_Node* XFA_ResolveNodes_GetOneChild(CXFA_Node* parent,
25 const FX_WCHAR* pwsName,
26 FX_BOOL bIsClassName = FALSE);
27 CXFA_Node* XFA_ResolveNodes_GetParent(
28 CXFA_Node* pNode,
29 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent);
30
31 int32_t XFA_NodeAcc_TraverseSiblings(CXFA_Node* parent,
32 FX_DWORD dNameHash,
33 CXFA_NodeArray* pSiblings,
34 XFA_LOGIC_TYPE eLogicType,
35 FX_BOOL bIsClassName = FALSE,
36 FX_BOOL bIsFindProperty = TRUE);
37 int32_t XFA_NodeAcc_TraverseAnySiblings(CXFA_Node* parent,
38 FX_DWORD dNameHash,
39 CXFA_NodeArray* pSiblings,
40 FX_BOOL bIsClassName = FALSE);
41 int32_t XFA_CountSiblings(CXFA_Node* pNode,
42 XFA_LOGIC_TYPE eLogicType,
43 CXFA_NodeArray* pSiblings,
44 FX_BOOL bIsClassName = FALSE);
45 int32_t XFA_GetIndex(CXFA_Node* pNode,
46 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent,
47 FX_BOOL bIsProperty = FALSE,
48 FX_BOOL bIsClassIndex = FALSE);
49 void XFA_GetNameExpression(
50 CXFA_Node* refNode,
51 CFX_WideString& wsName,
52 FX_BOOL bIsAllPath,
53 XFA_LOGIC_TYPE eLogicType = XFA_LOGIC_NoTransparent);
54 FX_BOOL XFA_NodeIsTransparent(CXFA_Node* refNode);
55 FX_BOOL XFA_ResolveNodes_CreateNode(CFX_WideString wsName,
56 CFX_WideString wsCondition,
57 FX_BOOL bLastNode,
58 CXFA_ScriptContext* pScriptContext);
59 FX_BOOL XFA_CreateNode_ForCondition(CFX_WideString& wsCondition);
60 void XFA_SetCreateNodeType(CXFA_Node* refNode);
61 FX_BOOL XFA_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_SRC_FXFA_PARSER_XFA_SCRIPT_NODEHELPER_H_
OLDNEW
« no previous file with comments | « xfa/src/fxfa/parser/xfa_script_logpseudomodel.cpp ('k') | xfa/src/fxfa/parser/xfa_script_nodehelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698