From 6b7d41094d06bbb4c248927d02318cf1b5faba0a Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Thu, 7 Jan 2016 15:57:21 +0100 Subject: lool - page border shadow can be disabled Support for text documents and presentations. Added a command line option for gtktiledviewer: --hide-page-shadow. Reviewed on: https://gerrit.libreoffice.org/21210 Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29 --- svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx | 5 +++++ svx/source/svdraw/svdpntv.cxx | 1 + 2 files changed, 6 insertions(+) (limited to 'svx') diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx index fcf2ae153b7e..27f951fb43e1 100644 --- a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx @@ -266,6 +266,11 @@ bool ViewObjectContactOfPageShadow::isPrimitiveVisible(const DisplayInfo& rDispl return false; } + if(!pSdrPageView->GetView().IsPageShadowVisible()) + { + return false; + } + // no page shadow for preview renderers if(GetObjectContact().IsPreviewRenderer()) { diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index 27eba2b9d5a0..b14262d8bae3 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -163,6 +163,7 @@ void SdrPaintView::ImpClearVars() mpItemBrowser=nullptr; #endif mbPageVisible=true; + mbPageShadowVisible=true; mbPageBorderVisible=true; mbBordVisible=true; mbGridVisible=true; -- cgit