-struct _PSDocument {
- GObject object;
-
- GtkWidget *target_window;
- GdkWindow *pstarget;
- GdkPixmap *bpixmap;
- long message_window; /* Used by ghostview to receive messages from app */
-
- pid_t interpreter_pid; /* PID of interpreter, -1 if none */
- int interpreter_input; /* stdin of interpreter */
- int interpreter_output; /* stdout of interpreter */
- int interpreter_err; /* stderr of interpreter */
- guint interpreter_input_id;
- guint interpreter_output_id;
- guint interpreter_error_id;
-
- gboolean busy; /* Is gs busy drawing? */
- gboolean structured_doc;
-
- struct record_list *ps_input;
- gchar *input_buffer_ptr;
- guint bytes_left;
- guint buffer_bytes_left;
-
- FILE *gs_psfile; /* the currently loaded FILE */
- gchar *gs_filename; /* the currently loaded filename */
- gchar *gs_filename_unc; /* Uncompressed file */
- gchar *input_buffer;
- gboolean send_filename_to_gs; /* True if gs should read from file directly */
- gboolean reading_from_pipe; /* True if ggv is reading input from pipe */
- struct document *doc;
-
- int *ps_export_pagelist;
- char *ps_export_filename;
-
- const gchar *gs_status; /* PSDocument status */
-};
-
-struct _PSDocumentClass {
- GObjectClass parent_class;
-
- GdkAtom gs_atom;
- GdkAtom next_atom;
- GdkAtom page_atom;
- GdkAtom string_atom;
-};
-
-GType ps_document_get_type(void);