27 #ifndef __SYNFIG_LOADCANVAS_H
28 #define __SYNFIG_LOADCANVAS_H
54 namespace xmlpp {
class Node;
class Element; };
140 static void show_canvas_map(
String file,
int line,
String text);
154 void error(xmlpp::Node *node,
const String &text);
156 void fatal_error(xmlpp::Node *node,
const String &text);
158 void warning(xmlpp::Node *node,
const String &text);
160 void error_unexpected_element(xmlpp::Node *node,
const String &got,
const String &expected);
162 void error_unexpected_element(xmlpp::Node *node,
const String &got);
167 void parse_canvas_defs(xmlpp::Element *node,
Canvas::Handle canvas);
169 std::list<ValueNode::Handle> parse_canvas_bones(xmlpp::Element *node,
Canvas::Handle canvas);
172 etl::handle<Layer> parse_layer(xmlpp::Element *node,
Canvas::Handle canvas);
176 etl::handle<ValueNode> parse_value_node(xmlpp::Element *node,
Canvas::Handle canvas);
179 Real parse_real(xmlpp::Element *node);
183 int parse_integer(xmlpp::Element *node);
185 Vector parse_vector(xmlpp::Element *node);
187 Color parse_color(xmlpp::Element *node);
189 Angle parse_angle(xmlpp::Element *node);
191 String parse_string(xmlpp::Element *node);
193 bool parse_bool(xmlpp::Element *node);
195 Segment parse_segment(xmlpp::Element *node);
203 Gradient parse_gradient(xmlpp::Element *node);
205 BLinePoint parse_bline_point(xmlpp::Element *node);
209 GUID parse_guid(xmlpp::Element *node);
212 WidthPoint parse_width_point(xmlpp::Element *node);
214 DashItem parse_dash_item(xmlpp::Element *node);
220 etl::handle<ValueNode_Animated> parse_animated(xmlpp::Element *node,
Canvas::Handle canvas);
222 etl::handle<LinkableValueNode> parse_linkable_value_node(xmlpp::Element *node,
Canvas::Handle canvas);
225 etl::handle<ValueNode_StaticList> parse_static_list(xmlpp::Element *node,
Canvas::Handle canvas);
228 etl::handle<ValueNode_DynamicList> parse_dynamic_list(xmlpp::Element *node,
Canvas::Handle canvas);
233 bool parse_static(xmlpp::Element *node);