diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-06-22 16:00:41 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-06-22 16:52:34 +0400 |
commit | 15f79efe1522389d52d068d620beaa268aaebdeb (patch) | |
tree | c080dd5e644bdb94c062b74e2ea4f8d0dd5366ce /include | |
parent | Export-Import GraphicFilter Test (diff) | |
download | core-15f79efe1522389d52d068d620beaa268aaebdeb.tar.gz core-15f79efe1522389d52d068d620beaa268aaebdeb.zip |
kill TBX_UPDATER_MODE_*
commit 4f036439f7597d33a9f90860d9a5b6ac28b270c7 "Kill unused
TBX_UPDATER_MODE_NONE." removed TBX_UPDATER_MODE_NONE, but it was
actually used, but written as literal 0 in ctor (default value for
nMode). Worse, TBX_UPDATER_MODE_NONE meant "draw a square color mark"
(!) and after removing it color-marks were not drawn for some buttons,
e.g. frame color button.
This patch makes use of TBX_UPDATER_MODE_CHAR_COLOR_NEW (which means
"draw a rectangle color mark") everywhere, TBX_UPDATER_MODE_CHAR_COLOR
and TBX_UPDATER_MODE_CHAR_BACKGROUND were unused.
Change-Id: I7452bf73227cd7038e5ea9ab740745125ca079b4
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/tbxcolorupdate.hxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/svx/tbxcolorupdate.hxx b/include/svx/tbxcolorupdate.hxx index 7dad6e7347dc..3c9c100bbc2b 100644 --- a/include/svx/tbxcolorupdate.hxx +++ b/include/svx/tbxcolorupdate.hxx @@ -33,10 +33,6 @@ namespace svx { //........................................................................ -#define TBX_UPDATER_MODE_CHAR_COLOR 0x01 -#define TBX_UPDATER_MODE_CHAR_BACKGROUND 0x02 -#define TBX_UPDATER_MODE_CHAR_COLOR_NEW 0x03 - //==================================================================== //= ToolboxButtonColorUpdater //==================================================================== @@ -49,14 +45,12 @@ namespace svx public: ToolboxButtonColorUpdater( sal_uInt16 nSlotId, sal_uInt16 nTbxBtnId, - ToolBox* ptrTbx, - sal_uInt16 nMode = 0 ); + ToolBox* ptrTbx); ~ToolboxButtonColorUpdater(); void Update( const Color& rColor ); private: - sal_uInt16 mnDrawMode; sal_uInt16 mnBtnId; sal_uInt16 mnSlotId; ToolBox* mpTbx; |