29 #ifndef __CDRTYPES_H__
30 #define __CDRTYPES_H__
34 #include <libwpd/libwpd.h>
49 CDRBBox(
double x0,
double y0,
double x1,
double y1)
50 :
m_x(x0 < x1 ? x0 : x1),
m_y(y0 < y1 ? y0 : y1),
m_w(fabs(x1-x0)),
m_h(fabs(y1-y0)) {}
75 CDRColor(
unsigned short colorModel,
unsigned colorValue)
114 CDRImageFill(
unsigned i,
double w,
double h,
bool r,
double x,
double y,
double o,
unsigned char f)
147 double lw,
double st,
double a,
const CDRColor &c,
const std::vector<unsigned short> &da,
148 unsigned smi,
unsigned emi)
183 CDRPolygon(
unsigned numAngles,
unsigned nextPoint,
double rx,
double ry,
double cx,
double cy)
196 CDRImage(
const WPXBinaryData &image,
double x1,
double x2,
double y1,
double y2)
226 CDRPattern(
unsigned w,
unsigned h,
const std::vector<unsigned char> &p)
237 CDRPage(
double w,
double h,
double ox,
double oy)
243 std::vector<std::pair<double, double> >
points;
246 CDRSplineData(
const std::vector<std::pair<double, double> > &ps,
const std::vector<unsigned> &kntv)
273 unsigned short child,
unsigned short parent,
unsigned short flags,
274 double x0,
double y0,
double x1,
double y1,
const CDRTransform &trafo)
295 CDRCMYKColor(
unsigned colorValue,
bool percentage =
true);
297 :
c(cyan),
m(magenta),
y(yellow),
k(black) {}
311 :
r(red),
g(green),
b(blue) {}
324 :
L(l),
a(A),
b(B) {}
337 :
L(l),
a(A),
b(B) {}