Scribus
Open source desktop publishing at your fingertips
smstyleimport.h
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 SMSTYLEIMPORT_H
8 #define SMSTYLEIMPORT_H
9 
10 #include <QDialog>
11 
12 #include "ui_smstyleimport.h"
13 #include "scribusapi.h"
14 #include "styles/styleset.h"
15 #include "scribusstructs.h"
16 
17 
22 class SCRIBUS_API SMStyleImport : public QDialog, public Ui::SMStyleImport
23 {
24  Q_OBJECT
25 
26  public:
27  SMStyleImport(QWidget* parent,
28  StyleSet<ParagraphStyle> *pstyleList,
29  StyleSet<CharStyle> *cstyleList,
30  QHash<QString, multiLine> *lstyleList);
31  ~SMStyleImport() {};
32 
34  bool clashRename();
35  QStringList paragraphStyles();
36  QStringList characterStyles();
37  QStringList lineStyles();
38 
39  protected:
41  QTreeWidgetItem * pstyleItem;
42  QTreeWidgetItem * cstyleItem;
43  QTreeWidgetItem * lstyleItem;
44 
49  static const int cType = QTreeWidgetItem::UserType;
50  static const int pType = QTreeWidgetItem::UserType + 1;
51  static const int lType = QTreeWidgetItem::UserType + 2;
52 
53  QStringList commonStyles(QTreeWidgetItem * rootItem, int type);
54 
55  protected slots:
56  void checkAll(bool allChecked);
57 
58 };
59 
60 #endif // SMSTYLEIMPORT_H
QTreeWidgetItem * pstyleItem
Root items in the styleWidget.
Definition: smstyleimport.h:41