diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-01 15:06:22 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-08-01 15:06:22 +0000 |
commit | 2e45b433b203c37f49bc7f8eb09e658067567cd5 (patch) | |
tree | 526fdddfbb076640e23983273e8a95d714cfdfda /sfx2 | |
parent | a7e693854464703ef585e3c2de105ae29556cedc (diff) |
INTEGRATION: CWS fwk41 (1.23.6); FILE MERGED
2006/07/26 12:18:23 mba 1.23.6.2: RESYNC: (1.23-1.24); FILE MERGED
2006/07/21 08:34:38 mav 1.23.6.1: #i67566# retrieve the mediatype correctly
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objuno.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sfx2/source/doc/objuno.cxx b/sfx2/source/doc/objuno.cxx index 194b8839153e..ef07c9ec4483 100644 --- a/sfx2/source/doc/objuno.cxx +++ b/sfx2/source/doc/objuno.cxx @@ -4,9 +4,9 @@ * * $RCSfile: objuno.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: ihi $ $Date: 2006-08-01 11:19:18 $ + * last change: $Author: ihi $ $Date: 2006-08-01 16:06:22 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1232,6 +1232,12 @@ void SAL_CALL SfxStandaloneDocumentInfoObject::loadFromURL(const ::rtl::OUStrin if ( !_pInfo ) _pInfo = new SfxDocumentInfo; + // set the mediatype from the storage + ::rtl::OUString aMediaType; + uno::Reference< beans::XPropertySet > xStorProps( xStorage, uno::UNO_QUERY_THROW ); + xStorProps->getPropertyValue( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MediaType" ) ) ) >>= aMediaType; + _pInfo->SetSpecialMimeType( aMediaType ); + // import from XML meta data using SAX parser uno::Reference< XInterface > xXMLParser = _xFactory->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.xml.sax.Parser" )) ); |