Subversion Repositories Scribus

Rev

Rev 4717 | Rev 4923 | 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
 
4645 subik 21
//! \brief POSTSCRIPT importer plugin
290 Franz 22
class EPSPlug : public QObject
1552 subik 23
{
290 Franz 24
        Q_OBJECT
25
 
26
public:
4645 subik 27
        /*!
28
        \author Franz Schmid
29
        \date
30
        \brief Create the EPS importer window.
31
        \param fName QString
4760 subik 32
        \param isInteractive flag if it will raise GUI and allow user to place objects manually
4645 subik 33
        \retval EPSPlug plugin
34
        */
3207 craig 35
        EPSPlug( QString fName, bool isInteractive );
290 Franz 36
        ~EPSPlug() {};
4645 subik 37
 
38
private:
39
        /*!
40
        \author Franz Schmid
41
        \date
42
        \brief Does the conversion.
43
        \param fn QString
44
        \param x X position
45
        \param y Y position
46
        \param b double
47
        \param h double
48
        \retval bool true if conversion was ok
49
         */
290 Franz 50
        bool convert(QString fn, double x, double y, double b, double h);
4645 subik 51
        /*!
52
        \author Franz Schmid
53
        \date
54
        \brief Parses the Output Ghostscript has created.
55
        */
1735 fschmid 56
        void parseOutput(QString fn, bool eps);
4645 subik 57
        /*!
58
        \author Franz Schmid
59
        \param i FPointArray *
60
        \param vals QString
61
        */
290 Franz 62
        void LineTo(FPointArray *i, QString vals);
4645 subik 63
        /*!
64
        \author Franz Schmid
65
        \param i FPointArray *
66
        \param vals QString
67
         */
290 Franz 68
        void Curve(FPointArray *i, QString vals);
4645 subik 69
        /*!
70
        \author Franz Schmid
71
        \date
72
        \brief Returns a Color Name, if the Color doesn't exist it's created
73
        \param vals QString
74
        \param model a color model
75
        \retval QString Color Name
76
        */
1488 fschmid 77
        QString parseColor(QString vals, colorModel model = colorModelCMYK);
4717 avox 78
        void Image(QString vals);
79
 
290 Franz 80
        QPtrList<PageItem> Elements;
1065 cbradney 81
        ColorList CustColors;
292 Franz 82
        double LineW, Opacity, DashOffset;
83
        QValueList<double> DashPattern;
290 Franz 84
        QString CurrColor;
85
        FPointArray Coords;
86
        bool FirstM, WasM, ClosedPath;
292 Franz 87
        PenCapStyle CapStyle;
88
        PenJoinStyle JoinStyle;
3207 craig 89
        bool interactive;
290 Franz 90
};
91
 
92
#endif