summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/PSPattern.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/PSPattern.hpp')
-rw-r--r--dviware/dvisvgm/src/PSPattern.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/PSPattern.hpp b/dviware/dvisvgm/src/PSPattern.hpp
index 2c53dd2b3e..5e3661fd35 100644
--- a/dviware/dvisvgm/src/PSPattern.hpp
+++ b/dviware/dvisvgm/src/PSPattern.hpp
@@ -2,7 +2,7 @@
** PSPattern.hpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2020 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2021 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 **
@@ -40,6 +40,8 @@ class PSPattern {
virtual int psID () const {return _id;}
virtual std::string svgID () const;
virtual void apply (SpecialActions &actions);
+ virtual void setColor (Color color) {}
+ virtual bool tiled () const =0;
protected:
explicit PSPattern (int id) : _id(id) {}
@@ -54,6 +56,8 @@ class PSTilingPattern : public PSPattern {
public:
virtual XMLElement* getContainerNode () {return _groupNode.get();}
void apply (SpecialActions &actions) override;
+ bool tiled () const override {return true;}
+
protected:
PSTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep);
@@ -82,7 +86,7 @@ class PSUncoloredTilingPattern final : public PSTilingPattern {
public:
PSUncoloredTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep);
std::string svgID () const override;
- void setColor (Color color) {_currentColor = color;}
+ void setColor (Color color) override {_currentColor = color;}
void apply (SpecialActions &actions) override;
protected: