diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-08-12 12:02:56 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-08-12 12:02:56 +0000 |
commit | 1144bdf01db17b7f8ecf181b0f4ae2adde872b94 (patch) | |
tree | 26f040a1013086099da4b9418aaea7816fc8dece /sw/source/ui/frmdlg | |
parent | 8b13ed2ff7d4bfd25a56d4faf8629f5a4fd2caff (diff) |
INTEGRATION: CWS tune05 (1.11.54); FILE MERGED
2004/07/23 16:40:08 mhu 1.11.54.3: RESYNC: (1.11-1.12); FILE MERGED
2004/07/22 08:54:55 cmc 1.11.54.2: #i30554# unused SwFlyFrmAttrMgr methods
2004/06/25 12:21:52 cmc 1.11.54.1: #i30554# SwFlyFrmAttrMgr::SetFrmSize unused
Diffstat (limited to 'sw/source/ui/frmdlg')
-rw-r--r-- | sw/source/ui/frmdlg/frmmgr.cxx | 58 |
1 files changed, 3 insertions, 55 deletions
diff --git a/sw/source/ui/frmdlg/frmmgr.cxx b/sw/source/ui/frmdlg/frmmgr.cxx index 87edc03f07ba..90a820f28451 100644 --- a/sw/source/ui/frmdlg/frmmgr.cxx +++ b/sw/source/ui/frmdlg/frmmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: frmmgr.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: kz $ $Date: 2004-08-02 14:22:42 $ + * last change: $Author: obo $ $Date: 2004-08-12 13:02:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -578,18 +578,6 @@ void SwFlyFrmAttrMgr::ValidateMetrics( SvxSwFrameValidation& rVal, Beschreibung: Korrektur fuer Umrandung --------------------------------------------------------------------*/ -long SwFlyFrmAttrMgr::CalcWidthSpace() -{ - SvxLRSpaceItem &rLR = (SvxLRSpaceItem&)aSet.Get(RES_LR_SPACE); - return rLR.GetLeft() + rLR.GetRight() + CalcLeftSpace() + CalcRightSpace(); -} - -long SwFlyFrmAttrMgr::CalcHeightSpace() -{ - SvxULSpaceItem &rUL = (SvxULSpaceItem&)aSet.Get(RES_UL_SPACE); - return rUL.GetUpper() + rUL.GetLower() + CalcTopSpace() + CalcBottomSpace(); -} - SwTwips SwFlyFrmAttrMgr::CalcTopSpace() { const SvxShadowItem& rShadow = GetShadow(); @@ -641,7 +629,7 @@ void SwFlyFrmAttrMgr::SetLRSpace( long nLeft, long nRight ) void SwFlyFrmAttrMgr::SetULSpace( long nTop, long nBottom ) { - ASSERT( LONG_MAX != nTop && LONG_MAX != nBottom, Welchen Raend setzen? ); + ASSERT(LONG_MAX != nTop && LONG_MAX != nBottom, "Welchen Raend setzen?" ); SvxULSpaceItem aTmp( (SvxULSpaceItem&)aSet.Get( RES_UL_SPACE ) ); if( LONG_MAX != nTop ) @@ -651,27 +639,6 @@ void SwFlyFrmAttrMgr::SetULSpace( long nTop, long nBottom ) aSet.Put( aTmp ); } -void SwFlyFrmAttrMgr::SetWrapType( SwSurround eFly ) -{ - SwFmtSurround aWrap( GetSurround() ); - aWrap.SetSurround( eFly ); - aSet.Put( aWrap ); -} - -void SwFlyFrmAttrMgr::SetAnchorOnly(BOOL bSet) -{ - SwFmtSurround aWrap( GetSurround() ); - aWrap.SetAnchorOnly(bSet); - aSet.Put( aWrap ); -} - -void SwFlyFrmAttrMgr::SetContour( BOOL bSet) -{ - SwFmtSurround aWrap( GetSurround() ); - aWrap.SetContour(bSet); - aSet.Put( aWrap ); -} - void SwFlyFrmAttrMgr::SetPos( const Point& rPoint ) { SwFmtVertOrient aVertOrient( GetVertOrient() ); @@ -715,25 +682,6 @@ void SwFlyFrmAttrMgr::SetSize( const Size& rSize ) aSet.Put( aSize ); } -void SwFlyFrmAttrMgr::SetFrmSize(const SwFmtFrmSize& rFrmSize) -{ - aSet.Put(rFrmSize); -} - -void SwFlyFrmAttrMgr::ProtectPosSize( BOOL bProt ) -{ - SvxProtectItem aProtection( ((SvxProtectItem&)aSet.Get(RES_PROTECT))); - aProtection.SetSizeProtect( bProt ); - aProtection.SetPosProtect ( bProt ); - aSet.Put( aProtection ); -} - -void SwFlyFrmAttrMgr::SetTransparent(BOOL bTrans) -{ - aSet.Put( SvxOpaqueItem( RES_OPAQUE, !bTrans )); -} - - void SwFlyFrmAttrMgr::SetAttrSet(const SfxItemSet& rSet) { aSet.ClearItem(); |