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: tokintpr.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 ADC_ADOC_TOKINTPR_HXX
32 #define ADC_ADOC_TOKINTPR_HXX
46 class Tok_at_exception
;
51 class Tok_at_template
;
52 class Tok_at_interface
;
53 class Tok_at_internal
;
54 class Tok_at_obsolete
;
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
72 #define DECL_TOK_HANDLER(token) \
73 virtual void Hdl_##token( \
74 const Tok_##token & i_rTok ) = 0
78 class TokenInterpreter
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