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: navibar.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_NAVIBAR_HXX
32 #define ADC_DISPLAY_HTML_NAVIBAR_HXX
52 /** Creates a HTML navigation bar wth the following parts:
54 A main bar with fixed items.
55 Zero to several subbars with user defined items, depending of
56 the contents of the page.
58 The main bar contains those items:
60 Overview | Namespace | Class | Tree | Project | File | Index | Help
72 enum E_CeGatheringType
78 /// Used for Overview, Index and Help.
80 const OuputPage_Environment
&
82 E_GlobalLocation i_eLocation
);
83 /// Used for all Ces except operations and data.
85 const OuputPage_Environment
&
87 const ary::cpp::CodeEntity
&
89 /** Used for operations and data.
92 const OuputPage_Environment
&
94 E_CeGatheringType i_eCeGatheringType
);
98 const char * i_sTitle
);
99 void AddItem( /// Items are added to last made sub-row.
100 const char * i_sName
,
101 const char * i_sLink
,
103 /** This writes the main bar and the pSubRowTable to o_rOut.
104 The pSubRowsTable stays in memory and can be filled later,
105 when all SubRow items are known.
108 csi::xml::Element
& o_rOut
,
109 bool i_bWithSubRows
= false ) const;
110 void Write_SubRows() const;
115 csi::html::Table
* pSubRowsTable
;