summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2016-01-07 15:57:21 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-08 10:42:48 +0100
commit51ad08e8b5f37807418ca744d4ddc16ca1735023 (patch)
tree6ed3e21132206b3684c799baa27eb1082a22c4ec /svx
parent7fdbc8839d620ec124102ce50cdf6e38d885f322 (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) Conflicts: include/svx/svdpntv.hxx libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx svx/source/svdraw/svdpntv.cxx Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx5
-rw-r--r--svx/source/svdraw/svdpntv.cxx1
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 74a93bf86c65..585745219fa9 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -164,6 +164,7 @@ void SdrPaintView::ImpClearVars()
pItemBrowser=NULL;
#endif
bPageVisible=true;
+ mbPageShadowVisible=true;
bPageBorderVisible=true;
bBordVisible=true;
bGridVisible=true;