1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #include <precomp.h>
29 #include <s2_luidl/semnode.hxx>
30 
31 
32 // NOT FULLY DEFINED SERVICES
33 #include <ary/ary.hxx>
34 #include <ary/idl/i_gate.hxx>
35 #include <ary/idl/i_module.hxx>
36 #include <ary/doc/d_oldidldocu.hxx>
37 #include <s2_luidl/parsenv2.hxx>
38 
39 
40 namespace csi
41 {
42 namespace uidl
43 {
44 
45 
46 
47 SemanticNode::SemanticNode()
48 	:	pParentPE(0),
49 	    pAryGate(0),
50 		pTokenResult(0)
51 {
52 }
53 
54 void
55 SemanticNode::EstablishContacts( UnoIDL_PE *				io_pParentPE,
56 								 ary::idl::Gate &           io_rGate,
57 								 TokenProcessing_Result & 	o_rResult )
58 {
59 	pParentPE 		=  io_pParentPE;
60 	pAryGate 		= &io_rGate;
61 	pTokenResult    = &o_rResult;
62 }
63 
64 SemanticNode::~SemanticNode()
65 {
66 }
67 
68 void
69 SemanticNode::SetTokenResult( E_TokenDone		i_eDone,
70 							  E_EnvStackAction	i_eWhat2DoWithEnvStack,
71 							  UnoIDL_PE *		i_pParseEnv2Push )
72 {
73     csv_assert(pTokenResult != 0);
74 
75 	pTokenResult->eDone 		= i_eDone;
76 	pTokenResult->eStackAction 	= i_eWhat2DoWithEnvStack;
77 	pTokenResult->pEnv2Push 	= i_pParseEnv2Push;
78 }
79 
80 
81 }   // namespace uidl
82 }   // namespace csi
83