summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp
index 12e9c90ec12..df80ac434b7 100644
--- a/Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp
+++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/SpecialActions.hpp
@@ -2,7 +2,7 @@
** SpecialActions.hpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2021 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2022 Martin Gieseking <martin.gieseking@uos.de> **
** **
** This program is free software; you can redistribute it and/or **
** modify it under the terms of the GNU General Public License as **
@@ -27,6 +27,7 @@
#include "Color.hpp"
#include "FilePath.hpp"
#include "Matrix.hpp"
+#include "Opacity.hpp"
#include "SVGTree.hpp"
class XMLElement;
@@ -46,6 +47,8 @@ class SpecialActions {
virtual const Matrix& getMatrix () const =0;
virtual Matrix getPageTransformation () const {return Matrix(1);}
virtual void setBgColor (const Color &color) =0;
+ virtual void setOpacity (const Opacity &opacity) =0;
+ virtual const Opacity& getOpacity () const =0;
virtual const SVGTree& svgTree () const =0;
SVGTree& svgTree () {return const_cast<SVGTree&>(const_cast<const SpecialActions*>(this)->svgTree());}
virtual BoundingBox& bbox () =0;
@@ -75,6 +78,8 @@ class EmptySpecialActions : public SpecialActions {
void finishLine () override {}
void setColor (const Color &color) override {}
void setBgColor (const Color &color) override {}
+ void setOpacity (const Opacity &opacity) override {}
+ const Opacity& getOpacity () const override {return _svg.getOpacity();}
Color getColor () const override {return Color::BLACK;}
void setMatrix (const Matrix &m) override {}
const Matrix& getMatrix () const override {return _matrix;}