Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / pestate.hxx
blob946c0739316258fd1cd406a5084c583e1e2341ec
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: pestate.hxx,v $
10 * $Revision: 1.3 $
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
36 // USED SERVICES
37 // BASE CLASSES
38 #include<s2_luidl/tokintpr.hxx>
39 #include<s2_luidl/tokproct.hxx>
40 // COMPONENTS
41 // PARAMETERS
43 namespace csi
45 namespace uidl
49 class TokIdentifier;
50 class TokBuiltInType;
51 class TokPunctuation;
52 class Tok_Documentation;
54 class ParseEnvState : public TokenInterpreter,
55 virtual protected TokenProcessing_Types
57 public:
58 virtual void Process_Identifier(
59 const TokIdentifier &
60 i_rToken );
61 virtual void Process_NameSeparator();
62 virtual void Process_Punctuation(
63 const TokPunctuation &
64 i_rToken );
65 virtual void Process_BuiltInType(
66 const TokBuiltInType &
67 i_rToken );
68 virtual void Process_TypeModifier(
69 const TokTypeModifier &
70 i_rToken );
71 virtual void Process_MetaType(
72 const TokMetaType & i_rToken );
73 virtual void Process_Stereotype(
74 const TokStereotype &
75 i_rToken );
76 virtual void Process_ParameterHandling(
77 const TokParameterHandling &
78 i_rToken );
79 virtual void Process_Raises();
80 virtual void Process_Needs();
81 virtual void Process_Observes();
82 virtual void Process_Assignment(
83 const TokAssignment &
84 i_rToken );
85 virtual void Process_EOL();
87 virtual void On_SubPE_Left();
89 virtual void Process_Default();
91 protected:
92 ParseEnvState() : bDefaultIsError(true) {}
93 void SetDefault2Ignore() { bDefaultIsError = false; }
95 private:
96 virtual UnoIDL_PE & MyPE() = 0;
97 bool bDefaultIsError;
102 // IMPLEMENTATION
105 } // namespace uidl
106 } // namespace csi
108 #endif