Back to index

scribus-ng  1.3.4.dfsg+svn20071115
importps.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 IMPORTPS_H
00008 #define IMPORTPS_H
00009 
00010 #include "qglobal.h"
00011 #include "qobject.h"
00012 #include "qstring.h"
00013 #include "qvaluelist.h"
00014 #include "qptrlist.h"
00015 
00016 #include "pluginapi.h"
00017 #include "pageitem.h"
00018 #include "sccolor.h"
00019 #include "fpointarray.h"
00020 
00021 class MultiProgressDialog;
00022 class ScribusDoc;
00023 class Selection;
00024 
00026 class EPSPlug : public QObject
00027 {
00028        Q_OBJECT
00029 
00030 public:
00040        EPSPlug( ScribusDoc* doc, int flags );
00041        ~EPSPlug();
00042 
00052        bool import(QString fn, int flags, bool showProgress = true);
00053 
00054 private:
00055        
00067        bool convert(QString fn, double x, double y, double b, double h);
00073        void parseOutput(QString fn, bool eps);
00079        void LineTo(FPointArray *i, QString vals);
00085        void Curve(FPointArray *i, QString vals);
00094        QString parseColor(QString vals, bool eps, colorModel model = colorModelCMYK);
00095        bool Image(QString vals);
00096        
00097        QPtrList<PageItem> Elements;
00098        ColorList CustColors;
00099        double LineW, Opacity, DashOffset, baseX, baseY;
00100        QValueList<double> DashPattern;
00101        QString CurrColor;
00102        FPointArray Coords;
00103        FPointArray clipCoords;
00104        bool FirstM, WasM, ClosedPath;
00105        PenCapStyle CapStyle;
00106        PenJoinStyle JoinStyle;
00107        bool interactive;
00108        MultiProgressDialog * progressDialog;
00109        bool cancel;
00110        ScribusDoc* m_Doc;
00111        Selection* tmpSel;
00112        QStringList importedColors;
00113 
00114 public slots:
00115        void cancelRequested() { cancel = true; }
00116 };
00117 
00118 #endif