Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef DSAPI_TK_ATAG2_HXX
21 : #define DSAPI_TK_ATAG2_HXX
22 :
23 : // USED SERVICES
24 : // BASE CLASSES
25 : #include <s2_dsapi/dsapitok.hxx>
26 : // COMPONENTS
27 : // PARAMETERS
28 : #include <luxenum.hxx>
29 :
30 : namespace csi
31 : {
32 : namespace dsapi
33 : {
34 :
35 :
36 24688 : class Tok_AtTag : public Token
37 : {
38 : public:
39 : // TYPE
40 : enum E_TokenId
41 : {
42 : e_none = 0,
43 : author = 1,
44 : see = 2,
45 : param = 3,
46 : e_return = 4,
47 : e_throw = 5,
48 : example = 6,
49 : deprecated = 7,
50 : suspicious = 8,
51 : missing = 9,
52 : incomplete = 10,
53 : version = 11,
54 : guarantees = 12,
55 : exception = 13,
56 : since = 14
57 : };
58 : typedef lux::Enum<E_TokenId> EV_TokenId;
59 :
60 : // Spring and Fall
61 12344 : Tok_AtTag(
62 : EV_TokenId i_eTag )
63 12344 : : eTag(i_eTag) {}
64 : // OPERATIONS
65 : virtual void Trigger(
66 : TokenInterpreter & io_rInterpreter ) const;
67 : // INQUIRY
68 : virtual const char* Text() const;
69 35447 : E_TokenId Id() const { return eTag; }
70 :
71 : private:
72 : EV_TokenId eTag;
73 : };
74 :
75 : } // namespace dsapi
76 : } // namespace csi
77 :
78 :
79 : #endif
80 :
81 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|