diff options
author | Armin Weiss <aw@openoffice.org> | 2000-10-30 10:50:43 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2000-10-30 10:50:43 +0000 |
commit | 643189a942c0cb49870501574ee4b35c07cfc716 (patch) | |
tree | 7ee0656c810ead68270dc707c3a94917ca75d2a8 /sc/source/ui | |
parent | 3fe53c2de360120a491f521740dce1c50d74a1b9 (diff) |
change SdrObjects to use SfxItemSet instead of SfxSetItems.
Removed TakeAttributes() and SetAttributes(), new ItemSet
modification methods (GetItem[Set], SetItem[Set], ClearItem,...)
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/drawfunc/futext.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun7.cxx | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sc/source/ui/drawfunc/futext.cxx b/sc/source/ui/drawfunc/futext.cxx index a545e61367d8..98088167bb52 100644 --- a/sc/source/ui/drawfunc/futext.cxx +++ b/sc/source/ui/drawfunc/futext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: futext.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2000-09-22 18:49:37 $ + * last change: $Author: aw $ $Date: 2000-10-30 11:36:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -652,7 +652,8 @@ BOOL __EXPORT FuText::MouseButtonUp(const MouseEvent& rMEvt) aItemSet.Put( SdrTextAniCountItem( 1 ) ); aItemSet.Put( SdrTextAniAmountItem( (INT16)pWindow->PixelToLogic(Size(2,1)).Width()) ); - pObj->SetAttributes(aItemSet, FALSE); +//-/ pObj->SetAttributes(aItemSet, FALSE); + pObj->SetItemSetAndBroadcast(aItemSet); } } SetInEditMode(); diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx index 4c2d58f90dcd..ba8a5af8722c 100644 --- a/sc/source/ui/view/viewfun7.cxx +++ b/sc/source/ui/view/viewfun7.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfun7.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:45:10 $ + * last change: $Author: aw $ $Date: 2000-10-30 11:37:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -693,7 +693,9 @@ BOOL ScViewFunc::ApplyGraphicToObject( SdrObject* pPickObj, const Graphic& rGrap XATTR_FILLSTYLE, XATTR_FILLBITMAP ); aSet.Put(XFillStyleItem(XFILL_BITMAP)); aSet.Put(XFillBitmapItem(String(), aXOBitmap)); - pPickObj->SetAttributes(aSet, FALSE); + +//-/ pPickObj->SetAttributes(aSet, FALSE); + pPickObj->SetItemSetAndBroadcast(aSet); bRet = TRUE; } |