/aoo42x/main/vcl/inc/vcl/ |
H A D | settings.hxx | 516 void Set3DColors( const Color& rColor ); 517 void SetFaceColor( const Color& rColor ) in SetFaceColor() argument 527 void SetLightColor( const Color& rColor ) in SetLightColor() argument 535 void SetShadowColor( const Color& rColor ) in SetShadowColor() argument 567 void SetWindowColor( const Color& rColor ) in SetWindowColor() argument 587 void SetFieldColor( const Color& rColor ) in SetFieldColor() argument 643 void SetHelpColor( const Color& rColor ) in SetHelpColor() argument 651 void SetMenuColor( const Color& rColor ) in SetMenuColor() argument 679 void SetLinkColor( const Color& rColor ) in SetLinkColor() argument 692 void SetMonoColor( const Color& rColor ) in SetMonoColor() argument [all …]
|
H A D | salbtype.hxx | 125 inline BitmapColor( const Color& rColor ); 162 inline BitmapColor& Merge( const BitmapColor& rColor, sal_uInt8 cTransparency ); 244 inline void GetColorFor8Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const; 245 inline void SetColorFor8Bit( const BitmapColor& rColor, HPBYTE pPixel ) const; 252 inline void GetColorFor24Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const; 253 inline void SetColorFor24Bit( const BitmapColor& rColor, HPBYTE pPixel ) const; 255 inline void GetColorFor32Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const; 319 inline BitmapColor::BitmapColor( const Color& rColor ) : in BitmapColor() argument 320 mcBlueOrIndex ( rColor.GetBlue() ), in BitmapColor() 321 mcGreen ( rColor.GetGreen() ), in BitmapColor() [all …]
|
H A D | octree.hxx | 95 void AddColor( const BitmapColor& rColor ); 98 inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor ); 113 inline sal_uInt16 Octree::GetBestPaletteIndex( const BitmapColor& rColor ) in GetBestPaletteIndex() argument 115 pColor = &(BitmapColor&) rColor; in GetBestPaletteIndex() 145 inline sal_uInt16 GetBestPaletteIndex( const BitmapColor& rColor ); 150 inline sal_uInt16 InverseColorMap::GetBestPaletteIndex( const BitmapColor& rColor ) in GetBestPaletteIndex() argument 152 return pMap[ ( ( (sal_uLong) rColor.GetRed() >> nBits ) << OCTREE_BITS_1 ) | in GetBestPaletteIndex() 153 ( ( (sal_uLong) rColor.GetGreen() >> nBits ) << OCTREE_BITS ) | in GetBestPaletteIndex() 154 ( (sal_uLong) rColor.GetBlue() >> nBits ) ]; in GetBestPaletteIndex()
|
/aoo42x/main/basegfx/inc/basegfx/color/ |
H A D | bcolor.hxx | 144 void blend(const BColor& rColor) in blend() argument 147 mfX = rColor.getRed() * fLuminance; in blend() 148 mfY = rColor.getGreen() * fLuminance; in blend() 149 mfZ = rColor.getBlue() * fLuminance; in blend() 163 …le getDistanceRed(const BColor& rColor) const { return (getRed() > rColor.getRed() ? getRed() - rC… in getDistanceRed() 164 …DistanceGreen(const BColor& rColor) const { return (getGreen() > rColor.getGreen() ? getGreen() - … in getDistanceGreen() 165 …getDistanceBlue(const BColor& rColor) const { return (getBlue() > rColor.getBlue() ? getBlue() - r… in getDistanceBlue() 167 double getDistance(const BColor& rColor) const in getDistance() 169 const double fDistR(getDistanceRed(rColor)); in getDistance() 178 const double fDistR(getDistanceRed(rColor)); in getMinimumDistance() [all …]
|
/aoo42x/main/vcl/source/helper/ |
H A D | canvastools.cxx | 774 pRet[0] = toDoubleColor(rColor.GetRed()); in colorToStdColorSpaceSequence() 775 pRet[1] = toDoubleColor(rColor.GetGreen()); in colorToStdColorSpaceSequence() 776 pRet[2] = toDoubleColor(rColor.GetBlue()); in colorToStdColorSpaceSequence() 786 ENSURE_ARG_OR_THROW( rColor.getLength() == 4, in stdColorSpaceSequenceToColor() 791 aColor.SetRed ( toByteColor(rColor[0]) ); in stdColorSpaceSequenceToColor() 792 aColor.SetGreen( toByteColor(rColor[1]) ); in stdColorSpaceSequenceToColor() 793 aColor.SetBlue ( toByteColor(rColor[2]) ); in stdColorSpaceSequenceToColor() 807 toDoubleColor(rColor.GetRed()), in colorToDoubleSequence() 808 toDoubleColor(rColor.GetGreen()), in colorToDoubleSequence() 809 toDoubleColor(rColor.GetBlue()) ); in colorToDoubleSequence() [all …]
|
/aoo42x/main/canvas/source/directx/ |
H A D | dx_impltools.cxx | 373 aRet[0] = ((rColor >> 16) & 0xFF) / 255.0; // red in argbToDoubleSequence() 374 aRet[1] = ((rColor >> 8) & 0xFF) / 255.0; // green in argbToDoubleSequence() 375 aRet[2] = (rColor & 0xFF) / 255.0; // blue in argbToDoubleSequence() 396 ENSURE_OR_THROW( rColor.getLength() > 2, in sequenceToArgb() 402 …lor = (static_cast<sal_uInt8>(rColor[0]) << 16) | (static_cast<sal_uInt8>(rColor[1]) << 8) | stati… in sequenceToArgb() 404 if( rColor.getLength() > 3 ) in sequenceToArgb() 412 ENSURE_OR_THROW( rColor.getLength() > 2, in sequenceToArgb() 418 ::canvas::tools::verifyRange(rColor[0],0.0,1.0); in sequenceToArgb() 419 ::canvas::tools::verifyRange(rColor[1],0.0,1.0); in sequenceToArgb() 420 ::canvas::tools::verifyRange(rColor[2],0.0,1.0); in sequenceToArgb() [all …]
|
/aoo42x/main/vcl/inc/ |
H A D | impoct.hxx | 43 inline ImpErrorQuad( const BitmapColor& rColor ) : in ImpErrorQuad() argument 44 nRed ( (long) rColor.GetRed() << 5L ), in ImpErrorQuad() 45 nGreen ( (long) rColor.GetGreen() << 5L ), in ImpErrorQuad() 46 nBlue ( (long) rColor.GetBlue() << 5L ) {} in ImpErrorQuad() 48 inline void operator=( const BitmapColor& rColor ); 63 nRed = (long) rColor.GetRed() << 5L; in operator =() 64 nGreen = (long) rColor.GetGreen() << 5L; in operator =() 65 nBlue = (long) rColor.GetBlue() << 5L; in operator =() 72 nRed -= ( (long) rColor.GetRed() << 5L ); in operator -=() 73 nGreen -= ( (long) rColor.GetGreen() << 5L ); in operator -=() [all …]
|
/aoo42x/main/sc/source/filter/excel/ |
H A D | xestyle.cxx | 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() 170 sal_uInt32 nWeight2 = rColor.GetWeighting(); 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() 343 if( rColor.GetColor() == COL_AUTO ) in InsertColor() 539 bFound = pEntry->GetColor() == rColor; in SearchListEntry() [all …]
|
/aoo42x/main/vcl/source/gdi/ |
H A D | pngwrite.cxx | 356 *pTmp++ = rColor.GetRed(); in ImplWritePalette() 357 *pTmp++ = rColor.GetGreen(); in ImplWritePalette() 358 *pTmp++ = rColor.GetBlue(); in ImplWritePalette() 565 *pDest++ = rColor.GetRed(); in ImplGetFilter() 566 *pDest++ = rColor.GetGreen(); in ImplGetFilter() 567 *pDest++ = rColor.GetBlue(); in ImplGetFilter() 578 *pDest++ = rColor.GetRed(); in ImplGetFilter() 580 *pDest++ = rColor.GetBlue(); in ImplGetFilter() 594 *pDest++ = rColor.GetRed(); in ImplGetFilter() 595 *pDest++ = rColor.GetGreen(); in ImplGetFilter() [all …]
|
H A D | bmpacc3.cxx | 48 void BitmapWriteAccess::SetLineColor( const Color& rColor ) in SetLineColor() argument 52 if( rColor.GetTransparency() == 255 ) in SetLineColor() 55 …te() ? new BitmapColor( (sal_uInt8) GetBestPaletteIndex( rColor ) ) : new BitmapColor( rColor ) ); in SetLineColor() 82 void BitmapWriteAccess::SetFillColor( const Color& rColor ) in SetFillColor() argument 86 if( rColor.GetTransparency() == 255 ) in SetFillColor() 89 …te() ? new BitmapColor( (sal_uInt8) GetBestPaletteIndex( rColor ) ) : new BitmapColor( rColor ) ); in SetFillColor() 108 void BitmapWriteAccess::Erase( const Color& rColor ) in Erase() argument 112 BitmapColor aColor = rColor; in Erase() 114 aColor = BitmapColor( (sal_uInt8)GetBestPaletteIndex( rColor) ); in Erase() 124 SetFillColor( rColor ); in Erase()
|
H A D | pdfwriter.cxx | 187 void PDFWriter::DrawPixel( const Point& rPos, const Color& rColor ) in DrawPixel() argument 189 ((PDFWriterImpl*)pImplementation)->drawPixel( rPos, rColor ); in DrawPixel() 320 void PDFWriter::SetLineColor( const Color& rColor ) in SetLineColor() argument 322 ((PDFWriterImpl*)pImplementation)->setLineColor( rColor ); in SetLineColor() 325 void PDFWriter::SetFillColor( const Color& rColor ) in SetFillColor() argument 327 ((PDFWriterImpl*)pImplementation)->setFillColor( rColor ); in SetFillColor() 370 void PDFWriter::SetTextColor( const Color& rColor ) in SetTextColor() argument 372 ((PDFWriterImpl*)pImplementation)->setTextColor( rColor ); in SetTextColor() 380 void PDFWriter::SetTextFillColor( const Color& rColor ) in SetTextFillColor() argument 390 void PDFWriter::SetTextLineColor( const Color& rColor ) in SetTextLineColor() argument [all …]
|
H A D | pdfwriter_impl.hxx | 1126 void setLineColor( const Color& rColor ) in setLineColor() argument 1128 …icsStack.front().m_aLineColor = ImplIsColorTransparent(rColor) ? Color( COL_TRANSPARENT ) : rColor; in setLineColor() 1132 void setFillColor( const Color& rColor ) in setFillColor() argument 1134 …icsStack.front().m_aFillColor = ImplIsColorTransparent(rColor) ? Color( COL_TRANSPARENT ) : rColor; in setFillColor() 1144 void setTextLineColor( const Color& rColor ) in setTextLineColor() argument 1146 m_aGraphicsStack.front().m_aTextLineColor = rColor; in setTextLineColor() 1156 void setOverlineColor( const Color& rColor ) in setOverlineColor() argument 1158 m_aGraphicsStack.front().m_aOverlineColor = rColor; in setOverlineColor() 1162 void setTextFillColor( const Color& rColor ) in setTextFillColor() argument 1174 void setTextColor( const Color& rColor ) in setTextColor() argument [all …]
|
/aoo42x/main/sw/source/core/inc/ |
H A D | swfont.hxx | 88 inline void SetColor( const Color& rColor ); 204 inline void SetUnderColor( const Color &rColor ) { aUnderColor = rColor; } in SetUnderColor() argument 206 inline void SetOverColor( const Color &rColor ) { aOverColor = rColor; } in SetOverColor() argument 375 aSub[0].SetColor( rColor ); in SetColor() 376 aSub[1].SetColor( rColor ); in SetColor() 377 aSub[2].SetColor( rColor ); in SetColor() 384 Font::SetColor( rColor ); in SetColor() 392 Font::SetFillColor( rColor ); in SetFillColor() 398 aSub[0].SetFillColor( rColor ); in SetFillColor() 399 aSub[1].SetFillColor( rColor ); in SetFillColor() [all …]
|
/aoo42x/main/cui/source/tabpages/ |
H A D | tpcolor.cxx | 1010 CmykToRgb_Impl (rColor, (sal_uInt16)rColor.GetTransparency() ); in ConvertColorValues() 1011 rColor.SetTransparency ((sal_uInt8) 0); in ConvertColorValues() 1018 RgbToCmyk_Impl (rColor, nK ); in ConvertColorValues() 1208 nColor1 = 255 - rColor.GetRed(); in RgbToCmyk_Impl() 1211 nColor2 = 255 - rColor.GetGreen(); in RgbToCmyk_Impl() 1214 nColor3 = 255 - rColor.GetBlue(); in RgbToCmyk_Impl() 1232 lTemp = 255 - ( rColor.GetRed() + nK ); in CmykToRgb_Impl() 1236 rColor.SetRed( (sal_uInt8)lTemp ); in CmykToRgb_Impl() 1242 rColor.SetGreen( (sal_uInt8)lTemp ); in CmykToRgb_Impl() 1244 lTemp = 255 - ( rColor.GetBlue() + nK ); in CmykToRgb_Impl() [all …]
|
/aoo42x/main/svtools/inc/svtools/ |
H A D | ctrlbox.hxx | 182 virtual sal_uInt16 InsertEntry( const Color& rColor, const XubString& rStr, 191 virtual sal_uInt16 GetEntryPos( const Color& rColor ) const; 197 void SelectEntry( const Color& rColor, sal_Bool bSelect = sal_True ); 204 sal_Bool IsEntrySelected( const Color& rColor ) const; 215 inline void ColorListBox::SelectEntry( const Color& rColor, sal_Bool bSelect ) in SelectEntry() argument 217 sal_uInt16 nPos = GetEntryPos( rColor ); in SelectEntry() 222 inline sal_Bool ColorListBox::IsEntrySelected( const Color& rColor ) const in IsEntrySelected() 224 sal_uInt16 nPos = GetEntryPos( rColor ); in IsEntrySelected() 293 void SetColor( const Color& rColor ); 347 inline void LineListBox::SetColor( const Color& rColor ) in SetColor() argument [all …]
|
/aoo42x/main/sd/source/ui/slidesorter/controller/ |
H A D | SlsProperties.cxx | 176 void Properties::SetBackgroundColor (const Color& rColor) in SetBackgroundColor() argument 178 maBackgroundColor = rColor; in SetBackgroundColor() 191 void Properties::SetTextColor (const Color& rColor) in SetTextColor() argument 193 maTextColor = rColor; in SetTextColor() 207 void Properties::SetSelectionColor (const Color& rColor) in SetSelectionColor() argument 209 maSelectionColor = rColor; in SetSelectionColor() 223 void Properties::SetHighlightColor (const Color& rColor) in SetHighlightColor() argument 225 maHighlightColor = rColor; in SetHighlightColor()
|
/aoo42x/main/drawinglayer/source/attribute/ |
H A D | materialattribute3d.cxx | 48 …ImpMaterialAttribute3D(const basegfx::BColor& rColor, const basegfx::BColor& rSpecular, const base… in ImpMaterialAttribute3D() argument 50 maColor(rColor), in ImpMaterialAttribute3D() 57 ImpMaterialAttribute3D(const basegfx::BColor& rColor) in ImpMaterialAttribute3D() argument 59 maColor(rColor), in ImpMaterialAttribute3D() 101 const basegfx::BColor& rColor, in MaterialAttribute3D() argument 106 rColor, rSpecular, rEmission, nSpecularIntensity)) in MaterialAttribute3D() 111 const basegfx::BColor& rColor) in MaterialAttribute3D() argument 112 : mpMaterialAttribute3D(new ImpMaterialAttribute3D(rColor)) in MaterialAttribute3D()
|
H A D | sdrlineattribute.cxx | 53 const basegfx::BColor& rColor, in ImpSdrLineAttribute() argument 61 maColor(rColor), in ImpSdrLineAttribute() 68 ImpSdrLineAttribute(const basegfx::BColor& rColor) in ImpSdrLineAttribute() argument 73 maColor(rColor), in ImpSdrLineAttribute() 126 const basegfx::BColor& rColor, in SdrLineAttribute() argument 135 rColor, in SdrLineAttribute() 143 const basegfx::BColor& rColor) in SdrLineAttribute() argument 146 rColor)) in SdrLineAttribute()
|
/aoo42x/main/tools/inc/tools/ |
H A D | color.hxx | 163 sal_Bool IsRGBEqual( const Color& rColor ) const; 181 sal_Bool operator==( const Color& rColor ) const in operator ==() 182 { return (mnColor == rColor.mnColor); } in operator ==() 183 sal_Bool operator!=( const Color& rColor ) const in operator !=() 184 { return !(Color::operator==( rColor )); } in operator !=() 189 TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Color& rColor ); 190 TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Color& rColor ); 220 inline sal_Bool Color::IsRGBEqual( const Color& rColor ) const in IsRGBEqual() 222 return (COLORDATA_RGB( mnColor ) == COLORDATA_RGB( rColor.mnColor )); in IsRGBEqual()
|
/aoo42x/main/drawinglayer/source/processor3d/ |
H A D | zbufferprocessor3d.cxx | 213 double decideColorAndOpacity(basegfx::BColor& rColor) in decideColorAndOpacity() argument 218 rColor = mpCurrentMaterial->getColor(); in decideColorAndOpacity() 246 rColor = mrProcessor.getSdrLightingAttribute().solveColorModel( in decideColorAndOpacity() 248 rColor, in decideColorAndOpacity() 257 rColor *= aBlendColor; in decideColorAndOpacity() 262 rColor *= mpCurrentMaterial->getColor(); in decideColorAndOpacity() 272 rColor, in decideColorAndOpacity() 280 rColor.setRed(maIntColor.getX().getVal()); in decideColorAndOpacity() 281 rColor.setGreen(maIntColor.getY().getVal()); in decideColorAndOpacity() 282 rColor.setBlue(maIntColor.getZ().getVal()); in decideColorAndOpacity() [all …]
|
/aoo42x/main/filter/source/flash/ |
H A D | swfwriter2.cxx | 229 void Tag::addRGBA( const Color& rColor ) in addRGBA() argument 231 addUI8( rColor.GetRed() ); in addRGBA() 232 addUI8( rColor.GetGreen() ); in addRGBA() 233 addUI8( rColor.GetBlue() ); in addRGBA() 234 addUI8( 0xff - rColor.GetTransparency() ); in addRGBA() 239 void Tag::addRGB( const Color& rColor ) in addRGB() argument 241 addUI8( rColor.GetRed() ); in addRGB() 242 addUI8( rColor.GetGreen() ); in addRGB() 243 addUI8( rColor.GetBlue() ); in addRGB() 598 GradRecord( sal_uInt8 nRatio, const Color& rColor ) : mnRatio( nRatio ), maColor( rColor ) {} in GradRecord()
|
/aoo42x/main/svtools/source/filter/wmf/ |
H A D | wmfwr.hxx | 144 void WriteColor(const Color & rColor); 157 void WMFRecord_CreateBrushIndirect(const Color& rColor); 159 void WMFRecord_CreatePenIndirect(const Color& rColor, const LineInfo& rLineInfo ); 180 void WMFRecord_SetBkColor(const Color & rColor); 183 void WMFRecord_SetPixel(const Point & rPoint, const Color & rColor); 186 void WMFRecord_SetTextColor(const Color & rColor); 196 void CreateSelectDeletePen( const Color& rColor, const LineInfo& rLineInfo ); 198 void CreateSelectDeleteBrush(const Color& rColor);
|
H A D | wmfwr.cxx | 363 void WMFWriter::WriteColor(const Color & rColor) in WriteColor() argument 365 …*pWMF << (sal_uInt8) rColor.GetRed() << (sal_uInt8) rColor.GetGreen() << (sal_uInt8) rColor.GetBlu… in WriteColor() 416 if( rColor==Color(COL_TRANSPARENT) ) in WMFRecord_CreateBrushIndirect() 421 WriteColor( rColor ); in WMFRecord_CreateBrushIndirect() 521 WriteColor( rColor ); in WMFRecord_CreatePenIndirect() 840 WriteColor(rColor); in WMFRecord_SetBkColor() 860 WriteColor(rColor); in WMFRecord_SetPixel() 899 WriteColor(rColor); in WMFRecord_SetTextColor() 1064 WMFRecord_CreateBrushIndirect(rColor); in CreateSelectDeleteBrush() 1495 aSrcLineColor = rColor; in WriteRecords() [all …]
|
/aoo42x/main/filter/source/graphicfilter/etiff/ |
H A D | etiff.cxx | 345 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local 346 *mpOStm << (sal_uInt16)( rColor.GetRed() << 8 ); in ImplWritePalette() 350 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local 351 *mpOStm << (sal_uInt16)( rColor.GetGreen() << 8 ); in ImplWritePalette() 355 const BitmapColor& rColor = mpAcc->GetPaletteColor( i ); in ImplWritePalette() local 356 *mpOStm << (sal_uInt16)( rColor.GetBlue() << 8 ); in ImplWritePalette() 384 const BitmapColor& rColor = mpAcc->GetPixel( y, x ); in ImplWriteBody() local 385 Compress( rColor.GetRed() ); in ImplWriteBody() 386 Compress( rColor.GetGreen() ); in ImplWriteBody() 387 Compress( rColor.GetBlue() ); in ImplWriteBody()
|
/aoo42x/main/sc/source/filter/inc/ |
H A D | fapihelper.hxx | 59 inline static sal_Int32 ConvertToApiColor( const Color& rColor ) in ConvertToApiColor() argument 60 { return static_cast< sal_Int32 >( rColor.GetColor() ); } in ConvertToApiColor() 197 bool GetColorProperty( Color& rColor, const ::rtl::OUString& rPropName ) const; 223 inline void SetColorProperty( const ::rtl::OUString& rPropName, const Color& rColor ) in SetColorProperty() argument 224 { SetProperty( rPropName, ScfApiHelper::ConvertToApiColor( rColor ) ); } in SetColorProperty() 275 bool ReadValue( Color& rColor ); 293 inline void WriteValue( const Color& rColor ) in WriteValue() argument 294 { WriteValue( ScfApiHelper::ConvertToApiColor( rColor ) ); } in WriteValue()
|