32 #include "scribusapi.h"
60 ScColor(
int c,
int m,
int y,
int k);
64 ScColor(
double l,
double a,
double b);
66 bool operator==(
const ScColor& other)
const;
69 void setColor(
ScribusDoc* doc,
const QString& name);
72 void setColor(
int c,
int m,
int y,
int k);
75 void setColor(
double l,
double a,
double b);
80 void setColorRGB(
int r,
int g,
int b);
83 colorModel getColorModel ()
const;
86 void fromQColor(QColor color);
90 void getRawRGBColor(
int *r,
int *g,
int *b)
const;
91 QColor getRawRGBColor()
const;
96 void getCMYK(
int *c,
int *m,
int *y,
int *k)
const;
101 void getRGB(
int *r,
int *g,
int *b)
const;
106 void getLab(
double *L,
double *a,
double *b)
const;
113 QString nameRGB(
const ScribusDoc* doc = NULL);
116 QString nameCMYK(
const ScribusDoc* doc = NULL);
119 void setNamedColor(QString nam);
122 bool isSpotColor()
const;
124 void setSpotColor(
bool s);
126 bool isRegistrationColor()
const;
128 void setRegistrationColor(
bool s);
155 class SCRIBUS_API
ColorList :
public QMap<QString,ScColor>
158 QPointer<ScribusDoc> m_doc;
162 void ensureBlack(
void);
165 void ensureWhite(
void);
168 void ensureRegistration(
void);
182 void addColors(
const ColorList& colorList,
bool overwrite =
true);
185 void copyColors(
const ColorList& colorList,
bool overwrite =
true);
188 void ensureDefaultColors(
void);
191 QString tryAddColor(QString name,
ScColor col);
Definition: sccolor.h:155
Definition: sccolorengine.h:32
the Document Class
Definition: scribusdoc.h:90