summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ControllerFactory.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-08-05 20:11:40 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-08-05 23:17:24 +0200
commit5a2a266d4bb493a7e9e71616d567cb4ccdf82269 (patch)
tree45d1ce6e5a24df2d9502f83654300691dc8362bd /sfx2/source/sidebar/ControllerFactory.cxx
parent848f685ae8f614ad62d205ef628f259cafb738b3 (diff)
support more command in chart sidebar
We now have a complete toolbar controller in chart2. Change-Id: I007d9b058e3d6800204ac035cc2aef5e93c1208b
Diffstat (limited to 'sfx2/source/sidebar/ControllerFactory.cxx')
-rw-r--r--sfx2/source/sidebar/ControllerFactory.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/ControllerFactory.cxx b/sfx2/source/sidebar/ControllerFactory.cxx
index ff457c298824..62523c573db6 100644
--- a/sfx2/source/sidebar/ControllerFactory.cxx
+++ b/sfx2/source/sidebar/ControllerFactory.cxx
@@ -42,6 +42,7 @@ Reference<frame::XToolbarController> ControllerFactory::CreateToolBoxController(
const sal_uInt16 nItemId,
const OUString& rsCommandName,
const Reference<frame::XFrame>& rxFrame,
+ const Reference<frame::XController>& rxController,
const Reference<awt::XWindow>& rxParentWindow,
const sal_Int32 nWidth)
{
@@ -49,7 +50,7 @@ Reference<frame::XToolbarController> ControllerFactory::CreateToolBoxController(
CreateToolBarController(
pToolBox,
rsCommandName,
- rxFrame,
+ rxFrame, rxController,
nWidth));
// Create a controller for the new item.
@@ -137,13 +138,14 @@ Reference<frame::XToolbarController> ControllerFactory::CreateToolBarController(
ToolBox* pToolBox,
const OUString& rsCommandName,
const Reference<frame::XFrame>& rxFrame,
+ const Reference<frame::XController>& rxController,
const sal_Int32 nWidth)
{
try
{
Reference<XComponentContext> xContext = comphelper::getProcessComponentContext();
Reference<frame::XUIControllerFactory> xFactory = frame::theToolbarControllerFactory::get( xContext );
- OUString sModuleName (Tools::GetModuleName(rxFrame->getController()));
+ OUString sModuleName (Tools::GetModuleName(rxController));
if (xFactory.is() && xFactory->hasController(rsCommandName, sModuleName))
{