diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-07 22:19:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-08 08:33:52 +0100 |
commit | f6d2419188755f280afe7f30178c4b48de6993f3 (patch) | |
tree | a2e0a8327a1c38243259da50e2188e0ef0ed2d18 /include | |
parent | c8d564094ecb6e82ed924217651a8f88ce5039c8 (diff) |
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 <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/filter/PDFiumLibrary.hxx | 3 | ||||
-rw-r--r-- | include/vcl/pdf/PDFTextRenderMode.hxx | 30 |
2 files changed, 32 insertions, 1 deletions
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 <vcl/pdf/PDFSegmentType.hxx> #include <vcl/pdf/PDFBitmapType.hxx> #include <vcl/pdf/PDFObjectType.hxx> +#include <vcl/pdf/PDFTextRenderMode.hxx> #include <fpdf_doc.h> @@ -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: */ |