diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-06 17:12:46 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-06 17:13:11 +0100 |
commit | 5f68759810496ff3fadf5a883203449772c7392f (patch) | |
tree | cf0a75f42c082f890d8d7cabacfb86799aea527f /sw | |
parent | a0be15e5d4747bb335467dba7004e52eceb8fe2a (diff) |
sc lok annotations: paint range and anchor overlay
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/SidebarWin.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index 112a12d375c6..f5c620a148d8 100644 --- a/sw/source/uibase/docvw/SidebarWin.cxx +++ b/sw/source/uibase/docvw/SidebarWin.cxx @@ -262,6 +262,21 @@ void SwSidebarWin::PaintTile(vcl::RenderContext& rRenderContext, const Rectangle rRenderContext.Pop(); } + + const drawinglayer::geometry::ViewInformation2D aViewInformation; + std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor(drawinglayer::processor2d::createBaseProcessor2DFromOutputDevice(rRenderContext, aViewInformation)); + + // drawinglayer sets the map mode to pixels, not needed here. + rRenderContext.Pop(); + // Work in document-global twips. + rRenderContext.Pop(); + if (mpAnchor) + pProcessor->process(mpAnchor->getOverlayObjectPrimitive2DSequence()); + if (mpTextRangeOverlay) + pProcessor->process(mpTextRangeOverlay->getOverlayObjectPrimitive2DSequence()); + rRenderContext.Push(PushFlags::NONE); + pProcessor.reset(); + rRenderContext.Push(PushFlags::NONE); } void SwSidebarWin::Draw(OutputDevice* pDev, const Point& rPt, const Size& rSz, DrawFlags nInFlags) |