1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
30 #include <s2_luidl/tk_keyw.hxx>
33 // NOT FULLY DECLARED SERVICES
34 #include <s2_luidl/tokintpr.hxx>
37 using csi::uidl::TokBuiltInType
;
38 using csi::uidl::TokTypeModifier
;
39 using csi::uidl::TokMetaType
;
40 using csi::uidl::TokStereotype
;
41 using csi::uidl::TokParameterHandling
;
44 lux::EnumValueMap G_aTokBuiltInType_EV_TokenId_Values
;
45 TokBuiltInType::EV_TokenId
ev_bty_none(TokBuiltInType::e_none
,"");
46 TokBuiltInType::EV_TokenId
ev_bty_any(TokBuiltInType::bty_any
,"any");
47 TokBuiltInType::EV_TokenId
ev_bty_boolean(TokBuiltInType::bty_boolean
,"boolean");
48 TokBuiltInType::EV_TokenId
ev_bty_byte(TokBuiltInType::bty_byte
,"byte");
49 TokBuiltInType::EV_TokenId
ev_bty_char(TokBuiltInType::bty_char
,"char");
50 TokBuiltInType::EV_TokenId
ev_bty_double(TokBuiltInType::bty_double
,"double");
51 TokBuiltInType::EV_TokenId
ev_bty_hyper(TokBuiltInType::bty_hyper
,"hyper");
52 TokBuiltInType::EV_TokenId
ev_bty_long(TokBuiltInType::bty_long
,"long");
53 TokBuiltInType::EV_TokenId
ev_bty_short(TokBuiltInType::bty_short
,"short");
54 TokBuiltInType::EV_TokenId
ev_bty_string(TokBuiltInType::bty_string
,"string");
55 TokBuiltInType::EV_TokenId
ev_bty_void(TokBuiltInType::bty_void
,"void");
56 TokBuiltInType::EV_TokenId
ev_bty_ellipse(TokBuiltInType::bty_ellipse
,"...");
59 lux::EnumValueMap G_aTokTypeModifier_EV_TokenId_Values
;
60 TokTypeModifier::EV_TokenId
ev_tmod_none(TokTypeModifier::e_none
,"");
61 TokTypeModifier::EV_TokenId
ev_tmod_unsigned(TokTypeModifier::tmod_unsigned
,"unsigned");
62 TokTypeModifier::EV_TokenId
ev_tmod_sequence(TokTypeModifier::tmod_sequence
,"sequence");
65 lux::EnumValueMap G_aTokMetaType_EV_TokenId_Values
;
66 TokMetaType::EV_TokenId
ev_mt_none(TokMetaType::e_none
,"");
67 TokMetaType::EV_TokenId
ev_mt_attribute(TokMetaType::mt_attribute
,"attribute");
68 TokMetaType::EV_TokenId
ev_mt_constants(TokMetaType::mt_constants
,"constants");
69 TokMetaType::EV_TokenId
ev_mt_enum(TokMetaType::mt_enum
,"enum");
70 TokMetaType::EV_TokenId
ev_mt_exception(TokMetaType::mt_exception
,"exception");
71 TokMetaType::EV_TokenId
ev_mt_ident(TokMetaType::mt_ident
,"ident");
72 TokMetaType::EV_TokenId
ev_mt_interface(TokMetaType::mt_interface
,"interface");
73 TokMetaType::EV_TokenId
ev_mt_module(TokMetaType::mt_module
,"module");
74 TokMetaType::EV_TokenId
ev_mt_property(TokMetaType::mt_property
,"property");
75 TokMetaType::EV_TokenId
ev_mt_service(TokMetaType::mt_service
,"service");
76 TokMetaType::EV_TokenId
ev_mt_singleton(TokMetaType::mt_singleton
,"singleton");
77 TokMetaType::EV_TokenId
ev_mt_struct(TokMetaType::mt_struct
,"struct");
78 TokMetaType::EV_TokenId
ev_mt_typedef(TokMetaType::mt_typedef
,"typedef");
79 TokMetaType::EV_TokenId
ev_mt_uik(TokMetaType::mt_uik
,"uik");
82 lux::EnumValueMap G_aTokStereotype_EV_TokenId_Values
;
83 TokStereotype::EV_TokenId
ev_ste_none(TokStereotype::e_none
,"");
84 TokStereotype::EV_TokenId
ev_ste_bound(TokStereotype::ste_bound
,"bound");
85 TokStereotype::EV_TokenId
ev_ste_const(TokStereotype::ste_const
,"const");
86 TokStereotype::EV_TokenId
ev_ste_constrained(TokStereotype::ste_constrained
,"constrained");
87 TokStereotype::EV_TokenId
ev_ste_maybeambiguous(TokStereotype::ste_maybeambiguous
,"maybeambiguous");
88 TokStereotype::EV_TokenId
ev_ste_maybedefault(TokStereotype::ste_maybedefault
,"maybedefault");
89 TokStereotype::EV_TokenId
ev_ste_maybevoid(TokStereotype::ste_maybevoid
,"maybevoid");
90 TokStereotype::EV_TokenId
ev_ste_oneway(TokStereotype::ste_oneway
,"oneway");
91 TokStereotype::EV_TokenId
ev_ste_optional(TokStereotype::ste_optional
,"optional");
92 TokStereotype::EV_TokenId
ev_ste_readonly(TokStereotype::ste_readonly
,"readonly");
93 TokStereotype::EV_TokenId
ev_ste_removable(TokStereotype::ste_removable
,"removable");
94 TokStereotype::EV_TokenId
ev_ste_virtual(TokStereotype::ste_virtual
,"virtual");
95 TokStereotype::EV_TokenId
ev_ste_transient(TokStereotype::ste_transient
,"transient");
96 TokStereotype::EV_TokenId
ev_ste_published(TokStereotype::ste_published
,"published");
99 lux::EnumValueMap G_aTokParameterHandling_EV_TokenId_Values
;
100 TokParameterHandling::EV_TokenId
ev_ph_none(TokParameterHandling::e_none
,"");
101 TokParameterHandling::EV_TokenId
ev_ph_in(TokParameterHandling::ph_in
,"in");
102 TokParameterHandling::EV_TokenId
ev_ph_out(TokParameterHandling::ph_out
,"out");
103 TokParameterHandling::EV_TokenId
ev_ph_inout(TokParameterHandling::ph_inout
,"inout");
109 template<> EnumValueMap
&
110 Enum
<TokBuiltInType::E_TokenId
>::Values_() { return G_aTokBuiltInType_EV_TokenId_Values
; }
111 template<> EnumValueMap
&
112 Enum
<TokTypeModifier::E_TokenId
>::Values_() { return G_aTokTypeModifier_EV_TokenId_Values
; }
113 template<> EnumValueMap
&
114 Enum
<TokMetaType::E_TokenId
>::Values_() { return G_aTokMetaType_EV_TokenId_Values
; }
115 template<> EnumValueMap
&
116 Enum
<TokStereotype::E_TokenId
>::Values_() { return G_aTokStereotype_EV_TokenId_Values
; }
117 template<> EnumValueMap
&
118 Enum
<TokParameterHandling::E_TokenId
>::Values_() { return G_aTokParameterHandling_EV_TokenId_Values
; }
130 TokBuiltInType::Trigger( TokenInterpreter
& io_rInterpreter
) const
132 io_rInterpreter
.Process_BuiltInType(*this);
136 TokBuiltInType::Text() const
142 TokTypeModifier::Trigger( TokenInterpreter
& io_rInterpreter
) const
144 io_rInterpreter
.Process_TypeModifier(*this);
148 TokTypeModifier::Text() const
154 TokMetaType::Trigger( TokenInterpreter
& io_rInterpreter
) const
156 io_rInterpreter
.Process_MetaType(*this);
160 TokMetaType::Text() const
166 TokStereotype::Trigger( TokenInterpreter
& io_rInterpreter
) const
168 io_rInterpreter
.Process_Stereotype(*this);
172 TokStereotype::Text() const
178 TokParameterHandling::Trigger( TokenInterpreter
& io_rInterpreter
) const
180 io_rInterpreter
.Process_ParameterHandling(*this);
184 TokParameterHandling::Text() const
190 TokRaises::Trigger( TokenInterpreter
& io_rInterpreter
) const
192 io_rInterpreter
.Process_Raises();
196 TokRaises::Text() const
202 TokNeeds::Trigger( TokenInterpreter
& io_rInterpreter
) const
204 io_rInterpreter
.Process_Needs();
208 TokNeeds::Text() const
213 TokObserves::Trigger( TokenInterpreter
& io_rInterpreter
) const
215 io_rInterpreter
.Process_Observes();
219 TokObserves::Text() const
227 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */