Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend/ps/ps-document.h
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-02-02 12:03:26 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-02-02 12:03:26 (GMT)
commit86f5227c273c1f2a120a211637dcdde422d56acd (patch)
treebcb24700c2355c5c644c1cf980fbb9d77f74c237 /backend/ps/ps-document.h
parent6c62b0a490428aea7a3974b96871851477c81deb (diff)
Rework ps-document. Code cleanups, remove deprecated code.
2007-02-02 Carlos Garcia Campos <carlosgc@gnome.org> * backend/ps/Makefile.am: * backend/ps/ps-document.[ch]: (ps_section_free), (ps_document_init), (ps_document_dispose), (ps_document_class_init), (ps_interpreter_input), (ps_interpreter_output), (ps_interpreter_error), (setup_interpreter_env), (ps_interpreter_start), (ps_interpreter_stop), (ps_interpreter_failed), (ps_interpreter_is_ready), (check_filecompressed), (document_load), (ps_document_load), (ps_document_get_n_pages), (setup_page), (setup_pixmap), (ps_document_widget_event), (send_ps), (ps_document_next_page), (render_page): Rework ps-document. Code cleanups, remove deprecated code. svn path=/trunk/; revision=2284
Diffstat (limited to 'backend/ps/ps-document.h')
-rw-r--r--backend/ps/ps-document.h65
1 files changed, 7 insertions, 58 deletions
diff --git a/backend/ps/ps-document.h b/backend/ps/ps-document.h
index c8d19db..debf17e 100644
--- a/backend/ps/ps-document.h
+++ b/backend/ps/ps-document.h
@@ -24,71 +24,20 @@
#ifndef __PS_DOCUMENT_H__
#define __PS_DOCUMENT_H__
-#include <sys/types.h>
-#include <gtk/gtkwidget.h>
-
#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())
+#define PS_TYPE_DOCUMENT (ps_document_get_type())
+#define PS_DOCUMENT(obj) GTK_CHECK_CAST (obj, PS_TYPE_DOCUMENT, PSDocument)
+#define PS_DOCUMENT_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, PS_TYPE_DOCUMENT, PSDocumentClass)
+#define PS_IS_DOCUMENT(obj) GTK_CHECK_TYPE (obj, PS_TYPE_DOCUMENT)
+#define PS_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PS_TYPE_DOCUMENT, PSDocumentClass))
-typedef struct _PSDocument PSDocument;
+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;
-
- 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);
+GType ps_document_get_type (void) G_GNUC_CONST;
G_END_DECLS