diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-19 15:28:25 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 13:39:42 +0530 |
commit | fbb171357048dc5ef52faec118327e68d423fa91 (patch) | |
tree | 8ec14e7e2ba3f87fe67948b7a5230a7aba7727b1 /sd | |
parent | 5556b6e9ad791fc31ef4428ec7dd342c5e0e5482 (diff) |
sd lok: Disable comments if required
Change-Id: Ic321bb9d35f5db3d2fbeb9f183aaa48da23002f3
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 6692e462aba9..d68755018766 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -30,6 +30,7 @@ #include <com/sun/star/embed/Aspects.hpp> #include <osl/mutex.hxx> +#include <comphelper/lok.hxx> #include <comphelper/sequence.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> @@ -88,12 +89,15 @@ #include <stlpool.hxx> #include <unopback.hxx> #include <unokywds.hxx> + #include "FrameView.hxx" #include "ClientView.hxx" #include "DrawViewShell.hxx" #include "ViewShell.hxx" #include "Window.hxx" #include "app.hrc" +#include "optsitem.hxx" + #include <vcl/pdfextoutdevdata.hxx> #include <com/sun/star/presentation/AnimationEffect.hpp> #include <com/sun/star/presentation/AnimationSpeed.hpp> @@ -2376,6 +2380,11 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs else if (rValue.Name == ".uno:Author" && rValue.Value.has<OUString>()) pDrawView->SetAuthor(rValue.Value.get<OUString>()); } + + // Disable comments if requested + SdOptions* pOptions = SD_MOD()->GetSdOptions(mpDoc->GetDocumentType()); + pOptions->SetShowComments(comphelper::LibreOfficeKit::isTiledAnnotations()); + // Disable map mode, so that it's possible to send mouse event coordinates // in logic units. if (sd::Window* pWindow = pViewShell->GetActiveWindow()) |