summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-08-23 07:02:37 +0000
committerRüdiger Timm <rt@openoffice.org>2004-08-23 07:02:37 +0000
commit7668aea5f8e72da6616502a3aa568c79de1c40a9 (patch)
tree79a089843189970c335dc05398f522735c10e6cc /sw/source
parent91d2414b0021e2f8b2adb68bee89c1845cceb112 (diff)
INTEGRATION: CWS swdrawobjapi (1.39.58); FILE MERGED
2004/08/13 06:45:58 od 1.39.58.3: #i31698# - correct syntax error introduced by merge 2004/08/12 07:13:30 od 1.39.58.2: RESYNC: (1.39-1.40); FILE MERGED resolve merge conflict. 2004/07/29 13:22:22 od 1.39.58.1: #i31698# - adjustments for changed drawing object API in Writer
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/ssfrm.cxx38
1 files changed, 11 insertions, 27 deletions
diff --git a/sw/source/core/layout/ssfrm.cxx b/sw/source/core/layout/ssfrm.cxx
index f68b11ef04f2..660c3aa588a6 100644
--- a/sw/source/core/layout/ssfrm.cxx
+++ b/sw/source/core/layout/ssfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ssfrm.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: kz $ $Date: 2004-08-02 14:13:14 $
+ * last change: $Author: rt $ $Date: 2004-08-23 08:02:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -365,30 +365,6 @@ void SwFrm::CheckDirChange()
pBody = ((SwPageFrm*)this)->FindBodyCont();
if(pBody && pBody->Lower() && pBody->Lower()->IsColumnFrm())
pCol = &((SwPageFrm*)this)->GetFmt()->GetCol();
-
- SwSortedObjs* pObjs = ((SwPageFrm*)this)->GetSortedObjs();
- if( pObjs )
- {
- sal_uInt32 nCnt = pObjs->Count();
- for ( sal_uInt32 i = 0; i < nCnt; ++i )
- {
- SwAnchoredObject* pAnchoredObj = (*pObjs)[i];
- if ( pAnchoredObj->GetAnchorFrm() == this )
- {
- if ( pAnchoredObj->ISA(SwFlyFrm) )
- {
- static_cast<SwFlyFrm*>(pAnchoredObj)->CheckDirChange();
- }
- else
- {
- // OD 2004-04-06 #i26791# - direct object
- // positioning no longer needed. Instead
- // invalidate
- pAnchoredObj->InvalidateObjPos();
- }
- }
- }
- }
}
else if( pFrm->IsColumnFrm() )
{
@@ -409,7 +385,9 @@ void SwFrm::CheckDirChange()
else if( IsTxtFrm() )
((SwTxtFrm*)this)->Prepare( PREP_CLEAR );
- if( !IsPageFrm() && GetDrawObjs() )
+ // --> OD 2004-07-27 #i31698# - notify anchored objects also for page frames.
+ // Remove code above for special handling of page frames
+ if ( GetDrawObjs() )
{
const SwSortedObjs *pObjs = GetDrawObjs();
sal_uInt32 nCnt = pObjs->Count();
@@ -425,6 +403,12 @@ void SwFrm::CheckDirChange()
// invalidate
pAnchoredObj->InvalidateObjPos();
}
+ // --> OD 2004-07-27 #i31698# - update layout direction of
+ // anchored object
+ {
+ pAnchoredObj->UpdateLayoutDir();
+ }
+ // <--
}
}
}