[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Fri Nov 6 08:13:46 PST 2015
sw/source/uibase/docvw/SidebarWin.cxx | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit 5f68759810496ff3fadf5a883203449772c7392f
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Nov 6 17:12:46 2015 +0100
sc lok annotations: paint range and anchor overlay
Change-Id: I16e51e074704026a45471e7a08c3b96846d44053
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index 112a12d..f5c620a 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)
More information about the Libreoffice-commits
mailing list