sd: custom annotation marker and draw polygon annotation from PDF

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 18 October 2020 19:20 UTC

This implements custom annotation marker, which overrides the default marker drawing of comments in Draw/Impress. The polygon is transported from the import of PDF to SdPdfFilter, then the sd::Annotation is set-up, by settuing up the new class CustomAnnotationMarker.

CustomAnnotationMarker also supports setting of the line color, line width and fill color.

The OverlayPolyPolygon is the new class that is responsible for the marker overlay, mainly to create the Primitive2D of the marker, that will be shown on the screen.

This only implements Polygon PDF annotation sub-type.

Change-Id: Ic663c31c5b3db5c13179dde63c1a0b81159f4b80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104365

52c2b0fefcd3 sd: custom annotation marker and draw polygon annotation from PDF
include/svx/sdr/overlay/overlaypolypolygon.hxx | 19 ++++++++++-
include/vcl/pdf/PDFAnnotationMarker.hxx | 37 +++++++++++++++++++++
include/vcl/pdfread.hxx | 5 +++
sd/inc/Annotation.hxx | 31 ++++++++++++++++-
sd/source/filter/pdf/sdpdffilter.cxx | 24 ++++++++++++++
sd/source/ui/annotations/annotationtag.cxx | 37 +++++++++++++++++----
svx/source/sdr/overlay/overlaypolypolygon.cxx | 46 ++++++++++++++++++++++++++
vcl/source/filter/ipdf/pdfread.cxx | 41 ++++++++++++++++++-----
8 files changed, 224 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share