INTEGRATION: CWS leanobjects (1.2.32); FILE MERGED
2004/11/18 11:38:26 mav 1.2.32.1: #i37014# separate the case when document has unknown mediatype
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: storagehelper.cxx,v $
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Revision: 1.4 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2004-11-17 15:36:09 $
|
||||
* last change: $Author: rt $ $Date: 2004-11-26 16:36:49 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -74,6 +74,10 @@
|
||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#endif
|
||||
|
||||
#ifndef _COM_SUN_STAR_BEANS_ILLEGALTYPEEXCEPTION_HPP_
|
||||
#include <com/sun/star/beans/IllegalTypeException.hpp>
|
||||
#endif
|
||||
|
||||
#include <comphelper/fileformat.h>
|
||||
#include <comphelper/storagehelper.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
@@ -268,7 +272,10 @@ sal_Int32 OStorageHelper::GetXStorageFormat(
|
||||
nResult = SOFFICE_FILEFORMAT_8;
|
||||
}
|
||||
else
|
||||
throw uno::Exception();
|
||||
{
|
||||
// the mediatype is not known
|
||||
throw beans::IllegalTypeException();
|
||||
}
|
||||
|
||||
return nResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user