Kaydet (Commit) 737a8a08 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS mav16 (1.108.8); FILE MERGED

2005/02/09 08:57:20 mav 1.108.8.1: #i38631#,#i42209# macro execution mode related issues
üst 35423e46
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: appuno.cxx,v $ * $RCSfile: appuno.cxx,v $
* *
* $Revision: 1.108 $ * $Revision: 1.109 $
* *
* last change: $Author: rt $ $Date: 2005-02-02 14:01:38 $ * last change: $Author: vg $ $Date: 2005-02-25 09:35:47 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1738,8 +1738,12 @@ ErrCode SfxMacroLoader::loadMacro( const ::rtl::OUString& rURL, com::sun::star:: ...@@ -1738,8 +1738,12 @@ ErrCode SfxMacroLoader::loadMacro( const ::rtl::OUString& rURL, com::sun::star::
} }
else if ( pSh && pSh->GetMedium() ) else if ( pSh && pSh->GetMedium() )
{ {
pSh->AdjustMacroMode( String() );
SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pUpdateDocItem, SfxUInt16Item, SID_UPDATEDOCMODE, sal_False); SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pUpdateDocItem, SfxUInt16Item, SID_UPDATEDOCMODE, sal_False);
if ( pUpdateDocItem && pUpdateDocItem->GetValue() == document::UpdateDocMode::NO_UPDATE ) SFX_ITEMSET_ARG( pSh->GetMedium()->GetItemSet(), pMacroExecModeItem, SfxUInt16Item, SID_MACROEXECMODE, sal_False);
if ( pUpdateDocItem && pMacroExecModeItem
&& pUpdateDocItem->GetValue() == document::UpdateDocMode::NO_UPDATE
&& pMacroExecModeItem->GetValue() == document::MacroExecMode::NEVER_EXECUTE )
return ERRCODE_IO_ACCESSDENIED;; return ERRCODE_IO_ACCESSDENIED;;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment