fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / autodoc / source / parser_i / inc / s2_luidl / pe_tydf2.hxx
blobb79578606a1ce9270a473295d30ffdc3f8b8605a
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_TYDF2_HXX
21 #define LUIDL_PE_TYDF2_HXX
25 // USED SERVICES
26 // BASE CLASSES
27 #include <s2_luidl/parsenv2.hxx>
28 #include <s2_luidl/pestate.hxx>
29 // COMPONENTS
30 // PARAMETERS
35 namespace csi
37 namespace uidl
40 class PE_Type;
43 class PE_Typedef : public UnoIDL_PE,
44 public ParseEnvState
46 public:
47 PE_Typedef();
48 virtual void EstablishContacts(
49 UnoIDL_PE * io_pParentPE,
50 ary::Repository & io_rRepository,
51 TokenProcessing_Result &
52 o_rResult );
53 ~PE_Typedef();
55 virtual void ProcessToken(
56 const Token & i_rToken );
58 virtual void Process_Identifier(
59 const TokIdentifier &
60 i_rToken );
61 virtual void Process_Punctuation(
62 const TokPunctuation &
63 i_rToken );
64 virtual void Process_Default();
66 private:
67 enum E_State
69 e_none = 0,
70 expect_description,
71 expect_name,
72 got_name,
73 e_STATES_MAX
75 enum E_TokenType /// @ATTENTION Do not change existing values (except of tt_MAX) !!! Else array-indices will break.
77 tt_any = 0,
78 tt_identifier,
79 tt_punctuation,
80 tt_MAX
82 typedef void (PE_Typedef::*F_TOK)(const char *);
85 void CallHandler(
86 const char * i_sTokenText,
87 E_TokenType i_eTokenType );
89 void On_expect_description_Any(const char * i_sText);
90 void On_expect_name_Identifier(const char * i_sText);
91 void On_got_name_Punctuation(const char * i_sText);
92 void On_Default(const char * );
94 virtual void InitData();
95 virtual void ReceiveData();
96 virtual void TransferData();
97 virtual UnoIDL_PE & MyPE();
99 // DATA
100 static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
102 E_State eState;
103 Dyn<PE_Type> pPE_Type;
104 ary::idl::Type_id nType;
105 String sName;
110 } // namespace uidl
111 } // namespace csi
115 #endif
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */