1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #include <precomp.h> 23 #include <s2_dsapi/tk_docw2.hxx> 24 25 26 // NOT FULLY DEFINED SERVICES 27 #include <s2_dsapi/tokintpr.hxx> 28 29 30 31 namespace csi 32 { 33 namespace dsapi 34 { 35 36 void Trigger(TokenInterpreter & io_rInterpreter) const37Tok_Word::Trigger( TokenInterpreter & io_rInterpreter ) const 38 { 39 io_rInterpreter.Process_Word(*this); 40 } 41 42 const char * Text() const43Tok_Word::Text() const 44 { 45 return sText; 46 } 47 48 void Trigger(TokenInterpreter & io_rInterpreter) const49Tok_Comma::Trigger( TokenInterpreter & io_rInterpreter ) const 50 { 51 io_rInterpreter.Process_Comma(); 52 } 53 54 const char * Text() const55Tok_Comma::Text() const 56 { 57 return ","; 58 } 59 60 void Trigger(TokenInterpreter & io_rInterpreter) const61Tok_DocuEnd::Trigger( TokenInterpreter & io_rInterpreter ) const 62 { 63 io_rInterpreter.Process_DocuEnd(); 64 } 65 66 const char * Text() const67Tok_DocuEnd::Text() const 68 { 69 return "*/"; 70 } 71 72 void Trigger(TokenInterpreter & io_rInterpreter) const73Tok_EOL::Trigger( TokenInterpreter & io_rInterpreter ) const 74 { 75 io_rInterpreter.Process_EOL(); 76 } 77 78 const char * Text() const79Tok_EOL::Text() const 80 { 81 return "\r\n"; 82 } 83 84 void Trigger(TokenInterpreter &) const85Tok_EOF::Trigger( TokenInterpreter & ) const 86 { 87 csv_assert(false); 88 } 89 90 const char * Text() const91Tok_EOF::Text() const 92 { 93 return ""; 94 } 95 96 void Trigger(TokenInterpreter & io_rInterpreter) const97Tok_White::Trigger( TokenInterpreter & io_rInterpreter ) const 98 { 99 io_rInterpreter.Process_White(); 100 } 101 102 const char * Text() const103Tok_White::Text() const 104 { 105 return " "; 106 } 107 108 109 110 111 } // namespace dsapi 112 } // namespace csi 113 114