1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #include <precomp.h>
29*cdf0e10cSrcweir #include <s2_luidl/tk_keyw.hxx>
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES
33*cdf0e10cSrcweir #include <s2_luidl/tokintpr.hxx>
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir 
36*cdf0e10cSrcweir using csi::uidl::TokBuiltInType;
37*cdf0e10cSrcweir using csi::uidl::TokTypeModifier;
38*cdf0e10cSrcweir using csi::uidl::TokMetaType;
39*cdf0e10cSrcweir using csi::uidl::TokStereotype;
40*cdf0e10cSrcweir using csi::uidl::TokParameterHandling;
41*cdf0e10cSrcweir 
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir lux::EnumValueMap			G_aTokBuiltInType_EV_TokenId_Values;
44*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_none(TokBuiltInType::e_none,"");
45*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_any(TokBuiltInType::bty_any,"any");
46*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_boolean(TokBuiltInType::bty_boolean,"boolean");
47*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_byte(TokBuiltInType::bty_byte,"byte");
48*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_char(TokBuiltInType::bty_char,"char");
49*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_double(TokBuiltInType::bty_double,"double");
50*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_hyper(TokBuiltInType::bty_hyper,"hyper");
51*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_long(TokBuiltInType::bty_long,"long");
52*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_short(TokBuiltInType::bty_short,"short");
53*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_string(TokBuiltInType::bty_string,"string");
54*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_void(TokBuiltInType::bty_void,"void");
55*cdf0e10cSrcweir TokBuiltInType::EV_TokenId  ev_bty_ellipse(TokBuiltInType::bty_ellipse,"...");
56*cdf0e10cSrcweir 
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir lux::EnumValueMap	        G_aTokTypeModifier_EV_TokenId_Values;
59*cdf0e10cSrcweir TokTypeModifier::EV_TokenId ev_tmod_none(TokTypeModifier::e_none,"");
60*cdf0e10cSrcweir TokTypeModifier::EV_TokenId ev_tmod_unsigned(TokTypeModifier::tmod_unsigned,"unsigned");
61*cdf0e10cSrcweir TokTypeModifier::EV_TokenId ev_tmod_sequence(TokTypeModifier::tmod_sequence,"sequence");
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir lux::EnumValueMap	        G_aTokMetaType_EV_TokenId_Values;
65*cdf0e10cSrcweir TokMetaType::EV_TokenId     ev_mt_none(TokMetaType::e_none,"");
66*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_attribute(TokMetaType::mt_attribute,"attribute");
67*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_constants(TokMetaType::mt_constants,"constants");
68*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_enum(TokMetaType::mt_enum,"enum");
69*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_exception(TokMetaType::mt_exception,"exception");
70*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_ident(TokMetaType::mt_ident,"ident");
71*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_interface(TokMetaType::mt_interface,"interface");
72*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_module(TokMetaType::mt_module,"module");
73*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_property(TokMetaType::mt_property,"property");
74*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_service(TokMetaType::mt_service,"service");
75*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_singleton(TokMetaType::mt_singleton,"singleton");
76*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_struct(TokMetaType::mt_struct,"struct");
77*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_typedef(TokMetaType::mt_typedef,"typedef");
78*cdf0e10cSrcweir TokMetaType::EV_TokenId   	ev_mt_uik(TokMetaType::mt_uik,"uik");
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir 
81*cdf0e10cSrcweir lux::EnumValueMap	        G_aTokStereotype_EV_TokenId_Values;
82*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_none(TokStereotype::e_none,"");
83*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_bound(TokStereotype::ste_bound,"bound");
84*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_const(TokStereotype::ste_const,"const");
85*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_constrained(TokStereotype::ste_constrained,"constrained");
86*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_maybeambiguous(TokStereotype::ste_maybeambiguous,"maybeambiguous");
87*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_maybedefault(TokStereotype::ste_maybedefault,"maybedefault");
88*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_maybevoid(TokStereotype::ste_maybevoid,"maybevoid");
89*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_oneway(TokStereotype::ste_oneway,"oneway");
90*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_optional(TokStereotype::ste_optional,"optional");
91*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_readonly(TokStereotype::ste_readonly,"readonly");
92*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_removable(TokStereotype::ste_removable,"removable");
93*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_virtual(TokStereotype::ste_virtual,"virtual");
94*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_transient(TokStereotype::ste_transient,"transient");
95*cdf0e10cSrcweir TokStereotype::EV_TokenId   ev_ste_published(TokStereotype::ste_published,"published");
96*cdf0e10cSrcweir 
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir lux::EnumValueMap	        		G_aTokParameterHandling_EV_TokenId_Values;
99*cdf0e10cSrcweir TokParameterHandling::EV_TokenId    ev_ph_none(TokParameterHandling::e_none,"");
100*cdf0e10cSrcweir TokParameterHandling::EV_TokenId   	ev_ph_in(TokParameterHandling::ph_in,"in");
101*cdf0e10cSrcweir TokParameterHandling::EV_TokenId   	ev_ph_out(TokParameterHandling::ph_out,"out");
102*cdf0e10cSrcweir TokParameterHandling::EV_TokenId   	ev_ph_inout(TokParameterHandling::ph_inout,"inout");
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir 
105*cdf0e10cSrcweir namespace lux
106*cdf0e10cSrcweir {
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir template<> EnumValueMap &
109*cdf0e10cSrcweir TokBuiltInType::EV_TokenId::Values_()		{ return G_aTokBuiltInType_EV_TokenId_Values; }
110*cdf0e10cSrcweir template<> EnumValueMap &
111*cdf0e10cSrcweir TokTypeModifier::EV_TokenId::Values_()		{ return G_aTokTypeModifier_EV_TokenId_Values; }
112*cdf0e10cSrcweir template<> EnumValueMap &
113*cdf0e10cSrcweir TokMetaType::EV_TokenId::Values_()			{ return G_aTokMetaType_EV_TokenId_Values; }
114*cdf0e10cSrcweir template<> EnumValueMap &
115*cdf0e10cSrcweir TokStereotype::EV_TokenId::Values_()		{ return G_aTokStereotype_EV_TokenId_Values; }
116*cdf0e10cSrcweir template<> EnumValueMap &
117*cdf0e10cSrcweir TokParameterHandling::EV_TokenId::Values_()	{ return G_aTokParameterHandling_EV_TokenId_Values; }
118*cdf0e10cSrcweir 
119*cdf0e10cSrcweir }   // namespace lux
120*cdf0e10cSrcweir 
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir 
123*cdf0e10cSrcweir namespace csi
124*cdf0e10cSrcweir {
125*cdf0e10cSrcweir namespace uidl
126*cdf0e10cSrcweir {
127*cdf0e10cSrcweir 
128*cdf0e10cSrcweir void
129*cdf0e10cSrcweir TokBuiltInType::Trigger( TokenInterpreter &	io_rInterpreter ) const
130*cdf0e10cSrcweir {
131*cdf0e10cSrcweir 	io_rInterpreter.Process_BuiltInType(*this);
132*cdf0e10cSrcweir }
133*cdf0e10cSrcweir 
134*cdf0e10cSrcweir const char *
135*cdf0e10cSrcweir TokBuiltInType::Text() const
136*cdf0e10cSrcweir {
137*cdf0e10cSrcweir 	return eTag.Text();
138*cdf0e10cSrcweir }
139*cdf0e10cSrcweir 
140*cdf0e10cSrcweir void
141*cdf0e10cSrcweir TokTypeModifier::Trigger( TokenInterpreter &	io_rInterpreter ) const
142*cdf0e10cSrcweir {
143*cdf0e10cSrcweir 	io_rInterpreter.Process_TypeModifier(*this);
144*cdf0e10cSrcweir }
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir const char *
147*cdf0e10cSrcweir TokTypeModifier::Text() const
148*cdf0e10cSrcweir {
149*cdf0e10cSrcweir 	return eTag.Text();
150*cdf0e10cSrcweir }
151*cdf0e10cSrcweir 
152*cdf0e10cSrcweir void
153*cdf0e10cSrcweir TokMetaType::Trigger( TokenInterpreter &	io_rInterpreter ) const
154*cdf0e10cSrcweir {
155*cdf0e10cSrcweir 	io_rInterpreter.Process_MetaType(*this);
156*cdf0e10cSrcweir }
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir const char *
159*cdf0e10cSrcweir TokMetaType::Text() const
160*cdf0e10cSrcweir {
161*cdf0e10cSrcweir 	return eTag.Text();
162*cdf0e10cSrcweir }
163*cdf0e10cSrcweir 
164*cdf0e10cSrcweir void
165*cdf0e10cSrcweir TokStereotype::Trigger( TokenInterpreter &	io_rInterpreter ) const
166*cdf0e10cSrcweir {
167*cdf0e10cSrcweir 	io_rInterpreter.Process_Stereotype(*this);
168*cdf0e10cSrcweir }
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir const char *
171*cdf0e10cSrcweir TokStereotype::Text() const
172*cdf0e10cSrcweir {
173*cdf0e10cSrcweir 	return eTag.Text();
174*cdf0e10cSrcweir }
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir void
177*cdf0e10cSrcweir TokParameterHandling::Trigger( TokenInterpreter &	io_rInterpreter ) const
178*cdf0e10cSrcweir {
179*cdf0e10cSrcweir 	io_rInterpreter.Process_ParameterHandling(*this);
180*cdf0e10cSrcweir }
181*cdf0e10cSrcweir 
182*cdf0e10cSrcweir const char *
183*cdf0e10cSrcweir TokParameterHandling::Text() const
184*cdf0e10cSrcweir {
185*cdf0e10cSrcweir 	return eTag.Text();
186*cdf0e10cSrcweir }
187*cdf0e10cSrcweir 
188*cdf0e10cSrcweir void
189*cdf0e10cSrcweir TokRaises::Trigger( TokenInterpreter &	io_rInterpreter ) const
190*cdf0e10cSrcweir {
191*cdf0e10cSrcweir 	io_rInterpreter.Process_Raises();
192*cdf0e10cSrcweir }
193*cdf0e10cSrcweir 
194*cdf0e10cSrcweir const char *
195*cdf0e10cSrcweir TokRaises::Text() const
196*cdf0e10cSrcweir {
197*cdf0e10cSrcweir 	return "raises";
198*cdf0e10cSrcweir }
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir void
201*cdf0e10cSrcweir TokNeeds::Trigger( TokenInterpreter &	io_rInterpreter ) const
202*cdf0e10cSrcweir {
203*cdf0e10cSrcweir 	io_rInterpreter.Process_Needs();
204*cdf0e10cSrcweir }
205*cdf0e10cSrcweir 
206*cdf0e10cSrcweir const char *
207*cdf0e10cSrcweir TokNeeds::Text() const
208*cdf0e10cSrcweir {
209*cdf0e10cSrcweir 	return "needs";
210*cdf0e10cSrcweir }
211*cdf0e10cSrcweir void
212*cdf0e10cSrcweir TokObserves::Trigger( TokenInterpreter &	io_rInterpreter ) const
213*cdf0e10cSrcweir {
214*cdf0e10cSrcweir 	io_rInterpreter.Process_Observes();
215*cdf0e10cSrcweir }
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir const char *
218*cdf0e10cSrcweir TokObserves::Text() const
219*cdf0e10cSrcweir {
220*cdf0e10cSrcweir 	return "observes";
221*cdf0e10cSrcweir }
222*cdf0e10cSrcweir 
223*cdf0e10cSrcweir }   // namespace uidl
224*cdf0e10cSrcweir }   // namespace csi
225*cdf0e10cSrcweir 
226