Back to index

scribus-ng  1.3.4.dfsg+svn20071115
editformats.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 STILFORMATE_H
00008 #define STILFORMATE_H
00009 
00010 #include <qdialog.h>
00011 #include <qlistbox.h>
00012 #include <qlistview.h>
00013 #include <qpushbutton.h>
00014 #include <qlayout.h>
00015 #include <qtooltip.h>
00016 #include <qmap.h>
00017 #include <qlabel.h>
00018 #include "scribusapi.h"
00019 #include "scribusstructs.h"
00020 #include "styles/styleset.h"
00021 
00022 class ScribusDoc;
00023 class ScComboBox;
00024 
00026 class SCRIBUS_API DelStyle : public QDialog
00027 {
00028        Q_OBJECT
00029 
00030 public:
00031        DelStyle(QWidget* parent, StyleSet<ParagraphStyle>& sty, QString styleName);
00032        ~DelStyle() {};
00033        const QString getReplacementStyle();
00034 
00035 private:
00036        QLabel* deleteLabel;
00037        QLabel* styleToDelLabel;
00038        QLabel* replaceLabel;
00039        QPushButton* okButton;
00040        QPushButton* cancelButton;
00041        ScComboBox* replacementStyleData;
00042        QVBoxLayout* dialogLayout;
00043        QGridLayout* delStyleLayout;
00044        QHBoxLayout* okCancelLayout;
00045 
00046        QString replacementStyle;
00047 
00048 private slots:
00049        virtual void ReplaceStyle(int);
00050 };
00051 
00052 
00053 class SCRIBUS_API ChooseStyles : public QDialog
00054 {
00055        Q_OBJECT
00056 
00057 public:
00058        ChooseStyles( QWidget* parent, StyleSet<ParagraphStyle> *styleList, StyleSet<ParagraphStyle> *styleOld );
00059        ~ChooseStyles() {};
00060 
00061        QListView* StyleView;
00062        QPushButton* OkButton;
00063        QPushButton* CancelButton;
00064        QMap<QCheckListItem*, int> storedStyles;
00065 
00066 protected:
00067        QVBoxLayout* ChooseStylesLayout;
00068        QHBoxLayout* layout2;
00069 
00070 };
00071 
00072 
00073 class SCRIBUS_API StilFormate : public QDialog
00074 {
00075        Q_OBJECT
00076 
00077 public:
00078        StilFormate( QWidget* parent, ScribusDoc *doc);
00079        //~StilFormate() {};
00080 
00081        QListBox* ListBox1;
00082        QPushButton* LoadS;
00083        QPushButton* NewB;
00084        QPushButton* EditB;
00085        QPushButton* DublicateB;
00086        QPushButton* DeleteB;
00087        QPushButton* SaveB;
00088        QPushButton* ExitB;
00089        QPushButton* CancelB;
00090        int sFnumber;
00091        StyleSet<ParagraphStyle> TempVorl;
00092        QMap<QString, QString> ReplaceList;
00093        ScribusDoc *Docu;
00094        void UpdateFList();
00095 
00096 public slots:
00097        void saveIt();
00098        void selFormat(QListBoxItem *c);
00099        void selEditFormat(QListBoxItem *c);
00100        void editFormat();
00101        void neuesFormat();
00102        void dupFormat();
00103        void deleteFormat();
00104        void loadStyles();
00105 
00106 signals:
00107        void saveStyle(StilFormate *);
00108 
00109 protected:
00110        QHBoxLayout* StilFormateLayout;
00111        QVBoxLayout* Layout15;
00112 };
00113 
00114 #endif // STILFORMATE_H