summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-08-31 21:48:12 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-09-02 11:16:10 -0500
commit7fb4fdcddca89a4191b83896a400e8835314da87 (patch)
treec3e8771f02c67b0aa9ae039314a54e41a8a1967f
parentb3062ae65fc7069442cb5fc23dd68c2e8344e999 (diff)
fdo#83302 don't display read-only infobar for Base form in normal mode
Change-Id: I03c32883dbf8421824069efea2318e67c8dc4313 Reviewed-on: https://gerrit.libreoffice.org/11231 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r--sfx2/source/view/viewfrm.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 2bf098933649..479dde2f9022 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1353,7 +1353,13 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
SfxBindings& rBind = GetBindings();
rBind.Invalidate( SID_RELOAD );
rBind.Invalidate( SID_EDITDOC );
- if ( !xObjSh->IsReadOnly() )
+ const SfxViewShell *pVSh;
+ const SfxShell *pFSh;
+ if ( !xObjSh->IsReadOnly() ||
+ ( xObjSh->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED &&
+ (pVSh = xObjSh->GetViewShell()) &&
+ (pFSh = pVSh->GetFormShell()) &&
+ !pFSh->IsDesignMode()))
{
// In contrast to above (TITLE_CHANGED) does the UI not
// have to be updated because it was not obstructed