1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tk_xml.hxx,v $
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
36 #include <s2_dsapi/dsapitok.hxx>
39 #include <luxenum.hxx>
48 class Tok_XmlTag
: public Token
53 class Tok_XmlConst
: public Tok_XmlTag
65 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
73 TokenInterpreter
& io_rInterpreter
) const;
75 virtual const char* Text() const;
76 E_TokenId
Id() const { return eTag
; }
83 class Tok_XmlLink_Tag
: public Tok_XmlTag
94 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
97 class Tok_XmlLink_BeginTag
: public Tok_XmlLink_Tag
101 Tok_XmlLink_BeginTag(
103 const String
& i_sScope
,
104 const String
& i_sDim
)
109 virtual void Trigger(
110 TokenInterpreter
& io_rInterpreter
) const;
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
; }
124 class Tok_XmlLink_EndTag
: public Tok_XmlLink_Tag
132 virtual void Trigger(
133 TokenInterpreter
& io_rInterpreter
) const;
135 virtual const char* Text() const;
136 E_TokenId
Id() const { return eTag
; }
143 class Tok_XmlFormat_Tag
: public Tok_XmlTag
154 typedef lux::Enum
<E_TokenId
> EV_TokenId
;
157 class Tok_XmlFormat_BeginTag
: public Tok_XmlFormat_Tag
161 Tok_XmlFormat_BeginTag(
163 const String
& i_sDim
)
167 virtual void Trigger(
168 TokenInterpreter
& io_rInterpreter
) const;
170 virtual const char* Text() const;
171 E_TokenId
Id() const { return eTag
; }
172 const String
& Dim() const { return sDim
; }
180 class Tok_XmlFormat_EndTag
: public Tok_XmlFormat_Tag
184 Tok_XmlFormat_EndTag(
188 virtual void Trigger(
189 TokenInterpreter
& io_rInterpreter
) const;
191 virtual const char* Text() const;
192 E_TokenId
Id() const { return eTag
; }