summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdcrtv.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2001-01-26 13:08:54 +0000
committerArmin Weiss <aw@openoffice.org>2001-01-26 13:08:54 +0000
commitaf8449807b583678b17f8f444ffbb2ba636d0efa (patch)
treeec14541c569978ddb2044a231c56d5f569a3977e /svx/source/svdraw/svdcrtv.cxx
parent35fce8566dde4663528ff31bcefac43b8a1f5ef9 (diff)
ITEMSET: Further ItemSet changes to allow blocking of setting items and
to allow editing or replacing the item before it is set.
Diffstat (limited to 'svx/source/svdraw/svdcrtv.cxx')
-rw-r--r--svx/source/svdraw/svdcrtv.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx
index 31203076eab7..ec7506c20f1c 100644
--- a/svx/source/svdraw/svdcrtv.cxx
+++ b/svx/source/svdraw/svdcrtv.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdcrtv.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2001-01-19 15:59:18 $
+ * last change: $Author: aw $ $Date: 2001-01-26 14:08:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -451,7 +451,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point&
BOOL bStartEdit=FALSE; // nach Ende von Create automatisch TextEdit starten
if (pDefaultStyleSheet!=NULL) pAktCreate->NbcSetStyleSheet(pDefaultStyleSheet,FALSE);
-//-/ pAktCreate->NbcSetAttributes(aDefaultAttr,FALSE);
pAktCreate->SetItemSet(aDefaultAttr);
if (HAS_BASE(SdrCaptionObj,pAktCreate))
@@ -460,7 +459,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point&
aSet.Put(XFillColorItem(String(),Color(COL_WHITE))); // Falls einer auf Solid umschaltet
aSet.Put(XFillStyleItem(XFILL_NONE));
-//-/ pAktCreate->NbcSetAttributes(aSet,FALSE);
pAktCreate->SetItemSet(aSet);
bStartEdit=TRUE;
@@ -475,7 +473,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point&
aSet.Put(XLineColorItem(String(),Color(COL_BLACK))); // Falls einer auf Solid umschaltet
aSet.Put(XLineStyleItem(XLINE_NONE));
-//-/ pAktCreate->NbcSetAttributes(aSet,FALSE);
pAktCreate->SetItemSet(aSet);
bStartEdit=TRUE;
@@ -535,7 +532,6 @@ BOOL SdrCreateView::BegCreateLibObj(const Point& rPnt, SdrObject* pObj, BOOL bMo
if (bSetDefAttr) {
if (pDefaultStyleSheet!=NULL) pObj->NbcSetStyleSheet(pDefaultStyleSheet,FALSE);
-//-/ pObj->NbcSetAttributes(aDefaultAttr,FALSE);
pObj->SetItemSet(aDefaultAttr);
}
if (bSetDefLayer) {
@@ -577,8 +573,6 @@ void SdrCreateView::MovCreateObj(const Point& rPnt)
if (IsSolidDraggingNow() && !IsSolidDraggingCheck()) {
// Z.B. fuer Fill+Linelose Textrahmen bei SolidDragging
SetSolidDraggingCheck(TRUE);
-//-/ SfxItemSet aSet(pMod->GetItemPool());
-//-/ pAktCreate->TakeAttributes(aSet,FALSE,FALSE);
const SfxItemSet& rSet = pAktCreate->GetItemSet();
XFillStyle eFill=((XFillStyleItem&)(rSet.Get(XATTR_FILLSTYLE))).GetValue();
XLineStyle eLine=((XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue();
@@ -945,7 +939,6 @@ BOOL SdrCreateView::GetAttributes(SfxItemSet& rTargetSet, BOOL bOnlyHardAttr) co
{
if(pAktCreate)
{
-//-/ pAktCreate->TakeAttributes(rTargetSet, FALSE, bOnlyHardAttr);
rTargetSet.Put(pAktCreate->GetItemSet());
return TRUE;
}
@@ -959,7 +952,6 @@ BOOL SdrCreateView::SetAttributes(const SfxItemSet& rSet, BOOL bReplaceAll)
{
if(pAktCreate)
{
-//-/ pAktCreate->SetAttributes(rSet,bReplaceAll);
SdrBroadcastItemChange aItemChange(*pAktCreate);
if(bReplaceAll)
pAktCreate->ClearItem();