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: hd_docu.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_HTML_HD_DOCU_HXX
32 #define ADC_DISPLAY_HTML_HD_DOCU_HXX
35 #include <ary/ary_disp.hxx>
36 #include <ary/info/infodisp.hxx>
37 #include <cosv/tpl/processor.hxx>
64 class OuputPage_Environment
;
67 class Docu_Display
: public ary::Display
,
68 public csv::ConstProcessor
<ary::cpp::Namespace
>,
69 public csv::ConstProcessor
<ary::cpp::Class
>,
70 public csv::ConstProcessor
<ary::cpp::Enum
>,
71 public csv::ConstProcessor
<ary::cpp::Typedef
>,
72 public csv::ConstProcessor
<ary::cpp::Function
>,
73 public csv::ConstProcessor
<ary::cpp::Variable
>,
74 public csv::ConstProcessor
<ary::doc::Documentation
>,
75 public ary::info::DocuDisplay
,
76 private HtmlDisplay_Impl
80 OuputPage_Environment
&
82 virtual ~Docu_Display();
85 csi::xml::Element
& o_rOut
);
88 virtual void Display_StdTag(
89 const ary::info::StdTag
&
91 virtual void Display_BaseTag(
92 const ary::info::BaseTag
&
94 virtual void Display_ExceptionTag(
95 const ary::info::ExceptionTag
&
97 virtual void Display_ImplementsTag(
98 const ary::info::ImplementsTag
&
100 virtual void Display_KeywordTag(
101 const ary::info::KeywordTag
&
103 virtual void Display_ParameterTag(
104 const ary::info::ParameterTag
&
106 virtual void Display_SeeTag(
107 const ary::info::SeeTag
&
109 virtual void Display_TemplateTag(
110 const ary::info::TemplateTag
&
112 virtual void Display_LabelTag(
113 const ary::info::LabelTag
&
115 virtual void Display_SinceTag(
116 const ary::info::SinceTag
&
119 virtual void Display_DT_Text(
120 const ary::info::DT_Text
&
122 virtual void Display_DT_MaybeLink(
123 const ary::info::DT_MaybeLink
&
125 virtual void Display_DT_Whitespace(
126 const ary::info::DT_Whitespace
&
128 virtual void Display_DT_Eol(
129 const ary::info::DT_Eol
&
131 virtual void Display_DT_Xml(
132 const ary::info::DT_Xml
&
135 using csv::ConstProcessor
<ary::doc::Documentation
>::Process
;
138 // Interface csv::ConstProcessor<>:
139 virtual void do_Process(
140 const ary::cpp::Namespace
&
142 virtual void do_Process(
143 const ary::cpp::Class
&
145 virtual void do_Process(
146 const ary::cpp::Enum
&
148 virtual void do_Process(
149 const ary::cpp::Typedef
&
151 virtual void do_Process(
152 const ary::cpp::Function
&
154 virtual void do_Process(
155 const ary::cpp::Variable
&
157 virtual void do_Process(
158 const ary::doc::Documentation
&
160 // Interface ary::Display:
161 virtual const ary::cpp::Gate
*
162 inq_Get_ReFinder() const;
164 void Start_DocuBlock();
165 void Finish_DocuBlock();
168 const char * i_sText
,
169 const char * i_nFontSize
= "+0" );
170 void Write_TagContents(
171 const ary::info::DocuText
&
174 const ary::info::DocuText
&
176 void Write_TextToken(
177 const String
& i_sText
);
178 void Write_LinkableText(
179 const ary::QualifiedName
&
181 void Write_QualifiedName(
182 const ary::QualifiedName
&
186 bool bUseHtmlInDocuTokens
;
188 /** This is used, if a class documentation is displayed,
189 because for links to members then the "current class"
190 is not the parent, but this class itself.
192 const ary::cpp::Class
*