Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / parsenv2.hxx
blob4dcdc8f8b75f6e61d70900417231b1562ff67acd
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: parsenv2.hxx,v $
10 * $Revision: 1.11 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef LUIDL_PARSENV2_HXX
32 #define LUIDL_PARSENV2_HXX
35 // USED SERVICES
36 // BASE CLASSES
37 #include <s2_luidl/tokproct.hxx>
38 // COMPONENTS
39 #include <s2_luidl/semnode.hxx>
40 // PARAMETERS
41 #include <ary/idl/i_types4idl.hxx>
42 #include <ary/idl/i_module.hxx>
46 class ParserInfo;
48 namespace ary
50 class QualifiedName;
51 class Repository;
53 namespace doc
55 class OldIdlDocu;
58 namespace idl
60 class CodeEntity;
66 namespace csi
68 namespace uidl
72 class Token;
73 class SemanticNode;
76 class UnoIDL_PE : virtual protected TokenProcessing_Types
78 public:
79 virtual ~UnoIDL_PE();
81 virtual void EstablishContacts(
82 UnoIDL_PE * io_pParentPE,
83 ary::Repository &
84 io_rRepository,
85 TokenProcessing_Result &
86 o_rResult );
87 // virtual void EstablishContacts(
88 // UnoIDL_PE * io_pParentPE,
89 // ary::idl::Gate &
90 // io_rGate,
91 // TokenProcessing_Result &
92 // o_rResult );
93 virtual void Enter(
94 E_EnvStackAction i_eWayOfEntering );
95 virtual void Leave(
96 E_EnvStackAction i_eWayOfLeaving );
97 virtual void ProcessToken(
98 const Token & i_rToken ) = 0;
100 void SetDocu(
101 DYN ary::doc::OldIdlDocu *
102 let_dpDocu );
103 void SetPublished();
104 void SetOptional();
105 void PassDocuAt(
106 ary::idl::CodeEntity &
107 io_rCe );
109 UnoIDL_PE * Parent() const { return aMyNode.Parent(); }
111 void SetResult(
112 E_TokenDone i_eDone,
113 E_EnvStackAction i_eWhat2DoWithEnvStack,
114 UnoIDL_PE * i_pParseEnv2Push = 0 )
115 { aMyNode.SetTokenResult( i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push ); }
116 virtual const ary::idl::Module &
117 CurNamespace() const;
118 virtual const ParserInfo &
119 ParseInfo() const;
120 ary::idl::Gate & Gate() const { return aMyNode.AryGate(); }
121 TokenProcessing_Result &
122 TokenResult() const { return aMyNode.TokenResult(); }
123 DYN ary::doc::OldIdlDocu *
124 ReleaseDocu() { return pDocu.Release(); }
125 protected:
126 UnoIDL_PE();
127 ary::Repository & MyRepository() { csv_assert(pRepository != 0);
128 return *pRepository; }
129 private:
130 virtual void InitData();
131 virtual void TransferData() = 0;
132 virtual void ReceiveData();
134 SemanticNode aMyNode;
135 Dyn<ary::doc::OldIdlDocu>
136 pDocu;
137 ary::Repository * pRepository;
143 } // namespace uidl
144 } // namespace csi
145 #endif