summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-22 16:34:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 18:57:43 +0000
commit7419057e3ec4365748fa6456e207f40fd9e09c62 (patch)
treec7ae11659b42539efb0f8c6eef68c1ee14c10dca /sfx2
parentc4cd079b8f613084a99a83b95c3968b65cbd8900 (diff)
loplugin:unusedmethods in chart2..svx
Change-Id: Ifb6045885049733415895f58cdd911256f48323c Reviewed-on: https://gerrit.libreoffice.org/29187 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/templatelocalview.cxx47
-rw-r--r--sfx2/source/dialog/dialoghelper.cxx5
-rw-r--r--sfx2/source/doc/objstor.cxx26
-rw-r--r--sfx2/source/sidebar/ControllerItem.cxx5
-rw-r--r--sfx2/source/view/frame.cxx51
-rw-r--r--sfx2/source/view/viewsh.cxx10
6 files changed, 0 insertions, 144 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx
index 331c22293d29..758ce118bac2 100644
--- a/sfx2/source/control/templatelocalview.cxx
+++ b/sfx2/source/control/templatelocalview.cxx
@@ -701,53 +701,6 @@ bool TemplateLocalView::moveTemplates(const std::set<const ThumbnailViewItem*, s
return ret;
}
-bool TemplateLocalView::copyFrom(const sal_uInt16 nRegionItemId, const BitmapEx &rThumbnail,
- const OUString &rPath)
-{
- for (TemplateContainerItem* pRegion : maRegions)
- {
- if (pRegion->mnId == nRegionItemId)
- {
- sal_uInt16 nId = 0;
- sal_uInt16 nDocId = 0;
-
- TemplateContainerItem *pRegionItem =
- pRegion;
-
- if (!pRegionItem->maTemplates.empty())
- {
- nId = (pRegionItem->maTemplates.back()).nId+1;
- nDocId = (pRegionItem->maTemplates.back()).nDocId+1;
- }
-
- OUString aPath(rPath);
- sal_uInt16 nRegionId = pRegion->mnRegionId;
-
- if (mpDocTemplates->CopyFrom(nRegionId,nDocId,aPath))
- {
- TemplateItemProperties aTemplate;
- aTemplate.nId = nId;
- aTemplate.nDocId = nDocId;
- aTemplate.nRegionId = nRegionId;
- aTemplate.aName = aPath;
- aTemplate.aRegionName = getRegionName(nRegionId);
- aTemplate.aThumbnail = rThumbnail;
- aTemplate.aPath = mpDocTemplates->GetPath(nRegionId,nDocId);
-
- TemplateContainerItem *pItem = pRegion;
-
- pItem->maTemplates.push_back(aTemplate);
-
- return true;
- }
-
- break;
- }
- }
-
- return false;
-}
-
bool TemplateLocalView::copyFrom (TemplateContainerItem *pItem, const OUString &rPath)
{
sal_uInt16 nId = 1;
diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx
index 554238de844b..fe0044eb91cf 100644
--- a/sfx2/source/dialog/dialoghelper.cxx
+++ b/sfx2/source/dialog/dialoghelper.cxx
@@ -63,11 +63,6 @@ Size getDrawPreviewOptimalSize(const vcl::Window *pReference)
return pReference->LogicToPixel(Size(88, 42), MAP_APPFONT);
}
-Size getDrawListBoxOptimalSize(const vcl::Window *pReference)
-{
- return pReference->LogicToPixel(Size(88, 110), MAP_APPFONT);
-}
-
Size getPreviewStripSize(const vcl::Window *pReference)
{
return pReference->LogicToPixel(Size(70 , 40), MapMode(MAP_APPFONT));
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index eec5ca75970d..0bcb90bcf40a 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2875,32 +2875,6 @@ bool SfxObjectShell::LoadFrom( SfxMedium& /*rMedium*/ )
}
-bool SfxObjectShell::IsInformationLost()
-{
- Sequence< PropertyValue > aProps = GetModel()->getArgs();
- OUString aFilterName;
- OUString aPreusedFilterName;
- for ( sal_Int32 nInd = 0; nInd < aProps.getLength(); nInd++ )
- {
- if ( aProps[nInd].Name == "FilterName" )
- aProps[nInd].Value >>= aFilterName;
- else if ( aProps[nInd].Name == "PreusedFilterName" )
- aProps[nInd].Value >>= aPreusedFilterName;
- }
-
- // if current filter can lead to information loss and it was used
- // for the latest store then the user should be asked to store in own format
- if ( !aFilterName.isEmpty() && aFilterName.equals( aPreusedFilterName ) )
- {
- std::shared_ptr<const SfxFilter> pFilt = GetMedium()->GetFilter();
- DBG_ASSERT( pFilt && aFilterName.equals( pFilt->GetName() ), "MediaDescriptor contains wrong filter!\n" );
- return ( pFilt && pFilt->IsAlienFormat() );
- }
-
- return false;
-}
-
-
bool SfxObjectShell::CanReload_Impl()
/* [Description]
diff --git a/sfx2/source/sidebar/ControllerItem.cxx b/sfx2/source/sidebar/ControllerItem.cxx
index 5443020364af..2ea554fb82fa 100644
--- a/sfx2/source/sidebar/ControllerItem.cxx
+++ b/sfx2/source/sidebar/ControllerItem.cxx
@@ -179,11 +179,6 @@ void ControllerItem::ResetFrame()
mxFrame = nullptr;
}
-Image ControllerItem::GetIcon() const
-{
- return GetImage(mxFrame, ".uno:" + msCommandName, false);
-}
-
ControllerItem::ItemUpdateReceiverInterface::~ItemUpdateReceiverInterface()
{
}
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx
index 009a29a42880..9c7fcdfa1749 100644
--- a/sfx2/source/view/frame.cxx
+++ b/sfx2/source/view/frame.cxx
@@ -648,50 +648,6 @@ bool SfxUnoFrameItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemberId
return ( rVal >>= m_xFrame );
}
-SfxFrameIterator::SfxFrameIterator( const SfxFrame& rFrame, bool bRecur )
- : pFrame( &rFrame )
- , bRecursive( bRecur )
-{}
-
-SfxFrame* SfxFrameIterator::FirstFrame()
-{
- // GetFirst starts the iteration at the first child frame
- return pFrame->GetChildFrame( 0 );
-}
-
-SfxFrame* SfxFrameIterator::NextFrame( SfxFrame& rPrev )
-{
- // If recursion is requested testing is done first on Children.
- SfxFrame *pRet = nullptr;
- if ( bRecursive )
- pRet = rPrev.GetChildFrame( 0 );
- if ( !pRet )
- {
- // In other case continue with the siblings of rPrev
- pRet = NextSibling_Impl( rPrev );
- }
-
- return pRet;
-}
-
-
-SfxFrame* SfxFrameIterator::NextSibling_Impl( SfxFrame& rPrev )
-{
- SfxFrame *pRet = nullptr;
- if ( &rPrev != pFrame )
- {
- SfxFrameArr_Impl& rArr = *rPrev.pParentFrame->pChildArr;
- SfxFrameArr_Impl::iterator it = std::find( rArr.begin(), rArr.end(), &rPrev );
- if ( it != rArr.end() && (++it) != rArr.end() )
- pRet = *it;
-
- if ( !pRet && rPrev.pParentFrame->pParentFrame )
- pRet = NextSibling_Impl( *rPrev.pParentFrame );
- }
-
- return pRet;
-}
-
css::uno::Reference< css::frame::XController > SfxFrame::GetController() const
{
if ( pImpl->pCurrentViewFrame && pImpl->pCurrentViewFrame->GetViewShell() )
@@ -931,11 +887,4 @@ SfxFrame* SfxFrame::GetNext( SfxFrame& rFrame )
return nullptr;
}
-const SfxPoolItem* SfxFrame::OpenDocumentSynchron( SfxItemSet& i_rSet, const Reference< XFrame >& i_rTargetFrame )
-{
- i_rSet.Put( SfxUnoFrameItem( SID_FILLFRAME, i_rTargetFrame ) );
- i_rSet.ClearItem( SID_TARGETNAME );
- return SfxGetpApp()->GetDispatcher_Impl()->Execute( SID_OPENDOC, SfxCallMode::SYNCHRON, i_rSet );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 78bf0b66b4de..4a851bf672d6 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1503,21 +1503,11 @@ void SfxViewShell::setTiledSearching(bool bTiledSearching)
pImpl->m_bTiledSearching = bTiledSearching;
}
-bool SfxViewShell::isTiledSearching() const
-{
- return pImpl->m_bTiledSearching;
-}
-
void SfxViewShell::setTiledPainting(bool bTiledPainting)
{
pImpl->m_bTiledPainting = bTiledPainting;
}
-bool SfxViewShell::isTiledPainting() const
-{
- return pImpl->m_bTiledPainting;
-}
-
int SfxViewShell::getPart() const
{
return 0;