Bump for 3.6-28
[LibreOffice.git] / autodoc / source / ary / idl / i_property.cxx
blob9b13870e98f36dfc14091673257fce5c74fe0dcd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include <precomp.h>
30 #include <ary/idl/i_property.hxx>
31 #include <ary/idl/ik_property.hxx>
34 // NOT FULLY DECLARED SERVICES
35 #include <cosv/tpl/processor.hxx>
38 namespace ary
40 namespace idl
44 Property::Property( const String & i_sName,
45 Ce_id i_nService,
46 Ce_id i_nModule,
47 Type_id i_nType,
48 Stereotypes i_stereotypes )
49 : sName(i_sName),
50 nOwner(i_nService),
51 nNameRoom(i_nModule),
52 nType(i_nType),
53 aStereotypes(i_stereotypes)
57 Property::~Property()
62 void
63 Property::do_Accept( csv::ProcessorIfc & io_processor ) const
65 csv::CheckedCall(io_processor, *this);
68 ClassId
69 Property::get_AryClass() const
71 return class_id;
74 const String &
75 Property::inq_LocalName() const
77 return sName;
80 Ce_id
81 Property::inq_NameRoom() const
83 return nNameRoom;
86 Ce_id
87 Property::inq_Owner() const
89 return nOwner;
92 E_SightLevel
93 Property::inq_SightLevel() const
95 return sl_Member;
98 namespace ifc_property
101 inline const Property &
102 property_cast( const CodeEntity & i_ce )
104 csv_assert( i_ce.AryClass() == Property::class_id );
105 return static_cast< const Property& >(i_ce);
108 bool
109 attr::HasAnyStereotype( const CodeEntity & i_ce )
111 return property_cast(i_ce).aStereotypes.HasAny();
114 bool
115 attr::IsReadOnly( const CodeEntity & i_ce )
117 return property_cast(i_ce).aStereotypes.IsReadOnly();
120 bool
121 attr::IsBound( const CodeEntity & i_ce )
123 return property_cast(i_ce).aStereotypes.IsBound();
126 bool
127 attr::IsConstrained( const CodeEntity & i_ce )
129 return property_cast(i_ce).aStereotypes.IsConstrained();
132 bool
133 attr::IsMayBeAmbiguous( const CodeEntity & i_ce )
135 return property_cast(i_ce).aStereotypes.IsMayBeAmbiguous();
138 bool
139 attr::IsMayBeDefault( const CodeEntity & i_ce )
141 return property_cast(i_ce).aStereotypes.IsMayBeDefault();
144 bool
145 attr::IsMayBeVoid( const CodeEntity & i_ce )
147 return property_cast(i_ce).aStereotypes.IsMayBeVoid();
150 bool
151 attr::IsRemovable( const CodeEntity & i_ce )
153 return property_cast(i_ce).aStereotypes.IsRemovable();
156 bool
157 attr::IsTransient( const CodeEntity & i_ce )
159 return property_cast(i_ce).aStereotypes.IsTransient();
162 Type_id
163 attr::Type( const CodeEntity & i_ce )
165 return property_cast(i_ce).nType;
168 } // namespace ifc_property
171 } // namespace idl
172 } // namespace ary
174 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */