1*d291ea28SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*d291ea28SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d291ea28SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*d291ea28SAndrew Rist * distributed with this work for additional information
6*d291ea28SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*d291ea28SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d291ea28SAndrew Rist * "License"); you may not use this file except in compliance
9*d291ea28SAndrew Rist * with the License. You may obtain a copy of the License at
10*d291ea28SAndrew Rist *
11*d291ea28SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*d291ea28SAndrew Rist *
13*d291ea28SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d291ea28SAndrew Rist * software distributed under the License is distributed on an
15*d291ea28SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d291ea28SAndrew Rist * KIND, either express or implied. See the License for the
17*d291ea28SAndrew Rist * specific language governing permissions and limitations
18*d291ea28SAndrew Rist * under the License.
19*d291ea28SAndrew Rist *
20*d291ea28SAndrew Rist *************************************************************/
21cdf0e10cSrcweir
22cdf0e10cSrcweir #include <precomp.h>
23cdf0e10cSrcweir #include "hfi_typedef.hxx"
24cdf0e10cSrcweir
25cdf0e10cSrcweir
26cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
27cdf0e10cSrcweir #include <ary/idl/i_ce.hxx>
28cdf0e10cSrcweir #include <ary/idl/ik_typedef.hxx>
29cdf0e10cSrcweir #include <toolkit/hf_docentry.hxx>
30cdf0e10cSrcweir #include <toolkit/hf_linachain.hxx>
31cdf0e10cSrcweir #include <toolkit/hf_title.hxx>
32cdf0e10cSrcweir #include "hfi_navibar.hxx"
33cdf0e10cSrcweir #include "hfi_typetext.hxx"
34cdf0e10cSrcweir #include "hi_linkhelper.hxx"
35cdf0e10cSrcweir
36cdf0e10cSrcweir
37cdf0e10cSrcweir
HF_IdlTypedef(Environment & io_rEnv,Xml::Element & o_rOut)38cdf0e10cSrcweir HF_IdlTypedef::HF_IdlTypedef( Environment & io_rEnv,
39cdf0e10cSrcweir Xml::Element & o_rOut )
40cdf0e10cSrcweir : HtmlFactory_Idl(io_rEnv, &o_rOut)
41cdf0e10cSrcweir {
42cdf0e10cSrcweir }
43cdf0e10cSrcweir
~HF_IdlTypedef()44cdf0e10cSrcweir HF_IdlTypedef::~HF_IdlTypedef()
45cdf0e10cSrcweir {
46cdf0e10cSrcweir }
47cdf0e10cSrcweir
48cdf0e10cSrcweir typedef ary::idl::ifc_typedef::attr TypedefAttr;
49cdf0e10cSrcweir
50cdf0e10cSrcweir void
Produce_byData(const client & i_ce) const51cdf0e10cSrcweir HF_IdlTypedef::Produce_byData( const client & i_ce ) const
52cdf0e10cSrcweir {
53cdf0e10cSrcweir make_Navibar(i_ce);
54cdf0e10cSrcweir
55cdf0e10cSrcweir HF_TitleTable
56cdf0e10cSrcweir aTitle(CurOut());
57cdf0e10cSrcweir
58cdf0e10cSrcweir HF_LinkedNameChain
59cdf0e10cSrcweir aNameChain(aTitle.Add_Row());
60cdf0e10cSrcweir
61cdf0e10cSrcweir aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
62cdf0e10cSrcweir produce_Title(aTitle, C_sCePrefix_Typedef, i_ce);
63cdf0e10cSrcweir
64cdf0e10cSrcweir HF_DocEntryList
65cdf0e10cSrcweir aTopList( aTitle.Add_Row() );
66cdf0e10cSrcweir aTopList.Produce_Term("Defining Type");
67cdf0e10cSrcweir
68cdf0e10cSrcweir HF_IdlTypeText
69cdf0e10cSrcweir aDefinition( Env(), aTopList.Produce_Definition(), true );
70cdf0e10cSrcweir aDefinition.Produce_byData( TypedefAttr::DefiningType(i_ce) );
71cdf0e10cSrcweir
72cdf0e10cSrcweir CurOut() << new Html::HorizontalLine;
73cdf0e10cSrcweir
74cdf0e10cSrcweir write_Docu(aTitle.Add_Row(), i_ce);
75cdf0e10cSrcweir CurOut() << new Html::HorizontalLine();
76cdf0e10cSrcweir }
77cdf0e10cSrcweir
78cdf0e10cSrcweir void
make_Navibar(const client & i_ce) const79cdf0e10cSrcweir HF_IdlTypedef::make_Navibar( const client & i_ce ) const
80cdf0e10cSrcweir {
81cdf0e10cSrcweir HF_IdlNavigationBar
82cdf0e10cSrcweir aNaviBar(Env(), CurOut());
83cdf0e10cSrcweir aNaviBar.Produce_CeMainRow(i_ce);
84cdf0e10cSrcweir
85cdf0e10cSrcweir CurOut() << new Html::HorizontalLine();
86cdf0e10cSrcweir }
87