1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pe_file2.hxx,v $
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_PE_FILE2_HXX
32 #define LUIDL_PE_FILE2_HXX
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
58 class TokenDistributor
;
69 class PE_File
: public UnoIDL_PE
,
74 TokenDistributor
& i_rTokenAdmin
,
75 const ParserInfo
& i_parseInfo
);
76 virtual void EstablishContacts(
77 UnoIDL_PE
* io_pParentPE
,
78 ary::Repository
& io_rRepository
,
79 TokenProcessing_Result
&
83 virtual void ProcessToken(
84 const Token
& i_rToken
);
86 virtual void Process_Identifier(
89 virtual void Process_Punctuation(
90 const TokPunctuation
&
92 virtual void Process_MetaType(
93 const TokMetaType
& i_rToken
);
94 virtual void Process_Stereotype(
97 virtual void Process_Default();
105 wait_for_module_bracket
,
106 wait_for_module_semicolon
,
111 virtual void InitData();
112 virtual void TransferData();
113 virtual void ReceiveData();
114 virtual UnoIDL_PE
& MyPE();
115 virtual const ary::idl::Module
&
116 CurNamespace() const;
117 virtual const ParserInfo
&
120 TokenDistributor
* pTokenAdmin
;
121 Dyn
<PE_Service
> pPE_Service
;
122 Dyn
<PE_Singleton
> pPE_Singleton
;
123 Dyn
<PE_Interface
> pPE_Interface
;
124 Dyn
<PE_Struct
> pPE_Struct
;
125 Dyn
<PE_Exception
> pPE_Exception
;
126 Dyn
<PE_Constant
> pPE_Constant
;
127 Dyn
<PE_Enum
> pPE_Enum
;
128 Dyn
<PE_Typedef
> pPE_Typedef
;
130 const ary::idl::Module
*
132 const ParserInfo
* pParseInfo
;
135 uintt nBracketCount_inDefMode
;