sp-xmlview-content.cpp revision f8307d2d97a6e202153ae676f974f79e1b0ec5cd
/*
* Specialization of GtkTextView for the XML tree view
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2002 MenTaLguY
* Abhishek Sharma
*
* 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"
using Inkscape::DocumentUndo;
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"));
}
}