summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-01 13:16:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-02 09:18:19 +0100
commit477d2ba662cbd716588519419eece2b4f06d8610 (patch)
treef3aa77adfcd770e8321738bffed8f8243eb11a98
parent82d42fa2c05e8d53ec2c21733a2a9f53412dd2d1 (diff)
delete colordata.hxx
move what we still need into color.hxx Change-Id: Ied7e31eb16468aa334c666b1499a6262f16a6350 Reviewed-on: https://gerrit.libreoffice.org/50561 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--UnoControls/inc/basecontrol.hxx1
-rw-r--r--accessibility/inc/pch/precompiled_acc.hxx1
-rw-r--r--basctl/inc/pch/precompiled_basctl.hxx1
-rw-r--r--chart2/inc/pch/precompiled_chartcontroller.hxx1
-rw-r--r--cppcanvas/inc/pch/precompiled_cppcanvas.hxx1
-rw-r--r--cui/inc/pch/precompiled_cui.hxx1
-rw-r--r--dbaccess/inc/pch/precompiled_dba.hxx1
-rw-r--r--dbaccess/inc/pch/precompiled_dbmm.hxx1
-rw-r--r--dbaccess/inc/pch/precompiled_dbu.hxx1
-rw-r--r--desktop/inc/pch/precompiled_sofficeapp.hxx1
-rw-r--r--editeng/inc/pch/precompiled_editeng.hxx1
-rw-r--r--framework/inc/pch/precompiled_fwe.hxx1
-rw-r--r--framework/inc/pch/precompiled_fwi.hxx1
-rw-r--r--framework/inc/pch/precompiled_fwk.hxx1
-rw-r--r--framework/inc/pch/precompiled_fwl.hxx1
-rw-r--r--include/filter/msfilter/msdffimp.hxx1
-rw-r--r--include/tools/color.hxx34
-rw-r--r--include/tools/colordata.hxx51
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
-rw-r--r--oox/inc/pch/precompiled_oox.hxx1
-rw-r--r--reportdesign/inc/pch/precompiled_rpt.hxx1
-rw-r--r--reportdesign/inc/pch/precompiled_rptui.hxx1
-rw-r--r--reportdesign/source/ui/dlg/CondFormat.cxx2
-rw-r--r--sc/inc/pch/precompiled_sc.hxx1
-rw-r--r--sc/inc/pch/precompiled_scfilt.hxx1
-rw-r--r--sc/source/filter/orcus/interface.cxx1
-rw-r--r--sd/inc/pch/precompiled_sd.hxx1
-rw-r--r--sd/inc/pch/precompiled_sdui.hxx1
-rw-r--r--slideshow/inc/pch/precompiled_slideshow.hxx1
-rw-r--r--solenv/clang-format/blacklist1
-rw-r--r--starmath/inc/pch/precompiled_sm.hxx1
-rw-r--r--svx/inc/pch/precompiled_svx.hxx1
-rw-r--r--svx/inc/pch/precompiled_svxcore.hxx1
-rw-r--r--sw/inc/pch/precompiled_msword.hxx1
-rw-r--r--sw/inc/pch/precompiled_sw.hxx1
-rw-r--r--sw/inc/pch/precompiled_swui.hxx1
-rw-r--r--sw/inc/pch/precompiled_vbaswobj.hxx1
-rw-r--r--sw/source/filter/ww8/wrtw8esh.cxx2
-rw-r--r--vbahelper/inc/pch/precompiled_msforms.hxx1
-rw-r--r--vcl/inc/pch/precompiled_vcl.hxx1
-rw-r--r--writerfilter/inc/pch/precompiled_writerfilter.hxx1
-rw-r--r--writerfilter/source/rtftok/rtfdispatchvalue.cxx1
-rw-r--r--xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx1
43 files changed, 26 insertions, 103 deletions
diff --git a/UnoControls/inc/basecontrol.hxx b/UnoControls/inc/basecontrol.hxx
index 7f81e13335f2..3b218e09142e 100644
--- a/UnoControls/inc/basecontrol.hxx
+++ b/UnoControls/inc/basecontrol.hxx
@@ -83,7 +83,6 @@
#include <com/sun/star/awt/XView.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <osl/mutex.hxx>
-#include <tools/colordata.hxx>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/component.hxx>
#include <rtl/ref.hxx>
diff --git a/accessibility/inc/pch/precompiled_acc.hxx b/accessibility/inc/pch/precompiled_acc.hxx
index ed8944275b47..718113060eec 100644
--- a/accessibility/inc/pch/precompiled_acc.hxx
+++ b/accessibility/inc/pch/precompiled_acc.hxx
@@ -355,7 +355,6 @@
#include <toolkit/helper/convert.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/debug.hxx>
#include <tools/fldunit.hxx>
diff --git a/basctl/inc/pch/precompiled_basctl.hxx b/basctl/inc/pch/precompiled_basctl.hxx
index 0a7accdf5912..ff365de77e51 100644
--- a/basctl/inc/pch/precompiled_basctl.hxx
+++ b/basctl/inc/pch/precompiled_basctl.hxx
@@ -546,7 +546,6 @@
#include <toolkit/dllapi.h>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/chart2/inc/pch/precompiled_chartcontroller.hxx b/chart2/inc/pch/precompiled_chartcontroller.hxx
index 30880931d066..f92d298d8238 100644
--- a/chart2/inc/pch/precompiled_chartcontroller.hxx
+++ b/chart2/inc/pch/precompiled_chartcontroller.hxx
@@ -526,7 +526,6 @@
#include <svx/xtextit0.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
index 187a5a9a472e..491ee18fb1c7 100644
--- a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
+++ b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
@@ -180,7 +180,6 @@
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fontenum.hxx>
#include <tools/gen.hxx>
diff --git a/cui/inc/pch/precompiled_cui.hxx b/cui/inc/pch/precompiled_cui.hxx
index c6ac8c055c58..cfebfb9ccc5a 100644
--- a/cui/inc/pch/precompiled_cui.hxx
+++ b/cui/inc/pch/precompiled_cui.hxx
@@ -423,7 +423,6 @@
#include <svx/xpool.hxx>
#include <svx/xtable.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/dbaccess/inc/pch/precompiled_dba.hxx b/dbaccess/inc/pch/precompiled_dba.hxx
index 893a4cd5af2e..9e39d3b10338 100644
--- a/dbaccess/inc/pch/precompiled_dba.hxx
+++ b/dbaccess/inc/pch/precompiled_dba.hxx
@@ -266,7 +266,6 @@
#include <svtools/svtdllapi.h>
#include <svtools/svtresid.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/fontenum.hxx>
diff --git a/dbaccess/inc/pch/precompiled_dbmm.hxx b/dbaccess/inc/pch/precompiled_dbmm.hxx
index 9be073ccefd5..d8331303f9cb 100644
--- a/dbaccess/inc/pch/precompiled_dbmm.hxx
+++ b/dbaccess/inc/pch/precompiled_dbmm.hxx
@@ -200,7 +200,6 @@
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fontenum.hxx>
#include <tools/gen.hxx>
diff --git a/dbaccess/inc/pch/precompiled_dbu.hxx b/dbaccess/inc/pch/precompiled_dbu.hxx
index 02c6017e136e..1a7661b30ce4 100644
--- a/dbaccess/inc/pch/precompiled_dbu.hxx
+++ b/dbaccess/inc/pch/precompiled_dbu.hxx
@@ -156,7 +156,6 @@
#include <svtools/treelistentry.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/gen.hxx>
diff --git a/desktop/inc/pch/precompiled_sofficeapp.hxx b/desktop/inc/pch/precompiled_sofficeapp.hxx
index e6713d6badfb..02702f9444a4 100644
--- a/desktop/inc/pch/precompiled_sofficeapp.hxx
+++ b/desktop/inc/pch/precompiled_sofficeapp.hxx
@@ -250,7 +250,6 @@
#include <svtools/svtdllapi.h>
#include <svtools/svtresid.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fldunit.hxx>
#include <tools/fontenum.hxx>
diff --git a/editeng/inc/pch/precompiled_editeng.hxx b/editeng/inc/pch/precompiled_editeng.hxx
index 0a211a7863b1..1d46896001e9 100644
--- a/editeng/inc/pch/precompiled_editeng.hxx
+++ b/editeng/inc/pch/precompiled_editeng.hxx
@@ -296,7 +296,6 @@
#include <svl/svldllapi.h>
#include <svtools/svtdllapi.h>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/debug.hxx>
diff --git a/framework/inc/pch/precompiled_fwe.hxx b/framework/inc/pch/precompiled_fwe.hxx
index ffc8eaa5bc23..c3c7e9898a90 100644
--- a/framework/inc/pch/precompiled_fwe.hxx
+++ b/framework/inc/pch/precompiled_fwe.hxx
@@ -221,7 +221,6 @@
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fldunit.hxx>
#include <tools/fontenum.hxx>
diff --git a/framework/inc/pch/precompiled_fwi.hxx b/framework/inc/pch/precompiled_fwi.hxx
index ebec55796126..bbbf2ec1cd38 100644
--- a/framework/inc/pch/precompiled_fwi.hxx
+++ b/framework/inc/pch/precompiled_fwi.hxx
@@ -131,7 +131,6 @@
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fontenum.hxx>
#include <tools/gen.hxx>
diff --git a/framework/inc/pch/precompiled_fwk.hxx b/framework/inc/pch/precompiled_fwk.hxx
index ea7ce2be8d88..bee2b17a6a84 100644
--- a/framework/inc/pch/precompiled_fwk.hxx
+++ b/framework/inc/pch/precompiled_fwk.hxx
@@ -311,7 +311,6 @@
#include <toolkit/helper/mutexhelper.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fontenum.hxx>
#include <tools/gen.hxx>
diff --git a/framework/inc/pch/precompiled_fwl.hxx b/framework/inc/pch/precompiled_fwl.hxx
index b77f7bf005df..dbd6bebac772 100644
--- a/framework/inc/pch/precompiled_fwl.hxx
+++ b/framework/inc/pch/precompiled_fwl.hxx
@@ -329,7 +329,6 @@
#include <toolkit/helper/macros.hxx>
#include <toolkit/helper/mutexhelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/debug.hxx>
#include <tools/fldunit.hxx>
diff --git a/include/filter/msfilter/msdffimp.hxx b/include/filter/msfilter/msdffimp.hxx
index a33ad902408f..0b64394794ce 100644
--- a/include/filter/msfilter/msdffimp.hxx
+++ b/include/filter/msfilter/msdffimp.hxx
@@ -39,7 +39,6 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
#include <svx/msdffdef.hxx>
-#include <tools/colordata.hxx>
#include <vcl/errcode.hxx>
#include <tools/gen.hxx>
#include <tools/ref.hxx>
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index 1f6012d98151..7d9202282ea9 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -19,39 +19,46 @@
#ifndef INCLUDED_TOOLS_COLOR_HXX
#define INCLUDED_TOOLS_COLOR_HXX
+#include <sal/types.h>
#include <tools/toolsdllapi.h>
-#include <tools/colordata.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <basegfx/color/bcolor.hxx>
class SvStream;
+constexpr sal_uInt8 COLORDATA_RED( sal_uInt32 n ) { return static_cast<sal_uInt8>(n>>16); }
+constexpr sal_uInt8 COLORDATA_GREEN( sal_uInt32 n ) { return static_cast<sal_uInt8>(static_cast<sal_uInt16>(n) >> 8); }
+constexpr sal_uInt8 COLORDATA_BLUE( sal_uInt32 n ) { return static_cast<sal_uInt8>(n); }
+constexpr sal_uInt8 COLORDATA_TRANSPARENCY( sal_uInt32 n ) { return static_cast<sal_uInt8>(n>>24); }
+constexpr sal_uInt32 COLORDATA_RGB( sal_uInt32 n ) { return static_cast<sal_uInt32>(n & 0x00FFFFFF); }
// Color
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC Color final
{
- ColorData mnColor;
+ sal_uInt32 mnColor;
public:
constexpr Color()
: mnColor(0) // black
{}
- constexpr Color(ColorData nColor)
+ constexpr Color(sal_uInt32 nColor)
: mnColor(nColor)
{}
- constexpr Color(sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
- : mnColor(RGB_COLORDATA(nRed, nGreen, nBlue))
- {}
constexpr Color(sal_uInt8 nTransparency, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
- : mnColor(TRGB_COLORDATA(nTransparency, nRed, nGreen, nBlue))
+ : mnColor( sal_uInt32(nBlue) | (sal_uInt32(nGreen) << 8) | (sal_uInt32(nRed) << 16)
+ | (sal_uInt32(nTransparency) << 24) )
+ {}
+ constexpr Color(sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
+ : Color(0, nRed, nGreen, nBlue)
{}
// constructor to create a tools-Color from ::basegfx::BColor
explicit Color(const basegfx::BColor& rBColor)
- : mnColor(RGB_COLORDATA(sal_uInt8((rBColor.getRed() * 255.0) + 0.5),
- sal_uInt8((rBColor.getGreen() * 255.0) + 0.5),
- sal_uInt8((rBColor.getBlue() * 255.0) + 0.5)))
+ : Color(0,
+ sal_uInt8((rBColor.getRed() * 255.0) + 0.5),
+ sal_uInt8((rBColor.getGreen() * 255.0) + 0.5),
+ sal_uInt8((rBColor.getBlue() * 255.0) + 0.5))
{}
/** Primarily used when passing Color objects to UNO API */
@@ -91,7 +98,7 @@ public:
return COLORDATA_TRANSPARENCY(mnColor);
}
- ColorData GetColor() const
+ sal_uInt32 GetColor() const
{
return mnColor;
}
@@ -198,6 +205,11 @@ inline sal_uInt8 Color::GetLuminance() const
COLORDATA_RED(mnColor) * 76UL) >> 8);
}
+constexpr sal_uInt8 ColorChannelMerge(sal_uInt8 nDst, sal_uInt8 nSrc, sal_uInt8 nSrcTrans)
+{
+ return static_cast<sal_uInt8>(((static_cast<sal_Int32>(nDst)-nSrc)*nSrcTrans+((nSrc<<8)|nDst))>>8);
+};
+
inline void Color::Merge( const Color& rMergeColor, sal_uInt8 cTransparency )
{
SetRed(ColorChannelMerge(COLORDATA_RED(mnColor), COLORDATA_RED(rMergeColor.mnColor), cTransparency));
diff --git a/include/tools/colordata.hxx b/include/tools/colordata.hxx
deleted file mode 100644
index 6159e49b947d..000000000000
--- a/include/tools/colordata.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED_TOOLS_COLORDATA_HXX
-#define INCLUDED_TOOLS_COLORDATA_HXX
-
-#include <sal/types.h>
-
-// Color types
-typedef sal_uInt32 ColorData;
-
-constexpr ColorData TRGB_COLORDATA(
- sal_uInt8 TRANSPARENCE, sal_uInt8 RED, sal_uInt8 GREEN, sal_uInt8 BLUE)
-{
- return sal_uInt32(BLUE) | (sal_uInt32(GREEN) << 8) | (sal_uInt32(RED) << 16)
- | (sal_uInt32(TRANSPARENCE) << 24);
-}
-
-constexpr ColorData RGB_COLORDATA(sal_uInt8 r, sal_uInt8 g, sal_uInt8 b) {
- return sal_uInt32(b) | (sal_uInt32(g) << 8) | (sal_uInt32(r) << 16);
-}
-
-#define COLORDATA_RED( n ) (static_cast<sal_uInt8>((n)>>16))
-#define COLORDATA_GREEN( n ) (static_cast<sal_uInt8>((static_cast<sal_uInt16>(n)) >> 8))
-#define COLORDATA_BLUE( n ) (static_cast<sal_uInt8>(n))
-#define COLORDATA_TRANSPARENCY( n ) (static_cast<sal_uInt8>((n)>>24))
-#define COLORDATA_RGB( n ) (static_cast<ColorData>((n) & 0x00FFFFFF))
-
-constexpr sal_uInt8 ColorChannelMerge(sal_uInt8 nDst, sal_uInt8 nSrc, sal_uInt8 nSrcTrans)
-{
- return static_cast<sal_uInt8>(((static_cast<sal_Int32>(nDst)-nSrc)*nSrcTrans+((nSrc<<8)|nDst))>>8);
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index ac131ddabe30..87b69ec409af 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1680,7 +1680,7 @@ static const GdkRGBA& getDarkColor(int nViewId, LOKDocViewPrivate& priv)
}
else
{
- // Based on tools/colordata.hxx, COL_AUTHOR1_DARK..COL_AUTHOR9_DARK.
+ // Based on tools/color.hxx, COL_AUTHOR1_DARK..COL_AUTHOR9_DARK.
static std::vector<GdkRGBA> aColors =
{
{(double(198))/255, (double(146))/255, (double(0))/255, 0},
diff --git a/oox/inc/pch/precompiled_oox.hxx b/oox/inc/pch/precompiled_oox.hxx
index 4c434d71b586..2bfc8539945a 100644
--- a/oox/inc/pch/precompiled_oox.hxx
+++ b/oox/inc/pch/precompiled_oox.hxx
@@ -192,7 +192,6 @@
#include <svx/msdffdef.hxx>
#include <svx/svxdllapi.h>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/gen.hxx>
#include <tools/lineend.hxx>
diff --git a/reportdesign/inc/pch/precompiled_rpt.hxx b/reportdesign/inc/pch/precompiled_rpt.hxx
index cf5a14a1f734..500aaf0b8ad5 100644
--- a/reportdesign/inc/pch/precompiled_rpt.hxx
+++ b/reportdesign/inc/pch/precompiled_rpt.hxx
@@ -321,7 +321,6 @@
#include <svx/xpoly.hxx>
#include <svx/xtable.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/reportdesign/inc/pch/precompiled_rptui.hxx b/reportdesign/inc/pch/precompiled_rptui.hxx
index 3ae03c15dbb3..3d6dbb15c71e 100644
--- a/reportdesign/inc/pch/precompiled_rptui.hxx
+++ b/reportdesign/inc/pch/precompiled_rptui.hxx
@@ -540,7 +540,6 @@
#include <toolkit/helper/convert.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/reportdesign/source/ui/dlg/CondFormat.cxx b/reportdesign/source/ui/dlg/CondFormat.cxx
index 896d9e77b6fe..82668f4a1f09 100644
--- a/reportdesign/source/ui/dlg/CondFormat.cxx
+++ b/reportdesign/source/ui/dlg/CondFormat.cxx
@@ -384,7 +384,7 @@ namespace rptui
aArgs[1].Value <<= VCLUnoHelper::GetInterface(this);
aArgs[2].Name = PROPERTY_FONTCOLOR;
- aArgs[2].Value <<= static_cast<sal_uInt32>(rColor.GetColor());
+ aArgs[2].Value <<= rColor;
// we use this way to create undo actions
m_rController.executeUnChecked(_nCommandId,aArgs);
diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx
index c9295f13954f..2d86f4b9acbc 100644
--- a/sc/inc/pch/precompiled_sc.hxx
+++ b/sc/inc/pch/precompiled_sc.hxx
@@ -580,7 +580,6 @@
#include <tokenstringcontext.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/sc/inc/pch/precompiled_scfilt.hxx b/sc/inc/pch/precompiled_scfilt.hxx
index 655762a5460d..d17d8dfd9c1a 100644
--- a/sc/inc/pch/precompiled_scfilt.hxx
+++ b/sc/inc/pch/precompiled_scfilt.hxx
@@ -302,7 +302,6 @@
#include <tokenarray.hxx>
#include <tokenuno.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/debug.hxx>
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index e48250d14d52..bfe47d8ade34 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -51,7 +51,6 @@
#include <comphelper/processfactory.hxx>
#include <i18nlangtag/lang.h>
#include <vcl/outdev.hxx>
-#include <tools/colordata.hxx>
#include <tools/fontenum.hxx>
#include <stylesbuffer.hxx>
diff --git a/sd/inc/pch/precompiled_sd.hxx b/sd/inc/pch/precompiled_sd.hxx
index 72c6df6d18d3..71542643b8ea 100644
--- a/sd/inc/pch/precompiled_sd.hxx
+++ b/sd/inc/pch/precompiled_sd.hxx
@@ -523,7 +523,6 @@
#include <textapi.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
diff --git a/sd/inc/pch/precompiled_sdui.hxx b/sd/inc/pch/precompiled_sdui.hxx
index 3ade8ea3b434..769f7b360ad6 100644
--- a/sd/inc/pch/precompiled_sdui.hxx
+++ b/sd/inc/pch/precompiled_sdui.hxx
@@ -544,7 +544,6 @@
#include <svx/xtable.hxx>
#include <svx/xtextit0.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/slideshow/inc/pch/precompiled_slideshow.hxx b/slideshow/inc/pch/precompiled_slideshow.hxx
index aa4a587c1cb9..70167a428d12 100644
--- a/slideshow/inc/pch/precompiled_slideshow.hxx
+++ b/slideshow/inc/pch/precompiled_slideshow.hxx
@@ -249,7 +249,6 @@
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/fldunit.hxx>
diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist
index 41e3a7a55169..132012672e72 100644
--- a/solenv/clang-format/blacklist
+++ b/solenv/clang-format/blacklist
@@ -7767,7 +7767,6 @@ include/toolkit/helper/vclunohelper.hxx
include/tools/b3dtrans.hxx
include/tools/bigint.hxx
include/tools/color.hxx
-include/tools/colordata.hxx
include/tools/config.hxx
include/tools/contnr.hxx
include/tools/cpuid.hxx
diff --git a/starmath/inc/pch/precompiled_sm.hxx b/starmath/inc/pch/precompiled_sm.hxx
index da3b65d795f4..38380c516ef8 100644
--- a/starmath/inc/pch/precompiled_sm.hxx
+++ b/starmath/inc/pch/precompiled_sm.hxx
@@ -125,7 +125,6 @@
#include <svx/svxdllapi.h>
#include <symbol.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/gen.hxx>
#include <tools/link.hxx>
diff --git a/svx/inc/pch/precompiled_svx.hxx b/svx/inc/pch/precompiled_svx.hxx
index 3b696f3c5ed4..61fa131fec85 100644
--- a/svx/inc/pch/precompiled_svx.hxx
+++ b/svx/inc/pch/precompiled_svx.hxx
@@ -397,7 +397,6 @@
#include <toolkit/helper/convert.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/debug.hxx>
diff --git a/svx/inc/pch/precompiled_svxcore.hxx b/svx/inc/pch/precompiled_svxcore.hxx
index df9ad09c4e62..6edc695c8495 100644
--- a/svx/inc/pch/precompiled_svxcore.hxx
+++ b/svx/inc/pch/precompiled_svxcore.hxx
@@ -441,7 +441,6 @@
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/bigint.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/debug.hxx>
diff --git a/sw/inc/pch/precompiled_msword.hxx b/sw/inc/pch/precompiled_msword.hxx
index c7dcc9fa9c85..faa6ba21b06d 100644
--- a/sw/inc/pch/precompiled_msword.hxx
+++ b/sw/inc/pch/precompiled_msword.hxx
@@ -657,7 +657,6 @@
#include <swtypes.hxx>
#include <tblsel.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx
index f2fe8c7b4001..61baf2411795 100644
--- a/sw/inc/pch/precompiled_sw.hxx
+++ b/sw/inc/pch/precompiled_sw.hxx
@@ -531,7 +531,6 @@
#include <tgrditem.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
#include <tools/datetimeutils.hxx>
diff --git a/sw/inc/pch/precompiled_swui.hxx b/sw/inc/pch/precompiled_swui.hxx
index aef3030fd050..deee95c725bf 100644
--- a/sw/inc/pch/precompiled_swui.hxx
+++ b/sw/inc/pch/precompiled_swui.hxx
@@ -638,7 +638,6 @@
#include <tblenum.hxx>
#include <tblsel.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>
diff --git a/sw/inc/pch/precompiled_vbaswobj.hxx b/sw/inc/pch/precompiled_vbaswobj.hxx
index 59bda3e0b690..41c16901d910 100644
--- a/sw/inc/pch/precompiled_vbaswobj.hxx
+++ b/sw/inc/pch/precompiled_vbaswobj.hxx
@@ -433,7 +433,6 @@
#include <tblenum.hxx>
#include <tblsel.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
diff --git a/sw/source/filter/ww8/wrtw8esh.cxx b/sw/source/filter/ww8/wrtw8esh.cxx
index 4e5c1a2838fa..43457576b0d6 100644
--- a/sw/source/filter/ww8/wrtw8esh.cxx
+++ b/sw/source/filter/ww8/wrtw8esh.cxx
@@ -2009,7 +2009,7 @@ sal_Int32 SwBasicEscherEx::WriteFlyFrameAttr(const SwFrameFormat& rFormat,
const sal_uInt16 nCstScale = 635; // unit scale between AOO and MS Word
const sal_uInt32 nShadowType = 131074; // shadow type of ms word. need to set the default value.
- sal_uInt32 nColor = static_cast<sal_uInt32>(pSI->GetColor().GetColor()) ;
+ sal_uInt32 nColor = sal_uInt32(pSI->GetColor());
sal_Int32 nOffX = pSI->GetWidth() * nCstScale;
sal_Int32 nOffY = pSI->GetWidth() * nCstScale;
diff --git a/vbahelper/inc/pch/precompiled_msforms.hxx b/vbahelper/inc/pch/precompiled_msforms.hxx
index a55acf2244de..4a3e19b5683f 100644
--- a/vbahelper/inc/pch/precompiled_msforms.hxx
+++ b/vbahelper/inc/pch/precompiled_msforms.hxx
@@ -232,7 +232,6 @@
#include <svtools/svtdllapi.h>
#include <svtools/svtresid.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/debug.hxx>
#include <tools/fontenum.hxx>
#include <tools/gen.hxx>
diff --git a/vcl/inc/pch/precompiled_vcl.hxx b/vcl/inc/pch/precompiled_vcl.hxx
index baba6050db5f..3c350c16e197 100644
--- a/vcl/inc/pch/precompiled_vcl.hxx
+++ b/vcl/inc/pch/precompiled_vcl.hxx
@@ -278,7 +278,6 @@
#include <svl/svldllapi.h>
#include <test/outputdevice.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/date.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
diff --git a/writerfilter/inc/pch/precompiled_writerfilter.hxx b/writerfilter/inc/pch/precompiled_writerfilter.hxx
index 98884e139baf..ba0a161161be 100644
--- a/writerfilter/inc/pch/precompiled_writerfilter.hxx
+++ b/writerfilter/inc/pch/precompiled_writerfilter.hxx
@@ -96,7 +96,6 @@
#include <ooxml/resourceids.hxx>
#include <sfx2/dllapi.h>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/gen.hxx>
#include <tools/solar.h>
#include <tools/toolsdllapi.h>
diff --git a/writerfilter/source/rtftok/rtfdispatchvalue.cxx b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
index 3408375884a1..66789d3e6824 100644
--- a/writerfilter/source/rtftok/rtfdispatchvalue.cxx
+++ b/writerfilter/source/rtftok/rtfdispatchvalue.cxx
@@ -15,7 +15,6 @@
#include <i18nlangtag/languagetag.hxx>
#include <osl/thread.h>
#include <rtl/tencinfo.h>
-#include <tools/colordata.hxx>
#include <tools/mapunit.hxx>
#include <ooxml/resourceids.hxx>
diff --git a/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx b/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx
index 0c01d24701c7..66b02c04f3ba 100644
--- a/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx
+++ b/xmlsecurity/inc/pch/precompiled_xmlsecurity.hxx
@@ -314,7 +314,6 @@
#include <svtools/treelistentries.hxx>
#include <svtools/viewdataentry.hxx>
#include <tools/color.hxx>
-#include <tools/colordata.hxx>
#include <tools/contnr.hxx>
#include <tools/date.hxx>
#include <tools/datetime.hxx>