1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #include <precomp.h>
29*cdf0e10cSrcweir #include "hi_main.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
33*cdf0e10cSrcweir #include <algorithm>
34*cdf0e10cSrcweir #include <cosv/ploc.hxx>
35*cdf0e10cSrcweir #include <cosv/file.hxx>
36*cdf0e10cSrcweir #include <ary/idl/i_ce.hxx>
37*cdf0e10cSrcweir #include <ary/idl/ik_ce.hxx>
38*cdf0e10cSrcweir #include <ary/idl/ik_enum.hxx>
39*cdf0e10cSrcweir #include <ary/idl/ik_typedef.hxx>
40*cdf0e10cSrcweir #include <ary/idl/ik_interface.hxx>
41*cdf0e10cSrcweir #include <ary/idl/ik_struct.hxx>
42*cdf0e10cSrcweir #include <ary/idl/ik_exception.hxx>
43*cdf0e10cSrcweir #include <ary/idl/i_constant.hxx>
44*cdf0e10cSrcweir #include <ary/idl/i_constgroup.hxx>
45*cdf0e10cSrcweir #include <ary/idl/i_enum.hxx>
46*cdf0e10cSrcweir #include <ary/idl/i_singleton.hxx>
47*cdf0e10cSrcweir #include <ary/idl/i_sisingleton.hxx>
48*cdf0e10cSrcweir #include <ary/idl/i_exception.hxx>
49*cdf0e10cSrcweir #include <ary/idl/i_interface.hxx>
50*cdf0e10cSrcweir #include <ary/idl/i_service.hxx>
51*cdf0e10cSrcweir #include <ary/idl/i_siservice.hxx>
52*cdf0e10cSrcweir #include <ary/idl/i_struct.hxx>
53*cdf0e10cSrcweir #include <ary/idl/i_typedef.hxx>
54*cdf0e10cSrcweir #include <ary/idl/i_module.hxx>
55*cdf0e10cSrcweir #include <cfrstd.hxx>
56*cdf0e10cSrcweir #include <toolkit/htmlfile.hxx>
57*cdf0e10cSrcweir #include <toolkit/out_position.hxx>
58*cdf0e10cSrcweir #include <toolkit/out_tree.hxx>
59*cdf0e10cSrcweir #include "hfi_constgroup.hxx"
60*cdf0e10cSrcweir #include "hfi_enum.hxx"
61*cdf0e10cSrcweir #include "hfi_globalindex.hxx"
62*cdf0e10cSrcweir #include "hfi_interface.hxx"
63*cdf0e10cSrcweir #include "hfi_module.hxx"
64*cdf0e10cSrcweir #include "hfi_struct.hxx"
65*cdf0e10cSrcweir #include "hfi_service.hxx"
66*cdf0e10cSrcweir #include "hfi_singleton.hxx"
67*cdf0e10cSrcweir #include "hfi_siservice.hxx"
68*cdf0e10cSrcweir #include "hfi_typedef.hxx"
69*cdf0e10cSrcweir #include "hfi_xrefpage.hxx"
70*cdf0e10cSrcweir #include "hi_env.hxx"
71*cdf0e10cSrcweir #include "hi_linkhelper.hxx"
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir using       ::ary::idl::Ce_id;
75*cdf0e10cSrcweir using       ::ary::idl::Type_id;
76*cdf0e10cSrcweir using       ::ary::idl::ifc_ce::Dyn_CeIterator;
77*cdf0e10cSrcweir 
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir 
80*cdf0e10cSrcweir extern const String C_sCssFilename_Idl("idl.css");
81*cdf0e10cSrcweir 
82*cdf0e10cSrcweir /*
83*cdf0e10cSrcweir typedef     ::ary::Dyn_StdConstIterator< ::ary::idl::CommentedRelation>
84*cdf0e10cSrcweir             Dyn_ComRefIterator;
85*cdf0e10cSrcweir namespace   read_module     = ::ary::idl::ifc_module;
86*cdf0e10cSrcweir namespace   read_interface  = ::ary::idl::ifc_interface;
87*cdf0e10cSrcweir namespace   read_service    = ::ary::idl::ifc_service;
88*cdf0e10cSrcweir namespace   read_struct     = ::ary::idl::ifc_struct;
89*cdf0e10cSrcweir namespace   read_exception  = ::ary::idl::ifc_exception;
90*cdf0e10cSrcweir namespace   read_enum       = ::ary::idl::ifc_enum;
91*cdf0e10cSrcweir namespace   read_typedef    = ::ary::idl::ifc_typedef;
92*cdf0e10cSrcweir namespace   read_constgroup = ::ary::idl::ifc_constantsgroup;
93*cdf0e10cSrcweir */
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir namespace
96*cdf0e10cSrcweir {
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir /** @resp
99*cdf0e10cSrcweir     Inits (constructor) and creates (destructor) the current
100*cdf0e10cSrcweir     html documentation file ( MainDisplay_Idl.pMyFile ).
101*cdf0e10cSrcweir */
102*cdf0e10cSrcweir class Guard_CurFile
103*cdf0e10cSrcweir {
104*cdf0e10cSrcweir   public:
105*cdf0e10cSrcweir                         Guard_CurFile(          /// For CodeEntities
106*cdf0e10cSrcweir                             DocuFile_Html &     io_client,
107*cdf0e10cSrcweir                             HtmlEnvironment_Idl &
108*cdf0e10cSrcweir                                                 io_env,
109*cdf0e10cSrcweir                             const ary::idl::CodeEntity &
110*cdf0e10cSrcweir                                                 i_ce,
111*cdf0e10cSrcweir                             const String &      i_titlePrefix );
112*cdf0e10cSrcweir                         Guard_CurFile(          /// For Use pages
113*cdf0e10cSrcweir                             DocuFile_Html &     io_client,
114*cdf0e10cSrcweir                             HtmlEnvironment_Idl &
115*cdf0e10cSrcweir                                                 io_env,
116*cdf0e10cSrcweir                             const String &      i_fileName,
117*cdf0e10cSrcweir                             const String &      i_titlePrefix );
118*cdf0e10cSrcweir                         Guard_CurFile(          /// For Modules
119*cdf0e10cSrcweir                             DocuFile_Html &     io_client,
120*cdf0e10cSrcweir                             HtmlEnvironment_Idl &
121*cdf0e10cSrcweir                                                 io_env,
122*cdf0e10cSrcweir                             const ary::idl::CodeEntity &
123*cdf0e10cSrcweir                                                 i_ce );
124*cdf0e10cSrcweir                         Guard_CurFile(          /// For Indices
125*cdf0e10cSrcweir                             DocuFile_Html &     io_client,
126*cdf0e10cSrcweir                             HtmlEnvironment_Idl &
127*cdf0e10cSrcweir                                                 io_env,
128*cdf0e10cSrcweir                             char                i_letter );
129*cdf0e10cSrcweir                         ~Guard_CurFile();
130*cdf0e10cSrcweir   private:
131*cdf0e10cSrcweir     DocuFile_Html &     rClient;
132*cdf0e10cSrcweir     HtmlEnvironment_Idl &
133*cdf0e10cSrcweir                         rEnv;
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir };
136*cdf0e10cSrcweir 
137*cdf0e10cSrcweir /** @resp
138*cdf0e10cSrcweir     Sets and releases the current factory pointer
139*cdf0e10cSrcweir     ( MainDisplay_Idl.pCurFactory ).
140*cdf0e10cSrcweir */
141*cdf0e10cSrcweir class Guard_CurFactoryPtr
142*cdf0e10cSrcweir {
143*cdf0e10cSrcweir   public:
144*cdf0e10cSrcweir                         Guard_CurFactoryPtr(
145*cdf0e10cSrcweir                             HtmlFactory_Idl *&  io_client,
146*cdf0e10cSrcweir                             HtmlFactory_Idl &   i_factory )
147*cdf0e10cSrcweir                             :   rpClient(io_client)
148*cdf0e10cSrcweir                         { rpClient = &i_factory; }
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir                         ~Guard_CurFactoryPtr()
151*cdf0e10cSrcweir                         { rpClient = 0; }
152*cdf0e10cSrcweir 
153*cdf0e10cSrcweir   private:
154*cdf0e10cSrcweir     HtmlFactory_Idl *&  rpClient;
155*cdf0e10cSrcweir 
156*cdf0e10cSrcweir };
157*cdf0e10cSrcweir 
158*cdf0e10cSrcweir 
159*cdf0e10cSrcweir Guard_CurFile::Guard_CurFile( DocuFile_Html &               io_client,
160*cdf0e10cSrcweir                               HtmlEnvironment_Idl &         io_env,
161*cdf0e10cSrcweir                               const ary::idl::CodeEntity &  i_ce,
162*cdf0e10cSrcweir                               const String &                i_titlePrefix )
163*cdf0e10cSrcweir     :   rClient(io_client),
164*cdf0e10cSrcweir         rEnv(io_env)
165*cdf0e10cSrcweir {   // For Ces
166*cdf0e10cSrcweir     StreamLock sl(300);
167*cdf0e10cSrcweir     io_env.Set_CurFile( sl()    << i_ce.LocalName()
168*cdf0e10cSrcweir                                 << ".html"
169*cdf0e10cSrcweir                                 << c_str );
170*cdf0e10cSrcweir     StreamLock aCurFilePath(700);
171*cdf0e10cSrcweir     io_env.Get_CurFilePath(aCurFilePath());
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir     rClient.EmptyBody();
174*cdf0e10cSrcweir     csv::ploc::Path
175*cdf0e10cSrcweir         aLocation(aCurFilePath().c_str());
176*cdf0e10cSrcweir     rClient.SetLocation(aLocation);
177*cdf0e10cSrcweir     sl().reset();
178*cdf0e10cSrcweir     rClient.SetTitle( sl()  << i_titlePrefix
179*cdf0e10cSrcweir                             << " "
180*cdf0e10cSrcweir                             << i_ce.LocalName()
181*cdf0e10cSrcweir                             << c_str );
182*cdf0e10cSrcweir     sl().reset();
183*cdf0e10cSrcweir     rClient.SetRelativeCssPath(
184*cdf0e10cSrcweir                       sl()  << io_env.CurPosition().LinkToRoot()
185*cdf0e10cSrcweir                             << C_sCssFilename_Idl
186*cdf0e10cSrcweir                             << c_str );
187*cdf0e10cSrcweir 
188*cdf0e10cSrcweir     io_env.Set_CurPageCe(&i_ce);
189*cdf0e10cSrcweir }
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir Guard_CurFile::Guard_CurFile( DocuFile_Html &       io_client,
192*cdf0e10cSrcweir                               HtmlEnvironment_Idl & io_env,
193*cdf0e10cSrcweir                               const String &        i_fileName,
194*cdf0e10cSrcweir                               const String &        i_titlePrefix )
195*cdf0e10cSrcweir     :   rClient(io_client),
196*cdf0e10cSrcweir         rEnv(io_env)
197*cdf0e10cSrcweir {   // For Use pages
198*cdf0e10cSrcweir     StreamLock sl(300);
199*cdf0e10cSrcweir     io_env.Set_CurFile( sl()    << i_fileName
200*cdf0e10cSrcweir                                 << ".html"
201*cdf0e10cSrcweir                                 << c_str );
202*cdf0e10cSrcweir     StreamLock aCurFilePath(700);
203*cdf0e10cSrcweir     io_env.Get_CurFilePath(aCurFilePath());
204*cdf0e10cSrcweir     csv::ploc::Path
205*cdf0e10cSrcweir         aLocation(aCurFilePath().c_str());
206*cdf0e10cSrcweir 
207*cdf0e10cSrcweir     rClient.EmptyBody();
208*cdf0e10cSrcweir     rClient.SetLocation(aLocation);
209*cdf0e10cSrcweir     sl().reset();
210*cdf0e10cSrcweir     rClient.SetTitle( sl() << i_titlePrefix << " " << i_fileName << c_str );
211*cdf0e10cSrcweir     sl().reset();
212*cdf0e10cSrcweir     rClient.SetRelativeCssPath(
213*cdf0e10cSrcweir                       sl()  << io_env.CurPosition().LinkToRoot()
214*cdf0e10cSrcweir                             << C_sCssFilename_Idl
215*cdf0e10cSrcweir                             << c_str );
216*cdf0e10cSrcweir 
217*cdf0e10cSrcweir     io_env.Set_CurPageCe(0);
218*cdf0e10cSrcweir }
219*cdf0e10cSrcweir 
220*cdf0e10cSrcweir Guard_CurFile::Guard_CurFile( DocuFile_Html &               io_client,
221*cdf0e10cSrcweir                               HtmlEnvironment_Idl &         io_env,
222*cdf0e10cSrcweir                               const ary::idl::CodeEntity &  i_ce )
223*cdf0e10cSrcweir     :   rClient(io_client),
224*cdf0e10cSrcweir         rEnv(io_env)
225*cdf0e10cSrcweir {   // For Modules
226*cdf0e10cSrcweir     io_env.Set_CurFile( output::ModuleFileName() );
227*cdf0e10cSrcweir     StreamLock aCurFilePath(700);
228*cdf0e10cSrcweir     io_env.Get_CurFilePath(aCurFilePath());
229*cdf0e10cSrcweir     csv::ploc::Path
230*cdf0e10cSrcweir         aLocation(aCurFilePath().c_str());
231*cdf0e10cSrcweir 
232*cdf0e10cSrcweir     rClient.EmptyBody();
233*cdf0e10cSrcweir     rClient.SetLocation(aLocation);
234*cdf0e10cSrcweir     StreamLock sl(300);
235*cdf0e10cSrcweir     rClient.SetTitle( sl() << "Module " << io_env.CurPosition().Name() << c_str );
236*cdf0e10cSrcweir     sl().reset();
237*cdf0e10cSrcweir     rClient.SetRelativeCssPath(
238*cdf0e10cSrcweir                       sl()  << io_env.CurPosition().LinkToRoot()
239*cdf0e10cSrcweir                             << C_sCssFilename_Idl
240*cdf0e10cSrcweir                             << c_str );
241*cdf0e10cSrcweir 
242*cdf0e10cSrcweir     io_env.Set_CurPageCe(&i_ce);
243*cdf0e10cSrcweir }
244*cdf0e10cSrcweir 
245*cdf0e10cSrcweir Guard_CurFile::Guard_CurFile( DocuFile_Html &       io_client,
246*cdf0e10cSrcweir                               HtmlEnvironment_Idl & io_env,
247*cdf0e10cSrcweir                               char                  i_letter )
248*cdf0e10cSrcweir     :   rClient(io_client),
249*cdf0e10cSrcweir         rEnv(io_env)
250*cdf0e10cSrcweir {   // For Index pages
251*cdf0e10cSrcweir     StreamLock sl(300);
252*cdf0e10cSrcweir     io_env.Set_CurFile( sl()    << "index-"
253*cdf0e10cSrcweir                                 << ( i_letter != '_'
254*cdf0e10cSrcweir                                         ?   int(i_letter)-'a'+1
255*cdf0e10cSrcweir                                         :   27 )
256*cdf0e10cSrcweir                                 << ".html"
257*cdf0e10cSrcweir                                 << c_str );
258*cdf0e10cSrcweir     StreamLock aCurFilePath(700);
259*cdf0e10cSrcweir     io_env.Get_CurFilePath(aCurFilePath());
260*cdf0e10cSrcweir     csv::ploc::Path
261*cdf0e10cSrcweir         aLocation(aCurFilePath().c_str());
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir     rClient.EmptyBody();
264*cdf0e10cSrcweir     rClient.SetLocation(aLocation);
265*cdf0e10cSrcweir     sl().reset();
266*cdf0e10cSrcweir     rClient.SetTitle( sl() << "Global Index "
267*cdf0e10cSrcweir                            << ( i_letter != '_'
268*cdf0e10cSrcweir                                     ?   char(i_letter-'a'+'A')
269*cdf0e10cSrcweir                                     :   '_' )
270*cdf0e10cSrcweir                            << c_str );
271*cdf0e10cSrcweir     sl().reset();
272*cdf0e10cSrcweir     rClient.SetRelativeCssPath(
273*cdf0e10cSrcweir                       sl()  << "../"
274*cdf0e10cSrcweir                             << C_sCssFilename_Idl
275*cdf0e10cSrcweir                             << c_str );
276*cdf0e10cSrcweir }
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir Guard_CurFile::~Guard_CurFile()
279*cdf0e10cSrcweir {
280*cdf0e10cSrcweir     rClient.CreateFile();
281*cdf0e10cSrcweir     rEnv.Set_CurPageCe(0);
282*cdf0e10cSrcweir }
283*cdf0e10cSrcweir 
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir }   // anonymous namespace
286*cdf0e10cSrcweir 
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir 
289*cdf0e10cSrcweir 
290*cdf0e10cSrcweir MainDisplay_Idl::MainDisplay_Idl( HtmlEnvironment_Idl & io_rEnv )
291*cdf0e10cSrcweir     :   pEnv(&io_rEnv),
292*cdf0e10cSrcweir         pMyFile(new DocuFile_Html),
293*cdf0e10cSrcweir         pCurFactory(0)
294*cdf0e10cSrcweir {
295*cdf0e10cSrcweir //  pMyFile->SetStyle( Env().Layout().CssStyle() );
296*cdf0e10cSrcweir     pMyFile->SetCopyright( Env().Layout().CopyrightText() );
297*cdf0e10cSrcweir }
298*cdf0e10cSrcweir 
299*cdf0e10cSrcweir MainDisplay_Idl::~MainDisplay_Idl()
300*cdf0e10cSrcweir {
301*cdf0e10cSrcweir }
302*cdf0e10cSrcweir 
303*cdf0e10cSrcweir 
304*cdf0e10cSrcweir void
305*cdf0e10cSrcweir MainDisplay_Idl::WriteGlobalIndices()
306*cdf0e10cSrcweir {
307*cdf0e10cSrcweir     for ( const char * pLetter = "abcdefghijklmnopqrstuvwxyz_X"; *pLetter != 'X'; ++pLetter )
308*cdf0e10cSrcweir     {
309*cdf0e10cSrcweir         Guard_CurFile       gFile( *pMyFile, Env(), *pLetter );
310*cdf0e10cSrcweir 
311*cdf0e10cSrcweir         HF_IdlGlobalIndex   aFactory( *pEnv, pMyFile->Body() );
312*cdf0e10cSrcweir         Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
313*cdf0e10cSrcweir 
314*cdf0e10cSrcweir         aFactory.Produce_Page( ary::idl::alphabetical_index::E_Letter(*pLetter) );
315*cdf0e10cSrcweir     }	// end for
316*cdf0e10cSrcweir }
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir 
319*cdf0e10cSrcweir void
320*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Module & i_ce )
321*cdf0e10cSrcweir {
322*cdf0e10cSrcweir     Guard_CurFile    gFile( *pMyFile,
323*cdf0e10cSrcweir                             Env(),
324*cdf0e10cSrcweir                             i_ce );
325*cdf0e10cSrcweir     HF_IdlModule     aFactory( *pEnv, pMyFile->Body() );
326*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
327*cdf0e10cSrcweir 
328*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
329*cdf0e10cSrcweir }
330*cdf0e10cSrcweir 
331*cdf0e10cSrcweir void
332*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Interface & i_ce )
333*cdf0e10cSrcweir {
334*cdf0e10cSrcweir     do_InterfaceDescr(i_ce);
335*cdf0e10cSrcweir     do_Interface2s(i_ce);
336*cdf0e10cSrcweir }
337*cdf0e10cSrcweir 
338*cdf0e10cSrcweir void
339*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Service & i_ce )
340*cdf0e10cSrcweir {
341*cdf0e10cSrcweir     do_ServiceDescr(i_ce);
342*cdf0e10cSrcweir     do_Service2s(i_ce);
343*cdf0e10cSrcweir }
344*cdf0e10cSrcweir 
345*cdf0e10cSrcweir void
346*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::SglIfcService & i_ce )
347*cdf0e10cSrcweir {
348*cdf0e10cSrcweir     do_SglIfcServiceDescr(i_ce);
349*cdf0e10cSrcweir }
350*cdf0e10cSrcweir 
351*cdf0e10cSrcweir void
352*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Struct & i_ce )
353*cdf0e10cSrcweir {
354*cdf0e10cSrcweir     do_StructDescr(i_ce);
355*cdf0e10cSrcweir     do_Struct2s(i_ce);
356*cdf0e10cSrcweir }
357*cdf0e10cSrcweir 
358*cdf0e10cSrcweir void
359*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Exception & i_ce )
360*cdf0e10cSrcweir {
361*cdf0e10cSrcweir     do_ExceptionDescr(i_ce);
362*cdf0e10cSrcweir     do_Exception2s(i_ce);
363*cdf0e10cSrcweir }
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir void
366*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Enum & i_ce )
367*cdf0e10cSrcweir {
368*cdf0e10cSrcweir     do_EnumDescr(i_ce);
369*cdf0e10cSrcweir     do_Enum2s(i_ce);
370*cdf0e10cSrcweir }
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir void
373*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Typedef & i_ce )
374*cdf0e10cSrcweir {
375*cdf0e10cSrcweir     do_TypedefDescr(i_ce);
376*cdf0e10cSrcweir     do_Typedef2s(i_ce);
377*cdf0e10cSrcweir }
378*cdf0e10cSrcweir 
379*cdf0e10cSrcweir void
380*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::ConstantsGroup & i_ce )
381*cdf0e10cSrcweir {
382*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
383*cdf0e10cSrcweir                                Env(),
384*cdf0e10cSrcweir                                i_ce,
385*cdf0e10cSrcweir                                "Constants' Group" );
386*cdf0e10cSrcweir     HF_IdlConstGroup    aFactory( *pEnv, pMyFile->Body() );
387*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
388*cdf0e10cSrcweir 
389*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
390*cdf0e10cSrcweir }
391*cdf0e10cSrcweir 
392*cdf0e10cSrcweir void
393*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::Singleton & i_ce )
394*cdf0e10cSrcweir {
395*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
396*cdf0e10cSrcweir                                Env(),
397*cdf0e10cSrcweir                                i_ce,
398*cdf0e10cSrcweir                                "Singleton" );
399*cdf0e10cSrcweir     HF_IdlSingleton     aFactory( *pEnv, pMyFile->Body() );
400*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
401*cdf0e10cSrcweir 
402*cdf0e10cSrcweir     aFactory.Produce_byData_ServiceBased(i_ce);
403*cdf0e10cSrcweir }
404*cdf0e10cSrcweir 
405*cdf0e10cSrcweir void
406*cdf0e10cSrcweir MainDisplay_Idl::do_Process( const ary::idl::SglIfcSingleton & i_ce )
407*cdf0e10cSrcweir {
408*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
409*cdf0e10cSrcweir                                Env(),
410*cdf0e10cSrcweir                                i_ce,
411*cdf0e10cSrcweir                                "Singleton" );
412*cdf0e10cSrcweir     HF_IdlSingleton     aFactory( *pEnv, pMyFile->Body() );
413*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
414*cdf0e10cSrcweir 
415*cdf0e10cSrcweir     aFactory.Produce_byData_InterfaceBased(i_ce);
416*cdf0e10cSrcweir }
417*cdf0e10cSrcweir 
418*cdf0e10cSrcweir void
419*cdf0e10cSrcweir MainDisplay_Idl::do_InterfaceDescr( const ary::idl::CodeEntity & i_ce )
420*cdf0e10cSrcweir {
421*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
422*cdf0e10cSrcweir                                Env(),
423*cdf0e10cSrcweir                                i_ce,
424*cdf0e10cSrcweir                                "Interface" );
425*cdf0e10cSrcweir     HF_IdlInterface     aInterface( *pEnv, pMyFile->Body() );
426*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aInterface);
427*cdf0e10cSrcweir 
428*cdf0e10cSrcweir     aInterface.Produce_byData(i_ce);
429*cdf0e10cSrcweir }
430*cdf0e10cSrcweir 
431*cdf0e10cSrcweir void
432*cdf0e10cSrcweir MainDisplay_Idl::do_ServiceDescr( const ary::idl::CodeEntity & i_ce )
433*cdf0e10cSrcweir {
434*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
435*cdf0e10cSrcweir                                Env(),
436*cdf0e10cSrcweir                                i_ce,
437*cdf0e10cSrcweir                                "Service" );
438*cdf0e10cSrcweir     HF_IdlService       aFactory( *pEnv, pMyFile->Body() );
439*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
440*cdf0e10cSrcweir 
441*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
442*cdf0e10cSrcweir }
443*cdf0e10cSrcweir 
444*cdf0e10cSrcweir void
445*cdf0e10cSrcweir MainDisplay_Idl::do_SglIfcServiceDescr( const ary::idl::CodeEntity & i_ce )
446*cdf0e10cSrcweir {
447*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
448*cdf0e10cSrcweir                                Env(),
449*cdf0e10cSrcweir                                i_ce,
450*cdf0e10cSrcweir                                "Service" );
451*cdf0e10cSrcweir     HF_IdlSglIfcService aFactory( *pEnv, pMyFile->Body() );
452*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
453*cdf0e10cSrcweir 
454*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
455*cdf0e10cSrcweir }
456*cdf0e10cSrcweir 
457*cdf0e10cSrcweir void
458*cdf0e10cSrcweir MainDisplay_Idl::do_StructDescr( const ary::idl::CodeEntity & i_ce )
459*cdf0e10cSrcweir {
460*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
461*cdf0e10cSrcweir                                Env(),
462*cdf0e10cSrcweir                                i_ce,
463*cdf0e10cSrcweir                                "Struct" );
464*cdf0e10cSrcweir     HF_IdlStruct        aFactory( *pEnv, pMyFile->Body(), false );
465*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
466*cdf0e10cSrcweir 
467*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
468*cdf0e10cSrcweir }
469*cdf0e10cSrcweir 
470*cdf0e10cSrcweir void
471*cdf0e10cSrcweir MainDisplay_Idl::do_ExceptionDescr( const ary::idl::CodeEntity & i_ce )
472*cdf0e10cSrcweir {
473*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
474*cdf0e10cSrcweir                                Env(),
475*cdf0e10cSrcweir                                i_ce,
476*cdf0e10cSrcweir                                "Exception" );
477*cdf0e10cSrcweir     HF_IdlStruct        aFactory( *pEnv, pMyFile->Body(), true );
478*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
479*cdf0e10cSrcweir 
480*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
481*cdf0e10cSrcweir }
482*cdf0e10cSrcweir 
483*cdf0e10cSrcweir void
484*cdf0e10cSrcweir MainDisplay_Idl::do_EnumDescr( const ary::idl::CodeEntity & i_ce )
485*cdf0e10cSrcweir {
486*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
487*cdf0e10cSrcweir                                Env(),
488*cdf0e10cSrcweir                                i_ce,
489*cdf0e10cSrcweir                                "Enum" );
490*cdf0e10cSrcweir     HF_IdlEnum        aFactory( *pEnv, pMyFile->Body() );
491*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
492*cdf0e10cSrcweir 
493*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
494*cdf0e10cSrcweir }
495*cdf0e10cSrcweir 
496*cdf0e10cSrcweir void
497*cdf0e10cSrcweir MainDisplay_Idl::do_TypedefDescr( const ary::idl::CodeEntity & i_ce )
498*cdf0e10cSrcweir {
499*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
500*cdf0e10cSrcweir                                Env(),
501*cdf0e10cSrcweir                                i_ce,
502*cdf0e10cSrcweir                                "Typedef" );
503*cdf0e10cSrcweir     HF_IdlTypedef       aFactory( *pEnv, pMyFile->Body() );
504*cdf0e10cSrcweir     Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
505*cdf0e10cSrcweir 
506*cdf0e10cSrcweir     aFactory.Produce_byData(i_ce);
507*cdf0e10cSrcweir }
508*cdf0e10cSrcweir 
509*cdf0e10cSrcweir void
510*cdf0e10cSrcweir MainDisplay_Idl::do_Interface2s( const ary::idl::CodeEntity & i_ce )
511*cdf0e10cSrcweir {
512*cdf0e10cSrcweir     StreamLock sl(100);
513*cdf0e10cSrcweir     String sUsesFileName(
514*cdf0e10cSrcweir                 sl()
515*cdf0e10cSrcweir                     << i_ce.LocalName()
516*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
517*cdf0e10cSrcweir                     << c_str );
518*cdf0e10cSrcweir     Guard_CurFile       gFile( *pMyFile,
519*cdf0e10cSrcweir                                Env(),
520*cdf0e10cSrcweir                                sUsesFileName,
521*cdf0e10cSrcweir                                "Uses of Interface" );
522*cdf0e10cSrcweir     HF_IdlXrefs         aUses( *pEnv,
523*cdf0e10cSrcweir                                pMyFile->Body(),
524*cdf0e10cSrcweir                                C_sCePrefix_Interface,
525*cdf0e10cSrcweir                                i_ce );
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir 
528*cdf0e10cSrcweir     aUses.Produce_Tree(
529*cdf0e10cSrcweir         "Derived Interfaces",
530*cdf0e10cSrcweir         "#Deriveds",
531*cdf0e10cSrcweir         i_ce,
532*cdf0e10cSrcweir         &ary::idl::ifc_interface::xref::Get_Derivations );
533*cdf0e10cSrcweir 
534*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
535*cdf0e10cSrcweir 
536*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_SynonymTypedefs(pXrefList,i_ce);
537*cdf0e10cSrcweir     aUses.Produce_List(
538*cdf0e10cSrcweir         "Synonym Typedefs",
539*cdf0e10cSrcweir         "#Synonyms",
540*cdf0e10cSrcweir         *pXrefList );
541*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_ExportingServices(pXrefList,i_ce);
542*cdf0e10cSrcweir     aUses.Produce_List(
543*cdf0e10cSrcweir         "Services which Support this Interface",
544*cdf0e10cSrcweir         "#SupportingServices",
545*cdf0e10cSrcweir         *pXrefList );
546*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_ExportingSingletons(pXrefList,i_ce);
547*cdf0e10cSrcweir     aUses.Produce_List(
548*cdf0e10cSrcweir         "Singletons which Support this Interface",
549*cdf0e10cSrcweir         "#SupportingSingletons",
550*cdf0e10cSrcweir         *pXrefList );
551*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_AsReturns(pXrefList,i_ce);
552*cdf0e10cSrcweir     aUses.Produce_List(
553*cdf0e10cSrcweir         "Uses as Return Type",
554*cdf0e10cSrcweir         "#Returns",
555*cdf0e10cSrcweir         *pXrefList );
556*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_AsParameters(pXrefList,i_ce);
557*cdf0e10cSrcweir     aUses.Produce_List(
558*cdf0e10cSrcweir         "Uses as Parameter",
559*cdf0e10cSrcweir         "#Parameters",
560*cdf0e10cSrcweir         *pXrefList );
561*cdf0e10cSrcweir     ary::idl::ifc_interface::xref::Get_AsDataTypes(pXrefList,i_ce);
562*cdf0e10cSrcweir     aUses.Produce_List(
563*cdf0e10cSrcweir         "Uses as Data Type",
564*cdf0e10cSrcweir         "#DataTypes",
565*cdf0e10cSrcweir         *pXrefList );
566*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
567*cdf0e10cSrcweir }
568*cdf0e10cSrcweir 
569*cdf0e10cSrcweir void
570*cdf0e10cSrcweir MainDisplay_Idl::do_Service2s( const ary::idl::CodeEntity & i_ce )
571*cdf0e10cSrcweir {
572*cdf0e10cSrcweir     StreamLock sl(100);
573*cdf0e10cSrcweir     String sUsesFileName(
574*cdf0e10cSrcweir                 sl()
575*cdf0e10cSrcweir                     << i_ce.LocalName()
576*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
577*cdf0e10cSrcweir                     << c_str );
578*cdf0e10cSrcweir     Guard_CurFile   gFile(  *pMyFile,
579*cdf0e10cSrcweir                             Env(),
580*cdf0e10cSrcweir                             sUsesFileName,
581*cdf0e10cSrcweir                             "Uses of Service" );
582*cdf0e10cSrcweir     HF_IdlXrefs     aUses(  *pEnv,
583*cdf0e10cSrcweir                             pMyFile->Body(),
584*cdf0e10cSrcweir                             C_sCePrefix_Service,
585*cdf0e10cSrcweir                             i_ce );
586*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
587*cdf0e10cSrcweir     ary::idl::ifc_service::xref::Get_IncludingServices(pXrefList,i_ce);
588*cdf0e10cSrcweir     aUses.Produce_List(
589*cdf0e10cSrcweir         "Services which Include this Service",
590*cdf0e10cSrcweir         "#IncludingServices",
591*cdf0e10cSrcweir         *pXrefList );
592*cdf0e10cSrcweir 
593*cdf0e10cSrcweir     ary::idl::ifc_service::xref::Get_InstantiatingSingletons(pXrefList,i_ce);
594*cdf0e10cSrcweir     aUses.Produce_List(
595*cdf0e10cSrcweir         "Singletons which Instantiate this Service",
596*cdf0e10cSrcweir         "#Singletons",
597*cdf0e10cSrcweir         *pXrefList );
598*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
599*cdf0e10cSrcweir }
600*cdf0e10cSrcweir 
601*cdf0e10cSrcweir void
602*cdf0e10cSrcweir MainDisplay_Idl::do_Struct2s( const ary::idl::CodeEntity & i_ce )
603*cdf0e10cSrcweir {
604*cdf0e10cSrcweir     StreamLock sl(100);
605*cdf0e10cSrcweir     String sUsesFileName(
606*cdf0e10cSrcweir                 sl()
607*cdf0e10cSrcweir                     << i_ce.LocalName()
608*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
609*cdf0e10cSrcweir                     << c_str );
610*cdf0e10cSrcweir     Guard_CurFile   gFile(  *pMyFile,
611*cdf0e10cSrcweir                             Env(),
612*cdf0e10cSrcweir                             sUsesFileName,
613*cdf0e10cSrcweir                             "Uses of Struct" );
614*cdf0e10cSrcweir     HF_IdlXrefs     aUses(  *pEnv,
615*cdf0e10cSrcweir                             pMyFile->Body(),
616*cdf0e10cSrcweir                             C_sCePrefix_Struct,
617*cdf0e10cSrcweir                             i_ce );
618*cdf0e10cSrcweir 
619*cdf0e10cSrcweir     aUses.Produce_Tree(
620*cdf0e10cSrcweir         "Derived Structs",
621*cdf0e10cSrcweir         "#Deriveds",
622*cdf0e10cSrcweir         i_ce,
623*cdf0e10cSrcweir         &ary::idl::ifc_struct::xref::Get_Derivations );
624*cdf0e10cSrcweir 
625*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
626*cdf0e10cSrcweir 
627*cdf0e10cSrcweir     ary::idl::ifc_struct::xref::Get_SynonymTypedefs(pXrefList,i_ce);
628*cdf0e10cSrcweir     aUses.Produce_List(
629*cdf0e10cSrcweir         "Synonym Typedefs",
630*cdf0e10cSrcweir         "#Synonyms",
631*cdf0e10cSrcweir         *pXrefList );
632*cdf0e10cSrcweir     ary::idl::ifc_struct::xref::Get_AsReturns(pXrefList,i_ce);
633*cdf0e10cSrcweir     aUses.Produce_List(
634*cdf0e10cSrcweir         "Uses as Return Type",
635*cdf0e10cSrcweir         "#Returns",
636*cdf0e10cSrcweir         *pXrefList );
637*cdf0e10cSrcweir     ary::idl::ifc_struct::xref::Get_AsParameters(pXrefList,i_ce);
638*cdf0e10cSrcweir     aUses.Produce_List(
639*cdf0e10cSrcweir         "Uses as Parameter",
640*cdf0e10cSrcweir         "#Parameters",
641*cdf0e10cSrcweir         *pXrefList );
642*cdf0e10cSrcweir     ary::idl::ifc_struct::xref::Get_AsDataTypes(pXrefList,i_ce);
643*cdf0e10cSrcweir     aUses.Produce_List(
644*cdf0e10cSrcweir         "Uses as Data Type",
645*cdf0e10cSrcweir         "#DataTypes",
646*cdf0e10cSrcweir         *pXrefList );
647*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
648*cdf0e10cSrcweir }
649*cdf0e10cSrcweir 
650*cdf0e10cSrcweir void
651*cdf0e10cSrcweir MainDisplay_Idl::do_Exception2s( const ary::idl::CodeEntity & i_ce )
652*cdf0e10cSrcweir {
653*cdf0e10cSrcweir     StreamLock sl(100);
654*cdf0e10cSrcweir     String sUsesFileName(
655*cdf0e10cSrcweir                 sl()
656*cdf0e10cSrcweir                     << i_ce.LocalName()
657*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
658*cdf0e10cSrcweir                     << c_str );
659*cdf0e10cSrcweir     Guard_CurFile   gFile(  *pMyFile,
660*cdf0e10cSrcweir                             Env(),
661*cdf0e10cSrcweir                             sUsesFileName,
662*cdf0e10cSrcweir                             "Uses of Exception" );
663*cdf0e10cSrcweir     HF_IdlXrefs     aUses(  *pEnv,
664*cdf0e10cSrcweir                             pMyFile->Body(),
665*cdf0e10cSrcweir                             C_sCePrefix_Exception,
666*cdf0e10cSrcweir                             i_ce );
667*cdf0e10cSrcweir 
668*cdf0e10cSrcweir     aUses.Produce_Tree(
669*cdf0e10cSrcweir         "Derived Exceptions",
670*cdf0e10cSrcweir         "#Deriveds",
671*cdf0e10cSrcweir         i_ce,
672*cdf0e10cSrcweir         &ary::idl::ifc_exception::xref::Get_Derivations );
673*cdf0e10cSrcweir 
674*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
675*cdf0e10cSrcweir 
676*cdf0e10cSrcweir     ary::idl::ifc_exception::xref::Get_RaisingFunctions(pXrefList,i_ce);
677*cdf0e10cSrcweir     aUses.Produce_List(
678*cdf0e10cSrcweir         "Raising Functions",
679*cdf0e10cSrcweir         "#Raisers",
680*cdf0e10cSrcweir         *pXrefList );
681*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
682*cdf0e10cSrcweir }
683*cdf0e10cSrcweir 
684*cdf0e10cSrcweir void
685*cdf0e10cSrcweir MainDisplay_Idl::do_Enum2s( const ary::idl::CodeEntity & i_ce )
686*cdf0e10cSrcweir {
687*cdf0e10cSrcweir     StreamLock sl(100);
688*cdf0e10cSrcweir     String sUsesFileName(
689*cdf0e10cSrcweir                 sl()
690*cdf0e10cSrcweir                     << i_ce.LocalName()
691*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
692*cdf0e10cSrcweir                     << c_str );
693*cdf0e10cSrcweir     Guard_CurFile   gFile(  *pMyFile,
694*cdf0e10cSrcweir                             Env(),
695*cdf0e10cSrcweir                             sUsesFileName,
696*cdf0e10cSrcweir                             "Uses of Enum" );
697*cdf0e10cSrcweir     HF_IdlXrefs     aUses(  *pEnv,
698*cdf0e10cSrcweir                             pMyFile->Body(),
699*cdf0e10cSrcweir                             C_sCePrefix_Enum,
700*cdf0e10cSrcweir                             i_ce );
701*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
702*cdf0e10cSrcweir     ary::idl::ifc_enum::xref::Get_SynonymTypedefs(pXrefList,i_ce);
703*cdf0e10cSrcweir     aUses.Produce_List(
704*cdf0e10cSrcweir         "Synonym Typedefs",
705*cdf0e10cSrcweir         "#Synonyms",
706*cdf0e10cSrcweir         *pXrefList );
707*cdf0e10cSrcweir     ary::idl::ifc_enum::xref::Get_AsReturns(pXrefList,i_ce);
708*cdf0e10cSrcweir     aUses.Produce_List(
709*cdf0e10cSrcweir         "Uses as Return Type",
710*cdf0e10cSrcweir         "#Returns",
711*cdf0e10cSrcweir         *pXrefList );
712*cdf0e10cSrcweir     ary::idl::ifc_enum::xref::Get_AsParameters(pXrefList,i_ce);
713*cdf0e10cSrcweir     aUses.Produce_List(
714*cdf0e10cSrcweir         "Uses as Parameter",
715*cdf0e10cSrcweir         "#Parameters",
716*cdf0e10cSrcweir         *pXrefList );
717*cdf0e10cSrcweir     ary::idl::ifc_enum::xref::Get_AsDataTypes(pXrefList,i_ce);
718*cdf0e10cSrcweir     aUses.Produce_List(
719*cdf0e10cSrcweir         "Uses as Data Type",
720*cdf0e10cSrcweir         "#DataTypes",
721*cdf0e10cSrcweir         *pXrefList );
722*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
723*cdf0e10cSrcweir }
724*cdf0e10cSrcweir 
725*cdf0e10cSrcweir void
726*cdf0e10cSrcweir MainDisplay_Idl::do_Typedef2s( const ary::idl::CodeEntity & i_ce )
727*cdf0e10cSrcweir {
728*cdf0e10cSrcweir     StreamLock sl(100);
729*cdf0e10cSrcweir     String sUsesFileName(
730*cdf0e10cSrcweir                sl() << i_ce.LocalName()
731*cdf0e10cSrcweir                     << Env().Linker().XrefsSuffix()
732*cdf0e10cSrcweir                     << c_str );
733*cdf0e10cSrcweir     Guard_CurFile   gFile(  *pMyFile,
734*cdf0e10cSrcweir                             Env(),
735*cdf0e10cSrcweir                             sUsesFileName,
736*cdf0e10cSrcweir                             "Uses of Typedef" );
737*cdf0e10cSrcweir     HF_IdlXrefs     aUses(  *pEnv,
738*cdf0e10cSrcweir                             pMyFile->Body(),
739*cdf0e10cSrcweir                             C_sCePrefix_Typedef,
740*cdf0e10cSrcweir                             i_ce );
741*cdf0e10cSrcweir     Dyn_CeIterator  pXrefList;
742*cdf0e10cSrcweir     ary::idl::ifc_typedef::xref::Get_SynonymTypedefs(pXrefList,i_ce);
743*cdf0e10cSrcweir     aUses.Produce_List(
744*cdf0e10cSrcweir         "Synonym Typedefs",
745*cdf0e10cSrcweir         "#Synonyms",
746*cdf0e10cSrcweir         *pXrefList );
747*cdf0e10cSrcweir     ary::idl::ifc_typedef::xref::Get_AsReturns(pXrefList,i_ce);
748*cdf0e10cSrcweir     aUses.Produce_List(
749*cdf0e10cSrcweir         "Uses as Return Type",
750*cdf0e10cSrcweir         "#Returns",
751*cdf0e10cSrcweir         *pXrefList );
752*cdf0e10cSrcweir     ary::idl::ifc_typedef::xref::Get_AsParameters(pXrefList,i_ce);
753*cdf0e10cSrcweir     aUses.Produce_List(
754*cdf0e10cSrcweir         "Uses as Parameter",
755*cdf0e10cSrcweir         "#Parameters",
756*cdf0e10cSrcweir         *pXrefList );
757*cdf0e10cSrcweir     ary::idl::ifc_typedef::xref::Get_AsDataTypes(pXrefList,i_ce);
758*cdf0e10cSrcweir     aUses.Produce_List(
759*cdf0e10cSrcweir         "Uses as Data Type",
760*cdf0e10cSrcweir         "#DataTypes",
761*cdf0e10cSrcweir         *pXrefList );
762*cdf0e10cSrcweir     aUses.Write_ManualLinks(i_ce);
763*cdf0e10cSrcweir }
764*cdf0e10cSrcweir 
765