diff options
author | Noel Power <noel.power@suse.com> | 2013-03-01 17:07:06 +0000 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-03-01 17:12:29 +0000 |
commit | ec583253c3d761847c93a77fa10c065fc334fab9 (patch) | |
tree | 8c93913029ade491470e75389c8426fb87795ed9 /uui/source/iahndl.cxx | |
parent | 58c30a3545a5725d704eabd79071db02f1f2cb23 (diff) |
raise warning when saving macro laden doc as a macro-free format bnc#791777
Change-Id: Ic947ceef71c86e31fbf0bce74b064aaf91f47178
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 3ad471bb2765..9c42f2e2b3ef 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -784,11 +784,26 @@ UUIInteractionHelper::handleRequest_impl( task::ErrorCodeRequest aErrorCodeRequest; if (aAnyRequest >>= aErrorCodeRequest) { - handleGenericErrorRequest( aErrorCodeRequest.ErrCode, + // Sucky special handling for xlsx macro filter warning + if ( (sal_uInt32)ERRCODE_SFX_VBASIC_CANTSAVE_STORAGE == (sal_uInt32)aErrorCodeRequest.ErrCode) + { + std::vector< rtl::OUString > aArguments; + handleErrorHandlerRequest( task::InteractionClassification_WARNING, + ERRCODE_UUI_IO_WARN_CANTSAVE_MACROS, + aArguments, + rRequest->getContinuations(), + bObtainErrorStringOnly, + bHasErrorString, + rErrorString); + } + else + { + handleGenericErrorRequest( aErrorCodeRequest.ErrCode, rRequest->getContinuations(), bObtainErrorStringOnly, bHasErrorString, rErrorString); + } return true; } |