1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef ADC_DISPLAY_HF_NAVI_MAIN_HXX
29 #define ADC_DISPLAY_HF_NAVI_MAIN_HXX
30 
31 
32 
33 // USED SERVICES
34 	// BASE CLASSES
35 	// COMPONENTS
36 #include "htmlfactory.hxx"
37 	// PARAMETERS
38 
39 
40 class HF_MainItem;
41 
42 
43 /** @task
44     Create a HTML navigation bar with lightly coloured background.
45 
46     @descr
47     There are three kinds of items:
48     Item with link:             Add_StdItem(),
49     Item without link:          Add_NoneItem(),
50     Item that is current page:  Add_SelfItem().
51 */
52 class HF_NaviMainRow : public HtmlMaker
53 {
54   public:
55     enum E_Style
56     {
57         eStd,
58         eSelf,
59         eNo
60     };
61                         HF_NaviMainRow(
62                             Xml::Element &      o_out );
63                         ~HF_NaviMainRow();
64 
65     void                Add_StdItem(
66                             const char *        i_sText,
67                             const char *        i_sLink );
68     void                Add_SelfItem(
69                             const char *        i_sText );
70     void                Add_NoneItem(
71                             const char *        i_sText );
72 
73     void                Produce_Row();
74 
75   private:
76     // DATA
77     typedef std::vector< DYN HF_MainItem* > ItemList;
78 
79     ItemList            aItems;
80     Xml::Element *      pRow;
81 };
82 
83 
84 
85 // IMPLEMENTATION
86 
87 
88 
89 
90 #endif
91 
92 
93