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: hdimpl.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_HDIMPL_HXX
32 #define ADC_DISPLAY_HDIMPL_HXX
35 #include <udm/html/htmlitem.hxx>
37 #include "easywri.hxx"
38 #include <cosv/bstream.hxx>
39 #include <ary/ary_disp.hxx>
40 #include <ary/cpp/c_namesp.hxx>
41 #include <ary/cpp/c_ce.hxx>
42 #include "aryattrs.hxx" // For compatibility with earlier times, when those funtions were in this header.
54 class OperationSignature
;
76 class OuputPage_Environment
;
79 class HtmlDisplay_Impl
84 const OuputPage_Environment
&
85 Env() const { return *pEnv
; }
88 OuputPage_Environment
&
89 Env() { return *pEnv
; }
90 EasyWriter
& Easy() { return aWriteHelper
; }
91 csi::xml::Element
& CurOut() { return aWriteHelper
.Out(); }
95 OuputPage_Environment
&
99 OuputPage_Environment
*
101 EasyWriter aWriteHelper
;
109 ary::Display
& o_rDisplay
,
110 const ary::AryGroup
&
112 ary::SlotAccessId i_nSlot
);
117 const char * PathPerLevelsUp(
119 const char * i_nPathBelowDestinationLevel
);
121 const char * PathPerRoot(
122 const OuputPage_Environment
&
124 const char * i_sPathFromRootDir
);
125 const char * PathPerNamespace(
126 const OuputPage_Environment
&
128 const char * i_sPathFromNamespaceDir
);
130 void Create_ChildListLabel(
131 csi::xml::Element
& o_rParentElement
,
132 const char * i_sLabel
);
133 DYN
csi::html::Table
&
134 Create_ChildListTable(
135 const char * i_sTitle
);
137 const char * HtmlFileName(
138 const char * i_sPrefix
,
139 const char * i_sEntityName
);
142 ClassFileName( const char * i_sClassLocalName
)
143 { return HtmlFileName( "c-", i_sClassLocalName
); }
145 EnumFileName( const char * i_sEnumLocalName
)
146 { return HtmlFileName( "e-", i_sEnumLocalName
); }
148 TypedefFileName( const char * i_sTypedefLocalName
)
149 { return HtmlFileName( "t-", i_sTypedefLocalName
); }
151 FileFileName( const char * i_sFileLocalName
)
152 { return HtmlFileName( "f-", i_sFileLocalName
); }
154 const char * Path2Class(
156 const char * i_sClassLocalName
);
158 const char * Path2Child(
159 const char * i_sFileName
,
160 const char * i_sSubDir
= 0 );
162 const char * Path2ChildNamespace(
163 const char * i_sLocalName
);
165 String
OperationLink(
166 const ary::cpp::Gate
& i_gate
,
167 const String
& i_sOpName
,
168 ary::cpp::Ce_id i_nOpId
,
169 const char * i_sPrePath
= "" );
170 const char * DataLink(
171 const String
& i_sLocalName
,
172 const char * i_sPrePath
= "" );
175 OperationLabel( const String
& i_sOpName
,
176 ary::cpp::Ce_id i_nOpId
,
177 const ary::cpp::Gate
& i_gate
)
178 { return String(OperationLink(i_gate
, i_sOpName
, i_nOpId
) + 1); } // Skip '#' in front.
180 DataLabel( const String
& i_sLocalName
)
181 { return DataLink(i_sLocalName
) + 1; } // Skip '#' in front.
184 void Get_LinkedTypeText(
185 csi::xml::Element
& o_rOut
,
186 const OuputPage_Environment
&
188 ary::cpp::Type_id i_nId
,
189 bool i_bWithAbsolutifier
= true );
192 const char * Link2Ce(
193 const OuputPage_Environment
&
195 const ary::cpp::CodeEntity
&
198 const char * Link2CppDefinition(
199 const OuputPage_Environment
&
201 const ary::cpp::DefineEntity
&
204 const ary::cpp::CodeEntity
*
206 const OuputPage_Environment
&
208 const ary::QualifiedName
&
210 const ary::cpp::Class
* i_pJustDocumentedClass
);
213 csi::xml::Element
& o_rOut
,
214 Docu_Display
& io_rDisplay
,
215 const ary::cpp::CppEntity
&
218 void WriteOut_TokenList(
219 csi::xml::Element
& o_rOut
,
220 const StringVector
& i_rTokens
,
221 const char * i_sSeparator
);
223 void EraseLeadingSpace(
226 /** @param o_bIsConst
227 *o_bIsConst will be set to true, if o_bIsConst != 0 and function is const.
228 If the function is not const, *o_bIsConst remains unchanged!
231 The same as o_bIsConst.
233 void WriteOut_LinkedFunctionText(
234 csi::xml::Element
& o_rTitleOut
,
235 adcdisp::ParameterTable
&
237 const ary::cpp::Function
&
239 const OuputPage_Environment
&
241 bool * o_bIsConst
= 0,
242 bool * o_bIsVirtual
= 0 );
246 } // namespace dshelp
248 using namespace dshelp
;