From 14c40c460526f2e4ed2c24a3f50baae25a43a8f2 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 28 Jun 2023 23:46:37 +0200 Subject: tdf#156066: Add support for feDropShadow filter Change-Id: I0b2772a7211efb91821853e3369cfc3a5ef6a932 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153727 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- svgio/inc/svgfedropshadownode.hxx | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 svgio/inc/svgfedropshadownode.hxx (limited to 'svgio/inc/svgfedropshadownode.hxx') diff --git a/svgio/inc/svgfedropshadownode.hxx b/svgio/inc/svgfedropshadownode.hxx new file mode 100644 index 000000000000..5cc4b51ed797 --- /dev/null +++ b/svgio/inc/svgfedropshadownode.hxx @@ -0,0 +1,48 @@ +/* -*- 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/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#pragma once + +#include "svgnode.hxx" +#include "svgstyleattributes.hxx" + +namespace svgio::svgreader +{ +class SvgFeDropShadowNode final : public SvgNode +{ +private: + SvgNumber maDx; + SvgNumber maDy; + SvgNumber maStdDeviation; + SvgPaint maFloodColor; + SvgNumber maFloodOpacity; + +public: + SvgFeDropShadowNode(SvgDocument& rDocument, SvgNode* pParent); + virtual ~SvgFeDropShadowNode() override; + + virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, + const OUString& aContent) override; + + void apply(drawinglayer::primitive2d::Primitive2DContainer& rTarget) const; +}; + +} // end of namespace svgio::svgreader + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit