fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / parser_i / inc / s2_dsapi / tk_xml.hxx
blob88ff8e0c7001f80f0b0bb97f07467a232c429e35
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef DSAPI_TK_XML_HXX
21 #define DSAPI_TK_XML_HXX
23 // USED SERVICES
24 // BASE CLASSES
25 #include <s2_dsapi/dsapitok.hxx>
26 // COMPONENTS
27 // PARAMETERS
28 #include <luxenum.hxx>
31 namespace csi
33 namespace dsapi
37 class Tok_XmlTag : public Token
39 public:
42 class Tok_XmlConst : public Tok_XmlTag
44 public:
45 // TYPE
46 enum E_TokenId
48 e_none = 0,
49 e_true = 1,
50 e_false = 2,
51 e_null = 3,
52 e_void = 4
54 typedef lux::Enum<E_TokenId> EV_TokenId;
56 // Spring and Fall
57 Tok_XmlConst(
58 EV_TokenId i_eTag )
59 : eTag(i_eTag) {}
60 // OPERATIONS
61 virtual void Trigger(
62 TokenInterpreter & io_rInterpreter ) const;
63 // INQUIRY
64 virtual const char* Text() const;
65 E_TokenId Id() const { return eTag; }
67 private:
68 // DATA
69 EV_TokenId eTag;
72 class Tok_XmlLink_Tag : public Tok_XmlTag
74 public:
75 // TYPE
76 enum E_TokenId
78 e_none = 0,
79 e_const = 1,
80 member = 2,
81 type = 3
83 typedef lux::Enum<E_TokenId> EV_TokenId;
86 class Tok_XmlLink_BeginTag : public Tok_XmlLink_Tag
88 public:
89 // Spring and Fall
90 Tok_XmlLink_BeginTag(
91 EV_TokenId i_eTag,
92 const String & i_sScope,
93 const String & i_sDim )
94 : eTag(i_eTag),
95 sScope(i_sScope),
96 sDim(i_sDim) {}
97 // OPERATIONS
98 virtual void Trigger(
99 TokenInterpreter & io_rInterpreter ) const;
100 // INQUIRY
101 virtual const char* Text() const;
102 E_TokenId Id() const { return eTag; }
103 const String & Scope() const { return sScope; }
104 const String & Dim() const { return sDim; }
106 private:
107 // DATA
108 EV_TokenId eTag;
109 String sScope;
110 String sDim;
113 class Tok_XmlLink_EndTag : public Tok_XmlLink_Tag
115 public:
116 // Spring and Fall
117 Tok_XmlLink_EndTag(
118 EV_TokenId i_eTag )
119 : eTag(i_eTag) {}
120 // OPERATIONS
121 virtual void Trigger(
122 TokenInterpreter & io_rInterpreter ) const;
123 // INQUIRY
124 virtual const char* Text() const;
125 E_TokenId Id() const { return eTag; }
127 private:
128 // DATA
129 EV_TokenId eTag;
132 class Tok_XmlFormat_Tag : public Tok_XmlTag
134 public:
135 // TYPE
136 enum E_TokenId
138 e_none = 0,
139 code = 1,
140 listing = 2,
141 atom = 3
143 typedef lux::Enum<E_TokenId> EV_TokenId;
146 class Tok_XmlFormat_BeginTag : public Tok_XmlFormat_Tag
148 public:
149 // Spring and Fall
150 Tok_XmlFormat_BeginTag(
151 EV_TokenId i_eTag,
152 const String & i_sDim )
153 : eTag(i_eTag),
154 sDim(i_sDim) {}
155 // OPERATIONS
156 virtual void Trigger(
157 TokenInterpreter & io_rInterpreter ) const;
158 // INQUIRY
159 virtual const char* Text() const;
160 E_TokenId Id() const { return eTag; }
161 const String & Dim() const { return sDim; }
163 private:
164 // DATA
165 EV_TokenId eTag;
166 String sDim;
169 class Tok_XmlFormat_EndTag : public Tok_XmlFormat_Tag
171 public:
172 // Spring and Fall
173 Tok_XmlFormat_EndTag(
174 EV_TokenId i_eTag )
175 : eTag(i_eTag) {}
176 // OPERATIONS
177 virtual void Trigger(
178 TokenInterpreter & io_rInterpreter ) const;
179 // INQUIRY
180 virtual const char* Text() const;
181 E_TokenId Id() const { return eTag; }
183 private:
184 // DATA
185 EV_TokenId eTag;
189 } // namespace dsapi
190 } // namespace csi
192 #endif
194 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */