merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / parser_i / idoc / tk_docw2.cxx
blobd882ff25afc83ddf0e9891eb1df9a2de430f8baa
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: tk_docw2.cxx,v $
10 * $Revision: 1.6 $
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 #include <precomp.h>
32 #include <s2_dsapi/tk_docw2.hxx>
35 // NOT FULLY DEFINED SERVICES
36 #include <s2_dsapi/tokintpr.hxx>
40 namespace csi
42 namespace dsapi
45 void
46 Tok_Word::Trigger( TokenInterpreter & io_rInterpreter ) const
48 io_rInterpreter.Process_Word(*this);
51 const char *
52 Tok_Word::Text() const
54 return sText;
57 void
58 Tok_Comma::Trigger( TokenInterpreter & io_rInterpreter ) const
60 io_rInterpreter.Process_Comma();
63 const char *
64 Tok_Comma::Text() const
66 return ",";
69 void
70 Tok_DocuEnd::Trigger( TokenInterpreter & io_rInterpreter ) const
72 io_rInterpreter.Process_DocuEnd();
75 const char *
76 Tok_DocuEnd::Text() const
78 return "*/";
81 void
82 Tok_EOL::Trigger( TokenInterpreter & io_rInterpreter ) const
84 io_rInterpreter.Process_EOL();
87 const char *
88 Tok_EOL::Text() const
90 return "\r\n";
93 void
94 Tok_EOF::Trigger( TokenInterpreter & ) const
96 csv_assert(false);
99 const char *
100 Tok_EOF::Text() const
102 return "";
105 void
106 Tok_White::Trigger( TokenInterpreter & io_rInterpreter ) const
108 io_rInterpreter.Process_White();
111 const char *
112 Tok_White::Text() const
114 return " ";
120 } // namespace dsapi
121 } // namespace csi