Back to index

scribus-ng  1.3.4.dfsg+svn20071115
smstyleimport.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef SMSTYLEIMPORT_H
00008 #define SMSTYLEIMPORT_H
00009 
00010 #include <qdialog.h>
00011 #include <qmap.h>
00012 
00013 #include "scribusapi.h"
00014 #include "styles/styleset.h"
00015 #include "scribusstructs.h"
00016 
00017 class QWidget;
00018 class QListView;
00019 class QPushButton;
00020 class QCheckListItem;
00021 class QVBoxLayout;
00022 class QHBoxLayout;
00023 class ParagraphStyle;
00024 class QButtonGroup;
00025 class QRadioButton;
00026 
00027 class SCRIBUS_API ImportDialog : public QDialog
00028 {
00029        Q_OBJECT
00030 
00031 public:
00032        ImportDialog(QWidget* parent,
00033                     StyleSet<ParagraphStyle> *pstyleList,
00034                     StyleSet<CharStyle> *cstyleList,
00035                     QMap<QString, multiLine> *lstyleList);
00036        ~ImportDialog() {};
00037 
00038        QMap<QCheckListItem*, QString> storedStyles;
00039        QMap<QCheckListItem*, QString> storedCharStyles;
00040        QMap<QCheckListItem*, QString> storedLineStyles;
00041 
00042        bool clashRename();
00043 
00044 protected:
00045        QListView* StyleView;
00046        QPushButton* OkButton;
00047        QPushButton* CancelButton;
00048 
00049        QVBoxLayout  *ChooseStylesLayout;
00050        QHBoxLayout  *layout2;
00051        QButtonGroup *clashBox;
00052        QRadioButton *renameButton;
00053        QRadioButton *replaceButton;
00054 };
00055 
00056 #endif // SMSTYLEIMPORT_H