xref: /AOO41X/main/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef DSAPI_TK_DOCW2_HXX
29 #define DSAPI_TK_DOCW2_HXX
30 
31 // USED SERVICES
32 	// BASE CLASSES
33 #include <s2_dsapi/dsapitok.hxx>
34 	// COMPONENTS
35 	// PARAMETERS
36 
37 namespace csi
38 {
39 namespace dsapi
40 {
41 
42 
43 class Tok_Word : public Token
44 {
45   public:
46 	// Spring and Fall
47 						Tok_Word(
48 							const char *		i_sText )
49 												:	sText(i_sText) {}
50 	// OPERATIONS
51 	virtual void		Trigger(
52 							TokenInterpreter &	io_rInterpreter ) const;
53 	// INQUIRY
54 	virtual const char*	Text() const;
55 
56   private:
57 	// DATA
58 	String 				sText;
59 };
60 
61 class Tok_Comma : public Token
62 {
63   public:
64 	// OPERATIONS
65 	virtual void		Trigger(
66 							TokenInterpreter &	io_rInterpreter ) const;
67 	// INQUIRY
68 	virtual const char*	Text() const;
69 };
70 
71 class Tok_DocuEnd : public Token
72 {
73   public:
74 	// Spring and Fall
75 	// OPERATIONS
76 	virtual void		Trigger(
77 							TokenInterpreter &	io_rInterpreter ) const;
78 	// INQUIRY
79 	virtual const char*	Text() const;
80 };
81 
82 class Tok_EOL : public Token
83 {
84   public:
85 	// Spring and Fall
86 	// OPERATIONS
87 	virtual void		Trigger(
88 							TokenInterpreter &	io_rInterpreter ) const;
89 	// INQUIRY
90 	virtual const char*	Text() const;
91 };
92 
93 class Tok_EOF : public Token
94 {
95   public:
96 	// Spring and Fall
97 	// OPERATIONS
98 	virtual void		Trigger(
99 							TokenInterpreter &	io_rInterpreter ) const;
100 	// INQUIRY
101 	virtual const char*	Text() const;
102 };
103 
104 class Tok_White : public Token
105 {
106   public:
107 	// OPERATIONS
108 	virtual void		Trigger(
109 							TokenInterpreter &	io_rInterpreter ) const;
110 	// INQUIRY
111 	virtual const char*	Text() const;
112 };
113 
114 
115 
116 }   // namespace dsapi
117 }   // namespace csi
118 
119 
120 #endif
121 
122