Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scimgdataloader_ps.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 SCIMGDATALOADER_PS_H
00008 #define SCIMGDATALOADER_PS_H
00009 
00010 #include "scimgdataloader.h"
00011 #include "sccolor.h"
00012 
00013 class ScImgDataLoader_PS : public ScImgDataLoader
00014 {
00015 protected:
00016 
00017        void initSupportedFormatList();
00018        void scanForFonts(QString fn);
00019        bool parseData(QString fn);
00020        void loadPhotoshop(QString fn, int gsRes);
00021        void decodeA85(QByteArray &psdata, QString tmp);
00022        bool loadPSjpeg(QString fn);
00023        bool loadPSjpeg(QString fn, QImage &tmpImg);
00024        void loadPhotoshopBinary(QString fn);
00025        void loadPhotoshopBinary(QString fn, QImage &tmpImg);
00026        void loadDCS1(QString fn, int gsRes);
00027        void loadDCS2(QString fn, int gsRes);
00028        void blendImages(QImage &source, ScColor col);
00029        struct plateOffsets
00030        {
00031               uint pos;
00032               uint len;
00033        };
00034        QMap<QString, plateOffsets> colorPlates2;
00035        QMap<QString, QString> colorPlates;
00036        QString BBox;
00037        QString Creator;
00038        bool isDCS1;
00039        bool isDCS2;
00040        bool isDCS2multi;
00041        bool isPhotoshop;
00042        bool hasPhotoshopImageData;
00043        bool doThumbnail;
00044        bool hasThumbnail;
00045        int psXSize;
00046        int psYSize;
00047        int psDepth;
00048        int psMode;
00049        int psChannel;
00050        int psBlock;
00051        int psDataType;
00052        QString psCommand;
00053        QMap<QString,ScColor> CustColors;
00054        QStringList FontListe;
00055 
00056 public:
00057        ScImgDataLoader_PS(void);
00058 
00059        virtual void preloadAlphaChannel(const QString& fn, int res);
00060        virtual void loadEmbeddedProfile(const QString& fn);
00061        virtual bool loadPicture(const QString& fn, int res, bool thumbnail);
00062 };
00063 
00064 #endif