xref: /aoo41x/main/autodoc/source/ary/cpp/c_tydef.cxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #include <precomp.h>
29 #include <ary/cpp/c_tydef.hxx>
30 
31 
32 // NOT FULLY DECLARED SERVICES
33 #include <slots.hxx>
34 #include "c_slots.hxx"
35 
36 
37 
38 
39 namespace ary
40 {
41 namespace cpp
42 {
43 
44 Typedef::Typedef( const String  &     i_sLocalName,
45                   Cid                 i_nOwner,
46                   E_Protection        i_eProtection,
47                   Lid                 i_nFile,
48                   Tid                 i_nDescribingType )
49     :   aEssentials( i_sLocalName,
50                      i_nOwner,
51                      i_nFile ),
52         nDescribingType(i_nDescribingType),
53         eProtection(i_eProtection)
54 {
55 }
56 
57 Typedef::~Typedef()
58 {
59 
60 }
61 
62 const String  &
63 Typedef::inq_LocalName() const
64 {
65 	return aEssentials.LocalName();
66 }
67 
68 Cid
69 Typedef::inq_Owner() const
70 {
71 	return aEssentials.Owner();
72 }
73 
74 Lid
75 Typedef::inq_Location() const
76 {
77 	return aEssentials.Location();
78 }
79 
80 void
81 Typedef::do_Accept(csv::ProcessorIfc & io_processor) const
82 {
83     csv::CheckedCall(io_processor,*this);
84 }
85 
86 ClassId
87 Typedef::get_AryClass() const
88 {
89 	return class_id;
90 }
91 
92 
93 }   // namespace cpp
94 }   // namespace ary
95