Update ooo320-m1
[ooovba.git] / autodoc / source / parser / inc / adoc / tokintpr.hxx
blobd583e64c4040f76fd47c1d09fc70af847a9d682c
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tokintpr.hxx,v $
10 * $Revision: 1.4 $
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 ADC_ADOC_TOKINTPR_HXX
32 #define ADC_ADOC_TOKINTPR_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 // COMPONENTS
39 // PARAMETERS
41 namespace adoc {
44 class Tok_at_std;
45 class Tok_at_base;
46 class Tok_at_exception;
47 class Tok_at_impl;
48 class Tok_at_key;
49 class Tok_at_param;
50 class Tok_at_see;
51 class Tok_at_template;
52 class Tok_at_interface;
53 class Tok_at_internal;
54 class Tok_at_obsolete;
55 class Tok_at_module;
56 class Tok_at_file;
57 class Tok_at_gloss;
58 class Tok_at_global;
59 class Tok_at_include;
60 class Tok_at_label;
61 class Tok_at_since;
62 class Tok_at_HTML; // Sets default to: Use HTML in DocuText
63 class Tok_at_NOHTML; // Sets default to: Don't use HTML in DocuText
65 class Tok_DocWord;
66 class Tok_LineStart;
67 class Tok_Whitespace;
68 class Tok_Eol;
69 class Tok_EoDocu;
72 #define DECL_TOK_HANDLER(token) \
73 virtual void Hdl_##token( \
74 const Tok_##token & i_rTok ) = 0
78 class TokenInterpreter
80 public:
81 virtual ~TokenInterpreter() {}
83 DECL_TOK_HANDLER(at_std);
84 DECL_TOK_HANDLER(at_base);
85 DECL_TOK_HANDLER(at_exception);
86 DECL_TOK_HANDLER(at_impl);
87 DECL_TOK_HANDLER(at_key);
88 DECL_TOK_HANDLER(at_param);
89 DECL_TOK_HANDLER(at_see);
90 DECL_TOK_HANDLER(at_template);
91 DECL_TOK_HANDLER(at_interface);
92 DECL_TOK_HANDLER(at_internal);
93 DECL_TOK_HANDLER(at_obsolete);
94 DECL_TOK_HANDLER(at_module);
95 DECL_TOK_HANDLER(at_file);
96 DECL_TOK_HANDLER(at_gloss);
97 DECL_TOK_HANDLER(at_global);
98 DECL_TOK_HANDLER(at_include);
99 DECL_TOK_HANDLER(at_label);
100 DECL_TOK_HANDLER(at_since);
101 DECL_TOK_HANDLER(at_HTML);
102 DECL_TOK_HANDLER(at_NOHTML);
103 DECL_TOK_HANDLER(DocWord);
104 DECL_TOK_HANDLER(Whitespace);
105 DECL_TOK_HANDLER(LineStart);
106 DECL_TOK_HANDLER(Eol);
107 DECL_TOK_HANDLER(EoDocu);
110 #undef DECL_TOK_HANDLER
113 // IMPLEMENTATION
116 } // namespace adoc
119 #endif