diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-07-29 13:49:40 +0200 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-07-29 13:49:40 +0200 |
commit | 772bcbda67319d11d2afb2cff664b8fce69b912e (patch) | |
tree | b452ba598da177d4a377b370b0e64a94d368eff2 | |
parent | bbd277ba4a3beed176a38dd553c3bc2c5efe8218 (diff) |
writerfilter08ooo300: #i112415# on reload the filter should not set document readonly
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index aebc9a5800..a8edc018ce 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -813,6 +813,13 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) xNewObj->SetModifyPasswordEntered( sal_False ); xNewObj->SetReadOnly(); } + else if ( rReq.GetSlot() == SID_EDITDOC && bForEdit && !xNewObj->IsReadOnlyMedium() ) + { + // the filter might request setting of the document to readonly state + // but in case of SID_EDITDOC it should not happen if the document + // can be opened for editing + xNewObj->SetReadOnlyUI( sal_False ); + } if ( xNewObj->IsDocShared() ) { |