]> www.fi.muni.cz Git - evince.git/blobdiff - ps/ps-document.h
Translation updated by Ivar Smolin.
[evince.git] / ps / ps-document.h
index fd7e811573fbac30c704151481cf5d579b8911ab..c8d19db3cb01f359775401de6cef47bf57b3cd81 100644 (file)
 #ifndef __PS_DOCUMENT_H__
 #define __PS_DOCUMENT_H__
 
-#include <gdk/gdk.h>
-#include <gtk/gtkwidget.h>
-
-#include <gconf/gconf-client.h>
-
-#include <errno.h>
-#include <signal.h>
-#include <unistd.h>
 #include <sys/types.h>
-#include <stdio.h>
+#include <gtk/gtkwidget.h>
 
+#include "ev-document.h"
+#include "ps.h"
 #include "gstypes.h"
 
 G_BEGIN_DECLS
@@ -42,25 +36,19 @@ 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 GTK_IS_GS(obj)           GTK_CHECK_TYPE (obj, ps_document_get_type())
+#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;
-  GdkWindow *pstarget;          /* the window passed to gv
-                                 * it is a child of widget...
-                                 */
-  GdkGC *psgc;
-
-  GtkGSZoomMode zoom_mode;
-
-  GdkPixmap *bpixmap;           /* Backing pixmap */
 
+  GtkWidget *target_window;
+  GdkWindow *pstarget;
+  GdkPixmap *bpixmap;
   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           */
@@ -69,22 +57,8 @@ struct _PSDocument {
   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;
@@ -93,27 +67,16 @@ struct _PSDocument {
 
   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 */
+  
+  int *ps_export_pagelist;
+  char *ps_export_filename;
 
   const gchar *gs_status;       /* PSDocument status */
-
-  guint avail_w, avail_h;
 };
 
 struct _PSDocumentClass {