X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput.h;h=3b5eeebaaf0cbe36c07ff416cddf62b57f5267a1;hb=3fb611d221aa070458c81c6ca8b1c78fbad9a0ab;hp=bcd093284fdf72538f5cb96c7d28bc2cb61b407d;hpb=0807ae51f046a8470289a0ef51cb5b22d46f6cd5;p=pspp diff --git a/src/output.h b/src/output.h index bcd093284f..3b5eeebaaf 100644 --- a/src/output.h +++ b/src/output.h @@ -14,13 +14,16 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !output_h #define output_h 1 #include "str.h" +#include "config.h" + +#include "chart.h" /* A rectangle. */ struct rect @@ -101,7 +104,7 @@ struct outp_text { /* Public. */ int options; /* What is specified. */ - struct len_string s; /* String. */ + struct fixed_string s; /* String. */ int h, v; /* Horizontal, vertical size. */ int x, y; /* Position. */ @@ -109,7 +112,7 @@ struct outp_text int w, l; /* Width, length. */ }; -struct som_table; +struct som_entity; struct outp_driver; /* Defines a class of output driver. */ @@ -135,8 +138,8 @@ struct outp_class int (*open_page) (struct outp_driver *); int (*close_page) (struct outp_driver *); - /* special != 0: Used to submit tables for output. */ - void (*submit) (struct outp_driver *, struct som_table *); + /* special != 0: Used to submit entities for output. */ + void (*submit) (struct outp_driver *, struct som_entity *); /* special != 0: Methods below need not be defined. */ @@ -166,6 +169,10 @@ struct outp_class int (*text_get_size) (struct outp_driver *, int *em_width); void (*text_metrics) (struct outp_driver *, struct outp_text *); void (*text_draw) (struct outp_driver *, struct outp_text *); + + void (*initialise_chart)(struct outp_driver *, struct chart *); + void (*finalise_chart)(struct outp_driver *, struct chart *); + }; /* Device types. */ @@ -228,9 +235,6 @@ struct outp_driver_class_list struct outp_driver_class_list *next; }; -/* List of known output driver classes. */ -extern struct outp_driver_class_list *outp_class_list; - /* List of configured output drivers. */ extern struct outp_driver *outp_driver_list;