From f6d2419188755f280afe7f30178c4b48de6993f3 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 7 Jan 2021 22:19:59 +0100 Subject: pdfium: add wrapper for FPDF_TEXTRENDERMODE_* defines Change-Id: I85fe128f0b86d1e308727f7cc0f803d62c6ba48d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108952 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- include/vcl/filter/PDFiumLibrary.hxx | 3 ++- include/vcl/pdf/PDFTextRenderMode.hxx | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 include/vcl/pdf/PDFTextRenderMode.hxx (limited to 'include') diff --git a/include/vcl/filter/PDFiumLibrary.hxx b/include/vcl/filter/PDFiumLibrary.hxx index e32466b9bf13..aff5ad6ad8af 100644 --- a/include/vcl/filter/PDFiumLibrary.hxx +++ b/include/vcl/filter/PDFiumLibrary.hxx @@ -34,6 +34,7 @@ #include #include #include +#include #include @@ -144,7 +145,7 @@ public: basegfx::B2DRectangle getBounds(); double getFontSize(); OUString getFontName(); - int getTextRenderMode(); + PDFTextRenderMode getTextRenderMode(); Color getFillColor(); Color getStrokeColor(); // Path diff --git a/include/vcl/pdf/PDFTextRenderMode.hxx b/include/vcl/pdf/PDFTextRenderMode.hxx new file mode 100644 index 000000000000..366a080fb79e --- /dev/null +++ b/include/vcl/pdf/PDFTextRenderMode.hxx @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#pragma once + +namespace vcl::pdf +{ +enum class PDFTextRenderMode +{ + Unknown = -1, + Fill = 0, + Stroke = 1, + FillStroke = 2, + Invisible = 3, + FillClip = 4, + StrokeClip = 5, + FillStrokeClip = 6, + Clip = 7 +}; + +} // namespace vcl::pdf + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit