summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinfried Donkers <osc@dci-electronics.nl>2012-03-07 17:39:03 +0100
committerC├ędric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-03-09 10:26:29 +0100
commit0466a30ca52dc531887c75e2d42b007cc83778f3 (patch)
tree6b3d88c701cac9bf26f3573fe1268b128b13ed6d
parentcbaabc7323f9c35ee414ef9013e9036d045d84dc (diff)
fdo#45671 fix for transparent colour split button
-rw-r--r--sc/source/ui/view/formatsh.cxx9
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx4
2 files changed, 13 insertions, 0 deletions
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 61522d6757dc..dc75138a9120 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -1435,6 +1435,15 @@ void ScFormatShell::ExecuteAttr( SfxRequest& rReq )
pTabViewShell->ExecuteCellFormatDlg( rReq, TP_FONT ); // wenn ToolBar vertikal
break;
+ case SID_BACKGROUND_COLOR:
+ {
+ SvxBrushItem aBrushItem( (const SvxBrushItem&)
+ pTabViewShell->GetSelectionPattern()->GetItem( ATTR_BACKGROUND ) );
+ aBrushItem.SetColor( COL_TRANSPARENT );
+ pTabViewShell->ApplyAttr( aBrushItem );
+ }
+ break;
+
case SID_ATTR_ALIGN_LINEBREAK: // ohne Parameter als Toggle
{
const ScPatternAttr* pAttrs = pTabViewShell->GetSelectionPattern();
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index b434e0062250..0ecf87d08e63 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -2250,6 +2250,10 @@ SvxColorExtToolBoxControl::SvxColorExtToolBoxControl(
switch( nSlotId )
{
case SID_ATTR_CHAR_COLOR:
+ addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:Color" )));
+ nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW;
+ break;
+
case SID_ATTR_CHAR_COLOR2:
addStatusListener( OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharColorExt" )));
nMode = TBX_UPDATER_MODE_CHAR_COLOR_NEW;