/* * Xournal++ * * Undo action for font changes * * @author Xournal++ Team * https://github.com/xournalpp/xournalpp * * @license GNU GPLv2 or later */ #pragma once #include #include #include "UndoAction.h" #include "XournalType.h" class FontUndoActionEntry; class Layer; class Redrawable; class Text; class XojFont; class FontUndoAction: public UndoAction { public: FontUndoAction(const PageRef& page, Layer* layer); virtual ~FontUndoAction(); public: virtual bool undo(Control* control); virtual bool redo(Control* control); virtual string getText(); void addStroke(Text* e, XojFont& oldFont, XojFont& newFont); private: std::vector data; Layer* layer; };