Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <precomp.h>
21 : #include <s2_luidl/pestate.hxx>
22 :
23 :
24 : // NOT FULLY DEFINED SERVICES
25 : #include <ary/doc/d_oldidldocu.hxx>
26 : #include <s2_luidl/parsenv2.hxx>
27 :
28 :
29 :
30 :
31 : namespace csi
32 : {
33 : namespace uidl
34 : {
35 :
36 : void
37 539 : ParseEnvState::Process_Identifier( const TokIdentifier & )
38 : {
39 539 : Process_Default();
40 539 : }
41 :
42 : void
43 1642 : ParseEnvState::Process_NameSeparator()
44 : {
45 1642 : Process_Default();
46 1642 : }
47 :
48 : void
49 0 : ParseEnvState::Process_Punctuation( const TokPunctuation & )
50 : {
51 0 : Process_Default();
52 0 : }
53 :
54 : void
55 3895 : ParseEnvState::Process_BuiltInType( const TokBuiltInType & )
56 : {
57 3895 : Process_Default();
58 3895 : }
59 :
60 : void
61 1680 : ParseEnvState::Process_TypeModifier( const TokTypeModifier & )
62 : {
63 1680 : Process_Default();
64 1680 : }
65 :
66 : void
67 0 : ParseEnvState::Process_MetaType( const TokMetaType & )
68 : {
69 0 : Process_Default();
70 0 : }
71 :
72 : void
73 0 : ParseEnvState::Process_Stereotype( const TokStereotype & )
74 : {
75 0 : Process_Default();
76 0 : }
77 :
78 : void
79 0 : ParseEnvState::Process_ParameterHandling( const TokParameterHandling & )
80 : {
81 0 : Process_Default();
82 0 : }
83 :
84 : void
85 0 : ParseEnvState::Process_Raises()
86 : {
87 0 : Process_Default();
88 0 : }
89 :
90 : void
91 0 : ParseEnvState::Process_Needs()
92 : {
93 0 : Process_Default();
94 0 : }
95 :
96 : void
97 0 : ParseEnvState::Process_Observes()
98 : {
99 0 : Process_Default();
100 0 : }
101 :
102 : void
103 0 : ParseEnvState::Process_Assignment( const TokAssignment & )
104 : {
105 0 : Process_Default();
106 0 : }
107 :
108 : void
109 135308 : ParseEnvState::Process_EOL()
110 : {
111 135308 : MyPE().SetResult(done,stay);
112 135308 : }
113 :
114 :
115 : void
116 1483 : ParseEnvState::On_SubPE_Left()
117 : {
118 1483 : }
119 :
120 : void
121 1 : ParseEnvState::Process_Default()
122 : {
123 1 : if (bDefaultIsError)
124 1 : MyPE().SetResult(not_done, pop_failure);
125 : else // ignore:
126 0 : MyPE().SetResult(done, stay);
127 1 : }
128 :
129 :
130 : } // namespace uidl
131 3 : } // namespace csi
132 :
133 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|