diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-19 23:43:39 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-08-20 00:14:51 +0200 |
commit | cf7db8226240ca7f425cf649e164767988c80001 (patch) | |
tree | 69b6b2c983ea7f417d58c862636c9d510ff8d9b1 /sfx2 | |
parent | 6038ba92be0a4c821ffa29ed0512905e4b3cd8f8 (diff) |
handle new color picker correctly in chart sidebar
This implements the basics for that and implements it in the AreaPanel.
Change-Id: I6d9e5012bbcc2c953d478a09a839f35f2ef64c5b
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index ce02e9ebb2ed..542088a437a9 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -205,6 +205,14 @@ sal_uInt16 SidebarToolBox::GetItemIdForSubToolbarName (const OUString& rsSubTool return 0; } +css::uno::Reference<css::frame::XToolbarController> SidebarToolBox::GetFirstController() +{ + if (maControllers.empty()) + return css::uno::Reference<css::frame::XToolbarController>(); + + return maControllers.begin()->second.mxController; +} + void SidebarToolBox::RegisterHandlers() { if ( ! mbAreHandlersRegistered) |