INTEGRATION: CWS basmgr03 (1.26.44); FILE MERGED

2007/07/26 08:53:27 fs 1.26.44.1: #i73331# GetMacroMode not needed anymore: AdjustMacroMode now returning whether macros are allowed
This commit is contained in:
Kurt Zenker
2007-10-09 14:02:30 +00:00
parent b80778e524
commit 2eb85ab0d0

View File

@@ -4,9 +4,9 @@
*
* $RCSfile: scripthandler.cxx,v $
*
* $Revision: 1.26 $
* $Revision: 1.27 $
*
* last change: $Author: obo $ $Date: 2006-09-16 12:27:17 $
* last change: $Author: kz $ $Date: 2007-10-09 15:02:30 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -187,10 +187,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
// Security check
if ( pDocShell && aURL.Complete.indexOf( ::rtl::OUString::createFromAscii("document") )!=-1 )
{
pDocShell->AdjustMacroMode( String() );
if ( pDocShell->GetMacroMode() ==
::com::sun::star::document::MacroExecMode::NEVER_EXECUTE )
if ( !pDocShell->AdjustMacroMode( String() ) )
{
return;
}