Lines Matching refs:rColor

138     explicit            XclListColor( const Color& rColor, sal_uInt32 nColorId );
152 void Merge( const XclListColor& rColor );
157 XclListColor::XclListColor( const Color& rColor, sal_uInt32 nColorId ) : in XclListColor() argument
158 maColor( rColor ), in XclListColor()
163 ((rColor.GetRed() == 0x00) || (rColor.GetRed() == 0xFF)) && in XclListColor()
164 ((rColor.GetGreen() == 0x00) || (rColor.GetGreen() == 0xFF)) && in XclListColor()
165 ((rColor.GetBlue() == 0x00) || (rColor.GetBlue() == 0xFF)); in XclListColor()
168 void XclListColor::Merge( const XclListColor& rColor ) in Merge() argument
170 sal_uInt32 nWeight2 = rColor.GetWeighting(); in Merge()
174 …maColor.SetRed( lclGetMergedColorComp( maColor.GetRed(), mnWeight, rColor.maColor.GetRed(), … in Merge()
175 …maColor.SetGreen( lclGetMergedColorComp( maColor.GetGreen(), mnWeight, rColor.maColor.GetGreen(), … in Merge()
176 …maColor.SetBlue( lclGetMergedColorComp( maColor.GetBlue(), mnWeight, rColor.maColor.GetBlue(), … in Merge()
189 …inline void Set( const Color& rColor, sal_uInt32 nIndex ) { maColor = rColor; mnIndex = nI… in Set()
198 … inline explicit XclPaletteColor( const Color& rColor ) : maColor( rColor ), mbUsed( false ) {} in XclPaletteColor()
199 inline void SetColor( const Color& rColor ) { maColor = rColor; mbUsed = true; } in SetColor()
238 …sal_uInt32 InsertColor( const Color& rColor, XclExpColorType eType, sal_uInt16 nAutoDefau…
279 XclListColor* SearchListEntry( const Color& rColor, sal_uInt32& rnIndex );
281 XclListColor* CreateListEntry( const Color& rColor, sal_uInt32 nIndex );
293 sal_uInt32 GetNearestListColor( const Color& rColor, sal_uInt32 nIgnore ) const;
302 const Color& rColor, bool bDefaultOnly ) const;
307 const Color& rColor ) const;
341 sal_uInt32 XclExpPaletteImpl::InsertColor( const Color& rColor, XclExpColorType eType, sal_uInt16 n… in InsertColor() argument
343 if( rColor.GetColor() == COL_AUTO ) in InsertColor()
347 XclListColor* pEntry = SearchListEntry( rColor, nFoundIdx ); in InsertColor()
348 if( !pEntry || (pEntry->GetColor() != rColor) ) in InsertColor()
349 pEntry = CreateListEntry( rColor, nFoundIdx ); in InsertColor()
522 XclListColor* XclExpPaletteImpl::SearchListEntry( const Color& rColor, sal_uInt32& rnIndex ) in SearchListEntry() argument
528 if( pEntry && (pEntry->GetColor() == rColor) ) in SearchListEntry()
539 bFound = pEntry->GetColor() == rColor; in SearchListEntry()
542 if( pEntry->GetColor().GetColor() < rColor.GetColor() ) in SearchListEntry()
556 XclListColor* XclExpPaletteImpl::CreateListEntry( const Color& rColor, sal_uInt32 nIndex ) in CreateListEntry() argument
558 XclListColor* pEntry = new XclListColor( rColor, mxColorList->Count() ); in CreateListEntry()
675 sal_uInt32 XclExpPaletteImpl::GetNearestListColor( const Color& rColor, sal_uInt32 nIgnore ) const in GetNearestListColor() argument
686 sal_Int32 nDist = lclGetColorDistance( rColor, pEntry->GetColor() ); in GetNearestListColor()
705 sal_uInt32& rnIndex, const Color& rColor, bool bDefaultOnly ) const in GetNearestPaletteColor() argument
715 sal_Int32 nCurrDist = lclGetColorDistance( rColor, aIt->maColor ); in GetNearestPaletteColor()
727 sal_uInt32& rnFirst, sal_uInt32& rnSecond, const Color& rColor ) const in GetNearPaletteColors()
736 sal_Int32 nCurrDist = lclGetColorDistance( rColor, aIt->maColor ); in GetNearPaletteColors()
767 sal_uInt32 XclExpPalette::InsertColor( const Color& rColor, XclExpColorType eType, sal_uInt16 nAuto… in InsertColor() argument
769 return mxImpl->InsertColor( rColor, eType, nAutoDefault ); in InsertColor()
1718 …riteBorder( XclExpXmlStream& rStrm, sal_Int32 nElement, sal_uInt8 nLineStyle, const Color& rColor ) in lcl_WriteBorder() argument
1723 else if( rColor == Color( 0, 0, 0, 0 ) ) in lcl_WriteBorder()
1733 XML_rgb, XclXmlUtils::ToOString( rColor ).getStr(), in lcl_WriteBorder()