blob: a593761a611e0de00d81fe80de28a194dc9c03b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tokintpr.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef ADC_ADOC_TOKINTPR_HXX
#define ADC_ADOC_TOKINTPR_HXX
// USED SERVICES
// BASE CLASSES
// COMPONENTS
// PARAMETERS
namespace adoc {
class Tok_at_std;
class Tok_at_base;
class Tok_at_exception;
class Tok_at_impl;
class Tok_at_key;
class Tok_at_param;
class Tok_at_see;
class Tok_at_template;
class Tok_at_interface;
class Tok_at_internal;
class Tok_at_obsolete;
class Tok_at_module;
class Tok_at_file;
class Tok_at_gloss;
class Tok_at_global;
class Tok_at_include;
class Tok_at_label;
class Tok_at_since;
class Tok_at_HTML; // Sets default to: Use HTML in DocuText
class Tok_at_NOHTML; // Sets default to: Don't use HTML in DocuText
class Tok_DocWord;
class Tok_LineStart;
class Tok_Whitespace;
class Tok_Eol;
class Tok_EoDocu;
#define DECL_TOK_HANDLER(token) \
virtual void Hdl_##token( \
const Tok_##token & i_rTok ) = 0
class TokenInterpreter
{
public:
virtual ~TokenInterpreter() {}
DECL_TOK_HANDLER(at_std);
DECL_TOK_HANDLER(at_base);
DECL_TOK_HANDLER(at_exception);
DECL_TOK_HANDLER(at_impl);
DECL_TOK_HANDLER(at_key);
DECL_TOK_HANDLER(at_param);
DECL_TOK_HANDLER(at_see);
DECL_TOK_HANDLER(at_template);
DECL_TOK_HANDLER(at_interface);
DECL_TOK_HANDLER(at_internal);
DECL_TOK_HANDLER(at_obsolete);
DECL_TOK_HANDLER(at_module);
DECL_TOK_HANDLER(at_file);
DECL_TOK_HANDLER(at_gloss);
DECL_TOK_HANDLER(at_global);
DECL_TOK_HANDLER(at_include);
DECL_TOK_HANDLER(at_label);
DECL_TOK_HANDLER(at_since);
DECL_TOK_HANDLER(at_HTML);
DECL_TOK_HANDLER(at_NOHTML);
DECL_TOK_HANDLER(DocWord);
DECL_TOK_HANDLER(Whitespace);
DECL_TOK_HANDLER(LineStart);
DECL_TOK_HANDLER(Eol);
DECL_TOK_HANDLER(EoDocu);
};
#undef DECL_TOK_HANDLER
// IMPLEMENTATION
} // namespace adoc
#endif
|