1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 ARY_IDL_I_CE_HXX
21 #define ARY_IDL_I_CE_HXX
24 #include <ary/entity.hxx>
26 #include <ary/doc/d_docu.hxx>
27 #include <ary/idl/i_ce2s.hxx>
28 #include <ary/idl/i_types4idl.hxx>
41 /** @resp Base class for all IDL code entities.
43 A @->CodeEntity is a namespace, type, data or function, which occures in
44 the parsed UNO IDL code and is described and/or commented within the
47 This is a storage base class, where more special classes are
50 class CodeEntity
: public ary::Entity
54 virtual ~CodeEntity();
59 Ce_id
CeId() const { return Ce_id(Id()); }
60 const String
& LocalName() const;
61 Ce_id
NameRoom() const;
63 E_SightLevel
SightLevel() const;
65 const ary::doc::Documentation
&
67 const Ce_2s
& Secondaries() const;
69 static const CodeEntity
&
75 Ce_2s
& Secondaries();
81 virtual const String
& inq_LocalName() const = 0;
82 virtual Ce_id
inq_NameRoom() const = 0;
83 virtual Ce_id
inq_Owner() const = 0;
84 virtual E_SightLevel
inq_SightLevel() const = 0;
87 ary::doc::Documentation
97 CodeEntity::LocalName() const
98 { return inq_LocalName(); }
101 CodeEntity::NameRoom() const
102 { return inq_NameRoom(); }
105 CodeEntity::Owner() const
106 { return inq_Owner(); }
109 CodeEntity::SightLevel() const
110 { return inq_SightLevel(); }
112 inline const ary::doc::Documentation
&
113 CodeEntity::Docu() const
117 CodeEntity::Set_Docu(DYN
ary::doc::Node
& pass_data
)
119 aDocu
.Set_Data(pass_data
);
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */