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_chlst.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_CHLST_HXX
32 #define ADC_DISPLAY_HTML_HD_CHLST_HXX
35 #include <ary/ary_disp.hxx>
36 #include <cosv/tpl/processor.hxx>
39 #include <ary/cpp/c_types4cpp.hxx>
65 class ChildList_Display
: public ary::Display
,
66 public csv::ConstProcessor
<ary::cpp::Namespace
>,
67 public csv::ConstProcessor
<ary::cpp::Class
>,
68 public csv::ConstProcessor
<ary::cpp::Enum
>,
69 public csv::ConstProcessor
<ary::cpp::Typedef
>,
70 public csv::ConstProcessor
<ary::cpp::Function
>,
71 public csv::ConstProcessor
<ary::cpp::Variable
>,
72 public csv::ConstProcessor
<ary::cpp::EnumValue
>,
73 private HtmlDisplay_Impl
78 bool & rChildrenExist
;
79 csi::xml::Element
& rOut
;
82 bool & o_rChildrenExist
,
83 csi::xml::Element
& o_rOut
)
84 : rChildrenExist(o_rChildrenExist
),
90 OuputPage_Environment
&
93 OuputPage_Environment
&
95 const ary::cpp::Class
&
98 OuputPage_Environment
&
100 const ary::cpp::Enum
&
103 virtual ~ChildList_Display();
106 Area_Result
& o_rResult
,
107 ary::SlotAccessId i_nSlot
,
108 const char * i_sListLabel
,
109 const char * i_sListTitle
);
110 void Run_GlobalClasses(
111 Area_Result
& o_rResult
,
112 ary::SlotAccessId i_nSlot
,
113 const char * i_sListLabel
,
114 const char * i_sListTitle
,
118 Area_Result
& o_rResult_public
,
119 Area_Result
& o_rResult_protected
,
120 Area_Result
& o_rResult_private
,
121 ary::SlotAccessId i_nSlot
,
122 const char * i_sListLabel_public
,
123 const char * i_sListLabel_protected
,
124 const char * i_sListLabel_private
,
125 const char * i_sListTitle
);
126 void Run_MemberClasses(
127 Area_Result
& o_rResult_public
,
128 Area_Result
& o_rResult_protected
,
129 Area_Result
& o_rResult_private
,
130 ary::SlotAccessId i_nSlot
,
131 const char * i_sListLabel_public
,
132 const char * i_sListLabel_protected
,
133 const char * i_sListLabel_private
,
134 const char * i_sListTitle
,
138 // Interface csv::ConstProcessor<>:
139 virtual void do_Process(
140 const ary::cpp::Namespace
&
142 /** i_rData is shown only, if it passes two filters:
143 it must have the right protection, checked with pFilter,
144 and the right class key (class,struct,union), checked with
145 pClassFilter. A not exsting filter allows i_rData to be
148 virtual void do_Process(
149 const ary::cpp::Class
&
151 virtual void do_Process(
152 const ary::cpp::Enum
&
154 virtual void do_Process(
155 const ary::cpp::Typedef
&
157 virtual void do_Process(
158 const ary::cpp::Function
&
160 virtual void do_Process(
161 const ary::cpp::Variable
&
163 virtual void do_Process(
164 const ary::cpp::EnumValue
&
167 // Interface ary::Display:
168 virtual void do_StartSlot();
169 virtual void do_FinishSlot();
170 virtual const ary::cpp::Gate
*
171 inq_Get_ReFinder() const;
175 const String
& i_sLeftText
,
176 const char * i_sLink
,
177 const ary::info::DocuText
&
179 csi::xml::Element
& rOut
);
180 const ary::AryGroup
&
182 ProtectionArea
& GetArea();
183 ProtectionArea
& GetArea(
184 ary::cpp::E_Protection
186 void SetClassesFilter(
189 { peClassesFilter
= new ary::cpp::E_ClassKey(i_eFilter
); }
190 void UnsetClassesFilter() { peClassesFilter
= 0; }
193 Dyn
<Docu_Display
> pShortDocu_Display
;
194 const ary::cpp::Class
*
196 const ary::cpp::Enum
*
199 Dyn
<S_AreaCo
> pSglArea
;
200 Dyn
<S_AreaCo
> aMemberAreas
[3];
202 Dyn
<ary::cpp::E_ClassKey
>