summaryrefslogtreecommitdiffstats
path: root/svx/source/dialog/measctrl.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2000-10-30 09:48:03 +0000
committerArmin Weiss <aw@openoffice.org>2000-10-30 09:48:03 +0000
commit371060e167ad92eddc7820ec40fb6b0466033972 (patch)
treeb3149fd87e338d6fbf7aac166e1460c1daa98769 /svx/source/dialog/measctrl.cxx
parentAdded delivering of xmlhelp.jar (diff)
downloadcore-371060e167ad92eddc7820ec40fb6b0466033972.tar.gz
core-371060e167ad92eddc7820ec40fb6b0466033972.zip
change SdrObjects to use SfxItemSet instead of SfxSetItems.
Removed TakeAttributes() and SetAttributes(), new ItemSet modification methods (GetItem[Set], SetItem[Set], ClearItem,...)
Diffstat (limited to 'svx/source/dialog/measctrl.cxx')
-rw-r--r--svx/source/dialog/measctrl.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/svx/source/dialog/measctrl.cxx b/svx/source/dialog/measctrl.cxx
index b6d80ee64968..f74f96969d7e 100644
--- a/svx/source/dialog/measctrl.cxx
+++ b/svx/source/dialog/measctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: measctrl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:01:10 $
+ * last change: $Author: aw $ $Date: 2000-10-30 10:48:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -111,7 +111,10 @@ SvxXMeasurePreview::SvxXMeasurePreview
pModel = new SdrModel();
pMeasureObj->SetModel( pModel );
- pMeasureObj->SetAttributes( rInAttrs, FALSE );
+//-/ pMeasureObj->SetAttributes( rInAttrs, FALSE );
+//-/ SdrBroadcastItemChange aItemChange(*pMeasureObj);
+ pMeasureObj->SetItemSetAndBroadcast(rInAttrs);
+//-/ pMeasureObj->BroadcastItemChange(aItemChange);
Invalidate();
}
@@ -149,7 +152,11 @@ void SvxXMeasurePreview::Paint( const Rectangle& rRect )
void SvxXMeasurePreview::SetAttributes( const SfxItemSet& rInAttrs )
{
- pMeasureObj->SetAttributes( rInAttrs, FALSE );
+//-/ pMeasureObj->SetAttributes( rInAttrs, FALSE );
+//-/ SdrBroadcastItemChange aItemChange(*pMeasureObj);
+ pMeasureObj->SetItemSetAndBroadcast(rInAttrs);
+//-/ pMeasureObj->BroadcastItemChange(aItemChange);
+
Invalidate();
}