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_SUB_HXX
29 #define ADC_DISPLAY_HFI_NAVI_SUB_HXX
30 
31 
32 
33 // USED SERVICES
34     // BASE CLASSES
35     // COMPONENTS
36 #include "htmlfactory.hxx"
37     // PARAMETERS
38 
39 
40 class HF_NaviSubRow : public HtmlMaker
41 {
42   public:
43                         HF_NaviSubRow(
44                             Xml::Element &      o_rOut );
45     virtual             ~HF_NaviSubRow();
46 
47     void                AddItem(
48                             const String &      i_sText,
49                             const String &      i_sLink,
50                             bool                i_bSwitchOn );
51     void                SwitchOn(
52                             int                 i_nIndex );
53     void                Produce_Row();
54 
55   private:
56     typedef std::pair<String,String>    SubRow_Data;
57     typedef std::pair<SubRow_Data,bool> SubRow_Item;
58     typedef std::vector<SubRow_Item>    SubRow;
59 
60     /** Puts the row's table into the parent XML-element, but
61         doesn't write the items, because the actvity-status of
62         the subitems isn't known yet.
63     */
64     void                Setup_Row();
65 
66     // DATA
67     SubRow              aRow;
68     Xml::Element *      pMyRow;
69 };
70 
71 
72 
73 
74 // IMPLEMENTATION
75 
76 
77 
78 
79 #endif
80 
81 
82