diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/color.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index c5a14c5d2f56..2c59bc4b9b38 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -26,38 +26,9 @@ #include <tools/color.hxx> #include <tools/debug.hxx> #include <tools/stream.hxx> -#include <tools/rc.hxx> -#include <tools/rcid.h> -#include <tools/resid.hxx> -#include <tools/rc.h> #include <tools/helpers.hxx> #include <basegfx/color/bcolortools.hxx> -Color::Color( const ResId& rResId ) -{ - rResId.SetRT( RSC_COLOR ); - ResMgr* pResMgr = rResId.GetResMgr(); - if ( pResMgr && pResMgr->GetResource( rResId ) ) - { - // Header ueberspringen - pResMgr->Increment( sizeof( RSHEADER_TYPE ) ); - - // Daten laden - sal_uInt16 nRed = pResMgr->ReadShort(); - sal_uInt16 nGreen = pResMgr->ReadShort(); - sal_uInt16 nBlue = pResMgr->ReadShort(); - // one more historical sal_uIntPtr - pResMgr->ReadLong(); - - // RGB-Farbe - mnColor = RGB_COLORDATA( nRed>>8, nGreen>>8, nBlue>>8 ); - } - else - { - mnColor = RGB_COLORDATA( 0, 0, 0 ); - } -} - sal_uInt8 Color::GetColorError( const Color& rCompareColor ) const { const long nErrAbs = labs( (long) rCompareColor.GetRed() - GetRed() ) + |