diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-04-26 15:18:09 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-04-26 15:22:42 +0200 |
commit | 33f178c14bae83f3b98dd327df0bf1b19da18f82 (patch) | |
tree | f9646832f6fdab2c1418b8ea89086ca74e2be55c /uui/source/iahndl.cxx | |
parent | 2ede8b438e0cd0a3cddabcfcc7687c74f2e372a2 (diff) |
error dialog when a component (e.g. Writer) is not found (bnc#689116)
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 79362cc8cf10..3cda495e0afa 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -67,6 +67,7 @@ #include "com/sun/star/ucb/XInteractionReplaceExistingData.hpp" #include "com/sun/star/ucb/XInteractionSupplyName.hpp" #include "com/sun/star/xforms/InvalidDataOnSubmitException.hpp" +#include "com/sun/star/loader/CannotActivateFactoryException.hpp" #include "osl/conditn.hxx" #include "tools/rcid.h" // RSC_STRING @@ -857,6 +858,23 @@ UUIInteractionHelper::handleRequest_impl( return true; } + loader::CannotActivateFactoryException aCannotActivateFactoryException; + if (aAnyRequest >>= aCannotActivateFactoryException) + { + ErrCode nErrorCode = ERRCODE_UUI_CANNOT_ACTIVATE_FACTORY; + std::vector< rtl::OUString > aArguments; + aArguments.push_back( aCannotActivateFactoryException.Message ); + + handleErrorHandlerRequest( task::InteractionClassification_ERROR, + nErrorCode, + aArguments, + rRequest->getContinuations(), + bObtainErrorStringOnly, + bHasErrorString, + rErrorString ); + return true; + } + /////////////////////////////////////////////////////////////////// // Handle requests which do not have a plain string representation. |