16#include <librevenge/librevenge.h>
32 CDRBox(
double x0,
double y0,
double x1,
double y1)
33 :
m_x(x0 < x1 ? x0 : x1),
m_y(y0 < y1 ? y0 : y1),
m_w(fabs(x1-x0)),
m_h(fabs(y1-y0)) {}
58 CDRColor(
unsigned short colorModel,
unsigned short colorPalette,
unsigned colorValue)
62 CDRColor(
unsigned short colorModel,
unsigned colorValue)
101 CDRImageFill(
unsigned i,
double w,
double h,
bool r,
double x,
double y,
double o,
unsigned char f)
134 double lw,
double st,
double a,
const CDRColor &c,
const std::vector<unsigned> &da,
191 CDRPolygon(
unsigned numAngles,
unsigned nextPoint,
double rx,
double ry,
double cx,
double cy)
204 CDRImage(
const librevenge::RVNGBinaryData &image,
double x1,
double x2,
double y1,
double y2)
226 CDRPattern(
unsigned w,
unsigned h,
const std::vector<unsigned char> &p)
239 CDRBitmap(
unsigned cm,
unsigned w,
unsigned h,
unsigned b,
const std::vector<unsigned> &p,
const std::vector<unsigned char> &bmp)
250 CDRPage(
double w,
double h,
double ox,
double oy)
256 std::vector<std::pair<double, double> >
points;
259 CDRSplineData(
const std::vector<std::pair<double, double> > &ps,
const std::vector<unsigned> &kntv)
286 unsigned short child,
unsigned short parent,
unsigned short flags,
287 double x0,
double y0,
double x1,
double y1,
const CDRTransform &trafo)
309 :
c(cyan),
m(magenta),
y(yellow),
k(black) {}
320 :
r(red),
g(green),
b(blue) {}
330 :
L(l),
a(A),
b(B) {}
340 :
L(l),
a(A),
b(B) {}
374 CDRFont(
const librevenge::RVNGString &name,
unsigned short encoding)
#define CDR_ALMOST_ZERO(m)
Definition: libcdr_utils.h:31
Definition: CDRDocument.h:17
Definition: CDRTypes.h:231
unsigned bpp
Definition: CDRTypes.h:235
unsigned width
Definition: CDRTypes.h:233
CDRBitmap()
Definition: CDRTypes.h:238
std::vector< unsigned char > bitmap
Definition: CDRTypes.h:237
CDRBitmap(unsigned cm, unsigned w, unsigned h, unsigned b, const std::vector< unsigned > &p, const std::vector< unsigned char > &bmp)
Definition: CDRTypes.h:239
unsigned height
Definition: CDRTypes.h:234
std::vector< unsigned > palette
Definition: CDRTypes.h:236
unsigned colorModel
Definition: CDRTypes.h:232
Definition: CDRTypes.h:25
double getHeight() const
Definition: CDRTypes.h:38
double getMinX() const
Definition: CDRTypes.h:42
CDRBox(double x0, double y0, double x1, double y1)
Definition: CDRTypes.h:32
double m_y
Definition: CDRTypes.h:27
double m_x
Definition: CDRTypes.h:26
double m_h
Definition: CDRTypes.h:29
double getMinY() const
Definition: CDRTypes.h:46
double m_w
Definition: CDRTypes.h:28
double getWidth() const
Definition: CDRTypes.h:34
CDRBox()
Definition: CDRTypes.h:30
Definition: CDRTypes.h:307
double k
Definition: CDRTypes.h:314
double m
Definition: CDRTypes.h:312
CDRCMYKColor(double cyan, double magenta, double yellow, double black)
Definition: CDRTypes.h:308
double y
Definition: CDRTypes.h:313
~CDRCMYKColor()
Definition: CDRTypes.h:310
double c
Definition: CDRTypes.h:311
Definition: CDRTypes.h:54
unsigned m_colorValue
Definition: CDRTypes.h:57
CDRColor(unsigned short colorModel, unsigned short colorPalette, unsigned colorValue)
Definition: CDRTypes.h:58
unsigned short m_colorModel
Definition: CDRTypes.h:55
CDRColor(unsigned short colorModel, unsigned colorValue)
Definition: CDRTypes.h:62
unsigned short m_colorPalette
Definition: CDRTypes.h:56
CDRColor()
Definition: CDRTypes.h:60
Definition: CDRTypes.h:106
unsigned short fillType
Definition: CDRTypes.h:107
CDRFillStyle()
Definition: CDRTypes.h:111
CDRColor color1
Definition: CDRTypes.h:108
CDRColor color2
Definition: CDRTypes.h:108
CDRGradient gradient
Definition: CDRTypes.h:109
CDRImageFill imageFill
Definition: CDRTypes.h:110
CDRFillStyle(unsigned short ft, CDRColor c1, CDRColor c2, const CDRGradient &gr, const CDRImageFill &img)
Definition: CDRTypes.h:113
Definition: CDRTypes.h:372
CDRFont(const CDRFont &font)=default
CDRFont()
Definition: CDRTypes.h:373
CDRFont(const librevenge::RVNGString &name, unsigned short encoding)
Definition: CDRTypes.h:374
librevenge::RVNGString m_name
Definition: CDRTypes.h:378
unsigned short m_encoding
Definition: CDRTypes.h:379
CDRFont & operator=(const CDRFont &font)=default
Definition: CDRTypes.h:67
CDRGradientStop()
Definition: CDRTypes.h:70
CDRGradientStop(const CDRColor &color, double offset)
Definition: CDRTypes.h:71
CDRColor m_color
Definition: CDRTypes.h:68
double m_offset
Definition: CDRTypes.h:69
Definition: CDRTypes.h:76
CDRGradient()
Definition: CDRTypes.h:85
double m_angle
Definition: CDRTypes.h:79
unsigned char m_mode
Definition: CDRTypes.h:78
std::vector< CDRGradientStop > m_stops
Definition: CDRTypes.h:84
unsigned char m_type
Definition: CDRTypes.h:77
int m_centerYOffset
Definition: CDRTypes.h:83
int m_edgeOffset
Definition: CDRTypes.h:81
int m_centerXOffset
Definition: CDRTypes.h:82
double m_midPoint
Definition: CDRTypes.h:80
Definition: CDRTypes.h:90
bool isRelative
Definition: CDRTypes.h:94
CDRImageFill()
Definition: CDRTypes.h:99
double xOffset
Definition: CDRTypes.h:95
double width
Definition: CDRTypes.h:92
unsigned id
Definition: CDRTypes.h:91
unsigned char flags
Definition: CDRTypes.h:98
double rcpOffset
Definition: CDRTypes.h:97
double yOffset
Definition: CDRTypes.h:96
double height
Definition: CDRTypes.h:93
CDRImageFill(unsigned i, double w, double h, bool r, double x, double y, double o, unsigned char f)
Definition: CDRTypes.h:101
Definition: CDRTypes.h:197
double m_y2
Definition: CDRTypes.h:202
double m_x1
Definition: CDRTypes.h:199
double m_y1
Definition: CDRTypes.h:201
CDRImage()
Definition: CDRTypes.h:203
const librevenge::RVNGBinaryData & getImage() const
Definition: CDRTypes.h:214
double getMiddleX() const
Definition: CDRTypes.h:206
CDRImage(const librevenge::RVNGBinaryData &image, double x1, double x2, double y1, double y2)
Definition: CDRTypes.h:204
double getMiddleY() const
Definition: CDRTypes.h:210
librevenge::RVNGBinaryData m_image
Definition: CDRTypes.h:198
double m_x2
Definition: CDRTypes.h:200
Definition: CDRTypes.h:328
CDRLab2Color(double l, double A, double B)
Definition: CDRTypes.h:329
double L
Definition: CDRTypes.h:332
double b
Definition: CDRTypes.h:334
double a
Definition: CDRTypes.h:333
~CDRLab2Color()
Definition: CDRTypes.h:331
Definition: CDRTypes.h:338
double b
Definition: CDRTypes.h:344
~CDRLab4Color()
Definition: CDRTypes.h:341
CDRLab4Color(double l, double A, double B)
Definition: CDRTypes.h:339
double a
Definition: CDRTypes.h:343
double L
Definition: CDRTypes.h:342
Definition: CDRTypes.h:118
unsigned short capsType
Definition: CDRTypes.h:120
double angle
Definition: CDRTypes.h:124
CDRColor color
Definition: CDRTypes.h:125
std::vector< unsigned > dashArray
Definition: CDRTypes.h:126
CDRLineStyle(unsigned short lt, unsigned short ct, unsigned short jt, double lw, double st, double a, const CDRColor &c, const std::vector< unsigned > &da, const CDRPath &sm, const CDRPath &em)
Definition: CDRTypes.h:133
CDRPath endMarker
Definition: CDRTypes.h:128
unsigned short lineType
Definition: CDRTypes.h:119
CDRPath startMarker
Definition: CDRTypes.h:127
double stretch
Definition: CDRTypes.h:123
CDRLineStyle()
Definition: CDRTypes.h:129
double lineWidth
Definition: CDRTypes.h:122
unsigned short joinType
Definition: CDRTypes.h:121
Definition: CDRTypes.h:244
double offsetY
Definition: CDRTypes.h:248
CDRPage()
Definition: CDRTypes.h:249
double width
Definition: CDRTypes.h:245
double height
Definition: CDRTypes.h:246
CDRPage(double w, double h, double ox, double oy)
Definition: CDRTypes.h:250
double offsetX
Definition: CDRTypes.h:247
Definition: CDRTypes.h:221
CDRPattern()
Definition: CDRTypes.h:225
std::vector< unsigned char > pattern
Definition: CDRTypes.h:224
unsigned width
Definition: CDRTypes.h:222
unsigned height
Definition: CDRTypes.h:223
CDRPattern(unsigned w, unsigned h, const std::vector< unsigned char > &p)
Definition: CDRTypes.h:226
Definition: CDRTypes.h:183
double m_cx
Definition: CDRTypes.h:188
unsigned m_numAngles
Definition: CDRTypes.h:184
void create(CDRPath &path) const
Definition: CDRTypes.cpp:14
CDRPolygon(unsigned numAngles, unsigned nextPoint, double rx, double ry, double cx, double cy)
Definition: CDRTypes.h:191
double m_cy
Definition: CDRTypes.h:189
CDRPolygon()
Definition: CDRTypes.h:190
double m_ry
Definition: CDRTypes.h:187
unsigned m_nextPoint
Definition: CDRTypes.h:185
double m_rx
Definition: CDRTypes.h:186
Definition: CDRTypes.h:318
double b
Definition: CDRTypes.h:324
~CDRRGBColor()
Definition: CDRTypes.h:321
double g
Definition: CDRTypes.h:323
CDRRGBColor(double red, double green, double blue)
Definition: CDRTypes.h:319
double r
Definition: CDRTypes.h:322
Definition: CDRTypes.h:255
std::vector< unsigned > knotVector
Definition: CDRTypes.h:257
std::vector< std::pair< double, double > > points
Definition: CDRTypes.h:256
void create(CDRPath &path) const
Definition: CDRTypes.cpp:54
CDRSplineData(const std::vector< std::pair< double, double > > &ps, const std::vector< unsigned > &kntv)
Definition: CDRTypes.h:259
void clear()
Definition: CDRTypes.h:261
CDRSplineData()
Definition: CDRTypes.h:258
bool empty()
Definition: CDRTypes.h:266
Definition: CDRTypes.h:142
CDRStyle()
Definition: CDRTypes.h:151
CDRLineStyle m_lineStyle
Definition: CDRTypes.h:148
double m_leftIndent
Definition: CDRTypes.h:147
double m_firstIndent
Definition: CDRTypes.h:147
CDRFillStyle m_fillStyle
Definition: CDRTypes.h:149
librevenge::RVNGString m_fontName
Definition: CDRTypes.h:144
unsigned m_parentId
Definition: CDRTypes.h:150
double m_rightIndent
Definition: CDRTypes.h:147
void overrideStyle(const CDRStyle &override)
Definition: CDRTypes.h:158
unsigned short m_charSet
Definition: CDRTypes.h:143
double m_fontSize
Definition: CDRTypes.h:145
unsigned m_align
Definition: CDRTypes.h:146
Definition: CDRTypes.h:357
CDRTextLine(const CDRTextLine &line)
Definition: CDRTypes.h:359
void clear()
Definition: CDRTypes.h:364
void append(const CDRText &text)
Definition: CDRTypes.h:360
CDRTextLine()
Definition: CDRTypes.h:358
std::vector< CDRText > m_line
Definition: CDRTypes.h:368
Definition: CDRTypes.h:348
CDRText()
Definition: CDRTypes.h:349
CDRText(const librevenge::RVNGString &text, const CDRStyle &style)
Definition: CDRTypes.h:350
librevenge::RVNGString m_text
Definition: CDRTypes.h:352
CDRStyle m_style
Definition: CDRTypes.h:353
Definition: CDRTypes.h:274
unsigned char type
Definition: CDRTypes.h:278
WaldoRecordInfo()
Definition: CDRTypes.h:277
unsigned id
Definition: CDRTypes.h:279
WaldoRecordInfo(unsigned char t, unsigned i, unsigned o)
Definition: CDRTypes.h:275
unsigned offset
Definition: CDRTypes.h:280
Definition: CDRTypes.h:284
unsigned short m_previous
Definition: CDRTypes.h:295
unsigned short m_flags
Definition: CDRTypes.h:298
double m_x0
Definition: CDRTypes.h:299
WaldoRecordType1()
Definition: CDRTypes.h:290
double m_x1
Definition: CDRTypes.h:301
unsigned short m_child
Definition: CDRTypes.h:296
double m_y0
Definition: CDRTypes.h:300
unsigned short m_next
Definition: CDRTypes.h:294
unsigned short m_parent
Definition: CDRTypes.h:297
CDRTransform m_trafo
Definition: CDRTypes.h:303
double m_y1
Definition: CDRTypes.h:302
unsigned m_id
Definition: CDRTypes.h:293
WaldoRecordType1(unsigned id, unsigned short next, unsigned short previous, unsigned short child, unsigned short parent, unsigned short flags, double x0, double y0, double x1, double y1, const CDRTransform &trafo)
Definition: CDRTypes.h:285