xref: /aoo41x/main/autodoc/source/ary/idl/it_ce.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 "it_ce.hxx"
30 
31 
32 // NOT FULLY DEFINED SERVICES
33 #include <cosv/tpl/processor.hxx>
34 #include <ary/idl/i_ce.hxx>
35 #include <ary/idl/i_gate.hxx>
36 #include <ary/idl/i_module.hxx>
37 #include <ary/idl/ip_ce.hxx>
38 
39 
40 
41 namespace ary
42 {
43 namespace idl
44 {
45 
46 
47 Ce_Type::Ce_Type( Ce_id                        i_relatedCe,
48                   const std::vector<Type_id> * i_templateParameters )
49     :   nRelatedCe(i_relatedCe),
50         pTemplateParameters(0)
51 {
52     if (i_templateParameters != 0)
53         pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
54 }
55 
56 Ce_Type::~Ce_Type()
57 {
58 }
59 
60 ClassId
61 Ce_Type::get_AryClass() const
62 {
63     return class_id;
64 }
65 
66 void
67 Ce_Type::do_Accept( csv::ProcessorIfc & io_processor ) const
68 {
69     csv::CheckedCall(io_processor, *this);
70 }
71 
72 void
73 Ce_Type::inq_Get_Text( StringVector &      o_module,
74                        String &            o_name,
75                        Ce_id &             o_nRelatedCe,
76                        int &               ,                // o_nSequenceCount
77                        const Gate &        i_rGate ) const
78 {
79     String sDummyMember;
80 
81     const CodeEntity &
82         rCe = i_rGate.Ces().Find_Ce(nRelatedCe);
83     i_rGate.Ces().Get_Text( o_module,
84                             o_name,
85                             sDummyMember,
86                             rCe );
87     o_nRelatedCe = nRelatedCe;
88 }
89 
90 const std::vector<Type_id> *
91 Ce_Type::inq_TemplateParameters() const
92 {
93     return pTemplateParameters.Ptr();
94 }
95 
96 
97 
98 
99 }   // namespace idl
100 }   // namespace ary
101