summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 14:26:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 09:16:30 +0100
commit346db1dac29d63445049c14c6c3e022d419e388e (patch)
tree150da3aa27be5e18a83f252deb4a78c20f3ed172 /sd/source
parente73cba0cea07eedee5507535f585e89e42ea0124 (diff)
RGB_Color method is unnecessary
it has exactly the same effect as just letting the constant be converted to Color via the Color(ColorData) constructor. This commit is part of the process of removing ColorData. Change-Id: Ie12ad451ba3f43a627ebdbb132a5369f5760ba52 Reviewed-on: https://gerrit.libreoffice.org/50038 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/core/anminfo.cxx4
-rw-r--r--sd/source/core/drawdoc4.cxx30
-rw-r--r--sd/source/ui/func/fuoaprms.cxx2
3 files changed, 18 insertions, 18 deletions
diff --git a/sd/source/core/anminfo.cxx b/sd/source/core/anminfo.cxx
index 9902d3dcc6fa..b3192a2e97cf 100644
--- a/sd/source/core/anminfo.cxx
+++ b/sd/source/core/anminfo.cxx
@@ -52,8 +52,8 @@ SdAnimationInfo::SdAnimationInfo(SdrObject& rObject)
mnVerb (0),
mrObject (rObject)
{
- maBlueScreen = RGB_Color(COL_LIGHTMAGENTA);
- maDimColor = RGB_Color(COL_LIGHTGRAY);
+ maBlueScreen = COL_LIGHTMAGENTA;
+ maDimColor = COL_LIGHTGRAY;
}
SdAnimationInfo::SdAnimationInfo(const SdAnimationInfo& rAnmInfo, SdrObject& rObject)
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index 0772dbe74eb6..8b584df557da 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -139,17 +139,17 @@ void SdDrawDocument::CreateLayoutTemplates()
SfxItemSet& rISet = pSheet->GetItemSet();
::basegfx::B2DPolyPolygon aNullPolyPolygon;
- Color aNullCol(RGB_Color(COL_DEFAULT_SHAPE_STROKE));
+ Color aNullCol(COL_DEFAULT_SHAPE_STROKE);
XDash aNullDash;
- XGradient aNullGrad(aNullCol,RGB_Color(COL_WHITE));
+ XGradient aNullGrad(aNullCol,COL_WHITE);
aNullGrad.SetStartIntens( 100 );
aNullGrad.SetEndIntens( 100 );
XHatch aNullHatch(aNullCol);
// Line attributes (Extended OutputDevice)
rISet.Put(XLineStyleItem(drawing::LineStyle_SOLID));
- rISet.Put(XLineColorItem(OUString(), RGB_Color(COL_DEFAULT_SHAPE_STROKE)));
+ rISet.Put(XLineColorItem(OUString(), COL_DEFAULT_SHAPE_STROKE));
rISet.Put(XLineWidthItem(0));
rISet.Put(XLineDashItem(aNullDash));
rISet.Put(XLineStartItem(aNullPolyPolygon));
@@ -162,7 +162,7 @@ void SdDrawDocument::CreateLayoutTemplates()
// Fill attributes (Extended OutputDevice)
rISet.Put(XFillStyleItem(drawing::FillStyle_SOLID));
- rISet.Put(XFillColorItem(OUString(), RGB_Color(COL_DEFAULT_SHAPE_FILLING)));
+ rISet.Put(XFillColorItem(OUString(), COL_DEFAULT_SHAPE_FILLING));
rISet.Put( XFillGradientItem( aNullGrad) );
rISet.Put(XFillHatchItem(aNullHatch));
@@ -174,7 +174,7 @@ void SdDrawDocument::CreateLayoutTemplates()
// Shadow attributes (Drawing Engine)
rISet.Put(makeSdrShadowItem(false));
- rISet.Put(makeSdrShadowColorItem(RGB_Color(COL_GRAY)));
+ rISet.Put(makeSdrShadowColorItem(COL_GRAY));
rISet.Put(makeSdrShadowXDistItem(200)); // 3 mm Shadow distance
rISet.Put(makeSdrShadowYDistItem(200));
@@ -260,7 +260,7 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet = &pSheet->GetItemSet();
pISet->Put(XLineStyleItem(drawing::LineStyle_SOLID));
- pISet->Put(XLineColorItem(OUString(), RGB_Color(COL_BLACK)));
+ pISet->Put(XLineColorItem(OUString(), COL_BLACK));
pISet->Put(XLineWidthItem(150));
::basegfx::B2DPolygon aArrow;
@@ -282,7 +282,7 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet = &pSheet->GetItemSet();
pISet->Put(makeSdrShadowItem(true));
- pISet->Put(makeSdrShadowColorItem(RGB_Color(COL_GRAY)));
+ pISet->Put(makeSdrShadowColorItem(COL_GRAY));
pISet->Put(makeSdrShadowXDistItem(200)); // 3 mm shadow distance
pISet->Put(makeSdrShadowYDistItem(200));
@@ -294,7 +294,7 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet = &pSheet->GetItemSet();
pISet->Put(XFillStyleItem(drawing::FillStyle_NONE));
- pISet->Put(XLineColorItem(OUString(), RGB_Color(COL_BLACK)));
+ pISet->Put(XLineColorItem(OUString(), COL_BLACK));
// Object no fill no line
@@ -378,10 +378,10 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet->Put(XLineStyleItem(drawing::LineStyle_NONE));
pISet->Put(XFillStyleItem(drawing::FillStyle_SOLID));
- pISet->Put(XFillColorItem(OUString(), RGB_Color(COL_CYAN)));
+ pISet->Put(XFillColorItem(OUString(), COL_CYAN));
pISet->Put(makeSdrShadowItem(true));
- pISet->Put(makeSdrShadowColorItem(RGB_Color(COL_GRAY)));
+ pISet->Put(makeSdrShadowColorItem(COL_GRAY));
pISet->Put(makeSdrShadowXDistItem(200)); // 2 mm shadow distance
pISet->Put(makeSdrShadowYDistItem(200));
@@ -405,7 +405,7 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet->Put(XFillColorItem(OUString(), aOrange4));
pISet->Put(makeSdrShadowItem(true));
- pISet->Put(makeSdrShadowColorItem(RGB_Color(COL_GRAY)));
+ pISet->Put(makeSdrShadowColorItem(COL_GRAY));
pISet->Put(makeSdrShadowXDistItem(200)); // 2 mm shadow distance
pISet->Put(makeSdrShadowYDistItem(200));
@@ -477,7 +477,7 @@ void SdDrawDocument::CreateLayoutTemplates()
pISet = &pSheet->GetItemSet();
pISet->Put(XFillStyleItem(drawing::FillStyle_NONE));
- pISet->Put(XLineColorItem(OUString(), RGB_Color(COL_BLACK)));
+ pISet->Put(XLineColorItem(OUString(), COL_BLACK));
pISet->Put(SvxFontHeightItem(423, 100, EE_CHAR_FONTHEIGHT )); // 12 pt
@@ -544,15 +544,15 @@ void SdDrawDocument::CreateDefaultCellStyles()
pSheet->SetHelpId( OUString(), HID_SD_CELL_STYLE_DEFAULT );
SfxItemSet& rISet = pSheet->GetItemSet();
- Color aNullCol(RGB_Color(COL_BLACK));
+ Color aNullCol(COL_BLACK);
- XGradient aNullGrad(aNullCol,RGB_Color(COL_WHITE));
+ XGradient aNullGrad(aNullCol,COL_WHITE);
aNullGrad.SetStartIntens( 100 );
aNullGrad.SetEndIntens( 100 );
XHatch aNullHatch(aNullCol);
rISet.Put(XFillStyleItem(drawing::FillStyle_SOLID));
- rISet.Put(XFillColorItem(OUString(), RGB_Color(0x00ccccff)));
+ rISet.Put(XFillColorItem(OUString(), 0x00ccccff));
vcl::Font aLatinFont, aCJKFont, aCTLFont;
diff --git a/sd/source/ui/func/fuoaprms.cxx b/sd/source/ui/func/fuoaprms.cxx
index 900fe8b7c1d1..5d9375a7862a 100644
--- a/sd/source/ui/func/fuoaprms.cxx
+++ b/sd/source/ui/func/fuoaprms.cxx
@@ -379,7 +379,7 @@ void FuObjectAnimationParameters::DoExecute( SfxRequest& rReq )
else if (nFadeColorSet == ATTR_MIXED)
aSet.InvalidateItem(ATTR_ANIMATION_COLOR);
else
- aSet.Put(SvxColorItem(RGB_Color(COL_LIGHTGRAY), ATTR_ANIMATION_COLOR));
+ aSet.Put(SvxColorItem(COL_LIGHTGRAY, ATTR_ANIMATION_COLOR));
if (nInvisibleSet == ATTR_SET)
aSet.Put(SfxBoolItem(ATTR_ANIMATION_INVISIBLE, bInvisible));