summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-10-15 11:01:29 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-10-18 21:21:00 +0200
commitfb3965470a79d5b45bd211e9f95775c75e793cc8 (patch)
treee0ac9a9ecdaaef26ca3e98fd2a761a1aeb6f7d37 /include
parent52c2b0fefcd3743c266cccb321ae194fd00720a4 (diff)
sd: support square and circle PDF annot. as custom marker
Use the existing polygon code paths, but convert a ellipse or the rectangle to the polygon, and add that as a custom marker for the annotation. Change-Id: I8f8657b868f2c410a3f604dcc1e609f4c6a12638 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104366 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/pdf/PDFAnnotationMarker.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/pdf/PDFAnnotationMarker.hxx b/include/vcl/pdf/PDFAnnotationMarker.hxx
index 2cfbeaa31111..4cf088dc1b8e 100644
--- a/include/vcl/pdf/PDFAnnotationMarker.hxx
+++ b/include/vcl/pdf/PDFAnnotationMarker.hxx
@@ -27,6 +27,14 @@ struct VCL_DLLPUBLIC PDFAnnotationMarker
Color maFillColor;
};
+struct VCL_DLLPUBLIC PDFAnnotationMarkerCircle : public PDFAnnotationMarker
+{
+};
+
+struct VCL_DLLPUBLIC PDFAnnotationMarkerSquare : public PDFAnnotationMarker
+{
+};
+
struct VCL_DLLPUBLIC PDFAnnotationMarkerPolygon : public PDFAnnotationMarker
{
basegfx::B2DPolygon maPolygon;