[Libreoffice-commits] core.git: Branch 'aoo/trunk' - sd/source

Andre Fischer af at apache.org
Mon May 13 07:07:30 PDT 2013


 sd/source/ui/view/drviews1.cxx |    5 +++++
 sd/source/ui/view/drviewsa.cxx |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 7fe1777ad29d92d16fbc11b7279375d37d11cef8
Author: Andre Fischer <af at apache.org>
Date:   Mon May 13 13:34:46 2013 +0000

    122275: Don't show the layout panel for master pages.

diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 8f87947..615063f 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -516,6 +516,11 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive)
         Invalidate( SID_TITLE_MASTERPAGE );
         Invalidate( SID_NOTES_MASTERPAGE );
         Invalidate( SID_HANDOUT_MASTERPAGE );
+
+        if (meEditMode == EM_PAGE)
+            SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_DrawPage));
+        else
+            SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_MasterPage));
     }
 }
 
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 8420a23..211907c 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -156,7 +156,10 @@ DrawViewShell::DrawViewShell( SfxViewFrame* pFrame, ViewShellBase& rViewShellBas
 
     mpSelectionChangeHandler->Connect();
 
-    SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_DrawPage));
+    if (mpFrameView->GetViewShEditMode(mePageKind) == EM_PAGE)
+        SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_DrawPage));
+    else
+        SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_MasterPage));
 }
 
 /*************************************************************************


More information about the Libreoffice-commits mailing list