1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 #include <precomp.h>
23 #include <adoc/tk_attag.hxx>
24 
25 
26 // NOT FULLY DEFINED SERVICES
27 #include <adoc/tokintpr.hxx>
28 
29 
30 
31 namespace adoc {
32 
33 #if 0
34 #define  EV_AtTagId( val, tex ) ENUM_VALUE(E_AtTagId, eATTAGID_##val, val, tex )
35 
36 EV_AtTagId(atid_ATT, "ATTENTION" );
37 EV_AtTagId(atid_author, "Author" );
38 EV_AtTagId(atid_change, "Change" );
39 EV_AtTagId(atid_collab, "Collaborators" );
40 EV_AtTagId(atid_contact, "Contact" );
41 EV_AtTagId(atid_copyright, "Copyright (c)" );
42 EV_AtTagId(atid_descr, "Description" );
43 EV_AtTagId(atid_devstat, "Development State" );
44 EV_AtTagId(atid_docdate, "Date of Documentation" );
45 EV_AtTagId(atid_derive, "How to Derive from this class" );
46 EV_AtTagId(atid_instance, "Instances" );
47 EV_AtTagId(atid_life, "Lifecycle" );
48 EV_AtTagId(atid_multi, "Multiplicity" );
49 EV_AtTagId(atid_onerror, "On Error" );
50 EV_AtTagId(atid_persist, "Persistence" );
51 EV_AtTagId(atid_postcond, "Postcondition" );
52 EV_AtTagId(atid_precond, "Precondition" );
53 EV_AtTagId(atid_return, "Return" );
54 EV_AtTagId(atid_short, "Summary" );
55 EV_AtTagId(atid_since, "Valid Since" );
56 EV_AtTagId(atid_todo, "Todo" );
57 EV_AtTagId(atid_version, "Version" );
58 #endif // 0
59 
60 void
Trigger(TokenInterpreter & io_rInterpreter) const61 Tok_at_std::Trigger( TokenInterpreter &	io_rInterpreter ) const
62 {
63 	io_rInterpreter.Hdl_at_std(*this);
64 }
65 
66 const char *
Text() const67 Tok_at_std::Text() const
68 {
69 	// KORR_FUTURE
70 	return "A Tag";
71 
72 //	return eId.Text();
73 }
74 
75 
76 #define DEFINE_TOKEN_CLASS(name, text) \
77 void \
78 Tok_##name::Trigger( TokenInterpreter & io_rInterpreter ) const \
79 { 	io_rInterpreter.Hdl_##name(*this); } \
80 const char * \
81 Tok_##name::Text() const \
82 { 	return text; }
83 
84 DEFINE_TOKEN_CLASS(at_base,  "Base Classes")
85 DEFINE_TOKEN_CLASS(at_exception,  "Exceptions")
86 DEFINE_TOKEN_CLASS(at_impl,  "Implements")
87 DEFINE_TOKEN_CLASS(at_key,  "Keywords")
88 DEFINE_TOKEN_CLASS(at_param,  "Parameters")
89 DEFINE_TOKEN_CLASS(at_see,  "See Also")
90 DEFINE_TOKEN_CLASS(at_template,  "Template Parameters")
91 DEFINE_TOKEN_CLASS(at_interface, "Interface")
92 DEFINE_TOKEN_CLASS(at_internal,  "[ INTERNAL ]")
93 DEFINE_TOKEN_CLASS(at_obsolete,  "[ DEPRECATED ]")
94 DEFINE_TOKEN_CLASS(at_module,  "Module")
95 DEFINE_TOKEN_CLASS(at_file,  "File")
96 DEFINE_TOKEN_CLASS(at_gloss,  "Glossary")
97 DEFINE_TOKEN_CLASS(at_global,  "<global doc text>")
98 DEFINE_TOKEN_CLASS(at_include,  "<included text>")
99 DEFINE_TOKEN_CLASS(at_label,  "Label")
100 DEFINE_TOKEN_CLASS(at_HTML,  "")
101 DEFINE_TOKEN_CLASS(at_NOHTML,  "")
102 DEFINE_TOKEN_CLASS(at_since, "Since");
103 
104 }   // namespace adoc
105 
106