diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-09 20:37:31 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-07-12 18:56:49 +0200 |
commit | 5a72bbd483ddf6c7cc949a8708d1697654cc9ce2 (patch) | |
tree | bcdfc372cbcc82fe65c50617b8568427cae71e8e /sfx2 | |
parent | d976efde8c6398ceb234a3b50541ceba21959aa7 (diff) |
allow also to use non-frame modules for sidebar
One more step away from using the frame as key and moving to the
controller.
Change-Id: I438b7eea2161d49a6f2cbf649bf01b8a2e233ebd
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index a2b00605bf44..027c886089b4 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -807,6 +807,16 @@ Reference<ui::XUIElement> SidebarController::CreateUIElement ( Reference<rendering::XSpriteCanvas> xCanvas (VCLUnoHelper::GetWindow(rxWindow)->GetSpriteCanvas()); aCreationArguments.put("Canvas", makeAny(xCanvas)); } + + if (mxCurrentController.is()) + { + OUString aModule = Tools::GetModuleName(mxCurrentController); + if (!aModule.isEmpty()) + { + aCreationArguments.put("Module", makeAny(aModule)); + } + } + aCreationArguments.put("ApplicationName", makeAny(rContext.msApplication)); aCreationArguments.put("ContextName", makeAny(rContext.msContext)); |