Subversion Repositories Scribus

Rev

Rev 4923 | Rev 4962 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
290 Franz 7
#ifndef IMPORTPS_H
8
#define IMPORTPS_H
9
 
3255 craig 10
#include "qglobal.h"
11
#include "qobject.h"
12
#include "qstring.h"
13
#include "qvaluelist.h"
14
#include "qptrlist.h"
15
 
2986 craig 16
#include "pluginapi.h"
3255 craig 17
#include "pageitem.h"
18
#include "sccolor.h"
19
#include "fpointarray.h"
290 Franz 20
 
4930 cbradney 21
class MultiProgressDialog;
22
 
4645 subik 23
//! \brief POSTSCRIPT importer plugin
290 Franz 24
class EPSPlug : public QObject
1552 subik 25
{
290 Franz 26
        Q_OBJECT
27
 
28
public:
4645 subik 29
        /*!
30
        \author Franz Schmid
31
        \date
32
        \brief Create the EPS importer window.
33
        \param fName QString
4760 subik 34
        \param isInteractive flag if it will raise GUI and allow user to place objects manually
4645 subik 35
        \retval EPSPlug plugin
36
        */
3207 craig 37
        EPSPlug( QString fName, bool isInteractive );
290 Franz 38
        ~EPSPlug() {};
4645 subik 39
 
40
private:
41
        /*!
42
        \author Franz Schmid
43
        \date
44
        \brief Does the conversion.
45
        \param fn QString
46
        \param x X position
47
        \param y Y position
48
        \param b double
49
        \param h double
50
        \retval bool true if conversion was ok
51
         */
290 Franz 52
        bool convert(QString fn, double x, double y, double b, double h);
4645 subik 53
        /*!
54
        \author Franz Schmid
55
        \date
56
        \brief Parses the Output Ghostscript has created.
57
        */
1735 fschmid 58
        void parseOutput(QString fn, bool eps);
4645 subik 59
        /*!
60
        \author Franz Schmid
61
        \param i FPointArray *
62
        \param vals QString
63
        */
290 Franz 64
        void LineTo(FPointArray *i, QString vals);
4645 subik 65
        /*!
66
        \author Franz Schmid
67
        \param i FPointArray *
68
        \param vals QString
69
         */
290 Franz 70
        void Curve(FPointArray *i, QString vals);
4645 subik 71
        /*!
72
        \author Franz Schmid
73
        \date
74
        \brief Returns a Color Name, if the Color doesn't exist it's created
75
        \param vals QString
76
        \param model a color model
77
        \retval QString Color Name
78
        */
1488 fschmid 79
        QString parseColor(QString vals, colorModel model = colorModelCMYK);
4717 avox 80
        void Image(QString vals);
81
 
290 Franz 82
        QPtrList<PageItem> Elements;
1065 cbradney 83
        ColorList CustColors;
292 Franz 84
        double LineW, Opacity, DashOffset;
85
        QValueList<double> DashPattern;
290 Franz 86
        QString CurrColor;
87
        FPointArray Coords;
4923 avox 88
        FPointArray clipCoords;
290 Franz 89
        bool FirstM, WasM, ClosedPath;
292 Franz 90
        PenCapStyle CapStyle;
91
        PenJoinStyle JoinStyle;
3207 craig 92
        bool interactive;
4923 avox 93
        MultiProgressDialog * progressDialog;
94
        bool cancel;
95
 
96
public slots:
97
        void cancelRequested() { cancel = true; }
290 Franz 98
};
99
 
100
#endif