Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

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 <QMap>
00011 
00012 class QEvent;
00013 class QHBoxLayout;
00014 class QLabel;
00015 class QPushButton;
00016 class QTreeWidget;
00017 class QTreeWidgetItem;
00018 class QVBoxLayout;
00019 
00020 #include "scribusapi.h"
00021 #include "scrpalettebase.h"
00022 
00023 class ScribusDoc;
00024 class ScComboBox;
00025 
00026 
00031 class SCRIBUS_API CheckDocument : public ScrPaletteBase
00032 {
00033     Q_OBJECT
00034 
00035 public:
00036     CheckDocument( QWidget* parent, bool modal );
00037     ~CheckDocument() {};
00038     
00039     virtual void changeEvent(QEvent *e);
00040 
00042     enum CheckMode { checkNULL, checkPDF, checkEPS, checkPrint, checkPrintPreview };
00043 
00045     void clearErrorList();
00048     void buildErrorList(ScribusDoc *doc);
00051     void setIgnoreEnabled(bool state);
00054     bool isIgnoreEnabled();
00055 
00057     CheckMode checkMode;
00058 
00059 public slots:
00062     void slotSelect(QTreeWidgetItem* ite);
00064     void doReScan();
00067     void newScan(const QString& name);
00068 
00069 signals:
00070     //void rescan();
00072     void selectElement(int, int);
00074     void selectPage(int);
00076     void selectMasterPage(QString);
00078     void selectMasterPageElement(QString, int);
00079     //void selectNormal();
00081     void ignoreAllErrors();
00082 
00083 protected:
00084     QVBoxLayout* checkDocumentLayout;
00085     QHBoxLayout* layout1;
00086     QHBoxLayout* layout2;
00087 
00088 protected slots:
00089     virtual void languageChange();
00090 
00091 private:
00093     QMap<QTreeWidgetItem*, int> itemMap;
00095     QMap<QTreeWidgetItem*, int> pageMap;
00097     QMap<QTreeWidgetItem*, QString> masterPageMap;
00099     QMap<QTreeWidgetItem*, int> masterPageItemMap;
00100 
00102     ScribusDoc* m_Doc;
00104     QPixmap graveError;
00106     QPixmap onlyWarning;
00108     QPixmap noErrors;
00109 
00111     QString missingGlyph;
00112     QString textOverflow;
00113     QString notOnPage;
00114     QString missingImg;
00115     QString lowDPI;
00116     QString highDPI;
00117     QString transpar;
00118     QString annot;
00119     QString rasterPDF;
00120     QString isGIF;
00121     QString isGIFtoolTip;
00122     QString WrongFont;
00123 
00125     bool noButton;
00126     ScComboBox* curCheckProfile;
00127     QLabel* textLabel1;
00128     QTreeWidget* reportDisplay;
00129     QPushButton* ignoreErrors;
00130     QPushButton* reScan;
00131 };
00132 
00133 #endif // CHECKDOCUMENT_H
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.