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 #include <precomp.h>
29 #include <s2_luidl/pestate.hxx>
30 
31 
32 // NOT FULLY DEFINED SERVICES
33 #include <ary/doc/d_oldidldocu.hxx>
34 #include <s2_luidl/parsenv2.hxx>
35 
36 
37 
38 
39 namespace csi
40 {
41 namespace uidl
42 {
43 
44 void
45 ParseEnvState::Process_Identifier( const TokIdentifier & )
46 {
47 	Process_Default();
48 }
49 
50 void
51 ParseEnvState::Process_NameSeparator()
52 {
53 	Process_Default();
54 }
55 
56 void
57 ParseEnvState::Process_Punctuation( const TokPunctuation & )
58 {
59 	Process_Default();
60 }
61 
62 void
63 ParseEnvState::Process_BuiltInType( const TokBuiltInType & )
64 {
65 	Process_Default();
66 }
67 
68 void
69 ParseEnvState::Process_TypeModifier( const TokTypeModifier & )
70 {
71 	Process_Default();
72 }
73 
74 void
75 ParseEnvState::Process_MetaType( const TokMetaType &	)
76 {
77 	Process_Default();
78 }
79 
80 void
81 ParseEnvState::Process_Stereotype( const TokStereotype & )
82 {
83 	Process_Default();
84 }
85 
86 void
87 ParseEnvState::Process_ParameterHandling( const TokParameterHandling & )
88 {
89 	Process_Default();
90 }
91 
92 void
93 ParseEnvState::Process_Raises()
94 {
95 	Process_Default();
96 }
97 
98 void
99 ParseEnvState::Process_Needs()
100 {
101 	Process_Default();
102 }
103 
104 void
105 ParseEnvState::Process_Observes()
106 {
107 	Process_Default();
108 }
109 
110 void
111 ParseEnvState::Process_Assignment( const TokAssignment & )
112 {
113 	Process_Default();
114 }
115 
116 void
117 ParseEnvState::Process_EOL()
118 {
119 	MyPE().SetResult(done,stay);
120 }
121 
122 
123 void
124 ParseEnvState::On_SubPE_Left()
125 {
126 }
127 
128 void
129 ParseEnvState::Process_Default()
130 {
131 	if (bDefaultIsError)
132 		MyPE().SetResult(not_done, pop_failure);
133 	else	// ignore:
134 		MyPE().SetResult(done, stay);
135 }
136 
137 
138 }   // namespace uidl
139 }   // namespace csi
140 
141