Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <precomp.h>
21 : #include "hfi_typedef.hxx"
22 :
23 :
24 : // NOT FULLY DEFINED SERVICES
25 : #include <ary/idl/i_ce.hxx>
26 : #include <ary/idl/ik_typedef.hxx>
27 : #include <toolkit/hf_docentry.hxx>
28 : #include <toolkit/hf_linachain.hxx>
29 : #include <toolkit/hf_title.hxx>
30 : #include "hfi_navibar.hxx"
31 : #include "hfi_typetext.hxx"
32 : #include "hi_linkhelper.hxx"
33 :
34 :
35 :
36 18 : HF_IdlTypedef::HF_IdlTypedef( Environment & io_rEnv,
37 : Xml::Element & o_rOut )
38 18 : : HtmlFactory_Idl(io_rEnv, &o_rOut)
39 : {
40 18 : }
41 :
42 18 : HF_IdlTypedef::~HF_IdlTypedef()
43 : {
44 18 : }
45 :
46 : typedef ary::idl::ifc_typedef::attr TypedefAttr;
47 :
48 : void
49 18 : HF_IdlTypedef::Produce_byData( const client & i_ce ) const
50 : {
51 18 : make_Navibar(i_ce);
52 :
53 : HF_TitleTable
54 18 : aTitle(CurOut());
55 :
56 : HF_LinkedNameChain
57 18 : aNameChain(aTitle.Add_Row());
58 :
59 18 : aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
60 18 : produce_Title(aTitle, C_sCePrefix_Typedef, i_ce);
61 :
62 : HF_DocEntryList
63 18 : aTopList( aTitle.Add_Row() );
64 18 : aTopList.Produce_Term("Defining Type");
65 :
66 : HF_IdlTypeText
67 18 : aDefinition( Env(), aTopList.Produce_Definition() );
68 18 : aDefinition.Produce_byData( TypedefAttr::DefiningType(i_ce) );
69 :
70 18 : CurOut() << new Html::HorizontalLine;
71 :
72 18 : write_Docu(aTitle.Add_Row(), i_ce);
73 18 : CurOut() << new Html::HorizontalLine();
74 18 : }
75 :
76 : void
77 18 : HF_IdlTypedef::make_Navibar( const client & i_ce ) const
78 : {
79 : HF_IdlNavigationBar
80 18 : aNaviBar(Env(), CurOut());
81 18 : aNaviBar.Produce_CeMainRow(i_ce);
82 :
83 18 : CurOut() << new Html::HorizontalLine();
84 21 : }
85 :
86 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|