Kaydet (Commit) f4533526 authored tarafından Armin Le Grand's avatar Armin Le Grand

i121791 Corrected names for LineDashes, cleaned up resources

üst ef75cc7b
...@@ -386,13 +386,13 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) ...@@ -386,13 +386,13 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
if (pEntry->GetName () == pName->GetValue ()) if (pEntry->GetName () == pName->GetValue ())
{ {
XGradient &rGradient = pEntry->GetGradient (); XGradient aGradient(pEntry->GetGradient());
if (rReq.GetSlot () == SID_SETGRADSTARTCOLOR) rGradient.SetStartColor (aColor); if (rReq.GetSlot () == SID_SETGRADSTARTCOLOR) aGradient.SetStartColor (aColor);
else rGradient.SetEndColor (aColor); else aGradient.SetEndColor (aColor);
pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE); pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
pAttr->Put (XFillGradientItem (pName->GetValue (), rGradient), XATTR_FILLGRADIENT); pAttr->Put (XFillGradientItem (pName->GetValue (), aGradient), XATTR_FILLGRADIENT);
break; break;
} }
} }
...@@ -446,12 +446,12 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) ...@@ -446,12 +446,12 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
if (pEntry->GetName () == pName->GetValue ()) if (pEntry->GetName () == pName->GetValue ())
{ {
XHatch &rHatch = pEntry->GetHatch (); XHatch aHatch(pEntry->GetHatch());
rHatch.SetColor (aColor); aHatch.SetColor (aColor);
pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE); pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
pAttr->Put (XFillHatchItem (pName->GetValue (), rHatch), XATTR_FILLHATCH); pAttr->Put (XFillHatchItem (pName->GetValue (), aHatch), XATTR_FILLHATCH);
break; break;
} }
} }
...@@ -557,18 +557,18 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) ...@@ -557,18 +557,18 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
if (pEntry->GetName () == pName->GetValue ()) if (pEntry->GetName () == pName->GetValue ())
{ {
XGradient &rGradient = pEntry->GetGradient (); XGradient aGradient(pEntry->GetGradient());
rGradient.SetGradientStyle ((XGradientStyle) pStyle->GetValue ()); aGradient.SetGradientStyle ((XGradientStyle) pStyle->GetValue ());
rGradient.SetAngle (pAngle->GetValue () * 10); aGradient.SetAngle (pAngle->GetValue () * 10);
rGradient.SetBorder ((short) pBorder->GetValue ()); aGradient.SetBorder ((short) pBorder->GetValue ());
rGradient.SetXOffset ((short) pCenterX->GetValue ()); aGradient.SetXOffset ((short) pCenterX->GetValue ());
rGradient.SetYOffset ((short) pCenterY->GetValue ()); aGradient.SetYOffset ((short) pCenterY->GetValue ());
rGradient.SetStartIntens ((short) pStart->GetValue ()); aGradient.SetStartIntens ((short) pStart->GetValue ());
rGradient.SetEndIntens ((short) pEnd->GetValue ()); aGradient.SetEndIntens ((short) pEnd->GetValue ());
pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE); pAttr->Put (XFillStyleItem (XFILL_GRADIENT), XATTR_FILLSTYLE);
pAttr->Put (XFillGradientItem (pName->GetValue (), rGradient), XATTR_FILLGRADIENT); pAttr->Put (XFillGradientItem (pName->GetValue (), aGradient), XATTR_FILLGRADIENT);
break; break;
} }
} }
...@@ -623,14 +623,14 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) ...@@ -623,14 +623,14 @@ void DrawViewShell::AttrExec (SfxRequest &rReq)
if (pEntry->GetName () == pName->GetValue ()) if (pEntry->GetName () == pName->GetValue ())
{ {
XHatch &rHatch = pEntry->GetHatch (); XHatch aHatch(pEntry->GetHatch());
rHatch.SetHatchStyle ((XHatchStyle) pStyle->GetValue ()); aHatch.SetHatchStyle ((XHatchStyle) pStyle->GetValue ());
rHatch.SetDistance (pDistance->GetValue ()); aHatch.SetDistance (pDistance->GetValue ());
rHatch.SetAngle (pAngle->GetValue () * 10); aHatch.SetAngle (pAngle->GetValue () * 10);
pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE); pAttr->Put (XFillStyleItem (XFILL_HATCH), XATTR_FILLSTYLE);
pAttr->Put (XFillHatchItem (pName->GetValue (), rHatch), XATTR_FILLHATCH); pAttr->Put (XFillHatchItem (pName->GetValue (), aHatch), XATTR_FILLHATCH);
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment