diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-08-21 10:00:40 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-08-21 10:00:40 +0000 |
commit | 813d7587055b72901be52e003ed4eee3ba9aec22 (patch) | |
tree | 4601f9e52de670766723adfa88002e045c06c8ad /svx/source/editeng | |
parent | 4c5be38a7d2398f83faa4d64aedea42fbd6f674f (diff) |
#91105# Don't check for OutlinerMode in Set/GetParaAttrib()
Diffstat (limited to 'svx/source/editeng')
-rw-r--r-- | svx/source/editeng/impedit3.cxx | 14 | ||||
-rw-r--r-- | svx/source/editeng/impedit5.cxx | 23 |
2 files changed, 7 insertions, 30 deletions
diff --git a/svx/source/editeng/impedit3.cxx b/svx/source/editeng/impedit3.cxx index 0ca5627d2ef3..ba21d7e08268 100644 --- a/svx/source/editeng/impedit3.cxx +++ b/svx/source/editeng/impedit3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit3.cxx,v $ * - * $Revision: 1.48 $ + * $Revision: 1.49 $ * - * last change: $Author: mt $ $Date: 2001-08-16 11:44:39 $ + * last change: $Author: mt $ $Date: 2001-08-21 11:00:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3349,17 +3349,9 @@ void ImpEditEngine::DoStretchChars( sal_uInt16 nX, sal_uInt16 nY ) const SvxLRSpaceItem& ImpEditEngine::GetLRSpaceItem( ContentNode* pNode ) { - // Wenn Outliner1, dann immer OUTLLR - // Wenn Outliner2, dann nur, wenn kein LRSpace - if ( aStatus.IsOutliner() || - ( aStatus.IsOutliner2() && !pNode->GetContentAttribs().HasItem( EE_PARA_LRSPACE ) ) ) - { - return (const SvxLRSpaceItem&)pNode->GetContentAttribs().GetItem( EE_PARA_OUTLLRSPACE ); - } - return (const SvxLRSpaceItem&)pNode->GetContentAttribs().GetItem( EE_PARA_LRSPACE ); + return (const SvxLRSpaceItem&)pNode->GetContentAttribs().GetItem( aStatus.IsOutliner() ? EE_PARA_OUTLLRSPACE : EE_PARA_LRSPACE ); } - Reference < i18n::XBreakIterator > ImpEditEngine::ImplGetBreakIterator() { if ( !xBI.is() ) diff --git a/svx/source/editeng/impedit5.cxx b/svx/source/editeng/impedit5.cxx index 91e8bcd66061..f4dd9c4248cc 100644 --- a/svx/source/editeng/impedit5.cxx +++ b/svx/source/editeng/impedit5.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit5.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: cl $ $Date: 2001-08-05 15:22:46 $ + * last change: $Author: mt $ $Date: 2001-08-21 11:00:40 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -758,18 +758,7 @@ BOOL ImpEditEngine::HasParaAttrib( USHORT nPara, USHORT nWhich ) const ContentNode* pNode = aEditDoc.GetObject( nPara ); DBG_ASSERT( pNode, "Node nicht gefunden: HasParaAttrib" ); - // LRSPACE kann ggf. auch OUTLLRSPACE sein! - - BOOL bHasItem = pNode->GetContentAttribs().HasItem( nWhich ); - if ( nWhich == EE_PARA_LRSPACE ) - { - if ( aStatus.IsOutliner() || - ( aStatus.IsOutliner2() && !pNode->GetContentAttribs().HasItem( EE_PARA_LRSPACE ) ) ) - { - bHasItem = pNode->GetContentAttribs().HasItem( EE_PARA_OUTLLRSPACE ); - } - } - return bHasItem; + return pNode->GetContentAttribs().HasItem( nWhich ); } const SfxPoolItem& ImpEditEngine::GetParaAttrib( USHORT nPara, USHORT nWhich ) @@ -777,11 +766,7 @@ const SfxPoolItem& ImpEditEngine::GetParaAttrib( USHORT nPara, USHORT nWhich ) ContentNode* pNode = aEditDoc.GetObject( nPara ); DBG_ASSERT( pNode, "Node nicht gefunden: GetParaAttrib" ); - // LRSPACE kann ggf. auch OUTLLRSPACE sein! - if ( nWhich != EE_PARA_LRSPACE ) - return pNode->GetContentAttribs().GetItem( nWhich ); - else - return GetLRSpaceItem( pNode ); + return pNode->GetContentAttribs().GetItem( nWhich ); } void ImpEditEngine::GetCharAttribs( USHORT nPara, EECharAttribArray& rLst ) const |