From 9e5430d1335c285c8a1150d6ba04773f77b4d715 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 01 Jan 2005 12:28:12 +0000 Subject: Rename GtkGS to PSDocument 2005-01-01 Marco Pesenti Gritti * ps/Makefile.am: * ps/gstypes.h: * ps/gtkgs.c: * ps/gtkgs.h: * ps/ps-document.c: (catchPipe), (ps_document_init), (ps_document_class_init), (ps_document_cleanup), (ps_document_finalize), (send_ps), (ps_document_get_orientation), (set_up_page), (close_pipe), (is_interpreter_ready), (interpreter_failed), (output), (input), (start_interpreter), (stop_interpreter), (file_length), (file_readable), (check_filecompressed), (check_pdf), (compute_xdpi), (compute_ydpi), (compute_size), (ps_document_enable_interpreter), (ps_document_get_type), (ps_document_emit_error_msg), (document_load), (ps_document_next_page), (ps_document_get_current_page), (ps_document_get_page_count), (ps_document_goto_page), (ps_document_set_page_size), (ps_document_zoom_to_fit), (ps_document_set_zoom), (ps_document_load), (ps_document_get_n_pages), (ps_document_set_page), (ps_document_get_page), (ps_document_widget_event), (ps_document_set_target), (ps_document_set_scale), (ps_document_set_page_offset), (ps_document_get_page_size), (ps_document_render), (ps_document_document_iface_init): * ps/ps-document.h: * ps/ps.c: * shell/ev-window.c: (ev_window_open): Rename GtkGS to PSDocument --- (limited to 'ps/gtkgs.h') diff --git a/ps/gtkgs.h b/ps/gtkgs.h deleted file mode 100644 index 2fa88ad..0000000 --- a/ps/gtkgs.h +++ /dev/null @@ -1,132 +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 __GTK_GS_H__ -#define __GTK_GS_H__ - -#include -#include - -#include - -#include -#include -#include -#include -#include - -#include "gstypes.h" - -G_BEGIN_DECLS - -#define GTK_GS_TYPE (gtk_gs_get_type()) -#define GTK_GS(obj) GTK_CHECK_CAST (obj, gtk_gs_get_type (), GtkGS) -#define GTK_GS_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_gs_get_type (), GtkGSClass) -#define GTK_IS_GS(obj) GTK_CHECK_TYPE (obj, gtk_gs_get_type()) - -typedef struct _GtkGS GtkGS; -typedef struct _GtkGSClass GtkGSClass; - -struct _GtkGS { - GObject object; - GdkWindow *pstarget; /* the window passed to gv - * it is a child of widget... - */ - GdkGC *psgc; - - GtkGSZoomMode zoom_mode; - - GdkPixmap *bpixmap; /* Backing pixmap */ - - long message_window; /* Used by ghostview to receive messages from app */ - - int disable_start; /* Can the interpreter be started? */ - 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; - - gint llx; - gint lly; - gint urx; - gint ury; - gint left_margin; - gint right_margin; - gint top_margin; - gint bottom_margin; - gint width; /* Size of window at last setup() */ - gint height; - gboolean busy; /* Is gs busy drawing? */ - gboolean changed; /* Anything changed since setup */ - gfloat zoom_factor; - gint current_page; - gboolean structured_doc; - gboolean loaded; - - 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_dsc; /* Used to browse PDF to PS */ - gchar *gs_filename_unc; /* Uncompressed file */ - gchar *input_buffer; - gint gs_scanstyle; - 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; - - /* User selected options... */ - gboolean antialiased; /* Using antialiased display */ - gboolean respect_eof; /* respect EOF comments? */ - gint default_size; - gboolean override_size; - gfloat xdpi, ydpi; - gboolean override_orientation; - gint fallback_orientation; /* Orientation to use if override */ - gint real_orientation; /* Real orientation from the document */ - - const gchar *gs_status; /* GtkGS status */ - - guint avail_w, avail_h; -}; - -struct _GtkGSClass { - GObjectClass parent_class; - - GdkAtom gs_atom; - GdkAtom next_atom; - GdkAtom page_atom; - GdkAtom string_atom; -}; - -GType gtk_gs_get_type(void); - -G_END_DECLS - -#endif /* __GTK_GS_H__ */ -- cgit v0.9.1