]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gtkmathview-bonobo/src/control-factory.h
persist file with factory.
[helm.git] / helm / gtkmathview-bonobo / src / control-factory.h
index 68830bc87ab5baceaf2afa3e423bc034afacfba4..739d02cd601274edd9b9fad92362c52381dcf785 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, 
  * Boston, MA 02111-1307, USA.
  */
+
+#ifdef GTK_MATH_VIEW_CONTROL_FACTORY_H_
+#define GTK_MATH_VIEW_CONTROL_FACTORY_H_
+
 #include <bonobo.h>
 #include <glib.h>
 #include <bonobo/bonobo-control.h>
-
 #include <gtkmathview.h>
 
+#define CONTROL_FACTORY_ID     "OAFIID:GNOME_GtkMathView_Factory:" MATH_VIEW_API_VERSION
+#define CONTROL_ID             "OAFIID:GNOME_GtkMathView:" MATH_VIEW_API_VERSION
 
 enum math_args;
 
+BonoboObject *gtk_math_view_control_factory(BonoboGenericFactory *factory,const gchar *component_id, gpointer closure);
 static void get_prop(BonoboPropertyBag*, BonoboArg *, guint , CorbaEnvironment*, gpointer);
 static void set_prop(BonoboPropertyBag*, BonoboArg *, guint , CorbaEnvironment*, gpointer);
 
@@ -33,4 +39,4 @@ static BonoboControl* instantiate_func(void);
 
 static void notify_property_bag(GtkMathView* ,gpointer);
 
-
+#endif