diff options
author | Armin Weiss <aw@openoffice.org> | 2000-12-11 10:56:32 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2000-12-11 10:56:32 +0000 |
commit | c6da83bc148484503162a0fe6c2d23ae52381f28 (patch) | |
tree | 13839b9b9fd2fa5a1aa16390784b0826d23bbfa3 /svx/source | |
parent | 2951e72dae9ae1931d71ada2f5209ec682998829 (diff) |
#81466# use GetUnmergedItemSet() inside of WriteData() and PreSave() to not
risk changing the pool during save
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdoattr.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdocapt.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdocirc.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdogrp.cxx | 10 | ||||
-rw-r--r-- | svx/source/svdraw/svdomeas.cxx | 8 |
7 files changed, 32 insertions, 26 deletions
diff --git a/svx/source/svdraw/svdoattr.cxx b/svx/source/svdraw/svdoattr.cxx index 64b00bb4d39e..26c346754238 100644 --- a/svx/source/svdraw/svdoattr.cxx +++ b/svx/source/svdraw/svdoattr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdoattr.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: cl $ $Date: 2000-11-15 12:05:28 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -449,7 +449,7 @@ void SdrAttrObj::PreSave() SdrObject::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; XLineAttrSetItem aLineAttr(rSet.GetPool()); @@ -514,7 +514,7 @@ void SdrAttrObj::WriteData(SvStream& rOut) const if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(XATTRSET_LINE)); pPool->StoreSurrogate(rOut, &rSet.Get(XATTRSET_FILL)); diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx index 62b76773ee88..a5a6ca80d9e0 100644 --- a/svx/source/svdraw/svdocapt.cxx +++ b/svx/source/svdraw/svdocapt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdocapt.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: aw $ $Date: 2000-10-30 11:11:37 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -990,7 +990,7 @@ void SdrCaptionObj::PreSave() SdrRectObj::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; SdrCaptionSetItem aCaptAttr(rSet.GetPool()); aCaptAttr.GetItemSet().Put(rSet); @@ -1022,7 +1022,7 @@ void SdrCaptionObj::WriteData(SvStream& rOut) const if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(SDRATTRSET_CAPTION)); diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx index 82191189e5f6..e70289cc8741 100644 --- a/svx/source/svdraw/svdocirc.cxx +++ b/svx/source/svdraw/svdocirc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdocirc.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: aw $ $Date: 2000-11-13 11:51:17 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1535,7 +1535,7 @@ void SdrCircObj::PreSave() SdrRectObj::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; SdrCircSetItem aCircAttr(rSet.GetPool()); aCircAttr.GetItemSet().Put(rSet); @@ -1571,7 +1571,7 @@ void SdrCircObj::WriteData(SvStream& rOut) const SfxItemPool* pPool=GetItemPool(); if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(SDRATTRSET_CIRC)); diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 65c908c58cae..0f310e1cdedb 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdoedge.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: cl $ $Date: 2000-11-26 20:00:28 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2517,7 +2517,7 @@ void SdrEdgeObj::PreSave() SdrTextObj::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; SdrEdgeSetItem aEdgeAttr(rSet.GetPool()); aEdgeAttr.GetItemSet().Put(rSet); @@ -2559,7 +2559,7 @@ void SdrEdgeObj::WriteData(SvStream& rOut) const if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(SDRATTRSET_EDGE)); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 4f9a65a5212b..70e5290b9e92 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdograf.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: ka $ $Date: 2000-12-03 16:55:59 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1322,7 +1322,7 @@ void SdrGrafObj::PreSave() SdrRectObj::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; SdrGrafSetItem aGrafAttr(rSet.GetPool()); aGrafAttr.GetItemSet().Put(rSet); @@ -1413,7 +1413,7 @@ void SdrGrafObj::WriteData(SvStream& rOut) const if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(SDRATTRSET_GRAF)); diff --git a/svx/source/svdraw/svdogrp.cxx b/svx/source/svdraw/svdogrp.cxx index 6d329dd0807e..717481b48774 100644 --- a/svx/source/svdraw/svdogrp.cxx +++ b/svx/source/svdraw/svdogrp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdogrp.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: aw $ $Date: 2000-11-25 16:53:27 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1488,6 +1488,9 @@ SfxItemSet* SdrObjGroup::CreateNewItemSet(SfxItemPool& rPool) void SdrObjGroup::PreSave() { + // call parent + SdrObject::PreSave(); + if(!IsLinkedGroup()) { sal_uInt32 nCount(pSub->GetObjCount()); @@ -1498,6 +1501,9 @@ void SdrObjGroup::PreSave() void SdrObjGroup::PostSave() { + // call parent + SdrObject::PostSave(); + if(!IsLinkedGroup()) { sal_uInt32 nCount(pSub->GetObjCount()); diff --git a/svx/source/svdraw/svdomeas.cxx b/svx/source/svdraw/svdomeas.cxx index 0150cae24525..f6bffc22089f 100644 --- a/svx/source/svdraw/svdomeas.cxx +++ b/svx/source/svdraw/svdomeas.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdomeas.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: aw $ $Date: 2000-11-13 11:52:58 $ + * last change: $Author: aw $ $Date: 2000-12-11 11:56:32 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1873,7 +1873,7 @@ void SdrMeasureObj::PreSave() SdrTextObj::PreSave(); // prepare SetItems for storage - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); const SfxItemSet* pParent = GetStyleSheet() ? &GetStyleSheet()->GetItemSet() : 0L; SdrMeasureSetItem aMeasAttr(rSet.GetPool()); aMeasAttr.GetItemSet().Put(rSet); @@ -1910,7 +1910,7 @@ void SdrMeasureObj::WriteData(SvStream& rOut) const if(pPool) { - const SfxItemSet& rSet = GetItemSet(); + const SfxItemSet& rSet = GetUnmergedItemSet(); pPool->StoreSurrogate(rOut, &rSet.Get(SDRATTRSET_MEASURE)); |