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/ipclient.cxx | |
parent | 4fa8d043f8336e7b35130934498f8a4b357967d3 (diff) |
Remove unused code
Diffstat (limited to 'sfx2/source/view/ipclient.cxx')
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
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) ) |