Lines Matching refs:sal_Int32

45     typedef ::std::vector< sal_Int32 > ColorVector;
60 static const sal_Int32 spnDmlColors[] = in PresetColorsPool()
133 …for( const sal_Int32* pnEntry = spnDmlColors; pnEntry < STATIC_ARRAY_END( spnDmlColors ); pnEntry … in PresetColorsPool()
137 static const sal_Int32 spnVmlColors[] = in PresetColorsPool()
148 …for( const sal_Int32* pnEntry = spnVmlColors; pnEntry < STATIC_ARRAY_END( spnVmlColors ); pnEntry … in PresetColorsPool()
163 inline void lclRgbToRgbComponents( sal_Int32& ornR, sal_Int32& ornG, sal_Int32& ornB, sal_Int32 nRg… in lclRgbToRgbComponents()
170 inline sal_Int32 lclRgbComponentsToRgb( sal_Int32 nR, sal_Int32 nG, sal_Int32 nB ) in lclRgbComponentsToRgb()
172 return static_cast< sal_Int32 >( (nR << 16) | (nG << 8) | nB ); in lclRgbComponentsToRgb()
175 inline sal_Int32 lclRgbCompToCrgbComp( sal_Int32 nRgbComp ) in lclRgbCompToCrgbComp()
177 return static_cast< sal_Int32 >( nRgbComp * MAX_PERCENT / 255 ); in lclRgbCompToCrgbComp()
180 inline sal_Int32 lclCrgbCompToRgbComp( sal_Int32 nCrgbComp ) in lclCrgbCompToRgbComp()
182 return static_cast< sal_Int32 >( nCrgbComp * 255 / MAX_PERCENT ); in lclCrgbCompToRgbComp()
185 inline sal_Int32 lclGamma( sal_Int32 nComp, double fGamma ) in lclGamma()
187 …return static_cast< sal_Int32 >( pow( static_cast< double >( nComp ) / MAX_PERCENT, fGamma ) * MAX… in lclGamma()
190 void lclSetValue( sal_Int32& ornValue, sal_Int32 nNew, sal_Int32 nMax = MAX_PERCENT ) in lclSetValue()
197 void lclModValue( sal_Int32& ornValue, sal_Int32 nMod, sal_Int32 nMax = MAX_PERCENT ) in lclModValue()
200 …ornValue = getLimitedValue< sal_Int32, double >( static_cast< double >( ornValue ) * nMod / MAX_PE… in lclModValue()
203 void lclOffValue( sal_Int32& ornValue, sal_Int32 nOff, sal_Int32 nMax = MAX_PERCENT ) in lclOffValue()
206 ornValue = getLimitedValue< sal_Int32, sal_Int32 >( ornValue + nOff, 0, nMax ); in lclOffValue()
226 /*static*/ sal_Int32 Color::getDmlPresetColor( sal_Int32 nToken, sal_Int32 nDefaultRgb ) in getDmlPresetColor()
231sal_Int32 nRgbValue = ContainerHelper::getVectorElement( StaticPresetColorsPool::get().maDmlColors… in getDmlPresetColor()
235 /*static*/ sal_Int32 Color::getVmlPresetColor( sal_Int32 nToken, sal_Int32 nDefaultRgb ) in getVmlPresetColor()
240sal_Int32 nRgbValue = ContainerHelper::getVectorElement( StaticPresetColorsPool::get().maVmlColors… in getVmlPresetColor()
249 void Color::setSrgbClr( sal_Int32 nRgb ) in setSrgbClr()
256 void Color::setScrgbClr( sal_Int32 nR, sal_Int32 nG, sal_Int32 nB ) in setScrgbClr()
262 mnC1 = getLimitedValue< sal_Int32, sal_Int32 >( nR, 0, MAX_PERCENT ); in setScrgbClr()
263 mnC2 = getLimitedValue< sal_Int32, sal_Int32 >( nG, 0, MAX_PERCENT ); in setScrgbClr()
264 mnC3 = getLimitedValue< sal_Int32, sal_Int32 >( nB, 0, MAX_PERCENT ); in setScrgbClr()
267 void Color::setHslClr( sal_Int32 nHue, sal_Int32 nSat, sal_Int32 nLum ) in setHslClr()
273 mnC1 = getLimitedValue< sal_Int32, sal_Int32 >( nHue, 0, MAX_DEGREE ); in setHslClr()
274 mnC2 = getLimitedValue< sal_Int32, sal_Int32 >( nSat, 0, MAX_PERCENT ); in setHslClr()
275 mnC3 = getLimitedValue< sal_Int32, sal_Int32 >( nLum, 0, MAX_PERCENT ); in setHslClr()
278 void Color::setPrstClr( sal_Int32 nToken ) in setPrstClr()
280 sal_Int32 nRgbValue = getDmlPresetColor( nToken, API_RGB_TRANSPARENT ); in setPrstClr()
286 void Color::setSchemeClr( sal_Int32 nToken ) in setSchemeClr()
293 void Color::setPaletteClr( sal_Int32 nPaletteIdx ) in setPaletteClr()
300 void Color::setSysClr( sal_Int32 nToken, sal_Int32 nLastRgb ) in setSysClr()
308 void Color::addTransformation( sal_Int32 nElement, sal_Int32 nValue ) in addTransformation()
313 sal_Int32 nToken = getBaseToken( nElement ); in addTransformation()
325sal_Int32 nValue = getLimitedValue< sal_Int32, double >( fTint * MAX_PERCENT + 0.5, -MAX_PERCENT, … in addChartTintTransformation()
334sal_Int32 nValue = getLimitedValue< sal_Int32, double >( fTint * MAX_PERCENT + 0.5, -MAX_PERCENT, … in addExcelTintTransformation()
349 sal_Int32 Color::getColor( const GraphicHelper& rGraphicHelper, sal_Int32 nPhClr ) const in getColor()
425 mnC1 = static_cast< sal_Int32 >( mnC1 * fFactor ); in getColor()
426 mnC2 = static_cast< sal_Int32 >( mnC2 * fFactor ); in getColor()
427 mnC3 = static_cast< sal_Int32 >( mnC3 * fFactor ); in getColor()
437 … mnC1 = static_cast< sal_Int32 >( MAX_PERCENT - (MAX_PERCENT - mnC1) * fFactor ); in getColor()
438 … mnC2 = static_cast< sal_Int32 >( MAX_PERCENT - (MAX_PERCENT - mnC2) * fFactor ); in getColor()
439 … mnC3 = static_cast< sal_Int32 >( MAX_PERCENT - (MAX_PERCENT - mnC3) * fFactor ); in getColor()
523 void Color::setResolvedRgb( sal_Int32 nRgb ) const in setResolvedRgb()
584 mnC1 = static_cast< sal_Int32 >( fR * 255.0 + 0.5 ); in toRgb()
585 mnC2 = static_cast< sal_Int32 >( fG * 255.0 + 0.5 ); in toRgb()
586 mnC3 = static_cast< sal_Int32 >( fB * 255.0 + 0.5 ); in toRgb()
636 …mnC1 = static_cast< sal_Int32 >( ((fG - fB) / fD * 60.0 + 360.0) * PER_DEGREE + 0.5 ) % MAX_DEGREE; in toHsl()
638 … mnC1 = static_cast< sal_Int32 >( ((fB - fR) / fD * 60.0 + 120.0) * PER_DEGREE + 0.5 ); in toHsl()
640 … mnC1 = static_cast< sal_Int32 >( ((fR - fG) / fD * 60.0 + 240.0) * PER_DEGREE + 0.5 ); in toHsl()
643 mnC3 = static_cast< sal_Int32 >( (fMin + fMax) / 2.0 * MAX_PERCENT + 0.5 ); in toHsl()
649 mnC2 = static_cast< sal_Int32 >( fD / (fMin + fMax) * MAX_PERCENT + 0.5 ); in toHsl()
651 mnC2 = static_cast< sal_Int32 >( fD / (2.0 - fMax - fMin) * MAX_PERCENT + 0.5 ); in toHsl()