diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-09-23 14:05:07 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-09-24 08:33:46 +0100 |
commit | c8dc73720883333a13187865cd0d69b64af6b4b5 (patch) | |
tree | c9037bb6e79fd49507f2de1cf2b22f7159572720 /sd/source/ui/view/drviews9.cxx | |
parent | 7fc35af5fd3171cc9bf43d2c27660afcf407d3f6 (diff) |
re-factor XPropertyList derivatives to use a rtl::Reference
This cleans up a lot of lifecycle nasties and cleans up some serious
cut/paste code duplication issues at the same time. Cleanup the
naming of ColorTable -> ColorList to match the impl. too
Diffstat (limited to 'sd/source/ui/view/drviews9.cxx')
-rw-r--r-- | sd/source/ui/view/drviews9.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/view/drviews9.cxx b/sd/source/ui/view/drviews9.cxx index c1b3cbf249f1..9a9b67cc5f79 100644 --- a/sd/source/ui/view/drviews9.cxx +++ b/sd/source/ui/view/drviews9.cxx @@ -371,7 +371,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) SFX_REQUEST_ARG (rReq, pGreen, SfxUInt32Item, ID_VAL_GREEN, sal_False); SFX_REQUEST_ARG (rReq, pBlue, SfxUInt32Item, ID_VAL_BLUE, sal_False); - XGradientList *pGradientList = GetDoc()->GetGradientList (); + XGradientListRef pGradientList = GetDoc()->GetGradientList (); long nCounts = pGradientList->Count (); Color aColor ((sal_uInt8) pRed->GetValue (), (sal_uInt8) pGreen->GetValue (), @@ -431,7 +431,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) SFX_REQUEST_ARG (rReq, pGreen, SfxUInt32Item, ID_VAL_GREEN, sal_False); SFX_REQUEST_ARG (rReq, pBlue, SfxUInt32Item, ID_VAL_BLUE, sal_False); - XHatchList *pHatchList = GetDoc()->GetHatchList (); + XHatchListRef pHatchList = GetDoc()->GetHatchList (); long nCounts = pHatchList->Count (); Color aColor ((sal_uInt8) pRed->GetValue (), (sal_uInt8) pGreen->GetValue (), @@ -496,7 +496,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) pAttr->ClearItem (XATTR_LINEDASH); pAttr->ClearItem (XATTR_LINESTYLE); - XDashList *pDashList = GetDoc()->GetDashList (); + XDashListRef pDashList = GetDoc()->GetDashList(); long nCounts = pDashList->Count (); XDashEntry *pEntry = new XDashEntry (aNewDash, pName->GetValue ()); long i; @@ -548,7 +548,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) pAttr->ClearItem (XATTR_FILLGRADIENT); pAttr->ClearItem (XATTR_FILLSTYLE); - XGradientList *pGradientList = GetDoc()->GetGradientList (); + XGradientListRef pGradientList = GetDoc()->GetGradientList (); long nCounts = pGradientList->Count (); long i; @@ -614,7 +614,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) pAttr->ClearItem (XATTR_FILLHATCH); pAttr->ClearItem (XATTR_FILLSTYLE); - XHatchList *pHatchList = GetDoc()->GetHatchList (); + XHatchListRef pHatchList = GetDoc()->GetHatchList (); long nCounts = pHatchList->Count (); long i; @@ -664,7 +664,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) { SFX_REQUEST_ARG (rReq, pName, SfxStringItem, ID_VAL_INDEX, sal_False); - XGradientList *pGradientList = GetDoc()->GetGradientList (); + XGradientListRef pGradientList = GetDoc()->GetGradientList (); long nCounts = pGradientList->Count (); for (long i = 0; @@ -698,7 +698,7 @@ void DrawViewShell::AttrExec (SfxRequest &rReq) { SFX_REQUEST_ARG (rReq, pName, SfxStringItem, ID_VAL_INDEX, sal_False); - XHatchList *pHatchList = GetDoc()->GetHatchList (); + XHatchListRef pHatchList = GetDoc()->GetHatchList (); long nCounts = pHatchList->Count (); for (long i = 0; |