X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fdriver-provider.h;h=1f3f726949575adf2905086f125bf44cac2f6d53;hb=f7607814fdf3a62b022138960869baaad46b6f4f;hp=aa70bb454adc691a830d0164b5d77dbe15158977;hpb=d6cbbc8d634fa91f050661355139a4e4697e99ab;p=pspp diff --git a/src/output/driver-provider.h b/src/output/driver-provider.h index aa70bb454a..1f3f726949 100644 --- a/src/output/driver-provider.h +++ b/src/output/driver-provider.h @@ -24,8 +24,10 @@ #include "output/driver.h" struct output_item; +struct output_iterator; struct string_map; struct file_handle; +struct page_setup; /* A configured output driver. */ struct output_driver @@ -43,6 +45,8 @@ void output_driver_destroy (struct output_driver *); const char *output_driver_get_name (const struct output_driver *); +char *output_driver_substitute_heading_vars (const char *, int page_number); + /* One kind of output driver. Output driver implementations must not call msg() to report errors. This @@ -63,6 +67,10 @@ struct output_driver_class void (*submit) (struct output_driver *driver, const struct output_item *item); + /* Changes DRIVER's output page setup to PS, if possible. This may be NUL + if the driver doesn't support page setup. */ + void (*setup) (struct output_driver *driver, const struct page_setup *ps); + /* Ensures that any output items passed to the 'submit' function for DRIVER have actually been displayed. @@ -71,11 +79,18 @@ struct output_driver_class it doesn't make sense for DRIVER to be used this way, then this function need not do anything. */ void (*flush) (struct output_driver *driver); + + /* Ordinarily, the core driver code will skip passing hidden output items + to 'submit'. If this member is true, the core driver hands them to the + driver to let it handle them itself. */ + bool handles_show; + + /* Ordinarily, the core driver code will flatten groups of output items + before passing them to 'submit'. If this member is true, the core + driver code leaves them in place for the driver to handle. */ + bool handles_groups; }; -/* Useful for output driver implementation. */ -void output_driver_track_current_command (const struct output_item *, char **); - /* An abstract way for the output subsystem to create an output driver. */ struct output_driver_factory { @@ -105,5 +120,4 @@ struct output_driver_factory struct string_map *options); }; - #endif /* output/driver-provider.h */