]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gtkmathview-bonobo/src/persist-stream.h
* added first version of persist stream implementation (not yet working)
[helm.git] / helm / gtkmathview-bonobo / src / persist-stream.h
diff --git a/helm/gtkmathview-bonobo/src/persist-stream.h b/helm/gtkmathview-bonobo/src/persist-stream.h
new file mode 100644 (file)
index 0000000..88e3682
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef __GTK_MATH_VIEW_PERSIST_STREAM_H__
+#define __GTK_MATH_VIEW_PERSIST_STREAM_H__
+
+#include <bonobo/bonobo-persist.h>
+#include <gtkmathview.h>
+
+G_BEGIN_DECLS
+
+struct _GtkMathViewPersistStream;
+typedef struct _GtkMathViewPersistStream GtkMathViewPersistStream;
+typedef struct _GtkMathViewPersistStreamPrivate GtkMathViewPersistStreamPrivate;
+
+#define GTK_MATH_VIEW_TYPE_PERSIST_STREAM     (gtk_math_view_persist_stream_get_type())
+
+#define GTK_MATH_VIEW_PERSIST_STREAM(object)    (G_TYPE_CHECK_INSTANCE_CAST((object), GTK_MATH_VIEW_TYPE_PERSIST_STREAM,GtkMathViewPersistStream))
+
+#define GTK_MATH_VIEW_IS_PERSIST_STREAM(object) (G_TYPE_CHECK_INSTANCE_TYPE((object),  GTK_MATH_VIEW_TYPE_PERSIST_STREAM))
+
+#define GTK_MATH_VIEW_IS_PERSIST_STREAM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_MATH_VIEW_TYPE_PERSIST_STREAM))
+
+struct _GtkMathViewPersistStream{
+    BonoboPersist parent;
+    GtkMathView *math_view;
+    const gchar* tmp_path_name;
+};
+
+typedef struct{
+    BonoboPersistClass parent_class;
+
+    POA_Bonobo_PersistStream__epv epv;
+}GtkMathViewPersistStreamClass;
+
+GType   gtk_math_view_persist_stream_get_type(void);
+BonoboObject       *gtk_math_view_persist_stream_new(GtkMathView *math_view);
+
+G_END_DECLS
+
+#endif