fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / parser_i / inc / s2_luidl / pe_file2.hxx
blob0ffd912a533cbb51a571096ae54fb4738572031d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef LUIDL_PE_FILE2_HXX
21 #define LUIDL_PE_FILE2_HXX
25 // USED SERVICES
26 // BASE CLASSES
27 #include <s2_luidl/parsenv2.hxx>
28 #include <s2_luidl/pestate.hxx>
29 // COMPONENTS
30 // PARAMETERS
33 namespace ary
35 namespace idl
37 class Module;
38 } // namespace idl
39 } // namespace ary
42 namespace csi
44 namespace uidl
47 class TokenDistributor;
48 class PE_Service;
49 class PE_Singleton;
50 class PE_Interface;
51 class PE_Struct;
52 class PE_Exception;
53 class PE_Constant;
54 class PE_Enum;
55 class PE_Typedef;
58 class PE_File : public UnoIDL_PE,
59 public ParseEnvState
61 public:
62 PE_File(
63 TokenDistributor & i_rTokenAdmin,
64 const ParserInfo & i_parseInfo );
65 virtual void EstablishContacts(
66 UnoIDL_PE * io_pParentPE,
67 ary::Repository & io_rRepository,
68 TokenProcessing_Result &
69 o_rResult );
70 ~PE_File();
72 virtual void ProcessToken(
73 const Token & i_rToken );
75 virtual void Process_Identifier(
76 const TokIdentifier &
77 i_rToken );
78 virtual void Process_Punctuation(
79 const TokPunctuation &
80 i_rToken );
81 virtual void Process_MetaType(
82 const TokMetaType & i_rToken );
83 virtual void Process_Stereotype(
84 const TokStereotype &
85 i_rToken );
86 virtual void Process_Default();
88 private:
89 enum E_State
91 e_none,
92 e_std,
93 wait_for_module,
94 wait_for_module_bracket,
95 wait_for_module_semicolon,
96 in_sub_pe,
97 on_default
100 virtual void InitData();
101 virtual void TransferData();
102 virtual void ReceiveData();
103 virtual UnoIDL_PE & MyPE();
104 virtual const ary::idl::Module &
105 CurNamespace() const;
106 virtual const ParserInfo &
107 ParseInfo() const;
108 // DATA
109 TokenDistributor * pTokenAdmin;
110 Dyn<PE_Service> pPE_Service;
111 Dyn<PE_Singleton> pPE_Singleton;
112 Dyn<PE_Interface> pPE_Interface;
113 Dyn<PE_Struct> pPE_Struct;
114 Dyn<PE_Exception> pPE_Exception;
115 Dyn<PE_Constant> pPE_Constant;
116 Dyn<PE_Enum> pPE_Enum;
117 Dyn<PE_Typedef> pPE_Typedef;
119 const ary::idl::Module *
120 pCurNamespace;
121 const ParserInfo * pParseInfo;
123 E_State eState;
124 uintt nBracketCount_inDefMode;
128 } // namespace uidl
129 } // namespace csi
131 #endif
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */