Back to index

scribus-ng  1.3.4.dfsg+svn20071115
lineformats.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 LINEFORMATE_H
00008 #define LINEFORMATE_H
00009 
00010 #include <qdialog.h>
00011 
00012 #include "scribusapi.h"
00013 #include "multiline.h"
00014 #include "scribusstructs.h"
00015 #include "sclistboxpixmap.h"
00016 
00017 class QListBox;
00018 class QPushButton;
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class ScribusDoc;
00022 
00023 class SCRIBUS_API LineFormate : public QDialog
00024 {
00025        Q_OBJECT
00026 
00027 public:
00028        LineFormate( QWidget* parent, ScribusDoc *doc);
00029        ~LineFormate() {};
00030 
00031        QListBox* ListBox1;
00032        QPushButton* LoadLS;
00033        QPushButton* NewB;
00034        QPushButton* EditB;
00035        QPushButton* DublicateB;
00036        QPushButton* DeleteB;
00037        QPushButton* SaveB;
00038        QPushButton* ExitB;
00039        QPushButton* CancelB;
00040        QString sFnumber;
00041        QMap<QString,multiLine> TempStyles;
00042        QMap<QString,QString> Replacement;
00043        ScribusDoc *Docu;
00044        void UpdateFList();
00045 
00046 public slots:
00047        void saveIt();
00048        void selFormat(QListBoxItem *c);
00049        void selEditFormat(QListBoxItem *c);
00050        void editFormat();
00051        void neuesFormat();
00052        void dupFormat();
00053        void deleteFormat();
00054        void loadLStyles();
00055 
00056 signals:
00057        void saveStyle(LineFormate *);
00058        
00059 protected:
00060        QHBoxLayout* StilFormateLayout;
00061        QVBoxLayout* Layout15;
00062 };
00063 
00064 class SCRIBUS_API LineFormateItem : public ScListBoxPixmap<37, 37>
00065 {
00066 public:
00067        LineFormateItem(ScribusDoc* Doc, const multiLine& MultiLine, const QString& Text);
00068        virtual int rtti() const { return 148523874; }
00069 protected:
00070        multiLine mLine;
00071        ScribusDoc* doc;
00072        virtual void redraw(void);
00073 };
00074 
00075 #endif