diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-20 14:55:36 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-20 14:55:36 +0000 |
commit | f7a9b6b5c3794f6a21684cb6e9ebccf5faee2e30 (patch) | |
tree | 012a964d62ff1f78cc219c7f2f4404ea5301d8a8 /sd/source/ui/func/fuolbull.cxx | |
parent | a2121084269dc4a2745e926d416d2ec54a4bdf06 (diff) |
CWS-TOOLING: integrate CWS impress163_DEV300
Diffstat (limited to 'sd/source/ui/func/fuolbull.cxx')
-rw-r--r-- | sd/source/ui/func/fuolbull.cxx | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx index 79cfb4cba6d2..29bc28e91e17 100644 --- a/sd/source/ui/func/fuolbull.cxx +++ b/sd/source/ui/func/fuolbull.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuolbull.cxx,v $ - * $Revision: 1.11 $ + * $Revision: 1.11.104.1 $ * * This file is part of OpenOffice.org. * @@ -101,16 +101,22 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq ) case RET_OK: { SfxItemSet aSet( *pDlg->GetOutputItemSet() ); -/* i35937 - if (mpView->ISA(DrawViewShell) ) + + OutlinerView* pOLV = mpView->GetTextEditOutlinerView(); + + std::auto_ptr< OutlineViewModelChangeGuard > aGuard; + + if (mpView->ISA(OutlineView)) { - if( mpView->GetMarkedObjectList().GetMarkCount() == 0) - { - SfxUInt16Item aBulletState( EE_PARA_BULLETSTATE, 0 ); - aSet.Put(aBulletState); - } + pOLV = static_cast<OutlineView*>(mpView) + ->GetViewByWindow(mpViewShell->GetActiveWindow()); + + aGuard.reset( new OutlineViewModelChangeGuard( static_cast<OutlineView&>(*mpView) ) ); } -*/ + + if( pOLV ) + pOLV->EnableBullets(); + rReq.Done( aSet ); pArgs = rReq.GetArgs(); } |