diff options
author | Malte Timmermann <mt@openoffice.org> | 2000-12-01 09:39:21 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2000-12-01 09:39:21 +0000 |
commit | ca7c659264f264804198f8a0d528ef78d0ead1a0 (patch) | |
tree | 607176f8143d2f7ffbbe4823c3e46e187d363035 /svx/source/outliner/outlvw.cxx | |
parent | 961909a5d14425cb87ac3cee7e921c4e9dd730b7 (diff) |
#79421# AutoStyleSheet for move up/down
Diffstat (limited to 'svx/source/outliner/outlvw.cxx')
-rw-r--r-- | svx/source/outliner/outlvw.cxx | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/svx/source/outliner/outlvw.cxx b/svx/source/outliner/outlvw.cxx index 282933e36f9d..dd7d9ccbfdb9 100644 --- a/svx/source/outliner/outlvw.cxx +++ b/svx/source/outliner/outlvw.cxx @@ -2,9 +2,9 @@ * * $RCSfile: outlvw.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mt $ $Date: 2000-11-24 11:30:26 $ + * last change: $Author: mt $ $Date: 2000-12-01 10:39:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -350,10 +350,10 @@ ULONG OutlinerView::ImpCheckMousePos(const Point& rPosPix,MouseTarget& reTarget) // Dann wird wahrscheinlich EditView::GetDocPosTopLeft ueberfluessig // Bullet? nPara = pOwner->pEditEngine->FindParagraph( aDocPos.Y() ); - if ( ( nPara != EE_PARA_NOT_FOUND ) && pOwner->ImplHasBullet( nPara ) ) + if ( ( nPara != EE_PARA_NOT_FOUND ) && pOwner->ImplHasBullet( (USHORT)nPara ) ) { - Rectangle aBulArea = pOwner->ImpCalcBulletArea( nPara, TRUE ); - Point aParaXY = pOwner->pEditEngine->GetDocPosTopLeft( nPara ); + Rectangle aBulArea = pOwner->ImpCalcBulletArea( (USHORT)nPara, TRUE ); + Point aParaXY = pOwner->pEditEngine->GetDocPosTopLeft( (USHORT)nPara ); aBulArea.Top() += aParaXY.Y(); aBulArea.Bottom() += aParaXY.Y(); if ( aBulArea.IsInside( aDocPos ) ) @@ -942,6 +942,18 @@ BOOL OutlinerView::AdjustHeight( long nDY ) for ( USHORT n = nChangesStart; n < nParas; n++ ) pOwner->ImplCalcBulletText( n, FALSE, FALSE ); } + + // ersten Absatz immer auf Ebene 0 stellen + if ( aSel.nStartPara == 0 ) + { + Paragraph* pStartPara = pOwner->pParaList->GetParagraph( 0 ); + if( pStartPara->GetDepth() != pOwner->GetMinDepth() ) + { + pOwner->SetDepth( pStartPara, pOwner->GetMinDepth() ); + if ( pOwner->ImplGetOutlinerMode() == OUTLINERMODE_OUTLINEOBJECT ) + pOwner->ImplSetLevelDependendStyleSheet( 0 ); + } + } } else { @@ -969,7 +981,11 @@ BOOL OutlinerView::AdjustHeight( long nDY ) // ersten Absatz immer auf Ebene 0 stellen Paragraph* pStartPara = pOwner->pParaList->GetParagraph( 0 ); if( pStartPara->GetDepth() != pOwner->GetMinDepth() ) + { pOwner->SetDepth( pStartPara, pOwner->GetMinDepth() ); + if ( pOwner->ImplGetOutlinerMode() == OUTLINERMODE_OUTLINEOBJECT ) + pOwner->ImplSetLevelDependendStyleSheet( 0 ); + } } pEditView->SetEditEngineUpdateMode( bUpdate ); |