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 ADC_DSAPI_TOKINTPR_HXX
21 : #define ADC_DSAPI_TOKINTPR_HXX
22 :
23 :
24 :
25 : // USED SERVICES
26 : // BASE CLASSES
27 : // COMPONENTS
28 : // PARAMETERS
29 :
30 : namespace csi
31 : {
32 : namespace dsapi
33 : {
34 :
35 :
36 : class Tok_AtTag;
37 : class Tok_XmlConst;
38 : class Tok_XmlLink_BeginTag;
39 : class Tok_XmlLink_EndTag;
40 : class Tok_XmlFormat_BeginTag;
41 : class Tok_XmlFormat_EndTag;
42 : class Tok_Word;
43 : class Tok_HtmlTag;
44 :
45 3 : class TokenInterpreter
46 : {
47 : public:
48 3 : virtual ~TokenInterpreter() {}
49 :
50 : virtual void Process_AtTag(
51 : const Tok_AtTag & i_rToken ) = 0;
52 : virtual void Process_HtmlTag(
53 : const Tok_HtmlTag & i_rToken ) = 0;
54 : virtual void Process_XmlConst(
55 : const Tok_XmlConst &
56 : i_rToken ) = 0;
57 : virtual void Process_XmlLink_BeginTag(
58 : const Tok_XmlLink_BeginTag &
59 : i_rToken ) = 0;
60 : virtual void Process_XmlLink_EndTag(
61 : const Tok_XmlLink_EndTag &
62 : i_rToken ) = 0;
63 : virtual void Process_XmlFormat_BeginTag(
64 : const Tok_XmlFormat_BeginTag &
65 : i_rToken ) = 0;
66 : virtual void Process_XmlFormat_EndTag(
67 : const Tok_XmlFormat_EndTag &
68 : i_rToken ) = 0;
69 : virtual void Process_Word(
70 : const Tok_Word & i_rToken ) = 0;
71 : virtual void Process_Comma() = 0;
72 : virtual void Process_DocuEnd() = 0;
73 : virtual void Process_EOL() = 0;
74 : virtual void Process_White() = 0;
75 : };
76 :
77 :
78 :
79 : // IMPLEMENTATION
80 :
81 :
82 : } // namespace dsapi
83 : } // namespace csi
84 :
85 : #endif
86 :
87 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|