xref: /AOO41X/main/autodoc/source/display/inc/toolkit/hf_navi_sub.hxx (revision be7fbbea80281c8dc6d65252ecbabc9de1dbee58)
11c78a5d6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
31c78a5d6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
41c78a5d6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
51c78a5d6SAndrew Rist  * distributed with this work for additional information
61c78a5d6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
71c78a5d6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
81c78a5d6SAndrew Rist  * "License"); you may not use this file except in compliance
91c78a5d6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
111c78a5d6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
131c78a5d6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
141c78a5d6SAndrew Rist  * software distributed under the License is distributed on an
151c78a5d6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161c78a5d6SAndrew Rist  * KIND, either express or implied.  See the License for the
171c78a5d6SAndrew Rist  * specific language governing permissions and limitations
181c78a5d6SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
201c78a5d6SAndrew Rist  *************************************************************/
211c78a5d6SAndrew Rist 
221c78a5d6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef ADC_DISPLAY_HF_NAVI_SUB_HXX
25*be7fbbeaSPedro Giffuni #define ADC_DISPLAY_HF_NAVI_SUB_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir 
29cdf0e10cSrcweir // USED SERVICES
30cdf0e10cSrcweir     // BASE CLASSES
31cdf0e10cSrcweir     // COMPONENTS
32cdf0e10cSrcweir #include "htmlfactory.hxx"
33cdf0e10cSrcweir     // PARAMETERS
34cdf0e10cSrcweir 
35cdf0e10cSrcweir 
36cdf0e10cSrcweir class HF_NaviSubRow : public HtmlMaker
37cdf0e10cSrcweir {
38cdf0e10cSrcweir   public:
39cdf0e10cSrcweir                         HF_NaviSubRow(
40cdf0e10cSrcweir                             Xml::Element &      o_rOut );
41cdf0e10cSrcweir     virtual             ~HF_NaviSubRow();
42cdf0e10cSrcweir 
43cdf0e10cSrcweir     void                AddItem(
44cdf0e10cSrcweir                             const String &      i_sText,
45cdf0e10cSrcweir                             const String &      i_sLink,
46cdf0e10cSrcweir                             bool                i_bSwitchOn );
47cdf0e10cSrcweir     void                SwitchOn(
48cdf0e10cSrcweir                             int                 i_nIndex );
49cdf0e10cSrcweir     void                Produce_Row();
50cdf0e10cSrcweir 
51cdf0e10cSrcweir   private:
52cdf0e10cSrcweir     typedef std::pair<String,String>    SubRow_Data;
53cdf0e10cSrcweir     typedef std::pair<SubRow_Data,bool> SubRow_Item;
54cdf0e10cSrcweir     typedef std::vector<SubRow_Item>    SubRow;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     /** Puts the row's table into the parent XML-element, but
57cdf0e10cSrcweir         doesn't write the items, because the actvity-status of
58cdf0e10cSrcweir         the subitems isn't known yet.
59cdf0e10cSrcweir     */
60cdf0e10cSrcweir     void                Setup_Row();
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     // DATA
63cdf0e10cSrcweir     SubRow              aRow;
64cdf0e10cSrcweir     Xml::Element *      pMyRow;
65cdf0e10cSrcweir };
66cdf0e10cSrcweir 
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 
70cdf0e10cSrcweir // IMPLEMENTATION
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 
74cdf0e10cSrcweir 
75cdf0e10cSrcweir #endif
76cdf0e10cSrcweir 
77cdf0e10cSrcweir 
78