1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef ADC_DISPLAY_HFI_XREFPAGE_HXX
30 #define ADC_DISPLAY_HFI_XREFPAGE_HXX
36 #include "hi_factory.hxx"
41 class HF_IdlXrefs
: public HtmlFactory_Idl
44 typedef void (*F_GET_SUBLIST
)(dyn_ce_list
&, const client
&);
47 Environment
& io_rEnv
,
48 Xml::Element
& o_rOut
,
49 const String
& i_prefix
,
51 virtual ~HF_IdlXrefs();
54 Only lists which are tried to be produced by Produce_List() or
55 Produce_Tree(), will occur in the content directory of the page.
56 They will have links, if the list or tree has at least one element,
57 else the list is mentioned in the directory without link.
59 @param i_label [*i_label == '#']
64 ce_list
& i_iterator
) const;
65 void Write_ManualLinks(
66 const client
& i_ce
) const;
68 Only lists which are tried to be produced by Produce_List() or
69 Produce_Tree(), will occur in the content directory of the page.
70 They will have links, if the list or tree has at least one element,
71 else the list is mentioned in the directory without link.
73 @param i_label [*i_label == '#']
79 F_GET_SUBLIST i_sublistcreator
) const;
84 const String
& i_prefix
,
85 const client
& i_ce
) const;
87 const client
& i_ce
) const;
88 /// @return true if there are any elements in sub lists.
89 void recursive_make_ListInTree(
90 Xml::Element
& o_rDisplay
,
91 uintt i_level
, /// 0 is highest
94 F_GET_SUBLIST i_sublistcreator
) const;
97 Xml::Element
& rContentDirectory
;
98 const client
* pClient
;
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */