1 /* This file is part of GtkMathView-Bonobo, a Bonobo wrapper for GtkMathView.
2 * Copyright (C) 2003 Luca Padovani <lpadovan@cs.unibo.it>
3 * Pouria Masoudi <pmasoudi@cs.unibo.it>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 * For more information, please visit the project's home page
20 * http://helm.cs.unibo.it/gtkmathview-bonobo
21 * or send an email to <lpadovan@cs.unibo.it>
24 #ifndef __control_data_h__
25 #define __control_data_h__
27 #include <gtkmathview.h>
30 typedef struct _GtkMathViewControlData
32 GtkMathView* math_view;
33 GtkWidget* item_factory;
34 gboolean semantic_selection;
35 GdomeElement* first_selected;
36 GdomeElement* root_selected;
37 GdomeDOMString* id_ns_uri;
38 GdomeDOMString* id_name;
41 } GtkMathViewControlData;
43 GtkMathViewControlData* gtk_math_view_control_data_new(GtkMathView*);
44 void gtk_math_view_control_data_destroy(GtkMathViewControlData*);
45 gchar* gtk_math_view_control_data_get_id_ns_uri(GtkMathViewControlData*);
46 void gtk_math_view_control_data_set_id_ns_uri(GtkMathViewControlData*, const gchar*);
47 gchar* gtk_math_view_control_data_get_id_name(GtkMathViewControlData*);
48 void gtk_math_view_control_data_set_id_name(GtkMathViewControlData*, const gchar*);
49 void gtk_math_view_control_data_set_root_selected(GtkMathViewControlData*, GdomeElement*);
51 #endif // __control_data_h__