10 #ifndef VSDSTYLESCOLLECTOR_H
11 #define VSDSTYLESCOLLECTOR_H
28 std::vector<std::map<unsigned, XForm> > &groupXFormsSequence,
29 std::vector<std::map<unsigned, unsigned> > &groupMembershipsSequence,
30 std::vector<std::list<unsigned> > &documentPageShapeOrders
34 void collectEllipticalArcTo(
unsigned id,
unsigned level,
double x3,
double y3,
double x2,
double y2,
double angle,
double ecc);
40 void collectOLEData(
unsigned id,
unsigned level,
const librevenge::RVNGBinaryData &oleData);
41 void collectEllipse(
unsigned id,
unsigned level,
double cx,
double cy,
double xleft,
double yleft,
double xtop,
double ytop);
42 void collectLine(
unsigned level,
const boost::optional<double> &strokeWidth,
const boost::optional<Colour> &c,
const boost::optional<unsigned char> &linePattern,
43 const boost::optional<unsigned char> &startMarker,
const boost::optional<unsigned char> &endMarker,
44 const boost::optional<unsigned char> &lineCap);
45 void collectFillAndShadow(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
46 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
47 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
48 const boost::optional<Colour> &shfgc,
const boost::optional<double> &shadowOffsetX,
const boost::optional<double> &shadowOffsetY);
49 void collectFillAndShadow(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
50 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
51 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
52 const boost::optional<Colour> &shfgc);
53 void collectThemeReference(
unsigned level,
const boost::optional<long> &lineColour,
const boost::optional<long> &fillColour,
54 const boost::optional<long> &shadowColour,
const boost::optional<long> &fontColour);
55 void collectGeometry(
unsigned id,
unsigned level,
bool noFill,
bool noLine,
bool noShow);
56 void collectMoveTo(
unsigned id,
unsigned level,
double x,
double y);
57 void collectLineTo(
unsigned id,
unsigned level,
double x,
double y);
58 void collectArcTo(
unsigned id,
unsigned level,
double x2,
double y2,
double bow);
59 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
unsigned char xType,
unsigned char yType,
unsigned degree,
60 const std::vector<std::pair<double, double> > &ctrlPnts,
const std::vector<double> &kntVec,
const std::vector<double> &weights);
61 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
double knot,
double knotPrev,
double weight,
double weightPrev,
unsigned dataID);
62 void collectNURBSTo(
unsigned id,
unsigned level,
double x2,
double y2,
double knot,
double knotPrev,
double weight,
double weightPrev,
const NURBSData &data);
63 void collectPolylineTo(
unsigned id,
unsigned level,
double x,
double y,
unsigned char xType,
unsigned char yType,
const std::vector<std::pair<double, double> > &points);
64 void collectPolylineTo(
unsigned id,
unsigned level,
double x,
double y,
unsigned dataID);
66 void collectShapeData(
unsigned id,
unsigned level,
unsigned char xType,
unsigned char yType,
unsigned degree,
double lastKnot,
67 std::vector<std::pair<double, double> > controlPoints, std::vector<double> knotVector, std::vector<double> weights);
68 void collectShapeData(
unsigned id,
unsigned level,
unsigned char xType,
unsigned char yType, std::vector<std::pair<double, double> > points);
71 void collectShapesOrder(
unsigned id,
unsigned level,
const std::vector<unsigned> &shapeIds);
72 void collectForeignDataType(
unsigned level,
unsigned foreignType,
unsigned foreignFormat,
double offsetX,
double offsetY,
double width,
double height);
73 void collectPageProps(
unsigned id,
unsigned level,
double pageWidth,
double pageHeight,
double shadowOffsetX,
double shadowOffsetY,
double scale);
74 void collectPage(
unsigned id,
unsigned level,
unsigned backgroundPageID,
bool isBackgroundPage,
const VSDName &pageName);
75 void collectShape(
unsigned id,
unsigned level,
unsigned parent,
unsigned masterPage,
unsigned masterShape,
unsigned lineStyle,
unsigned fillStyle,
unsigned textStyle);
76 void collectSplineStart(
unsigned id,
unsigned level,
double x,
double y,
double secondKnot,
double firstKnot,
double lastKnot,
unsigned degree);
77 void collectSplineKnot(
unsigned id,
unsigned level,
double x,
double y,
double knot);
79 void collectInfiniteLine(
unsigned id,
unsigned level,
double x1,
double y1,
double x2,
double y2);
80 void collectRelCubBezTo(
unsigned id,
unsigned level,
double x,
double y,
double a,
double b,
double c,
double d);
84 void collectRelQuadBezTo(
unsigned id,
unsigned level,
double x,
double y,
double a,
double b);
88 void collectCharIX(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<VSDName> &font,
89 const boost::optional<Colour> &fontColour,
const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
90 const boost::optional<bool> &italic,
const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
91 const boost::optional<bool> &strikeout,
const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
92 const boost::optional<bool> &initcaps,
const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
93 const boost::optional<bool> &subscript);
94 void collectDefaultCharStyle(
unsigned charCount,
const boost::optional<VSDName> &font,
const boost::optional<Colour> &fontColour,
95 const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
const boost::optional<bool> &italic,
96 const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
const boost::optional<bool> &strikeout,
97 const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
const boost::optional<bool> &initcaps,
98 const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
const boost::optional<bool> &subscript);
99 void collectParaIX(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<double> &indFirst,
100 const boost::optional<double> &indLeft,
const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
101 const boost::optional<double> &spBefore,
const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
102 const boost::optional<unsigned> &flags);
103 void collectDefaultParaStyle(
unsigned charCount,
const boost::optional<double> &indFirst,
const boost::optional<double> &indLeft,
104 const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
const boost::optional<double> &spBefore,
105 const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
const boost::optional<unsigned> &flags);
106 void collectTextBlock(
unsigned level,
const boost::optional<double> &leftMargin,
const boost::optional<double> &rightMargin,
107 const boost::optional<double> &topMargin,
const boost::optional<double> &bottomMargin,
108 const boost::optional<unsigned char> &verticalAlign,
const boost::optional<bool> &isBgFilled,
109 const boost::optional<Colour> &bgColour,
const boost::optional<double> &defaultTabStop,
110 const boost::optional<unsigned char> &textDirection);
115 void collectName(
unsigned id,
unsigned level,
const librevenge::RVNGBinaryData &name,
TextFormat format);
120 void collectStyleSheet(
unsigned id,
unsigned level,
unsigned parentLineStyle,
unsigned parentFillStyle,
unsigned parentTextStyle);
121 void collectLineStyle(
unsigned level,
const boost::optional<double> &strokeWidth,
const boost::optional<Colour> &c,
const boost::optional<unsigned char> &linePattern,
122 const boost::optional<unsigned char> &startMarker,
const boost::optional<unsigned char> &endMarker,
123 const boost::optional<unsigned char> &lineCap);
124 void collectFillStyle(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
125 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
126 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
127 const boost::optional<Colour> &shfgc,
const boost::optional<double> &shadowOffsetX,
const boost::optional<double> &shadowOffsetY);
128 void collectFillStyle(
unsigned level,
const boost::optional<Colour> &colourFG,
const boost::optional<Colour> &colourBG,
129 const boost::optional<unsigned char> &fillPattern,
const boost::optional<double> &fillFGTransparency,
130 const boost::optional<double> &fillBGTransparency,
const boost::optional<unsigned char> &shadowPattern,
131 const boost::optional<Colour> &shfgc);
132 void collectCharIXStyle(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<VSDName> &font,
133 const boost::optional<Colour> &fontColour,
const boost::optional<double> &fontSize,
const boost::optional<bool> &bold,
134 const boost::optional<bool> &italic,
const boost::optional<bool> &underline,
const boost::optional<bool> &doubleunderline,
135 const boost::optional<bool> &strikeout,
const boost::optional<bool> &doublestrikeout,
const boost::optional<bool> &allcaps,
136 const boost::optional<bool> &initcaps,
const boost::optional<bool> &smallcaps,
const boost::optional<bool> &superscript,
137 const boost::optional<bool> &subscript);
138 void collectParaIXStyle(
unsigned id,
unsigned level,
unsigned charCount,
const boost::optional<double> &indFirst,
139 const boost::optional<double> &indLeft,
const boost::optional<double> &indRight,
const boost::optional<double> &spLine,
140 const boost::optional<double> &spBefore,
const boost::optional<double> &spAfter,
const boost::optional<unsigned char> &align,
141 const boost::optional<unsigned> &flags);
142 void collectTextBlockStyle(
unsigned level,
const boost::optional<double> &leftMargin,
const boost::optional<double> &rightMargin,
143 const boost::optional<double> &topMargin,
const boost::optional<double> &bottomMargin,
144 const boost::optional<unsigned char> &verticalAlign,
const boost::optional<bool> &isBgFilled,
145 const boost::optional<Colour> &bgColour,
const boost::optional<double> &defaultTabStop,
146 const boost::optional<unsigned char> &textDirection);
147 void collectStyleThemeReference(
unsigned level,
const boost::optional<long> &lineColour,
const boost::optional<long> &fillColour,
148 const boost::optional<long> &shadowColour,
const boost::optional<long> &fontColour);
152 void collectTextField(
unsigned id,
unsigned level,
int nameId,
int formatStringId);
153 void collectNumericField(
unsigned id,
unsigned level,
unsigned short format,
double number,
int formatStringId);