sp-xmlview-content.cpp revision e3b6cd4b0523f08a6414dc0800a15a3b1710ce8a
#define __SP_XMLVIEW_CONTENT_C__
/*
* Specialization of GtkTextView for the XML tree view
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2002 MenTaLguY
*
* Released under the GNU GPL; see COPYING for details
*/
#include <cstring>
#include "xml/node-event-vector.h"
#include "sp-xmlview-content.h"
#include "desktop-handles.h"
#include "document-private.h"
#include "inkscape.h"
static void event_content_changed (Inkscape::XML::Node * repr, const gchar * old_content, const gchar * new_content, gpointer data);
NULL, /* child_added */
NULL, /* child_removed */
NULL, /* attr_changed */
NULL /* order_changed */
};
{
/* should we alter the scrolling adjustments here? */
}
void
{
}
if (repr) {
} else {
}
}
{
if (!type) {
sizeof(SPXMLViewContentClass),
0, // base_init
0, // base_finalize
0, // class_finalize
0, // class_data
sizeof(SPXMLViewContent),
0, // n_preallocs
0 // value_table
};
type = g_type_register_static(GTK_TYPE_TEXT_VIEW, "SPXMLViewContent", &info, static_cast<GTypeFlags>(0));
}
return type;
}
void
{
}
void
{
}
void
{
}
void
event_content_changed (Inkscape::XML::Node * /*repr*/, const gchar * /*old_content*/, const gchar * new_content, gpointer data)
{
if (new_content) {
gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (text)), new_content, strlen (new_content));
} else {
}
}
void
{
_("Type text in a text node"));
}
}