1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: hi_factory.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ADC_DISPLAY_HI_FACTORY_HXX
32 #define ADC_DISPLAY_HI_FACTORY_HXX
37 #include <toolkit/htmlfactory.hxx>
40 #include <ary/stdconstiter.hxx>
41 #include <ary/idl/i_types4idl.hxx>
42 #include <toolkit/out_position.hxx>
58 class HtmlEnvironment_Idl
;
62 class HF_SubTitleTable
;
65 class HtmlFactory_Idl
: public HtmlFactory
<HtmlEnvironment_Idl
>
70 viewtype_summary
, // the summary of the members
71 viewtype_details
, // the details of the members
72 viewtype_complete
// everything
77 doctype_summaryOnly
, // only the summary
78 doctype_complete
// the complete documentation
82 typedef ary::idl::CodeEntity client
;
83 typedef ary::idl::Ce_id ce_id
;
84 typedef ary::idl::Type_id type_id
;
85 typedef ary::doc::OldIdlDocu ce_info
;
87 typedef ary::Dyn_StdConstIterator
<ce_id
> dyn_ce_list
;
88 typedef ary::Dyn_StdConstIterator
<type_id
> dyn_type_list
;
89 typedef ary::StdConstIterator
<ce_id
> ce_list
;
90 typedef ary::StdConstIterator
<type_id
> type_list
;
92 typedef HtmlEnvironment_Idl Environment
;
93 typedef output::Position OutPosition
;
97 Environment
& io_rEnv
,
98 Xml::Element
* o_pOut
= 0 )
99 : HtmlFactory
<Environment
>(io_rEnv
, o_pOut
)
101 virtual ~HtmlFactory_Idl() {}
103 /** The default version only calls ->produce_InternalLink().
104 This may be overwritten by derived classes.
106 virtual void produce_SummaryDeclaration(
107 Xml::Element
& o_row
,
108 const client
& i_ce
) const;
109 void produce_InternalLink(
110 Xml::Element
& o_row
,
111 const client
& i_ce
) const;
112 void produce_ShortDoc(
113 Xml::Element
& o_row
,
114 const client
& i_ce
) const;
116 // KORR_FUTURE: Does not belong here (implementation inheritance)!
118 Xml::Element
& o_screen
,
120 const String
& i_sLabel
) const;
121 void produce_Members(
123 const String
& i_summaryTitle
,
124 const String
& i_summaryLabel
,
125 const String
& i_detailsTitle
,
126 const String
& i_detailsLabel
,
127 const E_MemberViewType i_viewType
= viewtype_complete
) const;
130 HF_TitleTable
& o_title
,
131 const String
& i_label
,
132 const client
& i_ce
) const;
133 void get_Annotations(
135 const client
& i_ce
) const;
137 /// Writes complete docu in standard format.
139 Xml::Element
& o_screen
,
140 const client
& i_ce
) const;
142 void write_ManualLinks(
143 Xml::Element
& o_screen
,
144 const client
& i_ce
) const;
146 // Dummy does nothing
147 virtual void produce_MemberDetails(
148 HF_SubTitleTable
& o_table
,
149 const client
& i_ce
) const;
150 void recursive_ShowBases(
151 Xml::Element
& o_screen
,
153 int & io_nDepth
) const;
155 const client
& i_ce
) const
156 { return inq_BaseOf(i_ce
); }
157 virtual type_id
inq_BaseOf(
158 const client
& i_ce
) const;
163 C_sCellStyle_SummaryLeft
;
165 C_sCellStyle_SummaryRight
;
167 C_sCellStyle_MDetail
;