29 #ifndef __CDRTYPES_H__
30 #define __CDRTYPES_H__
34 #include <libwpd/libwpd.h>
51 CDRTransform(
double v0,
double v1,
double x0,
double v3,
double v4,
double y0)
55 void applyToArc(
double &rx,
double &ry,
double &rotation,
bool &sweep,
double &x,
double &y)
const;
68 CDRBBox(
double x0,
double y0,
double x1,
double y1)
69 :
m_x(x0 < x1 ? x0 : x1),
m_y(y0 < y1 ? y0 : y1),
m_w(fabs(x1-x0)),
m_h(fabs(y1-y0)) {}
94 CDRColor(
unsigned short colorModel,
unsigned colorValue)
141 CDRImageFill(
unsigned i,
double w,
double h,
bool r,
double x,
double y,
double o,
unsigned char f)
176 double lw,
double st,
double a,
const CDRColor &c,
const std::vector<unsigned short> &da,
177 unsigned smi,
unsigned emi)
212 CDRPolygon(
unsigned numAngles,
unsigned nextPoint,
double rx,
double ry,
double cx,
double cy)
225 CDRImage(
const WPXBinaryData &image,
double x1,
double x2,
double y1,
double y2)
255 CDRPattern(
unsigned w,
unsigned h,
const std::vector<unsigned char> &p)
266 CDRPage(
double w,
double h,
double ox,
double oy)
274 std::vector<std::pair<double, double> >
points;
277 CDRSplineData(
const std::vector<std::pair<double, double> > &ps,
const std::vector<unsigned> &kntv)
306 unsigned short child,
unsigned short parent,
unsigned short flags,
307 double x0,
double y0,
double x1,
double y1,
const CDRTransform trafo)
333 CDRCMYKColor(
unsigned colorValue,
bool percentage =
true);
335 :
c(cyan),
m(magenta),
y(yellow),
k(black) {}
337 :
c(color.
c),
m(color.
m),
y(color.
y),
k(color.
k) {}
351 :
r(red),
g(green),
b(blue) {}
353 :
r(color.
r),
g(color.
g),
b(color.
b) {}
366 :
L(l),
a(A),
b(B) {}
368 :
L(color.
L),
a(color.
a),
b(color.
b) {}
381 :
L(l),
a(A),
b(B) {}
383 :
L(color.
L),
a(color.
a),
b(color.
b) {}