Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pe_servi.hxx
blobff8d2b02a93c1abcabaeb2c2448763c164574ae4
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_servi.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_SERVI_HXX
32 #define ADC_UIDL_PE_SERVI_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
40 // COMPONENTS
41 // PARAMETERS
43 namespace ary
45 namespace idl
47 class Service;
48 class SglIfcService;
52 namespace csi
54 namespace uidl
57 class PE_Property;
58 class PE_Type;
59 class PE_Function;
62 class PE_Service : public UnoIDL_PE,
63 public ParseEnvState
65 public:
66 PE_Service();
67 virtual ~PE_Service();
69 virtual void EstablishContacts(
70 UnoIDL_PE * io_pParentPE,
71 ary::Repository & io_rRepository,
72 TokenProcessing_Result &
73 o_rResult );
74 virtual void ProcessToken(
75 const Token & i_rToken );
77 virtual void Process_MetaType(
78 const TokMetaType & i_rToken );
79 virtual void Process_Identifier(
80 const TokIdentifier &
81 i_rToken );
82 virtual void Process_Punctuation(
83 const TokPunctuation &
84 i_rToken );
85 virtual void Process_Stereotype(
86 const TokStereotype &
87 i_rToken );
88 virtual void Process_Needs();
89 virtual void Process_Observes();
90 virtual void Process_Default();
92 private:
93 void On_Default();
95 enum E_State
97 e_none = 0,
98 need_name,
99 need_curlbr_open,
100 e_std,
101 in_property,
102 in_ifc_type,
103 in_service_type,
104 expect_ifc_separator,
105 expect_service_separator,
106 at_ignore,
107 need_finish,
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.
111 e_STATES_MAX
114 virtual void InitData();
115 virtual void TransferData();
116 virtual void ReceiveData();
117 virtual UnoIDL_PE & MyPE();
119 void StartProperty();
122 // DATA
123 E_State eState;
124 String sData_Name;
125 bool bIsPreDeclaration;
126 ary::idl::Service * pCurService;
127 ary::idl::SglIfcService *
128 pCurSiService;
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;
144 // IMPLEMENTATION
147 } // namespace uidl
148 } // namespace csi
151 #endif