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 "hfi_typedef.hxx" 30 31 32 // NOT FULLY DEFINED SERVICES 33 #include <ary/idl/i_ce.hxx> 34 #include <ary/idl/ik_typedef.hxx> 35 #include <toolkit/hf_docentry.hxx> 36 #include <toolkit/hf_linachain.hxx> 37 #include <toolkit/hf_title.hxx> 38 #include "hfi_navibar.hxx" 39 #include "hfi_typetext.hxx" 40 #include "hi_linkhelper.hxx" 41 42 43 44 HF_IdlTypedef::HF_IdlTypedef( Environment & io_rEnv, 45 Xml::Element & o_rOut ) 46 : HtmlFactory_Idl(io_rEnv, &o_rOut) 47 { 48 } 49 50 HF_IdlTypedef::~HF_IdlTypedef() 51 { 52 } 53 54 typedef ary::idl::ifc_typedef::attr TypedefAttr; 55 56 void 57 HF_IdlTypedef::Produce_byData( const client & i_ce ) const 58 { 59 make_Navibar(i_ce); 60 61 HF_TitleTable 62 aTitle(CurOut()); 63 64 HF_LinkedNameChain 65 aNameChain(aTitle.Add_Row()); 66 67 aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker); 68 produce_Title(aTitle, C_sCePrefix_Typedef, i_ce); 69 70 HF_DocEntryList 71 aTopList( aTitle.Add_Row() ); 72 aTopList.Produce_Term("Defining Type"); 73 74 HF_IdlTypeText 75 aDefinition( Env(), aTopList.Produce_Definition(), true ); 76 aDefinition.Produce_byData( TypedefAttr::DefiningType(i_ce) ); 77 78 CurOut() << new Html::HorizontalLine; 79 80 write_Docu(aTitle.Add_Row(), i_ce); 81 CurOut() << new Html::HorizontalLine(); 82 } 83 84 void 85 HF_IdlTypedef::make_Navibar( const client & i_ce ) const 86 { 87 HF_IdlNavigationBar 88 aNaviBar(Env(), CurOut()); 89 aNaviBar.Produce_CeMainRow(i_ce); 90 91 CurOut() << new Html::HorizontalLine(); 92 } 93