Kaydet (Commit) 5350dfca authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#105631 Notebookbar doesn't use wide buttons

So we want non-split behavior only in SidebarToolBox,
not in the derived NotebookbarToolBox.

Change-Id: I064bbe59b97da301a13889ad78a31227cfd693ee
üst afe76d1a
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include <string> #include <string>
#include <typeinfo>
#include <utility> #include <utility>
#include <comphelper/propertysequence.hxx> #include <comphelper/propertysequence.hxx>
...@@ -2767,7 +2768,7 @@ SvxColorToolBoxControl::SvxColorToolBoxControl( ...@@ -2767,7 +2768,7 @@ SvxColorToolBoxControl::SvxColorToolBoxControl(
sal_uInt16 nId, sal_uInt16 nId,
ToolBox& rTbx ): ToolBox& rTbx ):
ImplInheritanceHelper( nSlotId, nId, rTbx ), ImplInheritanceHelper( nSlotId, nId, rTbx ),
m_bSplitButton(dynamic_cast< sfx2::sidebar::SidebarToolBox* >(&rTbx) == nullptr), m_bSplitButton(typeid(rTbx) != typeid(sfx2::sidebar::SidebarToolBox)),
m_aColorSelectFunction(PaletteManager::DispatchColorCommand) m_aColorSelectFunction(PaletteManager::DispatchColorCommand)
{ {
switch( nSlotId ) switch( nSlotId )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment