X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-output-window.h;h=4fc019991c8cdb264b764620f20918d1aa060e74;hb=a67af165ac29e2daadf950a84b536b6b7b408a31;hp=d11eca618d84c9c18c86e5dc7bd184b6f9771a75;hpb=08c8544d6dc4564fbf3855b4946e4ffdc066c4b3;p=pspp diff --git a/src/ui/gui/psppire-output-window.h b/src/ui/gui/psppire-output-window.h index d11eca618d..4fc019991c 100644 --- a/src/ui/gui/psppire-output-window.h +++ b/src/ui/gui/psppire-output-window.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2008 Free Software Foundation + Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,18 +21,10 @@ #include #include -#include -#include +#include #include "psppire-window.h" #include "psppire.h" -#include - -extern int viewer_length; -extern int viewer_width ; - - -#define OUTPUT_FILE_NAME "psppire.txt" - +#include "libpspp/string-map.h" G_BEGIN_DECLS @@ -56,9 +48,25 @@ struct _PsppireOutputWindow PsppireWindow parent; /* */ - GtkTextBuffer *buffer; /* The buffer which contains the text */ - GtkWidget *textview ; - FILE *fp; /* The file it's viewing */ + struct psppire_output_driver *driver; + GtkLayout *output; + int max_width; + int y; + + struct string_map render_opts; + GtkTreeView *overview; + GtkTreeIter cur_command; + bool in_command; + + struct output_item **items; + size_t n_items, allocated_items; + + /* Variables pertaining to printing */ + GtkPrintSettings *print_settings; + struct xr_driver *print_xrd; + int print_item; + int print_n_pages; + gboolean paginated; }; struct _PsppireOutputWindowClass @@ -70,9 +78,7 @@ struct _PsppireOutputWindowClass GType psppire_output_window_get_type (void); GtkWidget* psppire_output_window_new (void); - -void psppire_output_window_reload (void); - +void psppire_output_window_setup (void); G_END_DECLS