diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-20 15:13:11 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2008-11-20 15:13:11 +0000 |
commit | c765b4858941f748fd5ed521e10123c505db5216 (patch) | |
tree | 1d9ba14074e5d0c35a09b24e455b419929de6d4e /embedserv/source/embed/docholder.cxx | |
parent | 40d74b23ef163b6190d5711ba2b106cd285d41dd (diff) |
CWS-TOOLING: integrate CWS buildid301_DEV300
Diffstat (limited to 'embedserv/source/embed/docholder.cxx')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index 2cdf388a684f..6b856be92e34 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: docholder.cxx,v $ - * $Revision: 1.31 $ + * $Revision: 1.31.10.1 $ * * This file is part of OpenOffice.org. * @@ -38,6 +38,7 @@ #include "intercept.hxx" #include "syswinwrapper.hxx" #include "iipaobj.hxx" + #include "common.h" #include <Windows.h> #include <com/sun/star/lang/SystemDependent.hpp> @@ -455,8 +456,8 @@ HRESULT DocumentHolder::InPlaceActivate( if ( m_xOleAccess.is() ) { LockedEmbedDocument_Impl aDocLock = m_xOleAccess->GetEmbedDocument(); - if ( aDocLock.m_pEmbedDocument ) - aDocLock.m_pEmbedDocument->ShowObject(); + if ( aDocLock.GetEmbedDocument() ) + aDocLock.GetEmbedDocument()->ShowObject(); } // setTitle(m_aDocumentNamePart); @@ -469,6 +470,7 @@ HRESULT DocumentHolder::InPlaceActivate( { hr = ERROR; } + return hr; } @@ -509,8 +511,8 @@ void DocumentHolder::InPlaceDeactivate(void) if ( m_xOleAccess.is() ) { LockedEmbedDocument_Impl aDocLock = m_xOleAccess->GetEmbedDocument(); - if ( aDocLock.m_pEmbedDocument ) - aDocLock.m_pEmbedDocument->SaveObject(); + if ( aDocLock.GetEmbedDocument() ) + aDocLock.GetEmbedDocument()->SaveObject(); } return; @@ -953,7 +955,7 @@ void DocumentHolder::resizeWin( const SIZEL& rNewSize ) if ( m_xOleAccess.is() ) aDocLock = m_xOleAccess->GetEmbedDocument(); - if ( m_xFrame.is() && aDocLock.m_pEmbedDocument ) + if ( m_xFrame.is() && aDocLock.GetEmbedDocument() ) { uno::Reference< awt::XWindow > xWindow( m_xFrame->getContainerWindow(), uno::UNO_QUERY ); @@ -1529,8 +1531,8 @@ DocumentHolder::notifyClosing( m_xFrame = uno::Reference< frame::XFrame >(); LockedEmbedDocument_Impl aDocLock = m_xOleAccess->GetEmbedDocument(); - if ( aDocLock.m_pEmbedDocument ) - aDocLock.m_pEmbedDocument->OLENotifyClosing(); + if ( aDocLock.GetEmbedDocument() ) + aDocLock.GetEmbedDocument()->OLENotifyClosing(); } else if( m_xFrame.is() && m_xFrame == aSource.Source ) m_xFrame = uno::Reference< frame::XFrame >(); @@ -1570,8 +1572,8 @@ void SAL_CALL DocumentHolder::modified( const lang::EventObject& /*aEvent*/ ) if ( m_xOleAccess.is() ) { LockedEmbedDocument_Impl aDocLock = m_xOleAccess->GetEmbedDocument(); - if ( aDocLock.m_pEmbedDocument ) - aDocLock.m_pEmbedDocument->notify(); + if ( aDocLock.GetEmbedDocument() ) + aDocLock.GetEmbedDocument()->notify(); } } |