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 .
21 #include <ary/idl/i_sisingleton.hxx>
24 // NOT FULLY DECLARED SERVICES
25 #include <cosv/tpl/processor.hxx>
26 #include <ary/idl/ik_sisingleton.hxx>
35 SglIfcSingleton::SglIfcSingleton( const String
& i_sName
,
37 Type_id i_nBaseInterface
)
40 nBaseInterface(i_nBaseInterface
)
44 SglIfcSingleton::~SglIfcSingleton()
49 SglIfcSingleton::do_Accept( csv::ProcessorIfc
& io_processor
) const
51 csv::CheckedCall(io_processor
, *this);
55 SglIfcSingleton::get_AryClass() const
61 SglIfcSingleton::inq_LocalName() const
67 SglIfcSingleton::inq_NameRoom() const
73 SglIfcSingleton::inq_Owner() const
79 SglIfcSingleton::inq_SightLevel() const
84 namespace ifc_sglifcsingleton
87 inline const SglIfcSingleton
&
88 sglifcsingleton_cast( const CodeEntity
& i_ce
)
90 csv_assert( i_ce
.AryClass() == SglIfcSingleton::class_id
);
91 return static_cast< const SglIfcSingleton
& >(i_ce
);
95 attr::BaseInterface( const CodeEntity
& i_ce
)
97 return sglifcsingleton_cast(i_ce
).nBaseInterface
;
101 } // namespace ifc_sglifcsingleton
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */