Subversion Repositories Scribus

Rev

Rev 12340 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8274 tsoots 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
 
10223 cbradney 10
#include <QDialog>
8274 tsoots 11
 
10332 subik 12
#include "ui_smstyleimport.h"
8274 tsoots 13
#include "scribusapi.h"
12340 pierre 14
// #include "styles/styleset.h"
8274 tsoots 15
#include "scribusstructs.h"
16
 
17
 
10332 subik 18
/*! \brief Import styles from outer sla document.
19
User can choose what to import and what to do with the style
20
names here.
21
*/
22
class SCRIBUS_API SMStyleImport : public QDialog, public Ui::SMStyleImport
8274 tsoots 23
{
24
        Q_OBJECT
25
 
10332 subik 26
        public:
12343 pierre 27
                SMStyleImport(QWidget* parent);
10332 subik 28
                ~SMStyleImport() {};
8274 tsoots 29
 
10332 subik 30
                //! \brief True if the rename feature is ON.
31
                bool clashRename();
32
                QStringList paragraphStyles();
33
                QStringList characterStyles();
34
                QStringList lineStyles();
8274 tsoots 35
 
10332 subik 36
        protected:
37
                //! \brief Root items in the styleWidget
38
                QTreeWidgetItem * pstyleItem;
39
                QTreeWidgetItem * cstyleItem;
40
                QTreeWidgetItem * lstyleItem;
8274 tsoots 41
 
10332 subik 42
                /*! \brief Following constants are used as flags for searching.
43
                Soemthing like: give me all character style related items from
44
                the list. See commonStyles() for more info.
45
                */
46
                static const int cType = QTreeWidgetItem::UserType;
47
                static const int pType = QTreeWidgetItem::UserType + 1;
48
                static const int lType = QTreeWidgetItem::UserType + 2;
8274 tsoots 49
 
10332 subik 50
                QStringList commonStyles(QTreeWidgetItem * rootItem, int type);
51
 
8274 tsoots 52
};
53
 
54
#endif // SMSTYLEIMPORT_H