summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-06 15:34:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-06 16:14:30 +0100
commit8e61b0150b9d62d8ffd40089f69f49055187c998 (patch)
treed6541d77e83d80c22c9e129d471781ccf7fec33a /tools
parente03499917e0801ee9e16996a62185c3cd4e08a09 (diff)
drop loading Colors from src files
Change-Id: I43f2fda133371a1284a53beeeb774552210c7e3f
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/color.cxx29
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() ) +