1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef ADC_DISPLAY_HF_NAVI_MAIN_HXX
25 #define ADC_DISPLAY_HF_NAVI_MAIN_HXX
26 
27 
28 
29 // USED SERVICES
30 	// BASE CLASSES
31 	// COMPONENTS
32 #include "htmlfactory.hxx"
33 	// PARAMETERS
34 
35 
36 class HF_MainItem;
37 
38 
39 /** @task
40     Create a HTML navigation bar with lightly coloured background.
41 
42     @descr
43     There are three kinds of items:
44     Item with link:             Add_StdItem(),
45     Item without link:          Add_NoneItem(),
46     Item that is current page:  Add_SelfItem().
47 */
48 class HF_NaviMainRow : public HtmlMaker
49 {
50   public:
51     enum E_Style
52     {
53         eStd,
54         eSelf,
55         eNo
56     };
57                         HF_NaviMainRow(
58                             Xml::Element &      o_out );
59                         ~HF_NaviMainRow();
60 
61     void                Add_StdItem(
62                             const char *        i_sText,
63                             const char *        i_sLink );
64     void                Add_SelfItem(
65                             const char *        i_sText );
66     void                Add_NoneItem(
67                             const char *        i_sText );
68 
69     void                Produce_Row();
70 
71   private:
72     // DATA
73     typedef std::vector< DYN HF_MainItem* > ItemList;
74 
75     ItemList            aItems;
76     Xml::Element *      pRow;
77 };
78 
79 
80 
81 // IMPLEMENTATION
82 
83 
84 
85 
86 #endif
87 
88 
89