X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Floadcanvas.h;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Floadcanvas.h;h=888e1d70077a0e8fd3cb634f488ca20d9375e97e;hb=3d0655b0728cc3b9d528375431f7b01a5d0b3d5b;hp=dc665c2036e76a3fbd458344c45ea4b2cc616bad;hpb=ff20bb143f86979474d409a9bdc535d2ad1281bd;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/loadcanvas.h b/synfig-core/trunk/src/synfig/loadcanvas.h index dc665c2..888e1d7 100644 --- a/synfig-core/trunk/src/synfig/loadcanvas.h +++ b/synfig-core/trunk/src/synfig/loadcanvas.h @@ -7,6 +7,7 @@ ** \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 @@ -127,6 +128,7 @@ public: //! \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 loading_; @@ -178,6 +180,7 @@ private: //! 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);