diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-06 17:10:21 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-06 17:10:21 +0000 |
commit | d19aa7c572c252dd0398f277d13ec1733f1c7098 (patch) | |
tree | a6915a45d8aa6d79d77972d0a8f55a2a3fcdc8b6 /xfa/fxfa/parser/cxfa_resolveprocessor.h | |
parent | f1ecbedf506e4bbe46ffb9131a1c592c6e3e1b2f (diff) | |
download | pdfium-d19aa7c572c252dd0398f277d13ec1733f1c7098.tar.xz |
Move CXFA_ResolveProcessor to CFXJSE_ResolveProcessor.chromium/3261
The resolve processor is only used by cfxjse classes, so move to live in
fxjs/.
Change-Id: I41b8c8e0a491a2b4ee04c1410cbddef63d843105
Reviewed-on: https://pdfium-review.googlesource.com/17850
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_resolveprocessor.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_resolveprocessor.h | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/xfa/fxfa/parser/cxfa_resolveprocessor.h b/xfa/fxfa/parser/cxfa_resolveprocessor.h deleted file mode 100644 index c12dfdc80d..0000000000 --- a/xfa/fxfa/parser/cxfa_resolveprocessor.h +++ /dev/null @@ -1,80 +0,0 @@ -// 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_RESOLVEPROCESSOR_H_ -#define XFA_FXFA_PARSER_CXFA_RESOLVEPROCESSOR_H_ - -#include <memory> -#include <vector> - -#include "xfa/fxfa/parser/xfa_resolvenode_rs.h" - -class CXFA_NodeHelper; -class CFXJSE_Engine; - -class CXFA_ResolveNodesData { - public: - explicit CXFA_ResolveNodesData(CFXJSE_Engine* pSC = nullptr); - ~CXFA_ResolveNodesData(); - - CFXJSE_Engine* m_pSC; - CXFA_Object* m_CurObject; - WideString m_wsName; - XFA_HashCode m_uHashName; - WideString m_wsCondition; - int32_t m_nLevel; - std::vector<CXFA_Object*> m_Objects; // Not owned. - uint32_t m_dwStyles; - const XFA_SCRIPTATTRIBUTEINFO* m_pScriptAttribute; - XFA_RESOVENODE_RSTYPE m_dwFlag; -}; - -class CXFA_ResolveProcessor { - public: - CXFA_ResolveProcessor(); - ~CXFA_ResolveProcessor(); - - int32_t Resolve(CXFA_ResolveNodesData& rnd); - int32_t GetFilter(const WideStringView& wsExpression, - int32_t nStart, - CXFA_ResolveNodesData& rnd); - int32_t SetResultCreateNode(XFA_RESOLVENODE_RS& resolveNodeRS, - WideString& wsLastCondition); - void SetIndexDataBind(WideString& wsNextCondition, - int32_t& iIndex, - int32_t iCount); - void SetCurStart(int32_t start) { m_iCurStart = start; } - - CXFA_NodeHelper* GetNodeHelper() const { return m_pNodeHelper.get(); } - - private: - int32_t ResolveForAttributeRs(CXFA_Object* curNode, - CXFA_ResolveNodesData& rnd, - const WideStringView& strAttr); - int32_t ResolveAnyChild(CXFA_ResolveNodesData& rnd); - int32_t ResolveDollar(CXFA_ResolveNodesData& rnd); - int32_t ResolveExcalmatory(CXFA_ResolveNodesData& rnd); - int32_t ResolveNumberSign(CXFA_ResolveNodesData& rnd); - int32_t ResolveAsterisk(CXFA_ResolveNodesData& rnd); - int32_t ResolveNormal(CXFA_ResolveNodesData& rnd); - int32_t ResolvePopStack(std::vector<int32_t>* stack); - void SetStylesForChild(uint32_t dwParentStyles, CXFA_ResolveNodesData& rnd); - - void ConditionArray(int32_t iCurIndex, - WideString wsCondition, - int32_t iFoundCount, - CXFA_ResolveNodesData& rnd); - void DoPredicateFilter(int32_t iCurIndex, - WideString wsCondition, - int32_t iFoundCount, - CXFA_ResolveNodesData& rnd); - void FilterCondition(CXFA_ResolveNodesData& rnd, WideString wsCondition); - - int32_t m_iCurStart; - std::unique_ptr<CXFA_NodeHelper> m_pNodeHelper; -}; - -#endif // XFA_FXFA_PARSER_CXFA_RESOLVEPROCESSOR_H_ |