Home | History | Annotate | Download | only in parser
      1 // Copyright 2016 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 #include "xfa/fxfa/parser/xfa_object.h"
      8 
      9 CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode)
     10     : CXFA_Object(pThisNode->GetDocument(),
     11                   XFA_ObjectType::VariablesThis,
     12                   XFA_Element::Unknown,
     13                   CFX_WideStringC()),
     14       m_pThisNode(nullptr),
     15       m_pScriptNode(nullptr) {
     16   m_pThisNode = pThisNode;
     17   m_pScriptNode = pScriptNode;
     18 }
     19 
     20 CXFA_ThisProxy::~CXFA_ThisProxy() {}
     21 
     22 CXFA_Node* CXFA_ThisProxy::GetThisNode() const {
     23   return m_pThisNode;
     24 }
     25 
     26 CXFA_Node* CXFA_ThisProxy::GetScriptNode() const {
     27   return m_pScriptNode;
     28 }
     29