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_PESTATE_HXX 29 #define ADC_PESTATE_HXX 30 31 32 33 // USED SERVICES 34 // BASE CLASSES 35 #include<s2_luidl/tokintpr.hxx> 36 #include<s2_luidl/tokproct.hxx> 37 // COMPONENTS 38 // PARAMETERS 39 40 namespace csi 41 { 42 namespace uidl 43 { 44 45 46 class TokIdentifier; 47 class TokBuiltInType; 48 class TokPunctuation; 49 class Tok_Documentation; 50 51 class ParseEnvState : public TokenInterpreter, 52 virtual protected TokenProcessing_Types 53 { 54 public: 55 virtual void Process_Identifier( 56 const TokIdentifier & 57 i_rToken ); 58 virtual void Process_NameSeparator(); 59 virtual void Process_Punctuation( 60 const TokPunctuation & 61 i_rToken ); 62 virtual void Process_BuiltInType( 63 const TokBuiltInType & 64 i_rToken ); 65 virtual void Process_TypeModifier( 66 const TokTypeModifier & 67 i_rToken ); 68 virtual void Process_MetaType( 69 const TokMetaType & i_rToken ); 70 virtual void Process_Stereotype( 71 const TokStereotype & 72 i_rToken ); 73 virtual void Process_ParameterHandling( 74 const TokParameterHandling & 75 i_rToken ); 76 virtual void Process_Raises(); 77 virtual void Process_Needs(); 78 virtual void Process_Observes(); 79 virtual void Process_Assignment( 80 const TokAssignment & 81 i_rToken ); 82 virtual void Process_EOL(); 83 84 virtual void On_SubPE_Left(); 85 86 virtual void Process_Default(); 87 88 protected: 89 ParseEnvState() : bDefaultIsError(true) {} 90 void SetDefault2Ignore() { bDefaultIsError = false; } 91 92 private: 93 virtual UnoIDL_PE & MyPE() = 0; 94 bool bDefaultIsError; 95 }; 96 97 98 99 // IMPLEMENTATION 100 101 102 } // namespace uidl 103 } // namespace csi 104 105 #endif 106 107