diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-05 18:47:50 +0800 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-05 21:40:30 +0400 |
commit | 9c2f7056a82c4d7719715ca1c77f8dd4c17aa24c (patch) | |
tree | fcfff781b70e6423b5b5c32831eae1ca251be6b7 /sfx2/source/view | |
parent | 4fa8d043f8336e7b35130934498f8a4b357967d3 (diff) |
Remove unused code
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/frame.cxx | 10 | ||||
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 21 | ||||
-rw-r--r-- | sfx2/source/view/viewfac.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
4 files changed, 0 insertions, 44 deletions
diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index d2705599dd2c..2e1c16861f84 100644 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -496,11 +496,6 @@ void SfxFrame::GetTargetList( TargetList& rList ) const //------------------------------------------------------------------------- -SfxBroadcaster& SfxFrame::GetBroadcaster() const -{ - return *pImp; -} - sal_Bool SfxFrame::IsParent( SfxFrame *pFrame ) const { SfxFrame *pParent = pParentFrame; @@ -703,11 +698,6 @@ SfxFrame* SfxFrameIterator::NextSibling_Impl( SfxFrame& rPrev ) return pRet; } -sal_Bool SfxFrame::IsTop() const -{ - return GetFrameInterface().is() ? GetFrameInterface()->isTop() : sal_False; -} - sal_Bool SfxFrame::HasComponent() const { return sal_False; diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 1f5d49dafaae..ac7dea2116e6 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -876,27 +876,6 @@ sal_Bool SfxInPlaceClient::IsObjectInPlaceActive() const } //-------------------------------------------------------------------- -sal_Bool SfxInPlaceClient::IsObjectActive() const -{ - try { - return ( m_pImp->m_xObject.is() && ( m_pImp->m_xObject->getCurrentState() == embed::EmbedStates::ACTIVE ) ); - } - catch( uno::Exception& ) - {} - - return sal_False; -} - -//-------------------------------------------------------------------- -Window* SfxInPlaceClient::GetActiveWindow( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ) -{ - SfxInPlaceClient* pClient = GetClient( pDoc, xObject ); - if ( pClient ) - return pClient->GetEditWin(); - return NULL; -} - -//-------------------------------------------------------------------- SfxInPlaceClient* SfxInPlaceClient::GetClient( SfxObjectShell* pDoc, const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& xObject ) { for ( SfxViewFrame* pFrame = SfxViewFrame::GetFirst(pDoc); pFrame; pFrame=SfxViewFrame::GetNext(*pFrame,pDoc) ) diff --git a/sfx2/source/view/viewfac.cxx b/sfx2/source/view/viewfac.cxx index 639495336ece..948811542633 100644 --- a/sfx2/source/view/viewfac.cxx +++ b/sfx2/source/view/viewfac.cxx @@ -73,10 +73,5 @@ SfxViewFactory::SfxViewFactory( SfxViewCtor fnC, SfxViewInit fnI, DBG_CTOR(SfxViewFactory, 0); } -SfxViewFactory::~SfxViewFactory() -{ - DBG_DTOR(SfxViewFactory, 0); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index e342fadc29c2..af22c83a823d 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1784,14 +1784,6 @@ sal_Bool SfxViewFrame::IsVisible() const } //-------------------------------------------------------------------- -void SfxViewFrame::Hide() -{ - GetWindow().Hide(); - if ( pImp->bObjLocked ) - LockObjectShell_Impl( sal_False ); -} - -//-------------------------------------------------------------------- void SfxViewFrame::LockObjectShell_Impl( sal_Bool bLock ) { DBG_ASSERT( pImp->bObjLocked != bLock, "Wrong Locked status!" ); |