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: hfi_xrefpage.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_HFI_XREFPAGE_HXX
32 #define ADC_DISPLAY_HFI_XREFPAGE_HXX
38 #include "hi_factory.hxx"
43 class HF_IdlXrefs
: public HtmlFactory_Idl
46 typedef void (*F_GET_SUBLIST
)(dyn_ce_list
&, const client
&);
49 Environment
& io_rEnv
,
50 Xml::Element
& o_rOut
,
51 const String
& i_prefix
,
53 virtual ~HF_IdlXrefs();
56 Only lists which are tried to be produced by Produce_List() or
57 Produce_Tree(), will occur in the content directory of the page.
58 They will have links, if the list or tree has at least one element,
59 else the list is mentioned in the directory without link.
61 @param i_label [*i_label == '#']
66 ce_list
& i_iterator
) const;
67 void Write_ManualLinks(
68 const client
& i_ce
) const;
70 Only lists which are tried to be produced by Produce_List() or
71 Produce_Tree(), will occur in the content directory of the page.
72 They will have links, if the list or tree has at least one element,
73 else the list is mentioned in the directory without link.
75 @param i_label [*i_label == '#']
81 F_GET_SUBLIST i_sublistcreator
) const;
86 const String
& i_prefix
,
87 const client
& i_ce
) const;
89 const client
& i_ce
) const;
90 /// @return true if there are any elements in sub lists.
91 void recursive_make_ListInTree(
92 Xml::Element
& o_rDisplay
,
93 uintt i_level
, /// 0 is highest
96 F_GET_SUBLIST i_sublistcreator
) const;
99 Xml::Element
& rContentDirectory
;
100 const client
* pClient
;