1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
25 #include <s2_dsapi/dsapitok.hxx>
28 #include <luxenum.hxx>
37 class Tok_XmlTag
: public Token
42 class Tok_XmlConst
: public Tok_XmlTag
54 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
62 TokenInterpreter
& io_rInterpreter
) const;
64 virtual const char* Text() const;
65 E_TokenId
Id() const { return eTag
; }
72 class Tok_XmlLink_Tag
: public Tok_XmlTag
83 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
86 class Tok_XmlLink_BeginTag
: public Tok_XmlLink_Tag
92 const String
& i_sScope
,
93 const String
& i_sDim
)
99 TokenInterpreter
& io_rInterpreter
) const;
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
; }
113 class Tok_XmlLink_EndTag
: public Tok_XmlLink_Tag
121 virtual void Trigger(
122 TokenInterpreter
& io_rInterpreter
) const;
124 virtual const char* Text() const;
125 E_TokenId
Id() const { return eTag
; }
132 class Tok_XmlFormat_Tag
: public Tok_XmlTag
143 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
146 class Tok_XmlFormat_BeginTag
: public Tok_XmlFormat_Tag
150 Tok_XmlFormat_BeginTag(
152 const String
& i_sDim
)
156 virtual void Trigger(
157 TokenInterpreter
& io_rInterpreter
) const;
159 virtual const char* Text() const;
160 E_TokenId
Id() const { return eTag
; }
161 const String
& Dim() const { return sDim
; }
169 class Tok_XmlFormat_EndTag
: public Tok_XmlFormat_Tag
173 Tok_XmlFormat_EndTag(
177 virtual void Trigger(
178 TokenInterpreter
& io_rInterpreter
) const;
180 virtual const char* Text() const;
181 E_TokenId
Id() const { return eTag
; }
194 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */