summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdmodel.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2002-10-11 11:54:30 +0000
committerChristian Lippka <cl@openoffice.org>2002-10-11 11:54:30 +0000
commitca84206024031001c5be6dfc1bceb2979b7eca02 (patch)
treef561abc6f79c459f13af923f29bdf300919ee9da /svx/source/svdraw/svdmodel.cxx
parentbb4b72135ecefdfaaaa2ec7734a0395a7e7cd960 (diff)
#103122# reformat all edge objects after model unlock
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r--svx/source/svdraw/svdmodel.cxx35
1 files changed, 31 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index deee50fa4652..c5a59eea7af9 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdmodel.cxx,v $
*
- * $Revision: 1.44 $
+ * $Revision: 1.45 $
*
- * last change: $Author: cl $ $Date: 2002-10-09 15:47:42 $
+ * last change: $Author: cl $ $Date: 2002-10-11 12:54:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1024,6 +1024,29 @@ void SdrModel::ImpReformatAllTextObjects()
}
}
+/** #103122#
+ steps over all available pages and sends notify messages to
+ all edge objects that are connected to other objects so that
+ they may reposition itselfs
+*/
+void SdrModel::ImpReformatAllEdgeObjects()
+{
+ if( isLocked() )
+ return;
+
+ sal_uInt16 nAnz=GetMasterPageCount();
+ sal_uInt16 nNum;
+ for (nNum=0; nNum<nAnz; nNum++)
+ {
+ GetMasterPage(nNum)->ReformatAllEdgeObjects();
+ }
+ nAnz=GetPageCount();
+ for (nNum=0; nNum<nAnz; nNum++)
+ {
+ GetPage(nNum)->ReformatAllEdgeObjects();
+ }
+}
+
SvStream* SdrModel::GetDocumentStream(SdrDocumentStreamInfo& rStreamInfo) const
{
return NULL;
@@ -2681,8 +2704,12 @@ void SdrModel::setLock( BOOL bLock )
if( mbModelLocked != bLock )
{
mbModelLocked = bLock;
- if( bLock = sal_False )
- ReformatAllTextObjects();
+ if( sal_False == bLock )
+ {
+ // ReformatAllTextObjects(); #103122# due to a typo in the above if, this code was never
+ // executed, so I remove it until we discover that we need it here
+ ImpReformatAllEdgeObjects(); // #103122#
+ }
}
}