Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pe_property.hxx
blobc02ae97764dc4230664e4ed110a998b348355433
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_property.hxx,v $
10 * $Revision: 1.5 $
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_PROPERTY_HXX
32 #define ADC_UIDL_PE_PROPERTY_HXX
36 // USED SERVICES
37 // BASE CLASSES
39 #include <s2_luidl/parsenv2.hxx>
40 #include <s2_luidl/pestate.hxx>
41 // COMPONENTS
42 #include <ary/idl/i_property.hxx>
43 // PARAMETERS
44 #include <ary/idl/i_gate.hxx>
47 namespace csi
49 namespace uidl
53 class PE_Variable;
55 class PE_Property : public UnoIDL_PE,
56 public ParseEnvState
58 public:
59 typedef ary::idl::Ce_id Ce_id;
60 typedef ary::idl::Type_id Type_id;
61 typedef ary::idl::Property::Stereotypes Stereotypes;
64 PE_Property(
65 const Ce_id & i_rCurOwner );
67 virtual void EstablishContacts(
68 UnoIDL_PE * io_pParentPE,
69 ary::Repository &
70 io_rRepository,
71 TokenProcessing_Result &
72 o_rResult );
73 virtual ~PE_Property();
75 virtual void ProcessToken(
76 const Token & i_rToken );
78 virtual void Process_Stereotype(
79 const TokStereotype &
80 i_rToken );
81 virtual void Process_MetaType(
82 const TokMetaType & i_rToken );
83 virtual void Process_Punctuation(
84 const TokPunctuation &
85 i_rToken );
86 virtual void Process_Default();
88 void PresetOptional() { bIsOptional = true; }
89 void PresetStereotypes(
90 Stereotypes::E_Flags
91 i_eFlag )
92 { aStereotypes.Set_Flag(i_eFlag); }
93 private:
94 enum E_State
96 e_none,
97 e_start,
98 expect_variable,
99 in_variable
102 virtual void InitData();
103 virtual void ReceiveData();
104 virtual void TransferData();
105 virtual UnoIDL_PE & MyPE();
107 // DATA
108 E_State eState;
109 const Ce_id * pCurOwner;
111 Dyn<PE_Variable> pPE_Variable;
113 // object-data
114 Type_id nCurParsedType;
115 String sCurParsedName;
116 bool bIsOptional;
117 Stereotypes aStereotypes;
121 } // namespace uidl
122 } // namespace csi
125 #endif