TabBar.cxx (a2f41a4a) | TabBar.cxx (3091fa8a) |
---|---|
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 --- 222 unchanged lines hidden (view full) --- 231 Invalidate(); 232} 233 234 235 236 237void TabBar::HighlightDeck (const ::rtl::OUString& rsDeckId) 238{ | 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 --- 222 unchanged lines hidden (view full) --- 231 Invalidate(); 232} 233 234 235 236 237void TabBar::HighlightDeck (const ::rtl::OUString& rsDeckId) 238{ |
239 Item* pItem = GetItemForId(rsDeckId); 240 if (pItem != NULL) 241 pItem->mpButton->Check(); | 239 for (ItemContainer::iterator iItem(maItems.begin()),iEnd(maItems.end()); 240 iItem!=iEnd; 241 ++iItem) 242 { 243 if (iItem->msDeckId.equals(rsDeckId)) 244 iItem->mpButton->Check(sal_True); 245 else 246 iItem->mpButton->Check(sal_False); 247 } |
242} 243 244 245 246 247TabBar::Item* TabBar::GetItemForId (const ::rtl::OUString& rsDeckId) 248{ 249 for (ItemContainer::iterator iItem(maItems.begin()),iEnd(maItems.end()); --- 168 unchanged lines hidden --- | 248} 249 250 251 252 253TabBar::Item* TabBar::GetItemForId (const ::rtl::OUString& rsDeckId) 254{ 255 for (ItemContainer::iterator iItem(maItems.begin()),iEnd(maItems.end()); --- 168 unchanged lines hidden --- |