summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuolbull.cxx
diff options
context:
space:
mode:
authorJoe Schaefer <joes@apache.org>2012-11-26 02:32:20 +0000
committerJoe Schaefer <joes@apache.org>2012-11-26 02:32:20 +0000
commit59ee09f905e86724a2ba5cdccab9210d16686820 (patch)
treeb31b34097ade50a060d0d427bce5f8ccd4ad6a6f /sd/source/ui/func/fuolbull.cxx
parent8f4457b94f439f3b8a4a8611f98daa411b615e9e (diff)
mv ooo to top-level
Diffstat (limited to 'sd/source/ui/func/fuolbull.cxx')
-rw-r--r--sd/source/ui/func/fuolbull.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx
index e96979b1818d..ed2cf0334a66 100644
--- a/sd/source/ui/func/fuolbull.cxx
+++ b/sd/source/ui/func/fuolbull.cxx
@@ -46,8 +46,6 @@
namespace sd {
-TYPEINIT1( FuOutlineBullet, FuPoor );
-
/*************************************************************************
|*
|* Konstruktor
@@ -75,12 +73,12 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
if( !pArgs )
{
// ItemSet fuer Dialog fuellen
- SfxItemSet aEditAttr( mpDoc->GetPool() );
+ SfxItemSet aEditAttr( mpDoc->GetItemPool() );
mpView->GetAttributes( aEditAttr );
SfxItemSet aNewAttr( mpViewShell->GetPool(),
EE_ITEMS_START, EE_ITEMS_END );
- aNewAttr.Put( aEditAttr, sal_False );
+ aNewAttr.Put( aEditAttr, false );
// Dialog hochfahren und ausfuehren
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
@@ -98,13 +96,12 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
OutlinerView* pOLV = mpView->GetTextEditOutlinerView();
std::auto_ptr< OutlineViewModelChangeGuard > aGuard;
+ OutlineView* pOutlineView = dynamic_cast< OutlineView* >(mpView);
- if (mpView->ISA(OutlineView))
+ if (pOutlineView)
{
- pOLV = static_cast<OutlineView*>(mpView)
- ->GetViewByWindow(mpViewShell->GetActiveWindow());
-
- aGuard.reset( new OutlineViewModelChangeGuard( static_cast<OutlineView&>(*mpView) ) );
+ pOLV = pOutlineView->GetViewByWindow(mpViewShell->GetActiveWindow());
+ aGuard.reset( new OutlineViewModelChangeGuard( *pOutlineView ) );
}
if( pOLV )