25 #ifndef __SYNFIG_IMPORTER_H
26 #define __SYNFIG_IMPORTER_H
43 #define SYNFIG_IMPORTER_MODULE_EXT \
44 public: static const char name__[], version__[], ext__[],cvs_id__[]; \
45 static const bool supports_file_system_wrapper__; \
46 static synfig::Importer *create(const synfig::FileSystem::Identifier &identifier);
49 #define SYNFIG_IMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, parent) \
50 public: class(const synfig::FileSystem::Identifier &identifier): parent(identifier) { }
53 #define SYNFIG_IMPORTER_MODULE_CONSTRUCTOR(class) \
54 SYNFIG_IMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, synfig::Importer)
59 #define SYNFIG_IMPORTER_MODULE_DECLARATIONS_DERIVED(class, parent) \
60 SYNFIG_IMPORTER_MODULE_EXT \
61 SYNFIG_IMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, parent)
66 #define SYNFIG_IMPORTER_MODULE_DECLARATIONS(class) \
67 SYNFIG_IMPORTER_MODULE_EXT \
68 SYNFIG_IMPORTER_MODULE_CONSTRUCTOR(class)
71 #define SYNFIG_IMPORTER_SET_NAME(class,x) const char class::name__[]=x
74 #define SYNFIG_IMPORTER_SET_EXT(class,x) const char class::ext__[]=x
77 #define SYNFIG_IMPORTER_SET_VERSION(class,x) const char class::version__[]=x
80 #define SYNFIG_IMPORTER_SET_CVS_ID(class,x) const char class::cvs_id__[]=x
83 #define SYNFIG_IMPORTER_SET_SUPPORTS_FILE_SYSTEM_WRAPPER(class,x) const bool class::supports_file_system_wrapper__=x
87 #define SYNFIG_IMPORTER_INIT(class) synfig::Importer* class::create(const synfig::FileSystem::Identifier &identifier) { return new class(identifier); }
96 class ProgressCallback;
124 factory(factory), supports_file_system_wrapper(supports_file_system_wrapper)
128 typedef std::map<std::string,BookEntry>
Book;
171 bool &trimmed __attribute__ ((unused)),
172 unsigned int &width __attribute__ ((unused)),
173 unsigned int &height __attribute__ ((unused)),
174 unsigned int &top __attribute__ ((unused)),
175 unsigned int &left __attribute__ ((unused)),
178 return get_frame(surface,renddesc,time,callback);