summaryrefslogtreecommitdiff
path: root/uui/source/iahndl.cxx
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-11-28 10:49:58 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-11-28 10:49:58 +0000
commitf9c07ee9bad94cfda652868de7820fae2e1aeb71 (patch)
tree7b6fb01e7d0eaa80f5cbf75ffe3add6a504979d4 /uui/source/iahndl.cxx
parentc4d76227d200cdb1ae92d39833fccc23e503519c (diff)
#102386# use UnsupportedNameClashException
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r--uui/source/iahndl.cxx29
1 files changed, 27 insertions, 2 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index cc4783513a..b2aa5c347a 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: iahndl.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: mav $ $Date: 2002-10-31 11:08:28 $
+ * last change: $Author: mav $ $Date: 2002-11-28 11:49:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -133,6 +133,9 @@
#ifndef _COM_SUN_STAR_TASK_XPASSWORDCONTAINER_HPP_
#include "com/sun/star/task/XPasswordContainer.hpp"
#endif
+#ifndef _COM_SUN_STAR_UCB_UNSUPPORTEDNAMECLASHEXCEPTION_HPP_
+#include "com/sun/star/ucb/UnsupportedNameClashException.hpp"
+#endif
#ifndef _COM_SUN_STAR_UCB_AUTHENTICATIONREQUEST_HPP_
#include "com/sun/star/ucb/AuthenticationRequest.hpp"
#endif
@@ -638,6 +641,28 @@ UUIInteractionHandler::handle(
return;
}
+ star::ucb::UnsupportedNameClashException aUORequest;
+ if (aAnyRequest >>= aUORequest)
+ {
+ ErrCode nErrorCode = ERRCODE_UUI_IO_UNSUPPORTEDOVERWRITE;
+ std::vector< rtl::OUString > aArguments;
+
+ star::uno::Reference< star::task::XInteractionApprove > xApprove;
+ star::uno::Reference< star::task::XInteractionDisapprove > xDisapprove;
+ getContinuations(
+ rRequest->getContinuations(), &xApprove, &xDisapprove, 0, 0, 0, 0);
+
+ if( xApprove.is() && xDisapprove.is() )
+ {
+ handleErrorRequest( star::task::InteractionClassification_QUERY,
+ nErrorCode,
+ aArguments,
+ rRequest->getContinuations());
+ }
+
+ return;
+ }
+
star::ucb::InteractiveIOException aIoException;
if (aAnyRequest >>= aIoException)
{