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: i_ce.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 ARY_IDL_I_CE_HXX
32 #define ARY_IDL_I_CE_HXX
35 #include <ary/entity.hxx>
37 #include <ary/doc/d_docu.hxx>
38 #include <ary/idl/i_ce2s.hxx>
39 #include <ary/idl/i_types4idl.hxx>
52 /** @resp Base class for all IDL code entities.
54 A @->CodeEntity is a namespace, type, data or function, which occures in
55 the parsed UNO IDL code and is described and/or commented within the
58 This is a storage base class, where more special classes are
61 class CodeEntity
: public ary::Entity
65 virtual ~CodeEntity();
70 Ce_id
CeId() const { return Ce_id(Id()); }
71 const String
& LocalName() const;
72 Ce_id
NameRoom() const;
74 E_SightLevel
SightLevel() const;
76 const ary::doc::Documentation
&
78 const Ce_2s
& Secondaries() const;
80 static const CodeEntity
&
86 Ce_2s
& Secondaries();
92 virtual const String
& inq_LocalName() const = 0;
93 virtual Ce_id
inq_NameRoom() const = 0;
94 virtual Ce_id
inq_Owner() const = 0;
95 virtual E_SightLevel
inq_SightLevel() const = 0;
98 ary::doc::Documentation
107 inline const String
&
108 CodeEntity::LocalName() const
109 { return inq_LocalName(); }
112 CodeEntity::NameRoom() const
113 { return inq_NameRoom(); }
116 CodeEntity::Owner() const
117 { return inq_Owner(); }
120 CodeEntity::SightLevel() const
121 { return inq_SightLevel(); }
123 inline const ary::doc::Documentation
&
124 CodeEntity::Docu() const
128 CodeEntity::Set_Docu(DYN
ary::doc::Node
& pass_data
)
130 aDocu
.Set_Data(pass_data
);