Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pe_file2.hxx
blobe41b69692f663d591b4a8aa618a266054feb9795
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: pe_file2.hxx,v $
10 * $Revision: 1.7 $
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
36 // USED SERVICES
37 // BASE CLASSES
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
40 // COMPONENTS
41 // PARAMETERS
44 namespace ary
46 namespace idl
48 class Module;
49 } // namespace idl
50 } // namespace ary
53 namespace csi
55 namespace uidl
58 class TokenDistributor;
59 class PE_Service;
60 class PE_Singleton;
61 class PE_Interface;
62 class PE_Struct;
63 class PE_Exception;
64 class PE_Constant;
65 class PE_Enum;
66 class PE_Typedef;
69 class PE_File : public UnoIDL_PE,
70 public ParseEnvState
72 public:
73 PE_File(
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 &
80 o_rResult );
81 ~PE_File();
83 virtual void ProcessToken(
84 const Token & i_rToken );
86 virtual void Process_Identifier(
87 const TokIdentifier &
88 i_rToken );
89 virtual void Process_Punctuation(
90 const TokPunctuation &
91 i_rToken );
92 virtual void Process_MetaType(
93 const TokMetaType & i_rToken );
94 virtual void Process_Stereotype(
95 const TokStereotype &
96 i_rToken );
97 virtual void Process_Default();
99 private:
100 enum E_State
102 e_none,
103 e_std,
104 wait_for_module,
105 wait_for_module_bracket,
106 wait_for_module_semicolon,
107 in_sub_pe,
108 on_default
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 &
118 ParseInfo() const;
119 // DATA
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 *
131 pCurNamespace;
132 const ParserInfo * pParseInfo;
134 E_State eState;
135 uintt nBracketCount_inDefMode;
139 } // namespace uidl
140 } // namespace csi
142 #endif