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 DSAPI_TK_DOCW2_HXX
21 : #define DSAPI_TK_DOCW2_HXX
22 :
23 : // USED SERVICES
24 : // BASE CLASSES
25 : #include <s2_dsapi/dsapitok.hxx>
26 : // COMPONENTS
27 : // PARAMETERS
28 :
29 : namespace csi
30 : {
31 : namespace dsapi
32 : {
33 :
34 :
35 1025458 : class Tok_Word : public Token
36 : {
37 : public:
38 : // Spring and Fall
39 512729 : Tok_Word(
40 : const char * i_sText )
41 512729 : : sText(i_sText) {}
42 : // OPERATIONS
43 : virtual void Trigger(
44 : TokenInterpreter & io_rInterpreter ) const;
45 : // INQUIRY
46 : virtual const char* Text() const;
47 :
48 : private:
49 : // DATA
50 : String sText;
51 : };
52 :
53 0 : class Tok_Comma : public Token
54 : {
55 : public:
56 : // OPERATIONS
57 : virtual void Trigger(
58 : TokenInterpreter & io_rInterpreter ) const;
59 : // INQUIRY
60 : virtual const char* Text() const;
61 : };
62 :
63 59721 : class Tok_DocuEnd : public Token
64 : {
65 : public:
66 : // Spring and Fall
67 : // OPERATIONS
68 : virtual void Trigger(
69 : TokenInterpreter & io_rInterpreter ) const;
70 : // INQUIRY
71 : virtual const char* Text() const;
72 : };
73 :
74 298719 : class Tok_EOL : public Token
75 : {
76 : public:
77 : // Spring and Fall
78 : // OPERATIONS
79 : virtual void Trigger(
80 : TokenInterpreter & io_rInterpreter ) const;
81 : // INQUIRY
82 : virtual const char* Text() const;
83 : };
84 :
85 0 : class Tok_EOF : public Token
86 : {
87 : public:
88 : // Spring and Fall
89 : // OPERATIONS
90 : virtual void Trigger(
91 : TokenInterpreter & io_rInterpreter ) const;
92 : // INQUIRY
93 : virtual const char* Text() const;
94 : };
95 :
96 1639836 : class Tok_White : public Token
97 : {
98 : public:
99 : // OPERATIONS
100 : virtual void Trigger(
101 : TokenInterpreter & io_rInterpreter ) const;
102 : // INQUIRY
103 : virtual const char* Text() const;
104 : };
105 :
106 :
107 :
108 : } // namespace dsapi
109 : } // namespace csi
110 :
111 :
112 : #endif
113 :
114 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|