7 #ifndef SCIMGDATALOADER_H
8 #define SCIMGDATALOADER_H
10 #include "scribusapi.h"
13 #include <QStringList>
15 #include "colormgmt/sccolormgmtstructs.h"
16 #include "scimagestructs.h"
24 QStringList m_supportedFormats;
28 QByteArray m_embeddedProfile;
29 int m_profileComponents;
30 eColorFormat m_pixelFormat;
41 void swapRGBA(QImage *img);
43 QString getPascalString(QDataStream & s);
44 double decodePSDfloat(uint data);
45 void parseRessourceData( QDataStream & s,
const PSDHeader & header, uint size );
50 const QStringList& supportedFormats(
void)
const {
return m_supportedFormats; }
51 bool supportFormat(
const QString& fmt);
55 QImage& image(
void) {
return m_image; }
56 QByteArray& embeddedProfile(
void) {
return m_embeddedProfile; }
58 eColorFormat pixelFormat(
void) {
return m_pixelFormat; }
59 void setRequest(
bool valid, QMap<int, ImageLoadRequest> req);
61 bool issuedErrorMsg(
void)
const {
return (m_msgType == errorMsg); }
62 bool issuedWarningMsg(
void)
const {
return (m_msgType == warningMsg); }
63 const QString& getMessage(
void)
const {
return m_message; }
65 virtual void initialize(
void);
68 virtual bool preloadAlphaChannel(
const QString& fn,
int page,
int res,
bool& hasAlpha) = 0;
69 virtual void loadEmbeddedProfile(
const QString& fn,
int page = 0) = 0;
70 virtual bool loadPicture(
const QString& fn,
int page,
int res,
bool thumbnail) = 0;
71 virtual bool useRawImage() {
return false; }
Definition: scimgdataloader.h:19
Definition: rawimage.h:15
Definition: scimagestructs.h:126