1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pestate.hxx,v $
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 #ifndef ADC_PESTATE_HXX
32 #define ADC_PESTATE_HXX
38 #include<s2_luidl/tokintpr.hxx>
39 #include<s2_luidl/tokproct.hxx>
52 class Tok_Documentation
;
54 class ParseEnvState
: public TokenInterpreter
,
55 virtual protected TokenProcessing_Types
58 virtual void Process_Identifier(
61 virtual void Process_NameSeparator();
62 virtual void Process_Punctuation(
63 const TokPunctuation
&
65 virtual void Process_BuiltInType(
66 const TokBuiltInType
&
68 virtual void Process_TypeModifier(
69 const TokTypeModifier
&
71 virtual void Process_MetaType(
72 const TokMetaType
& i_rToken
);
73 virtual void Process_Stereotype(
76 virtual void Process_ParameterHandling(
77 const TokParameterHandling
&
79 virtual void Process_Raises();
80 virtual void Process_Needs();
81 virtual void Process_Observes();
82 virtual void Process_Assignment(
85 virtual void Process_EOL();
87 virtual void On_SubPE_Left();
89 virtual void Process_Default();
92 ParseEnvState() : bDefaultIsError(true) {}
93 void SetDefault2Ignore() { bDefaultIsError
= false; }
96 virtual UnoIDL_PE
& MyPE() = 0;