diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2010-12-05 22:42:19 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 17:11:00 +0000 |
commit | 4ef564882dd85750576aea92524236f96ab720f6 (patch) | |
tree | d07ecbf7122d01f5dae2d25448644e019343fc20 /sd/source/ui/dlg | |
parent | b4106d0526e1a1978cbc8f916da05f1a1c976715 (diff) |
Remove dead codes from sd
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/animobjs.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgass.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdpreslt.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/dlg/tpoption.cxx | 7 |
4 files changed, 0 insertions, 29 deletions
diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index a381e46c80fa..30865566e48e 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -116,7 +116,6 @@ void SdDisplay::Paint( const Rectangle& ) aPt.Y() = ( aSize.Height() - aBmpSize.Height() ) / 2; aBitmapEx.Draw( this, aPt, aBmpSize ); - //DrawBitmap( aPt, aBmpSize, *pBitmap ); } // ----------------------------------------------------------------------- @@ -629,8 +628,6 @@ void AnimationWindow::UpdateControl( ULONG nListPos, BOOL bDisableCtrls ) } else { - //aFiCount.SetText( String( SdResId( STR_NULL ) ) ); - // Wenn kein Objekt in der Liste ist aBtnFirst.Enable( FALSE ); aBtnReverse.Enable( FALSE ); @@ -738,7 +735,6 @@ Fraction AnimationWindow::GetScale() void AnimationWindow::Resize() { - //if( !IsZoomedIn() ) if ( !IsFloatingMode() || !GetFloatingWindow()->IsRollUp() ) { @@ -754,7 +750,6 @@ void AnimationWindow::Resize() aCtlDisplay.SetOutputSizePixel( aDisplaySize ); Point aPt; - // aPt.X() = aDiffSize.Width() / 2; aPt.Y() = aDiffSize.Height(); // Verschieben der anderen Controls @@ -832,8 +827,6 @@ void AnimationWindow::Resize() aGrpAnimation.Show(); aSize = aWinSize; - - //aFltWinSize = GetSizePixel(); } SfxDockingWindow::Resize(); } @@ -1218,8 +1211,6 @@ void AnimationWindow::CreateAnimObj (::sd::View& rView ) break; } - //aRect.SetPos(aWindowCenter + Point(aOffset.Width(), aOffset.Height())); - //pClone->SetSnapRect( aRect ); // SetSnapRect ist fuer Ellipsen leider nicht implementiert !!! Point aMovePt( aWindowCenter + Point( aOffset.Width(), aOffset.Height() ) - aRect.TopLeft() ); Size aMoveSize( aMovePt.X(), aMovePt.Y() ); diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index 16b62f219711..22197776b133 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -752,14 +752,11 @@ void AssistentDlgImpl::CloseDocShell() { if(xDocShell.Is()) { - //uno::Reference< lang::XComponent > xModel( xDocShell->GetModel(), uno::UNO_QUERY ); uno::Reference< util::XCloseable > xCloseable( xDocShell->GetModel(), uno::UNO_QUERY ); - //if( xModel.is() ) if( xCloseable.is() ) { xCloseable->close( sal_True ); xDocShell = NULL; - //xModel->dispose(); } else { @@ -1039,7 +1036,6 @@ String AssistentDlgImpl::GetLayoutFileName() SfxObjectShellLock AssistentDlgImpl::GetDocument() { -// mbPreview = FALSE; // Document nicht anzeigen UpdatePreview(FALSE); // aber komplett laden UpdatePageList(); diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index c2f7648aadd8..1cfb45f8af5d 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -272,9 +272,6 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG) } delete pDlg; -// if (!bCancel) -// EndDialog(RET_OK); - if( !bCancel ) { // Pruefen, ob Vorlage schon vorhanden @@ -309,12 +306,6 @@ IMPL_LINK(SdPresLayoutDlg, ClickLoadHdl, void *, EMPTYARG) { ::sd::DrawDocShell* pTemplDocSh= pTemplDoc->GetDocSh(); -/* SdPage* pMaster = pTemplDoc->GetMasterSdPage( 0, PK_STANDARD ); - mpLayoutNames->Insert( new String( maName ), LIST_APPEND ); - - Bitmap aBitmap( pTemplDocSh->GetPagePreviewBitmap( pMaster, 90 ) ); - maVS.InsertItem( (USHORT) mpLayoutNames->Count(), aBitmap, maName); -*/ USHORT nCount = pTemplDoc->GetMasterPageCount(); for (USHORT nLayout = 0; nLayout < nCount; nLayout++) diff --git a/sd/source/ui/dlg/tpoption.cxx b/sd/source/ui/dlg/tpoption.cxx index cb68c6a6ba95..0f564929d1ac 100644 --- a/sd/source/ui/dlg/tpoption.cxx +++ b/sd/source/ui/dlg/tpoption.cxx @@ -101,9 +101,6 @@ BOOL SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs ) { SvxGridTabPage::FillItemSet(rAttrs); SdOptionsSnapItem* pOptsItem = NULL; -// if(SFX_ITEM_SET != rAttrs.GetItemState( ATTR_OPTIONS_SNAP, FALSE, (const SfxPoolItem**)&pOptsItem )) -// pExampleSet->GetItemState( ATTR_OPTIONS_SNAP, FALSE, (const SfxPoolItem**)&pOptsItem ); - SdOptionsSnapItem aOptsItem( ATTR_OPTIONS_SNAP ); aOptsItem.GetOptionsSnap().SetSnapHelplines( aCbxSnapHelplines.IsChecked() ); @@ -188,7 +185,6 @@ BOOL SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs ) if( aCbxRuler.GetSavedValue() != aCbxRuler.IsChecked() || aCbxMoveOutline.GetSavedValue() != aCbxMoveOutline.IsChecked() || aCbxDragStripes.GetSavedValue() != aCbxDragStripes.IsChecked() || - //aCbxHelplines.GetSavedValue() != aCbxHelplines.IsChecked() || aCbxHandlesBezier.GetSavedValue() != aCbxHandlesBezier.IsChecked() ) { SdOptionsLayoutItem aOptsItem( ATTR_OPTIONS_LAYOUT ); @@ -197,7 +193,6 @@ BOOL SdTpOptionsContents::FillItemSet( SfxItemSet& rAttrs ) aOptsItem.GetOptionsLayout().SetMoveOutline( aCbxMoveOutline.IsChecked() ); aOptsItem.GetOptionsLayout().SetDragStripes( aCbxDragStripes.IsChecked() ); aOptsItem.GetOptionsLayout().SetHandlesBezier( aCbxHandlesBezier.IsChecked() ); - //aOptsItem.GetOptionsLayout().SetHelplines( aCbxHelplines.IsChecked() ); rAttrs.Put( aOptsItem ); bModified = TRUE; @@ -219,13 +214,11 @@ void SdTpOptionsContents::Reset( const SfxItemSet& rAttrs ) aCbxMoveOutline.Check( aLayoutItem.GetOptionsLayout().IsMoveOutline() ); aCbxDragStripes.Check( aLayoutItem.GetOptionsLayout().IsDragStripes() ); aCbxHandlesBezier.Check( aLayoutItem.GetOptionsLayout().IsHandlesBezier() ); - //aCbxHelplines.Check( aLayoutItem.GetOptionsLayout().IsHelplines() ); aCbxRuler.SaveValue(); aCbxMoveOutline.SaveValue(); aCbxDragStripes.SaveValue(); aCbxHandlesBezier.SaveValue(); - //aCbxHelplines.SaveValue(); } // ----------------------------------------------------------------------- |