Back to index

scribus-ng  1.3.4.dfsg+svn20071115
checkDocument.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 CHECKDOCUMENT_H
00008 #define CHECKDOCUMENT_H
00009 
00010 #include <qvariant.h>
00011 #include <qpixmap.h>
00012 #include <qpushbutton.h>
00013 #include <qdialog.h>
00014 
00015 #include "scribusapi.h"
00016 #include "scrpalettebase.h"
00017 
00018 class QVBoxLayout;
00019 class QHBoxLayout;
00020 class QGridLayout;
00021 class QSpacerItem;
00022 class QListView;
00023 class QListViewItem;
00024 class QComboBox;
00025 class QLabel;
00026 class QPushButton;
00027 class ScribusDoc;
00028 
00029 
00034 class SCRIBUS_API CheckDocument : public ScrPaletteBase
00035 {
00036        Q_OBJECT
00037 
00038 public:
00039        CheckDocument( QWidget* parent, bool modal );
00040        ~CheckDocument() {};
00041 
00043        enum CheckMode { checkNULL, checkPDF, checkEPS, checkPrint, checkPrintPreview };
00044 
00046        void clearErrorList();
00049        void buildErrorList(ScribusDoc *doc);
00052        void setIgnoreEnabled(bool state);
00055        bool isIgnoreEnabled();
00056 
00058        CheckMode checkMode;
00059 
00060 public slots:
00063        void slotSelect(QListViewItem* ite);
00065        void doReScan();
00068        void newScan(const QString& name);
00069 
00070 signals:
00071        //void rescan();
00073        void selectElement(int, int);
00075        void selectPage(int);
00077        void selectMasterPage(QString);
00079        void selectMasterPageElement(QString, int);
00080        //void selectNormal();
00082        void ignoreAllErrors();
00083 
00084 protected:
00085        QVBoxLayout* checkDocumentLayout;
00086        QHBoxLayout* layout1;
00087        QHBoxLayout* layout2;
00088 
00089 protected slots:
00090        virtual void languageChange();
00091 
00092 private:
00094        QMap<QListViewItem*, int> itemMap;
00096        QMap<QListViewItem*, int> pageMap;
00098        QMap<QListViewItem*, QString> masterPageMap;
00100        QMap<QListViewItem*, int> masterPageItemMap;
00101 
00103        ScribusDoc* m_Doc;
00105        QPixmap graveError;
00107        QPixmap onlyWarning;
00109        QPixmap noErrors;
00110 
00112        QString missingGlyph;
00113        QString textOverflow;
00114        QString notOnPage;
00115        QString missingImg;
00116        QString lowDPI;
00117        QString highDPI;
00118        QString transpar;
00119        QString annot;
00120        QString rasterPDF;
00121        QString isGIF;
00122        QString isGIFtoolTip;
00123        QString WrongFont;
00124 
00126        bool noButton;
00127        QComboBox* curCheckProfile;
00128        QLabel* textLabel1;
00129        QListView* reportDisplay;
00130        QPushButton* ignoreErrors;
00131        QPushButton* reScan;
00132 };
00133 
00134 #endif // CHECKDOCUMENT_H