summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-10-13 10:20:31 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-10-13 11:12:27 +0300
commit9125a4f3f63a7f49fd307908c181e999120063e0 (patch)
treeef7d47475a37b87cda0e97b766143ab3e4c55cb5 /reportdesign
parentf1bae1b5c0ba7949f6a91ba938be18589f9accaa (diff)
Use FeatureStateEvent directly for status updates
... for SfxPopupWindow and SvxColorToolBoxControl (the latter shares BorderColorStatus with SvxColorWindow_Impl, so it was easier to convert it too). Change-Id: Ifcb23fe5809e467322d1cf4d790420886ac79b47
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index c103c2056f8d..5e058438c64d 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -38,7 +38,6 @@
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <svx/tbcontrl.hxx>
-#include <editeng/colritem.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -195,12 +194,7 @@ void SAL_CALL OToolboxController::statusChanged( const FeatureStateEvent& Event
{
case SID_ATTR_CHAR_COLOR2:
case SID_BACKGROUND_COLOR:
- {
- util::Color nColor(COL_TRANSPARENT);
- Event.State >>= nColor;
- SvxColorItem aColorItem(::Color(nColor), 1);
- static_cast<SvxColorToolBoxControl*>(m_pToolbarController.get())->StateChanged(m_nSlotId,Event.IsEnabled ? SfxItemState::SET : SfxItemState::DISABLED,&aColorItem);
- }
+ m_pToolbarController->statusChanged( Event );
break;
case SID_ATTR_CHAR_FONT:
{