Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_dsapi / tk_xml.hxx
bloba82970b104e15fa4123c3b3b38314b5df8a89a34
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_xml.hxx,v $
10 * $Revision: 1.5 $
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 DSAPI_TK_XML_HXX
32 #define DSAPI_TK_XML_HXX
34 // USED SERVICES
35 // BASE CLASSES
36 #include <s2_dsapi/dsapitok.hxx>
37 // COMPONENTS
38 // PARAMETERS
39 #include <luxenum.hxx>
42 namespace csi
44 namespace dsapi
48 class Tok_XmlTag : public Token
50 public:
53 class Tok_XmlConst : public Tok_XmlTag
55 public:
56 // TYPE
57 enum E_TokenId
59 e_none = 0,
60 e_true = 1,
61 e_false = 2,
62 e_null = 3,
63 e_void = 4
65 typedef lux::Enum<E_TokenId> EV_TokenId;
67 // Spring and Fall
68 Tok_XmlConst(
69 EV_TokenId i_eTag )
70 : eTag(i_eTag) {}
71 // OPERATIONS
72 virtual void Trigger(
73 TokenInterpreter & io_rInterpreter ) const;
74 // INQUIRY
75 virtual const char* Text() const;
76 E_TokenId Id() const { return eTag; }
78 private:
79 // DATA
80 EV_TokenId eTag;
83 class Tok_XmlLink_Tag : public Tok_XmlTag
85 public:
86 // TYPE
87 enum E_TokenId
89 e_none = 0,
90 e_const = 1,
91 member = 2,
92 type = 3
94 typedef lux::Enum<E_TokenId> EV_TokenId;
97 class Tok_XmlLink_BeginTag : public Tok_XmlLink_Tag
99 public:
100 // Spring and Fall
101 Tok_XmlLink_BeginTag(
102 EV_TokenId i_eTag,
103 const String & i_sScope,
104 const String & i_sDim )
105 : eTag(i_eTag),
106 sScope(i_sScope),
107 sDim(i_sDim) {}
108 // OPERATIONS
109 virtual void Trigger(
110 TokenInterpreter & io_rInterpreter ) const;
111 // INQUIRY
112 virtual const char* Text() const;
113 E_TokenId Id() const { return eTag; }
114 const String & Scope() const { return sScope; }
115 const String & Dim() const { return sDim; }
117 private:
118 // DATA
119 EV_TokenId eTag;
120 String sScope;
121 String sDim;
124 class Tok_XmlLink_EndTag : public Tok_XmlLink_Tag
126 public:
127 // Spring and Fall
128 Tok_XmlLink_EndTag(
129 EV_TokenId i_eTag )
130 : eTag(i_eTag) {}
131 // OPERATIONS
132 virtual void Trigger(
133 TokenInterpreter & io_rInterpreter ) const;
134 // INQUIRY
135 virtual const char* Text() const;
136 E_TokenId Id() const { return eTag; }
138 private:
139 // DATA
140 EV_TokenId eTag;
143 class Tok_XmlFormat_Tag : public Tok_XmlTag
145 public:
146 // TYPE
147 enum E_TokenId
149 e_none = 0,
150 code = 1,
151 listing = 2,
152 atom = 3
154 typedef lux::Enum<E_TokenId> EV_TokenId;
157 class Tok_XmlFormat_BeginTag : public Tok_XmlFormat_Tag
159 public:
160 // Spring and Fall
161 Tok_XmlFormat_BeginTag(
162 EV_TokenId i_eTag,
163 const String & i_sDim )
164 : eTag(i_eTag),
165 sDim(i_sDim) {}
166 // OPERATIONS
167 virtual void Trigger(
168 TokenInterpreter & io_rInterpreter ) const;
169 // INQUIRY
170 virtual const char* Text() const;
171 E_TokenId Id() const { return eTag; }
172 const String & Dim() const { return sDim; }
174 private:
175 // DATA
176 EV_TokenId eTag;
177 String sDim;
180 class Tok_XmlFormat_EndTag : public Tok_XmlFormat_Tag
182 public:
183 // Spring and Fall
184 Tok_XmlFormat_EndTag(
185 EV_TokenId i_eTag )
186 : eTag(i_eTag) {}
187 // OPERATIONS
188 virtual void Trigger(
189 TokenInterpreter & io_rInterpreter ) const;
190 // INQUIRY
191 virtual const char* Text() const;
192 E_TokenId Id() const { return eTag; }
194 private:
195 // DATA
196 EV_TokenId eTag;
200 } // namespace dsapi
201 } // namespace csi
203 #endif