26 #ifndef __SYNFIG_CAIROIMPORTER_H
27 #define __SYNFIG_CAIROIMPORTER_H
46 #define SYNFIG_CAIROIMPORTER_MODULE_EXT \
47 public: static const char name__[], version__[], ext__[],cvs_id__[]; \
48 static const bool supports_file_system_wrapper__; \
49 static synfig::CairoImporter *create(const synfig::FileSystem::Identifier &identifier);
52 #define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, parent) \
53 public: class(const synfig::FileSystem::Identifier &identifier): parent(identifier) { }
56 #define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR(class) \
57 SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, synfig::CairoImporter)
62 #define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS_DERIVED(class, parent) \
63 SYNFIG_CAIROIMPORTER_MODULE_EXT \
64 SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, parent)
69 #define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS(class) \
70 SYNFIG_CAIROIMPORTER_MODULE_EXT \
71 SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR(class)
74 #define SYNFIG_CAIROIMPORTER_SET_NAME(class,x) const char class::name__[]=x
77 #define SYNFIG_CAIROIMPORTER_SET_EXT(class,x) const char class::ext__[]=x
80 #define SYNFIG_CAIROIMPORTER_SET_VERSION(class,x) const char class::version__[]=x
83 #define SYNFIG_CAIROIMPORTER_SET_CVS_ID(class,x) const char class::cvs_id__[]=x
86 #define SYNFIG_CAIROIMPORTER_SET_SUPPORTS_FILE_SYSTEM_WRAPPER(class,x) const bool class::supports_file_system_wrapper__=x
90 #define SYNFIG_CAIROIMPORTER_INIT(class) synfig::CairoImporter* class::create(const synfig::FileSystem::Identifier &identifier) { return new class(identifier); }
98 class ProgressCallback;
126 factory(factory), supports_file_system_wrapper(supports_file_system_wrapper)
130 typedef std::map<std::string,BookEntry>
Book;
142 typedef etl::handle<CairoImporter>
Handle;
172 bool &trimmed __attribute__ ((unused)),
173 unsigned int &width __attribute__ ((unused)),
174 unsigned int &height __attribute__ ((unused)),
175 unsigned int &top __attribute__ ((unused)),
176 unsigned int &left __attribute__ ((unused)),
179 return get_frame(csurface,renddesc,time,callback);