gdkpixbuf-input.cpp revision 723b4d8bde8ce8503d1d01ee0f2e3548ec0dc88c
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "document-private.h"
#include <dir-util.h>
#include "prefs-utils.h"
#include "gdkpixbuf-input.h"
#include "selection-chemistry.h"
namespace Inkscape {
namespace IO {
}
namespace Extension {
namespace Internal {
{
if (pb) { /* We are readable */
if ( str )
{
{
}
}
if ( str )
{
{
}
}
// import as <image>
// both are the same, as we don't know our base dir here and cannot relativate href (importer will fixupHrefs):
//alter the canvas size to fit the image size
// restore undo, as now this document may be shown to the user if a bitmap was opened
} else {
printf("GdkPixbuf loader failed\n");
}
return doc;
}
#include "clear-n_.h"
void
GdkpixbufInput::init(void)
{
/* \todo I'm not sure if I need to free this list */
formatlist != NULL;
for (int i = 0; extensions[i] != NULL; i++) {
/* thanks but no thanks, we'll handle SVG extensions... */
continue;
}
continue;
}
continue;
}
"<inkscape-extension>\n"
"<id>org.inkscape.input.gdkpixbuf.%s</id>\n"
"<input>\n"
"<extension>.%s</extension>\n"
"<mimetype>%s</mimetype>\n"
"<filetypename>%s (*.%s)</filetypename>\n"
"<filetypetooltip>%s</filetypetooltip>\n"
"</input>\n"
"</inkscape-extension>",
name,
extensions[i],
extensions[i],
mimetypes[j],
name,
extensions[i],
);
}}
}
}
} } } /* namespace Inkscape, Extension, Implementation */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :