Kaydet (Commit) ee2ef8f0 authored tarafından Szymon Kłos's avatar Szymon Kłos Kaydeden (comit) Andras Timar

tdf#114677 Correct title in Base forms cleanup

Change-Id: I224858ffce50b00273d80f915831ec7789cfa64a
Reviewed-on: https://gerrit.libreoffice.org/48819Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 077e0f3b)
üst 9291f0e8
...@@ -969,17 +969,14 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace ) ...@@ -969,17 +969,14 @@ bool DocumentHolder::LoadDocToFrame( bool bInPlace )
// set document title to show in the title bar // set document title to show in the title bar
css::uno::Reference< css::frame::XTitle > xModelTitle( xDoc, css::uno::UNO_QUERY ); css::uno::Reference< css::frame::XTitle > xModelTitle( xDoc, css::uno::UNO_QUERY );
if( xModelTitle.is() ) if( xModelTitle.is() && m_pEmbedObj && !m_pEmbedObj->getContainerName().isEmpty() )
{ {
std::locale aResLoc = Translate::Create("sfx"); std::locale aResLoc = Translate::Create("sfx");
OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc); OUString sEmbedded = Translate::get(STR_EMBEDDED_TITLE, aResLoc);
if( !m_pEmbedObj->getContainerName().isEmpty() ) xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded );
{ m_aContainerName = m_pEmbedObj->getContainerName();
xModelTitle->setTitle( m_pEmbedObj->getContainerName() + sEmbedded ); // TODO: get real m_aDocumentNamePart
m_aContainerName = m_pEmbedObj->getContainerName(); m_aDocumentNamePart = sEmbedded;
// TODO: get real m_aDocumentNamePart
m_aDocumentNamePart = sEmbedded;
}
} }
if ( bInPlace ) if ( bInPlace )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment