Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pe_vari2.hxx
blob1e24bbe4380f7bd8b2b0b0e9e04f0d981716ea11
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_vari2.hxx,v $
10 * $Revision: 1.6 $
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 ADC_UIDL_PE_VARI2_HXX
32 #define ADC_UIDL_PE_VARI2_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 csi
46 namespace uidl
50 class PE_Type;
53 class PE_Variable : public UnoIDL_PE,
54 public ParseEnvState
56 public:
57 PE_Variable(
58 ary::idl::Type_id & i_rResult_Type,
59 String & i_rResult_Name );
60 virtual void EstablishContacts(
61 UnoIDL_PE * io_pParentPE,
62 ary::Repository &
63 io_rRepository,
64 TokenProcessing_Result &
65 o_rResult );
66 virtual ~PE_Variable();
68 virtual void ProcessToken(
69 const Token & i_rToken );
71 virtual void Process_Default();
72 virtual void Process_Identifier(
73 const TokIdentifier &
74 i_rToken );
75 virtual void Process_Punctuation(
76 const TokPunctuation &
77 i_rToken );
78 virtual void Process_BuiltInType(
79 const TokBuiltInType &
80 i_rToken );
81 private:
82 enum E_State
84 e_none,
85 expect_type,
86 expect_name,
87 expect_finish
90 virtual void InitData();
91 virtual void ReceiveData();
92 virtual void TransferData();
93 virtual UnoIDL_PE & MyPE();
95 // DATA
96 E_State eState;
97 ary::idl::Type_id * pResult_Type;
98 String * pResult_Name;
100 Dyn<PE_Type> pPE_Type;
105 } // namespace uidl
106 } // namespace csi
109 #endif