diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-07-07 19:15:11 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-07-13 14:12:52 +0200 |
commit | a307ad7ae029a0a62404996a63954e7026001ce3 (patch) | |
tree | 5f5b2137ce364e7429b6d058d90bd60981cb1030 /embeddedobj/source | |
parent | d255fb191ef9e49939a5ef076afcc778d74a6507 (diff) |
OLE: show title of parent document in MSO
Change-Id: I5eee6568e0805eb0c609640923a77ebc4244cb12
Reviewed-on: https://gerrit.libreoffice.org/39859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'embeddedobj/source')
-rw-r--r-- | embeddedobj/source/msole/olecomponent.cxx | 7 | ||||
-rw-r--r-- | embeddedobj/source/msole/oleembed.cxx | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/embeddedobj/source/msole/olecomponent.cxx b/embeddedobj/source/msole/olecomponent.cxx index 8c2dd853adfd..26a5d350e6ea 100644 --- a/embeddedobj/source/msole/olecomponent.cxx +++ b/embeddedobj/source/msole/olecomponent.cxx @@ -1067,19 +1067,16 @@ void OleComponent::ExecuteVerb( sal_Int32 nVerbID ) if ( FAILED( hr ) ) throw io::IOException(); // TODO - - // TODO/LATER: the real names should be used here - m_pNativeImpl->m_pOleObject->SetHostNames( L"app name", L"untitled" ); } void OleComponent::SetHostName( const OUString&, - const OUString& ) + const OUString& aEmbDocName ) { if ( !m_pNativeImpl->m_pOleObject ) throw embed::WrongStateException(); // TODO: the object is in wrong state - // TODO: use aContName and aEmbDocName in m_pNativeImpl->m_pOleObject->SetHostNames() + m_pNativeImpl->m_pOleObject->SetHostNames( L"app name", reinterpret_cast<const wchar_t*>( aEmbDocName.getStr() ) ); } diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index 2a075c8da812..182d0a459548 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -877,6 +877,7 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID ) m_pOleComponent->ExecuteVerb( nVerbID ); + m_pOleComponent->SetHostName( OUString(), m_aContainerName ); // ==== the STAMPIT related solution ============================= bool bModifiedOnExecution = m_aVerbExecutionController.EndControlExecution_WasModified(); |