Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pe_selem.hxx
blob696f009937708e7b87d4975ce2bb5563df0216b9
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_selem.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 LUIDL_PE_SELEM_HXX
32 #define LUIDL_PE_SELEM_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
40 // COMPONENTS
41 // PARAMETERS
42 #include <ary/idl/i_gate.hxx>
45 namespace udm {
46 class Agent_Struct;
47 } // namespace udm
50 namespace csi
52 namespace uidl
55 class PE_Type;
56 class StructElement;
57 class Struct;
59 class PE_StructElement : public UnoIDL_PE,
60 public ParseEnvState
62 public:
63 typedef ary::idl::Ce_id RStructElement;
64 typedef ary::idl::Ce_id RStruct;
66 PE_StructElement( /// Use for Struct-elements
67 RStructElement & o_rResult,
68 const RStruct & i_rCurStruct,
69 const String & i_rCurStructTemplateParam );
70 PE_StructElement( /// Use for Exception-elements
71 RStructElement & o_rResult,
72 const RStruct & i_rCurExc );
73 virtual void EstablishContacts(
74 UnoIDL_PE * io_pParentPE,
75 ary::Repository & io_rRepository,
76 TokenProcessing_Result &
77 o_rResult );
78 ~PE_StructElement();
80 virtual void ProcessToken(
81 const Token & i_rToken );
83 virtual void Process_Default();
84 virtual void Process_Identifier(
85 const TokIdentifier &
86 i_rToken );
87 virtual void Process_Punctuation(
88 const TokPunctuation &
89 i_rToken );
91 private:
92 enum E_State
94 e_none,
95 expect_type,
96 expect_name,
97 expect_finish
100 virtual void InitData();
101 virtual void TransferData();
102 virtual UnoIDL_PE & MyPE();
104 ary::idl::Type_id lhf_FindTemplateParamType() const;
106 // DATA
107 E_State eState;
108 RStructElement * pResult;
109 const RStruct * pCurStruct;
110 bool bIsExceptionElement;
112 Dyn<PE_Type> pPE_Type;
113 ary::idl::Type_id nType;
114 String sName;
115 const String * pCurStructTemplateParam;
120 } // namespace uidl
121 } // namespace csi
124 #endif