summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/prevwsh.cxx
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2018-10-19 02:52:39 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2018-10-19 02:52:39 +0200
commit6df13f8648baa692910a67d1f9bfe415df3457b4 (patch)
treea52b3bec4b342195e9f88081eb77342595c225ca /sc/source/ui/view/prevwsh.cxx
parent04d6fdacf0daef4f9c3036929904f0332582524d (diff)
Revert "Notebookbar: add context-Printpreview to calc tabbed NB"
This reverts commit 3f9c477929c261a8862411c00153e4c7d0d0ae7c. Breaks the JunitTest_sc_unoapi tests with clang
Diffstat (limited to 'sc/source/ui/view/prevwsh.cxx')
-rw-r--r--sc/source/ui/view/prevwsh.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 1ad9c412f049..42d6700d0ab5 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -69,9 +69,6 @@
#include <com/sun/star/document/XDocumentProperties.hpp>
#include <scabstdlg.hxx>
-#include <vcl/EnumContext.hxx>
-#include <vcl/notebookbar.hxx>
-
// for mouse wheel
#define MINZOOM_SLIDER 10
#define MAXZOOM_SLIDER 400
@@ -158,13 +155,6 @@ ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame,
{
Construct( &pViewFrame->GetWindow() );
- SfxShell::SetContextBroadcasterEnabled(true);
- SfxShell::SetContextName(vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Printpreview));
- SfxShell::BroadcastContextForActivation(true);
-
- if (auto& pBar = SfxViewFrame::Current()->GetWindow().GetSystemWindow()->GetNotebookBar())
- pBar->ControlListener(true);
-
if ( auto pTabViewShell = dynamic_cast<ScTabViewShell*>( pOldSh) )
{
// store view settings, show table from TabView
@@ -191,9 +181,6 @@ ScPreviewShell::~ScPreviewShell()
if (mpFrameWindow)
mpFrameWindow->SetCloseHdl(Link<SystemWindow&,void>()); // Remove close handler.
- if (auto& pBar = SfxViewFrame::Current()->GetWindow().GetSystemWindow()->GetNotebookBar())
- pBar->ControlListener(false);
-
// #108333#; notify Accessibility that Shell is dying and before destroy all
BroadcastAccessibility( SfxHint( SfxHintId::Dying ) );
pAccessibilityBroadcaster.reset();