summaryrefslogtreecommitdiff
path: root/xfa/src/fxfa/parser/xfa_script_resolveprocessor.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-08 13:49:22 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-03-08 13:49:22 -0500
commit6cdf084fa40a62eb33185171622ad12d95c6009e (patch)
treedaeea24a81365ed27582f280b7f19add0cb7b0d7 /xfa/src/fxfa/parser/xfa_script_resolveprocessor.h
parent653e0797debddb4e9aecbc6cde65748d43b18b79 (diff)
downloadpdfium-6cdf084fa40a62eb33185171622ad12d95c6009e.tar.xz
Remove xfa/src/fxfa/src/common and xfa/src/fxfa/src
This Cl moves the code in xfa/src/fxfa/src/common to the diretory which contains the respective implementations and removes the xfa/src/fxfa/src/common directory. It them moves all of the code in xfa/src/fxfa/src up one level and removes the xfa/src/fxfa/src directory. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1770073003 .
Diffstat (limited to 'xfa/src/fxfa/parser/xfa_script_resolveprocessor.h')
-rw-r--r--xfa/src/fxfa/parser/xfa_script_resolveprocessor.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/xfa/src/fxfa/parser/xfa_script_resolveprocessor.h b/xfa/src/fxfa/parser/xfa_script_resolveprocessor.h
new file mode 100644
index 0000000000..36e89392da
--- /dev/null
+++ b/xfa/src/fxfa/parser/xfa_script_resolveprocessor.h
@@ -0,0 +1,86 @@
+// 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_SRC_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_
+#define XFA_SRC_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_
+
+#include "xfa/include/fxfa/fxfa_objectacc.h"
+#include "xfa/src/fxfa/parser/xfa_object.h"
+#include "xfa/src/fxfa/parser/xfa_script.h"
+
+class CXFA_NodeHelper;
+class CXFA_ScriptContext;
+
+class CXFA_ResolveNodesData {
+ public:
+ CXFA_ResolveNodesData(CXFA_ScriptContext* pSC = NULL)
+ : m_pSC(pSC),
+ m_CurNode(NULL),
+ m_wsName(),
+ m_uHashName(0),
+ m_wsCondition(),
+ m_nLevel(0),
+ m_Nodes(),
+ m_dwStyles(XFA_RESOLVENODE_Children),
+ m_pScriptAttribute(NULL),
+ m_dwFlag(XFA_RESOVENODE_RSTYPE_Nodes) {}
+ ~CXFA_ResolveNodesData() { m_Nodes.RemoveAll(); }
+ CXFA_ScriptContext* m_pSC;
+ CXFA_Object* m_CurNode;
+ CFX_WideString m_wsName;
+ uint32_t m_uHashName;
+ CFX_WideString m_wsCondition;
+ int32_t m_nLevel;
+ CXFA_ObjArray m_Nodes;
+ FX_DWORD m_dwStyles;
+ const XFA_SCRIPTATTRIBUTEINFO* m_pScriptAttribute;
+ XFA_RESOVENODE_RSTYPE m_dwFlag;
+};
+class CXFA_ResolveProcessor {
+ public:
+ CXFA_ResolveProcessor(void);
+ ~CXFA_ResolveProcessor(void);
+ int32_t XFA_ResolveNodes(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_AnyChild(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_Dollar(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_Excalmatory(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_NumberSign(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_Asterisk(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_Normal(CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_ForAttributeRs(CXFA_Object* curNode,
+ CXFA_ResolveNodesData& rnd,
+ const CFX_WideStringC& strAttr);
+ void XFA_ResolveNode_ConditionArray(int32_t iCurIndex,
+ CFX_WideString wsCondition,
+ int32_t iFoundCount,
+ CXFA_ResolveNodesData& rnd);
+ void XFA_ResolveNode_DoPredicateFilter(int32_t iCurIndex,
+ CFX_WideString wsCondition,
+ int32_t iFoundCount,
+ CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNodes_GetFilter(const CFX_WideStringC& wsExpression,
+ int32_t nStart,
+ CXFA_ResolveNodesData& rnd);
+ void XFA_ResolveNode_FilterCondition(CXFA_ResolveNodesData& rnd,
+ CFX_WideString wsCondition);
+ int32_t XFA_ResolveNodes_PopStack(CFX_Int32Array& stack);
+ void XFA_ResolveNodes_SetStylesForChild(FX_DWORD dwParentStyles,
+ CXFA_ResolveNodesData& rnd);
+ int32_t XFA_ResolveNode_SetResultCreateNode(XFA_RESOLVENODE_RS& resolveNodeRS,
+ CFX_WideString& wsLastCondition);
+ void XFA_ResolveNode_SetIndexDataBind(CFX_WideString& wsNextCondition,
+ int32_t& iIndex,
+ int32_t iCount);
+ CXFA_NodeHelper* GetNodeHelper() { return m_pNodeHelper; }
+
+ private:
+ CXFA_NodeHelper* m_pNodeHelper;
+
+ public:
+ int32_t m_iCurStart;
+};
+
+#endif // XFA_SRC_FXFA_PARSER_XFA_SCRIPT_RESOLVEPROCESSOR_H_