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_property.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 ADC_UIDL_PE_PROPERTY_HXX
32 #define ADC_UIDL_PE_PROPERTY_HXX
39 #include <s2_luidl/parsenv2.hxx>
40 #include <s2_luidl/pestate.hxx>
42 #include <ary/idl/i_property.hxx>
44 #include <ary/idl/i_gate.hxx>
55 class PE_Property
: public UnoIDL_PE
,
59 typedef ary::idl::Ce_id Ce_id
;
60 typedef ary::idl::Type_id Type_id
;
61 typedef ary::idl::Property::Stereotypes Stereotypes
;
65 const Ce_id
& i_rCurOwner
);
67 virtual void EstablishContacts(
68 UnoIDL_PE
* io_pParentPE
,
71 TokenProcessing_Result
&
73 virtual ~PE_Property();
75 virtual void ProcessToken(
76 const Token
& i_rToken
);
78 virtual void Process_Stereotype(
81 virtual void Process_MetaType(
82 const TokMetaType
& i_rToken
);
83 virtual void Process_Punctuation(
84 const TokPunctuation
&
86 virtual void Process_Default();
88 void PresetOptional() { bIsOptional
= true; }
89 void PresetStereotypes(
92 { aStereotypes
.Set_Flag(i_eFlag
); }
102 virtual void InitData();
103 virtual void ReceiveData();
104 virtual void TransferData();
105 virtual UnoIDL_PE
& MyPE();
109 const Ce_id
* pCurOwner
;
111 Dyn
<PE_Variable
> pPE_Variable
;
114 Type_id nCurParsedType
;
115 String sCurParsedName
;
117 Stereotypes aStereotypes
;