1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: pe_tydf2.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef LUIDL_PE_TYDF2_HXX
32 #define LUIDL_PE_TYDF2_HXX
38 #include <s2_luidl/parsenv2.hxx>
39 #include <s2_luidl/pestate.hxx>
54 class PE_Typedef
: public UnoIDL_PE
,
59 virtual void EstablishContacts(
60 UnoIDL_PE
* io_pParentPE
,
61 ary::Repository
& io_rRepository
,
62 TokenProcessing_Result
&
66 virtual void ProcessToken(
67 const Token
& i_rToken
);
69 virtual void Process_Identifier(
72 virtual void Process_Punctuation(
73 const TokPunctuation
&
75 virtual void Process_Default();
86 enum E_TokenType
/// @ATTENTION Do not change existing values (except of tt_MAX) !!! Else array-indices will break.
93 typedef void (PE_Typedef::*F_TOK
)(const char *);
97 const char * i_sTokenText
,
98 E_TokenType i_eTokenType
);
100 void On_expect_description_Any(const char * i_sText
);
101 void On_expect_name_Identifier(const char * i_sText
);
102 void On_got_name_Punctuation(const char * i_sText
);
103 void On_Default(const char * );
105 virtual void InitData();
106 virtual void ReceiveData();
107 virtual void TransferData();
108 virtual UnoIDL_PE
& MyPE();
111 static F_TOK aDispatcher
[e_STATES_MAX
][tt_MAX
];
114 Dyn
<PE_Type
> pPE_Type
;
115 ary::idl::Type_id nType
;