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 ADC_CPP_CX_C_SUB_HXX 29 #define ADC_CPP_CX_C_SUB_HXX 30 31 // USED SERVICES 32 // BASE CLASSES 33 #include <tokens/tkpcontx.hxx> 34 #include "cx_base.hxx" 35 // COMPONENTS 36 // PARAMETERS 37 38 39 namespace cpp { 40 41 42 class Context_Comment : public Cx_Base 43 { 44 public: 45 Context_Comment( 46 TkpContext & i_rFollowUpContext ) 47 : Cx_Base(&i_rFollowUpContext) {} 48 virtual void ReadCharChain( 49 CharacterSource & io_rText ); 50 void SetMode_IsMultiLine( 51 bool i_bTrue ) 52 { bCurrentModeIsMultiline = i_bTrue; } 53 private: 54 bool bCurrentModeIsMultiline; 55 }; 56 57 class Context_ConstString : public Cx_Base 58 { 59 public: 60 Context_ConstString( 61 TkpContext & i_rFollowUpContext ) 62 : Cx_Base(&i_rFollowUpContext) {} 63 virtual void ReadCharChain( 64 CharacterSource & io_rText ); 65 }; 66 67 class Context_ConstChar : public Cx_Base 68 { 69 public: 70 Context_ConstChar( 71 TkpContext & i_rFollowUpContext ) 72 : Cx_Base(&i_rFollowUpContext) {} 73 virtual void ReadCharChain( 74 CharacterSource & io_rText ); 75 }; 76 77 class Context_ConstNumeric : public Cx_Base 78 { 79 public: 80 Context_ConstNumeric( 81 TkpContext & i_rFollowUpContext ) 82 : Cx_Base(&i_rFollowUpContext) {} 83 virtual void ReadCharChain( 84 CharacterSource & io_rText ); 85 }; 86 87 class Context_UnblockMacro : public Cx_Base 88 { 89 public: 90 Context_UnblockMacro( 91 TkpContext & i_rFollowUpContext ) 92 : Cx_Base(&i_rFollowUpContext) {} 93 virtual void ReadCharChain( 94 CharacterSource & io_rText ); 95 }; 96 97 98 99 } // namespace cpp 100 101 102 #endif 103 104