diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-04-06 09:08:58 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-04-06 09:24:40 +0200 |
commit | cd3835495e2167ff90e5cdd0869138b3e2239aff (patch) | |
tree | 01cc87914dc373307f432518796a296d74e3a5fb /sfx2 | |
parent | b091d1c745d2895b0634983488bd379d357c3342 (diff) |
SidebarToolBox: This function was needed only for InsertPropertyPanel.
Change-Id: I7101ca70418d4d33b0dfbbd2ba6753b6891d7c3c
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index f09a7119d405..faebed984d86 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -152,8 +152,8 @@ Reference<frame::XToolbarController> SidebarToolBox::GetControllerForItemId (con ControllerContainer::const_iterator iController (maControllers.find(nItemId)); if (iController != maControllers.end()) return iController->second; - else - return nullptr; + + return Reference<frame::XToolbarController>(); } void SidebarToolBox::SetController(const sal_uInt16 nItemId, @@ -178,24 +178,6 @@ void SidebarToolBox::SetController(const sal_uInt16 nItemId, RegisterHandlers(); } -sal_uInt16 SidebarToolBox::GetItemIdForSubToolbarName (const OUString& rsSubToolbarName) const -{ - for (ControllerContainer::const_iterator iController(maControllers.begin()), iEnd(maControllers.end()); - iController!=iEnd; - ++iController) - { - Reference<frame::XToolbarController> xController(iController->second); - Reference<frame::XSubToolbarController> xSubToolbarController (xController, UNO_QUERY); - if (xSubToolbarController.is()) - { - const OUString sName (xSubToolbarController->getSubToolbarName()); - if (sName.equals(rsSubToolbarName)) - return iController->first; - } - } - return 0; -} - css::uno::Reference<css::frame::XToolbarController> SidebarToolBox::GetFirstController() { if (maControllers.empty()) |