/* For general Scribus (>=1.3.2) copyright and licensing information please refer to the COPYING file provided with the program. Following this notice may exist a copyright and/or license notice that predates the release of Scribus 1.3.2 for which a new license (GPL+exception) is in place. */ #ifndef STYLECREATOR_H #define STYLECREATOR_H #include "ui_stylecreator.h" #include "scdialog.h" class ScribusDoc; class StyleItem; class QGridLayout; class SCRIBUS_API StyleCreator : public ScDialog, Ui::StyleCreator { Q_OBJECT public: StyleCreator(QWidget *parent = nullptr, const char *name = "StyleCreator"); ~StyleCreator(); void setDoc(ScribusDoc *doc); /** StyleItem is one of the specialized type extending StyleItem */ void loadType(StyleItem *styleType); void loadType(const QString &name); private: ScribusDoc *doc { nullptr }; StyleItem *styleItem { nullptr }; QGridLayout *layout { nullptr }; private slots: void slotOk(); }; #endif