diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-11-26 15:36:49 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-11-26 15:36:49 +0000 |
commit | a88faf27a2d18cf5d8113054d6f478fdc9f5bed6 (patch) | |
tree | fc0ebee476415ded59110370e705216dbf1e006d /comphelper/source/misc | |
parent | 79096773f6f284ee924d5967bf7aa874019c9538 (diff) |
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
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r-- | comphelper/source/misc/storagehelper.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 774d8c94eda9..905363691c06 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -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; } |