home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / scimgdataloader_ps.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-11-03  |  1.8 KB  |  69 lines

  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.     bool inTrailer;
  46.     bool BBoxInTrailer;
  47.     bool isRotated;
  48.     int psXSize;
  49.     int psYSize;
  50.     int psDepth;
  51.     int psMode;
  52.     int psChannel;
  53.     int psBlock;
  54.     int psDataType;
  55.     QString psCommand;
  56.     QMap<QString,ScColor> CustColors;
  57.     QStringList FontListe;
  58.  
  59. public:
  60.     ScImgDataLoader_PS(void);
  61.  
  62. //    virtual void preloadAlphaChannel(const QString& fn, int res);
  63.     virtual bool preloadAlphaChannel(const QString& fn, int page, int res, bool& hasAlpha);
  64.     virtual void loadEmbeddedProfile(const QString& fn, int page = 0);
  65.     virtual bool loadPicture(const QString& fn, int page, int res, bool thumbnail);
  66. };
  67.  
  68. #endif
  69.