diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-22 15:08:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-22 18:56:58 +0000 |
commit | c4cd079b8f613084a99a83b95c3968b65cbd8900 (patch) | |
tree | 16051edcfd1f7109aefa08af6d71da0687b20f8a /sd/source/ui/dlg | |
parent | ba3d6d8a39d31316923d2326059c07b0a7e3c05e (diff) |
loplugin:unusedmethods in sc..vcl
Change-Id: I70fcf95dfd3db05b4fd6e5cee37866f673d3afa8
Reviewed-on: https://gerrit.libreoffice.org/29183
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/TemplateScanner.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgctrls.cxx | 84 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 37 |
3 files changed, 0 insertions, 127 deletions
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx index e0d79029da3b..0f6723d503b6 100644 --- a/sd/source/ui/dlg/TemplateScanner.cxx +++ b/sd/source/ui/dlg/TemplateScanner.cxx @@ -374,12 +374,6 @@ TemplateScanner::State TemplateScanner::ScanFolder() return eNextState; } -void TemplateScanner::Scan() -{ - while (HasNextStep()) - RunNextStep(); -} - void TemplateScanner::RunNextStep() { switch (meState) diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx index ff6141410a6d..6f29aeb8ebb5 100644 --- a/sd/source/ui/dlg/dlgctrls.cxx +++ b/sd/source/ui/dlg/dlgctrls.cxx @@ -58,58 +58,6 @@ void FadeEffectLB::dispose() ListBox::dispose(); } -void FadeEffectLB::Fill() -{ - InsertEntry( SD_RESSTR( STR_EFFECT_NONE ) ); - mpImpl->maPresets.push_back( TransitionPresetPtr() ); - mpImpl->maSet.push_back( "" ); - - const TransitionPresetList& rPresetList = TransitionPreset::getTransitionPresetList(); - - for( auto aIter = rPresetList.begin(); aIter != rPresetList.end(); ++aIter ) - { - TransitionPresetPtr pPreset = *aIter; - const OUString sLabel( pPreset->getSetLabel() ); - if( !sLabel.isEmpty() ) - { - if( mpImpl->maNumVariants.find( pPreset->getSetId() ) == mpImpl->maNumVariants.end() ) - { - InsertEntry( sLabel ); - mpImpl->maSet.push_back( pPreset->getSetId() ); - mpImpl->maNumVariants[pPreset->getSetId()] = 1; - } - else - { - mpImpl->maNumVariants[pPreset->getSetId()]++; - } - mpImpl->maPresets.push_back( pPreset ); - } - } - - assert( static_cast<size_t>( GetEntryCount() ) == mpImpl->maSet.size() ); - assert( mpImpl->maPresets.size() == 1 + TransitionPreset::getTransitionPresetList().size() ); - - SelectEntryPos(0); -} - -void FadeEffectLB::FillVariantLB(ListBox& rVariantLB) -{ - rVariantLB.Clear(); - for( auto aIter = mpImpl->maPresets.begin(); aIter != mpImpl->maPresets.end(); ++aIter ) - { - TransitionPresetPtr pPreset = *aIter; - if( !pPreset ) - continue; - const OUString sLabel( pPreset->getSetLabel() ); - if( !sLabel.isEmpty() && mpImpl->maSet[GetSelectEntryPos()].equals( pPreset->getSetId() ) ) - { - rVariantLB.InsertEntry( pPreset->getVariantLabel() ); - } - } - if( rVariantLB.GetEntryCount() > 0 ) - rVariantLB.SelectEntryPos( 0 ); -} - VCL_BUILDER_DECL_FACTORY(FadeEffectLB) { WinBits nBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK; @@ -122,37 +70,5 @@ VCL_BUILDER_DECL_FACTORY(FadeEffectLB) rRet = VclPtr<FadeEffectLB>::Create(pParent, nBits); } -void FadeEffectLB::applySelected( SdPage* pSlide, ListBox& rVariantLB ) const -{ - if( !pSlide ) - return; - - if( GetSelectEntryPos() == 0 ) - { - pSlide->setTransitionType( 0 ); - pSlide->setTransitionSubtype( 0 ); - pSlide->setTransitionDirection( true ); - pSlide->setTransitionFadeColor( 0 ); - return; - } - - int nMatch = 0; - for( auto aIter = mpImpl->maPresets.begin(); aIter != mpImpl->maPresets.end(); ++aIter ) - { - TransitionPresetPtr pPreset = *aIter; - if( !pPreset ) - continue; - const OUString sLabel( pPreset->getSetLabel() ); - if( !sLabel.isEmpty() && mpImpl->maSet[GetSelectEntryPos()].equals( pPreset->getSetId() ) ) - { - if( nMatch == rVariantLB.GetSelectEntryPos() ) - { - pPreset->apply( pSlide ); - break; - } - nMatch++; - } - } -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index cc1f3bb44151..e90752452106 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -50,18 +50,6 @@ using namespace ::com::sun::star::uno; const int SdDocPreviewWin::FRAME = 4; -void SdDocPreviewWin::SetObjectShell( SfxObjectShell* pObj, sal_uInt16 nShowPage ) -{ - mpObj = pObj; - mnShowPage = nShowPage; - if (mxSlideShow.is()) - { - mxSlideShow->end(); - mxSlideShow.clear(); - } - updateViewSettings(); -} - VCL_BUILDER_DECL_FACTORY(SdDocPreviewWin) { WinBits nWinStyle = 0; @@ -175,31 +163,6 @@ void SdDocPreviewWin::Paint( vcl::RenderContext& /*rRenderContext*/, const Recta } } -void SdDocPreviewWin::startPreview() -{ - ::sd::DrawDocShell* pDocShell = dynamic_cast< ::sd::DrawDocShell * >( mpObj ); - if( pDocShell ) - { - SdDrawDocument* pDoc = pDocShell->GetDoc(); - - if( pDoc ) - { - SdPage* pPage = pDoc->GetSdPage( mnShowPage, PK_STANDARD ); - - if( pPage && (pPage->getTransitionType() != 0) ) - { - if( !mxSlideShow.is() ) - mxSlideShow = sd::SlideShow::Create( pDoc ); - - Reference< XDrawPage > xDrawPage( pPage->getUnoPage(), UNO_QUERY ); - Reference< XAnimationNode > xAnimationNode; - - mxSlideShow->startPreview( xDrawPage, xAnimationNode, this ); - } - } - } -} - bool SdDocPreviewWin::Notify( NotifyEvent& rNEvt ) { if ( rNEvt.GetType() == MouseNotifyEvent::MOUSEBUTTONDOWN ) |