merge the formfield patch from ooo-build
[ooovba.git] / autodoc / source / parser_i / idl / pestate.cxx
blob5538dd815420ff6e09cb361dcc7df960b73e764d
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.cxx,v $
10 * $Revision: 1.7 $
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 #include <precomp.h>
32 #include <s2_luidl/pestate.hxx>
35 // NOT FULLY DEFINED SERVICES
36 #include <ary/doc/d_oldidldocu.hxx>
37 #include <s2_luidl/parsenv2.hxx>
42 namespace csi
44 namespace uidl
47 void
48 ParseEnvState::Process_Identifier( const TokIdentifier & )
50 Process_Default();
53 void
54 ParseEnvState::Process_NameSeparator()
56 Process_Default();
59 void
60 ParseEnvState::Process_Punctuation( const TokPunctuation & )
62 Process_Default();
65 void
66 ParseEnvState::Process_BuiltInType( const TokBuiltInType & )
68 Process_Default();
71 void
72 ParseEnvState::Process_TypeModifier( const TokTypeModifier & )
74 Process_Default();
77 void
78 ParseEnvState::Process_MetaType( const TokMetaType & )
80 Process_Default();
83 void
84 ParseEnvState::Process_Stereotype( const TokStereotype & )
86 Process_Default();
89 void
90 ParseEnvState::Process_ParameterHandling( const TokParameterHandling & )
92 Process_Default();
95 void
96 ParseEnvState::Process_Raises()
98 Process_Default();
101 void
102 ParseEnvState::Process_Needs()
104 Process_Default();
107 void
108 ParseEnvState::Process_Observes()
110 Process_Default();
113 void
114 ParseEnvState::Process_Assignment( const TokAssignment & )
116 Process_Default();
119 void
120 ParseEnvState::Process_EOL()
122 MyPE().SetResult(done,stay);
126 void
127 ParseEnvState::On_SubPE_Left()
131 void
132 ParseEnvState::Process_Default()
134 if (bDefaultIsError)
135 MyPE().SetResult(not_done, pop_failure);
136 else // ignore:
137 MyPE().SetResult(done, stay);
141 } // namespace uidl
142 } // namespace csi