diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-01-07 15:57:21 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-06-12 14:07:05 +0200 |
commit | 8b3ffe0035527dda56c702930e17e5dcaeb1075b (patch) | |
tree | 0f6d431875c1d648a1b371ea1859d86ec91749cd /svx | |
parent | 31d56845a084e151364e69b6f71b4880470938a6 (diff) |
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
(cherry picked from commit 6b7d41094d06bbb4c248927d02318cf1b5faba0a)
Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx | 5 | ||||
-rw-r--r-- | svx/source/svdraw/svdpntv.cxx | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx index dcb83258a249..162a53796c71 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 35f12113ad9f..34cc2e0f8d8a 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; |