TabBar.cxx (be6d8c25) TabBar.cxx (a2f41a4a)
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

--- 365 unchanged lines hidden (view full) ---

374 rFocusManager.SetButtons(aButtons);
375}
376
377
378
379
380IMPL_LINK(TabBar, OnToolboxClicked, void*, EMPTYARG)
381{
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

--- 365 unchanged lines hidden (view full) ---

374 rFocusManager.SetButtons(aButtons);
375}
376
377
378
379
380IMPL_LINK(TabBar, OnToolboxClicked, void*, EMPTYARG)
381{
382 if ( ! mpMenuButton)
383 return 0;
384
382 ::std::vector<DeckMenuData> aMenuData;
385 ::std::vector<DeckMenuData> aMenuData;
383
386
384 for(ItemContainer::const_iterator iItem(maItems.begin()),iEnd(maItems.end());
385 iItem!=iEnd;
386 ++iItem)
387 {
388 const DeckDescriptor* pDeckDescriptor = ResourceManager::Instance().GetDeckDescriptor(iItem->msDeckId);
389 if (pDeckDescriptor != NULL)
390 {
391 DeckMenuData aData;

--- 7 unchanged lines hidden (view full) ---

399 }
400 }
401
402 maPopupMenuProvider(
403 Rectangle(
404 mpMenuButton->GetPosPixel(),
405 mpMenuButton->GetSizePixel()),
406 aMenuData);
387 for(ItemContainer::const_iterator iItem(maItems.begin()),iEnd(maItems.end());
388 iItem!=iEnd;
389 ++iItem)
390 {
391 const DeckDescriptor* pDeckDescriptor = ResourceManager::Instance().GetDeckDescriptor(iItem->msDeckId);
392 if (pDeckDescriptor != NULL)
393 {
394 DeckMenuData aData;

--- 7 unchanged lines hidden (view full) ---

402 }
403 }
404
405 maPopupMenuProvider(
406 Rectangle(
407 mpMenuButton->GetPosPixel(),
408 mpMenuButton->GetSizePixel()),
409 aMenuData);
410 mpMenuButton->Check(sal_False);
407
408 return 0;
409}
410
411
412
413} } // end of namespace sfx2::sidebar
411
412 return 0;
413}
414
415
416
417} } // end of namespace sfx2::sidebar