fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / parser_i / inc / s2_luidl / parsenv2.hxx
blob0db352ca66667af640a3d44e51a04a56115df72c
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_PARSENV2_HXX
21 #define LUIDL_PARSENV2_HXX
24 // USED SERVICES
25 // BASE CLASSES
26 #include <s2_luidl/tokproct.hxx>
27 // COMPONENTS
28 #include <s2_luidl/semnode.hxx>
29 // PARAMETERS
30 #include <ary/idl/i_types4idl.hxx>
31 #include <ary/idl/i_module.hxx>
35 class ParserInfo;
37 namespace ary
39 class Repository;
41 namespace doc
43 class OldIdlDocu;
46 namespace idl
48 class CodeEntity;
54 namespace csi
56 namespace uidl
60 class Token;
61 class SemanticNode;
64 class UnoIDL_PE : virtual protected TokenProcessing_Types
66 public:
67 virtual ~UnoIDL_PE();
69 virtual void EstablishContacts(
70 UnoIDL_PE * io_pParentPE,
71 ary::Repository &
72 io_rRepository,
73 TokenProcessing_Result &
74 o_rResult );
75 // virtual void EstablishContacts(
76 // UnoIDL_PE * io_pParentPE,
77 // ary::idl::Gate &
78 // io_rGate,
79 // TokenProcessing_Result &
80 // o_rResult );
81 virtual void Enter(
82 E_EnvStackAction i_eWayOfEntering );
83 virtual void Leave(
84 E_EnvStackAction i_eWayOfLeaving );
85 virtual void ProcessToken(
86 const Token & i_rToken ) = 0;
88 void SetDocu(
89 DYN ary::doc::OldIdlDocu *
90 let_dpDocu );
91 void SetPublished();
92 void SetOptional();
93 void PassDocuAt(
94 ary::idl::CodeEntity &
95 io_rCe );
97 UnoIDL_PE * Parent() const { return aMyNode.Parent(); }
99 void SetResult(
100 E_TokenDone i_eDone,
101 E_EnvStackAction i_eWhat2DoWithEnvStack,
102 UnoIDL_PE * i_pParseEnv2Push = 0 )
103 { aMyNode.SetTokenResult( i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push ); }
104 virtual const ary::idl::Module &
105 CurNamespace() const;
106 virtual const ParserInfo &
107 ParseInfo() const;
108 ary::idl::Gate & Gate() const { return aMyNode.AryGate(); }
109 TokenProcessing_Result &
110 TokenResult() const { return aMyNode.TokenResult(); }
111 DYN ary::doc::OldIdlDocu *
112 ReleaseDocu() { return pDocu.Release(); }
113 protected:
114 UnoIDL_PE();
115 ary::Repository & MyRepository() { csv_assert(pRepository != 0);
116 return *pRepository; }
117 private:
118 virtual void InitData();
119 virtual void TransferData() = 0;
120 virtual void ReceiveData();
122 SemanticNode aMyNode;
123 Dyn<ary::doc::OldIdlDocu>
124 pDocu;
125 ary::Repository * pRepository;
131 } // namespace uidl
132 } // namespace csi
133 #endif
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */