X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=ps%2Fps-document.h;h=fb00f9fb2c96101b14bf09fda28481d9943105d5;hb=HEAD;hp=7ecad2918bab6351f2f3f1106af0fec8cb7a2973;hpb=ae0d3afcc39b13f01e0fbac74cf583f67a229382;p=evince.git diff --git a/ps/ps-document.h b/ps/ps-document.h deleted file mode 100644 index 7ecad291..00000000 --- a/ps/ps-document.h +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Ghostscript widget for GTK/GNOME - * - * Copyright 1998 - 2005 The Free Software Foundation - * - * Authors: Jaka Mocnik, Federico Mena (Quartic), Szekeres Istvan (Pista) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#ifndef __PS_DOCUMENT_H__ -#define __PS_DOCUMENT_H__ - -#include -#include - -#include "ev-document.h" -#include "ps.h" -#include "gstypes.h" - -G_BEGIN_DECLS - -#define PS_TYPE_DOCUMENT (ps_document_get_type()) -#define PS_DOCUMENT(obj) GTK_CHECK_CAST (obj, ps_document_get_type (), PSDocument) -#define PS_DOCUMENT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, ps_document_get_type (), PSDocumentClass) -#define PS_IS_DOCUMENT(obj) GTK_CHECK_TYPE (obj, ps_document_get_type()) - -typedef struct _PSDocument PSDocument; -typedef struct _PSDocumentClass PSDocumentClass; - -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; - - GtkGSOrientation orientation; - - 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); - -G_END_DECLS - -#endif /* __PS_DOCUMENT_H__ */