X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fspv%2Fspv.h;h=eda7704dd70e746b257175df905dcdd67cafe59f;hb=8491d88610f4a0c48891be493a4bd0522aec297b;hp=6857d9b3b67f7e0d01dd699a2c6de6893b0c1798;hpb=5816109430eb4b71652de09cfdc2df2bc5c44655;p=pspp diff --git a/src/output/spv/spv.h b/src/output/spv/spv.h index 6857d9b3b6..eda7704dd7 100644 --- a/src/output/spv/spv.h +++ b/src/output/spv/spv.h @@ -26,9 +26,11 @@ top-level headings as a child item. */ +#include #include #include #include + #include "libpspp/compiler.h" struct fmt_spec; @@ -68,7 +70,7 @@ enum spv_item_type SPV_ITEM_TABLE, SPV_ITEM_GRAPH, SPV_ITEM_MODEL, - SPV_ITEM_OBJECT, + SPV_ITEM_IMAGE, SPV_ITEM_TREE, }; @@ -116,8 +118,8 @@ struct spv_item char *structure_member; enum spv_item_type type; - char *label; - char *command_id; /* Unique command identifier. */ + char *label; /* Localized label. */ + char *command_id; /* Non-localized unique command identifier. */ /* Whether the item is visible. For SPV_ITEM_HEADING, false indicates that the item is collapsed. @@ -138,9 +140,9 @@ struct spv_item /* SPV_ITEM_TEXT only. */ struct pivot_value *text; - /* SPV_ITEM_OBJECT only. */ - char *object_type; - char *uri; + /* SPV_ITEM_IMAGE only. */ + char *png_member; + cairo_surface_t *image; }; void spv_item_format_path (const struct spv_item *, struct string *); @@ -162,6 +164,9 @@ const struct pivot_table *spv_item_get_table (const struct spv_item *); bool spv_item_is_text (const struct spv_item *); const struct pivot_value *spv_item_get_text (const struct spv_item *); +bool spv_item_is_image (const struct spv_item *); +cairo_surface_t *spv_item_get_image (const struct spv_item *); + bool spv_item_is_visible (const struct spv_item *); #define SPV_ITEM_FOR_EACH(ITER, ROOT) \ @@ -173,7 +178,6 @@ struct spv_item *spv_item_next (const struct spv_item *); const struct spv_item *spv_item_get_parent (const struct spv_item *); size_t spv_item_get_level (const struct spv_item *); -const char *spv_item_get_member_name (const struct spv_item *); const char *spv_item_get_command_id (const struct spv_item *); const char *spv_item_get_subtype (const struct spv_item *);