1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef FONTREPLACEDIALOG_H
8 #define FONTREPLACEDIALOG_H
9 
10 #include <QDialog>
11 #include <QMap>
12 
13 class QVBoxLayout;
14 class QHBoxLayout;
15 class QLabel;
16 class QTableWidget;
17 class QCheckBox;
18 class QPushButton;
19 class QCloseEvent;
20 
21 #include "scribusapi.h"
22 
23 class SCRIBUS_API FontReplaceDialog : public QDialog
24 {
25 	Q_OBJECT
26 
27 public:
28 	FontReplaceDialog( QWidget* parent, QMap<QString, QString> *RList);
~FontReplaceDialog()29 	~FontReplaceDialog() {};
30 
31 	QLabel* textLabel1;
32 	QTableWidget* replacementTable;
33 	QCheckBox* stickyReplacements;
34 	QPushButton* okButton;
35 	QPushButton* cancelButton;
36 	QMap<QString, QString> *ReplaceList;
37 
38 private slots:
39 	void leaveOK();
40 
41 protected:
42 	void closeEvent(QCloseEvent *closeEvent) override;
43 	QVBoxLayout* FontReplaceDialogLayout { nullptr };
44 	QHBoxLayout* layout1 { nullptr };
45 
46 };
47 
48 #endif // FONTREPLACEDIALOG_H
49