Code

Use subdirectories with icon sizes.
[inkscape.git] / src / widgets / sp-xmlview-content.h
1 #ifndef __SP_XMLVIEW_CONTENT_H__
2 #define __SP_XMLVIEW_CONTENT_H__
4 /*
5  * Specialization of GtkTextView for editing XML node text
6  *
7  * Authors:
8  *   MenTaLguY <mental@rydia.net>
9  *
10  * Copyright (C) 2002 MenTaLguY
11  *
12  * Released under the GNU GPL; see COPYING for details
13  */
15 #include <config.h>
17 #include <stdio.h>
19 #include <gtk/gtktextview.h>
20 #include "../xml/repr.h"
22 #include <glib.h>
26 #define SP_TYPE_XMLVIEW_CONTENT (sp_xmlview_content_get_type ())
27 #define SP_XMLVIEW_CONTENT(o) (GTK_CHECK_CAST ((o), SP_TYPE_XMLVIEW_CONTENT, SPXMLViewContent))
28 #define SP_IS_XMLVIEW_CONTENT(o) (GTK_CHECK_TYPE ((o), SP_TYPE_XMLVIEW_CONTENT))
29 #define SP_XMLVIEW_CONTENT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), SP_TYPE_XMLVIEW_CONTENT))
31 struct SPXMLViewContent
32 {
33         GtkTextView textview;
35         Inkscape::XML::Node * repr;
36         gint blocked;
37 };
39 struct SPXMLViewContentClass
40 {
41         GtkTextViewClass parent_class;
42 };
44 GtkType sp_xmlview_content_get_type (void);
45 GtkWidget * sp_xmlview_content_new (Inkscape::XML::Node * repr);
47 #define SP_XMLVIEW_CONTENT_GET_REPR(text) (SP_XMLVIEW_CONTENT (text)->repr)
49 void sp_xmlview_content_set_repr (SPXMLViewContent * text, Inkscape::XML::Node * repr);
53 #endif