** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
** Copyright (c) 2007, 2008 Chris Moore
+** Copyright (c) 2009 Carlos A. Sosa Navarro
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
const synfig::String& get_errors_text()const { return errors_text; }
const synfig::String& get_warnings_text()const { return warnings_text; }
+ static void register_canvas_in_map(Canvas::Handle canvas, String as);
+
+#ifdef _DEBUG
+ static void show_canvas_map(String file, int line, String text);
+#endif // _DEBUG
+
//! \todo writeme
Canvas::Handle parse_from_file_as(const String &filename,const String &as,String &errors);
+ Canvas::Handle parse_as(xmlpp::Element* node,String &errors);
static std::set<String> loading_;
//! Loads a canvas from \a filename
/*! \return The Canvas's handle on success, an empty handle on failure */
+extern Canvas::Handle open_canvas(xmlpp::Element* node,String &errors,String &warnings);
extern Canvas::Handle open_canvas(const String &filename,String &errors,String &warnings);
extern Canvas::Handle open_canvas_as(const String &filename,const String &as,String &errors,String &warnings);