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_servi.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_SERVI_HXX
32 #define ADC_UIDL_PE_SERVI_HXX
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
62 class PE_Service
: public UnoIDL_PE
,
67 virtual ~PE_Service();
69 virtual void EstablishContacts(
70 UnoIDL_PE
* io_pParentPE
,
71 ary::Repository
& io_rRepository
,
72 TokenProcessing_Result
&
74 virtual void ProcessToken(
75 const Token
& i_rToken
);
77 virtual void Process_MetaType(
78 const TokMetaType
& i_rToken
);
79 virtual void Process_Identifier(
82 virtual void Process_Punctuation(
83 const TokPunctuation
&
85 virtual void Process_Stereotype(
88 virtual void Process_Needs();
89 virtual void Process_Observes();
90 virtual void Process_Default();
104 expect_ifc_separator
,
105 expect_service_separator
,
108 need_base_interface
, /// After ":".
109 need_curlbr_open_sib
, /// After base interface in single interface based service.
110 e_std_sib
, /// Standard in single interface based service.
114 virtual void InitData();
115 virtual void TransferData();
116 virtual void ReceiveData();
117 virtual UnoIDL_PE
& MyPE();
119 void StartProperty();
125 bool bIsPreDeclaration
;
126 ary::idl::Service
* pCurService
;
127 ary::idl::SglIfcService
*
129 ary::idl::Ce_id nCurService
; // Needed for PE_Attribute.
131 Dyn
<PE_Property
> pPE_Property
;
132 ary::idl::Ce_id nCurParsed_Property
;
134 Dyn
<PE_Type
> pPE_Type
;
135 ary::idl::Type_id nCurParsed_Type
;
137 Dyn
<PE_Function
> pPE_Constructor
;
139 bool bOptionalMember
;