~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/scimgdataloader_ps.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
*/
 
7
#ifndef SCIMGDATALOADER_PS_H
 
8
#define SCIMGDATALOADER_PS_H
 
9
 
 
10
#include "scimgdataloader.h"
 
11
#include "sccolor.h"
 
12
 
 
13
class ScImgDataLoader_PS : public ScImgDataLoader
 
14
{
 
15
protected:
 
16
 
 
17
        void initSupportedFormatList();
 
18
        void scanForFonts(QString fn);
 
19
        bool parseData(QString fn);
 
20
        void loadPhotoshop(QString fn, int gsRes);
 
21
        void decodeA85(QByteArray &psdata, QString tmp);
 
22
        bool loadPSjpeg(QString fn);
 
23
        bool loadPSjpeg(QString fn, QImage &tmpImg);
 
24
        void loadPhotoshopBinary(QString fn);
 
25
        void loadPhotoshopBinary(QString fn, QImage &tmpImg);
 
26
        void loadDCS1(QString fn, int gsRes);
 
27
        void loadDCS2(QString fn, int gsRes);
 
28
        void blendImages(QImage &source, ScColor col);
 
29
        struct plateOffsets
 
30
        {
 
31
                uint pos;
 
32
                uint len;
 
33
        };
 
34
        QMap<QString, plateOffsets> colorPlates2;
 
35
        QMap<QString, QString> colorPlates;
 
36
        QString BBox;
 
37
        QString Creator;
 
38
        bool isDCS1;
 
39
        bool isDCS2;
 
40
        bool isDCS2multi;
 
41
        bool isPhotoshop;
 
42
        bool hasPhotoshopImageData;
 
43
        bool doThumbnail;
 
44
        bool hasThumbnail;
 
45
        int psXSize;
 
46
        int psYSize;
 
47
        int psDepth;
 
48
        int psMode;
 
49
        int psChannel;
 
50
        int psBlock;
 
51
        int psDataType;
 
52
        QString psCommand;
 
53
        QMap<QString,ScColor> CustColors;
 
54
        QStringList FontListe;
 
55
 
 
56
public:
 
57
        ScImgDataLoader_PS(void);
 
58
 
 
59
        virtual void preloadAlphaChannel(const QString& fn, int res);
 
60
        virtual void loadEmbeddedProfile(const QString& fn);
 
61
        virtual bool loadPicture(const QString& fn, int res, bool thumbnail);
 
62
};
 
63
 
 
64
#endif