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