diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 16:29:14 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 16:29:14 +0000 |
commit | c3ec48e63c4f86c9200f3f062c9b5c694d5c374f (patch) | |
tree | 1055a84cfb60ca250e5b40c6803709c67e0f69f1 /embeddedobj/source/general | |
parent | 50d5d4b8506f84df44141a648a3af68cb009188d (diff) |
INTEGRATION: CWS dba22 (1.10.10); FILE MERGED
2005/01/07 07:50:35 oj 1.10.10.2: RESYNC: (1.10-1.11); FILE MERGED
2004/12/09 17:19:20 mav 1.10.10.1: #i30178# use title from the media desctiptor
Diffstat (limited to 'embeddedobj/source/general')
-rw-r--r-- | embeddedobj/source/general/docholder.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx index 065c62b635ff..5fe1bd1326a4 100644 --- a/embeddedobj/source/general/docholder.cxx +++ b/embeddedobj/source/general/docholder.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docholder.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2004-11-26 16:15:51 $ + * last change: $Author: kz $ $Date: 2005-01-21 17:29:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -934,15 +934,17 @@ sal_Bool DocumentHolder::LoadDocToFrame( sal_Bool bInPlace ) ::rtl::OUString aDocumentName; uno::Reference < frame::XModel > xDocument( m_xComponent, uno::UNO_QUERY ); - uno::Sequence< beans::PropertyValue > aDocArgs = xDocument->getArgs(); - for ( sal_Int32 nInd = 0; nInd < aDocArgs.getLength(); nInd++ ) - if ( aDocArgs[nInd].Name.equalsAscii( "Title" ) ) - { - aDocArgs[nInd].Value >>= aDocumentName; - break; - } - SetTitle( aDocumentName ); +//REMOVE uno::Sequence< beans::PropertyValue > aDocArgs = xDocument->getArgs(); +//REMOVE for ( sal_Int32 nInd = 0; nInd < aDocArgs.getLength(); nInd++ ) +//REMOVE if ( aDocArgs[nInd].Name.equalsAscii( "Title" ) ) +//REMOVE { +//REMOVE aDocArgs[nInd].Value >>= aDocumentName; +//REMOVE break; +//REMOVE } +//REMOVE +//REMOVE SetTitle( aDocumentName ); + return sal_True; } else |