update credits
[LibreOffice.git] / autodoc / source / ary / idl / i_sisingleton.cxx
blob3338ceeb8f7ca01067c60ab522e04a1bdc9d861a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #include <precomp.h>
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>
30 namespace ary
32 namespace idl
35 SglIfcSingleton::SglIfcSingleton( const String & i_sName,
36 Ce_id i_nOwner,
37 Type_id i_nBaseInterface )
38 : sName(i_sName),
39 nOwner(i_nOwner),
40 nBaseInterface(i_nBaseInterface)
44 SglIfcSingleton::~SglIfcSingleton()
48 void
49 SglIfcSingleton::do_Accept( csv::ProcessorIfc & io_processor ) const
51 csv::CheckedCall(io_processor, *this);
54 ClassId
55 SglIfcSingleton::get_AryClass() const
57 return class_id;
60 const String &
61 SglIfcSingleton::inq_LocalName() const
63 return sName;
66 Ce_id
67 SglIfcSingleton::inq_NameRoom() const
69 return nOwner;
72 Ce_id
73 SglIfcSingleton::inq_Owner() const
75 return nOwner;
78 E_SightLevel
79 SglIfcSingleton::inq_SightLevel() const
81 return sl_File;
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);
94 Type_id
95 attr::BaseInterface( const CodeEntity & i_ce )
97 return sglifcsingleton_cast(i_ce).nBaseInterface;
101 } // namespace ifc_sglifcsingleton
104 } // namespace idl
105 } // namespace ary
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */