merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / parser_i / idl / tk_keyw.cxx
bloba1584e93a58c8db2dff4070ecc919cfe0dc4b406
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: tk_keyw.cxx,v $
10 * $Revision: 1.10 $
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 #include <precomp.h>
32 #include <s2_luidl/tk_keyw.hxx>
35 // NOT FULLY DECLARED SERVICES
36 #include <s2_luidl/tokintpr.hxx>
39 using csi::uidl::TokBuiltInType;
40 using csi::uidl::TokTypeModifier;
41 using csi::uidl::TokMetaType;
42 using csi::uidl::TokStereotype;
43 using csi::uidl::TokParameterHandling;
46 lux::EnumValueMap G_aTokBuiltInType_EV_TokenId_Values;
47 TokBuiltInType::EV_TokenId ev_bty_none(TokBuiltInType::e_none,"");
48 TokBuiltInType::EV_TokenId ev_bty_any(TokBuiltInType::bty_any,"any");
49 TokBuiltInType::EV_TokenId ev_bty_boolean(TokBuiltInType::bty_boolean,"boolean");
50 TokBuiltInType::EV_TokenId ev_bty_byte(TokBuiltInType::bty_byte,"byte");
51 TokBuiltInType::EV_TokenId ev_bty_char(TokBuiltInType::bty_char,"char");
52 TokBuiltInType::EV_TokenId ev_bty_double(TokBuiltInType::bty_double,"double");
53 TokBuiltInType::EV_TokenId ev_bty_hyper(TokBuiltInType::bty_hyper,"hyper");
54 TokBuiltInType::EV_TokenId ev_bty_long(TokBuiltInType::bty_long,"long");
55 TokBuiltInType::EV_TokenId ev_bty_short(TokBuiltInType::bty_short,"short");
56 TokBuiltInType::EV_TokenId ev_bty_string(TokBuiltInType::bty_string,"string");
57 TokBuiltInType::EV_TokenId ev_bty_void(TokBuiltInType::bty_void,"void");
58 TokBuiltInType::EV_TokenId ev_bty_ellipse(TokBuiltInType::bty_ellipse,"...");
61 lux::EnumValueMap G_aTokTypeModifier_EV_TokenId_Values;
62 TokTypeModifier::EV_TokenId ev_tmod_none(TokTypeModifier::e_none,"");
63 TokTypeModifier::EV_TokenId ev_tmod_unsigned(TokTypeModifier::tmod_unsigned,"unsigned");
64 TokTypeModifier::EV_TokenId ev_tmod_sequence(TokTypeModifier::tmod_sequence,"sequence");
67 lux::EnumValueMap G_aTokMetaType_EV_TokenId_Values;
68 TokMetaType::EV_TokenId ev_mt_none(TokMetaType::e_none,"");
69 TokMetaType::EV_TokenId ev_mt_attribute(TokMetaType::mt_attribute,"attribute");
70 TokMetaType::EV_TokenId ev_mt_constants(TokMetaType::mt_constants,"constants");
71 TokMetaType::EV_TokenId ev_mt_enum(TokMetaType::mt_enum,"enum");
72 TokMetaType::EV_TokenId ev_mt_exception(TokMetaType::mt_exception,"exception");
73 TokMetaType::EV_TokenId ev_mt_ident(TokMetaType::mt_ident,"ident");
74 TokMetaType::EV_TokenId ev_mt_interface(TokMetaType::mt_interface,"interface");
75 TokMetaType::EV_TokenId ev_mt_module(TokMetaType::mt_module,"module");
76 TokMetaType::EV_TokenId ev_mt_property(TokMetaType::mt_property,"property");
77 TokMetaType::EV_TokenId ev_mt_service(TokMetaType::mt_service,"service");
78 TokMetaType::EV_TokenId ev_mt_singleton(TokMetaType::mt_singleton,"singleton");
79 TokMetaType::EV_TokenId ev_mt_struct(TokMetaType::mt_struct,"struct");
80 TokMetaType::EV_TokenId ev_mt_typedef(TokMetaType::mt_typedef,"typedef");
81 TokMetaType::EV_TokenId ev_mt_uik(TokMetaType::mt_uik,"uik");
84 lux::EnumValueMap G_aTokStereotype_EV_TokenId_Values;
85 TokStereotype::EV_TokenId ev_ste_none(TokStereotype::e_none,"");
86 TokStereotype::EV_TokenId ev_ste_bound(TokStereotype::ste_bound,"bound");
87 TokStereotype::EV_TokenId ev_ste_const(TokStereotype::ste_const,"const");
88 TokStereotype::EV_TokenId ev_ste_constrained(TokStereotype::ste_constrained,"constrained");
89 TokStereotype::EV_TokenId ev_ste_maybeambiguous(TokStereotype::ste_maybeambiguous,"maybeambiguous");
90 TokStereotype::EV_TokenId ev_ste_maybedefault(TokStereotype::ste_maybedefault,"maybedefault");
91 TokStereotype::EV_TokenId ev_ste_maybevoid(TokStereotype::ste_maybevoid,"maybevoid");
92 TokStereotype::EV_TokenId ev_ste_oneway(TokStereotype::ste_oneway,"oneway");
93 TokStereotype::EV_TokenId ev_ste_optional(TokStereotype::ste_optional,"optional");
94 TokStereotype::EV_TokenId ev_ste_readonly(TokStereotype::ste_readonly,"readonly");
95 TokStereotype::EV_TokenId ev_ste_removable(TokStereotype::ste_removable,"removable");
96 TokStereotype::EV_TokenId ev_ste_virtual(TokStereotype::ste_virtual,"virtual");
97 TokStereotype::EV_TokenId ev_ste_transient(TokStereotype::ste_transient,"transient");
98 TokStereotype::EV_TokenId ev_ste_published(TokStereotype::ste_published,"published");
101 lux::EnumValueMap G_aTokParameterHandling_EV_TokenId_Values;
102 TokParameterHandling::EV_TokenId ev_ph_none(TokParameterHandling::e_none,"");
103 TokParameterHandling::EV_TokenId ev_ph_in(TokParameterHandling::ph_in,"in");
104 TokParameterHandling::EV_TokenId ev_ph_out(TokParameterHandling::ph_out,"out");
105 TokParameterHandling::EV_TokenId ev_ph_inout(TokParameterHandling::ph_inout,"inout");
108 namespace lux
111 template<> EnumValueMap &
112 TokBuiltInType::EV_TokenId::Values_() { return G_aTokBuiltInType_EV_TokenId_Values; }
113 template<> EnumValueMap &
114 TokTypeModifier::EV_TokenId::Values_() { return G_aTokTypeModifier_EV_TokenId_Values; }
115 template<> EnumValueMap &
116 TokMetaType::EV_TokenId::Values_() { return G_aTokMetaType_EV_TokenId_Values; }
117 template<> EnumValueMap &
118 TokStereotype::EV_TokenId::Values_() { return G_aTokStereotype_EV_TokenId_Values; }
119 template<> EnumValueMap &
120 TokParameterHandling::EV_TokenId::Values_() { return G_aTokParameterHandling_EV_TokenId_Values; }
122 } // namespace lux
126 namespace csi
128 namespace uidl
131 void
132 TokBuiltInType::Trigger( TokenInterpreter & io_rInterpreter ) const
134 io_rInterpreter.Process_BuiltInType(*this);
137 const char *
138 TokBuiltInType::Text() const
140 return eTag.Text();
143 void
144 TokTypeModifier::Trigger( TokenInterpreter & io_rInterpreter ) const
146 io_rInterpreter.Process_TypeModifier(*this);
149 const char *
150 TokTypeModifier::Text() const
152 return eTag.Text();
155 void
156 TokMetaType::Trigger( TokenInterpreter & io_rInterpreter ) const
158 io_rInterpreter.Process_MetaType(*this);
161 const char *
162 TokMetaType::Text() const
164 return eTag.Text();
167 void
168 TokStereotype::Trigger( TokenInterpreter & io_rInterpreter ) const
170 io_rInterpreter.Process_Stereotype(*this);
173 const char *
174 TokStereotype::Text() const
176 return eTag.Text();
179 void
180 TokParameterHandling::Trigger( TokenInterpreter & io_rInterpreter ) const
182 io_rInterpreter.Process_ParameterHandling(*this);
185 const char *
186 TokParameterHandling::Text() const
188 return eTag.Text();
191 void
192 TokRaises::Trigger( TokenInterpreter & io_rInterpreter ) const
194 io_rInterpreter.Process_Raises();
197 const char *
198 TokRaises::Text() const
200 return "raises";
203 void
204 TokNeeds::Trigger( TokenInterpreter & io_rInterpreter ) const
206 io_rInterpreter.Process_Needs();
209 const char *
210 TokNeeds::Text() const
212 return "needs";
214 void
215 TokObserves::Trigger( TokenInterpreter & io_rInterpreter ) const
217 io_rInterpreter.Process_Observes();
220 const char *
221 TokObserves::Text() const
223 return "observes";
226 } // namespace uidl
227 } // namespace csi