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 | a18c6fe8f3f353d78f58563d8d39bf4c922712ac (patch) | |
tree | 6515bc101b6972ada346a512531276ec85bc6585 /sfx2 | |
parent | 9141d3977c9aa5db71b5ee81aee3093f0102b37a (diff) |
writerfilter08ooo300: #i112415# on reload the filter should not set document readonly
Diffstat (limited to 'sfx2')
-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 feced28efb11..ed924623c700 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() ) { |