Add support for PNG images in .spv files.
[pspp] / src / output / spv / spv-writer.h
index 05604d521980baf3c7a857efc7fc0754fff95ca3..4126a8606db273dc200277af3f870a1a305dc290 100644 (file)
 #define OUTPUT_SPV_WRITER_H 1
 
 struct page_setup;
-struct table_item_text;
 struct pivot_table;
 struct spv_writer;
 struct text_item;
 
+#ifdef HAVE_CAIRO
+#include <cairo.h>
+#endif
+
 #include "libpspp/compiler.h"
 
 char *spv_writer_open (const char *filename, struct spv_writer **)
@@ -40,6 +43,10 @@ void spv_writer_put_text (struct spv_writer *, const struct text_item *,
                           const char *command_id);
 void spv_writer_put_table (struct spv_writer *, const struct pivot_table *);
 
+#ifdef HAVE_CAIRO
+void spv_writer_put_image (struct spv_writer *, cairo_surface_t *);
+#endif
+
 void spv_writer_eject_page (struct spv_writer *);
 
 #endif /* output/spv/spv-writer.h */