/*
* Functions and callbacks for generic SVG view and widget.
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ralf Stephan <ralf@ark.in-berlin.de>
* Abhishek Sharma
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2010 authors
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/sp-canvas.h"
#include "display/sp-canvas-group.h"
#include "display/canvas-arena.h"
#include "document.h"
#include "svg-view.h"
#include "svg-view-widget.h"
#if GTK_CHECK_VERSION(3,0,0)
#endif
static void sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View *view, gdouble width, gdouble height);
/**
* Callback to initialize SPSVGSPViewWidget vtable.
*/
{
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
}
/**
* Callback to initialize SPSVGSPViewWidget object.
*/
{
/* Settings */
/* ScrolledWindow */
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (vw->sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
/* Canvas */
#if !GTK_CHECK_VERSION(3,0,0)
#endif
#if GTK_CHECK_VERSION(3,0,0)
"SPCanvas {\n"
" background-color: white;\n"
"}\n",
-1, NULL);
#else
#endif
#if GTK_CHECK_VERSION(3,0,0)
#else
#endif
/* View */
}
/*
* Destructor callback for SPSVGSPViewWidget objects.
*/
{
}
}
/**
* Callback connected with size_request signal.
*/
{
#if GTK_CHECK_VERSION(3,0,0)
GTK_WIDGET_CLASS(sp_svg_view_widget_parent_class)->get_preferred_width(widget, &width_min, &width_nat);
GTK_WIDGET_CLASS(sp_svg_view_widget_parent_class)->get_preferred_height(widget, &height_min, &height_nat);
}
#else
}
#endif
if (v->doc()) {
} else {
}
} else {
}
}
}
#if GTK_CHECK_VERSION(3,0,0)
static void sp_svg_view_widget_get_preferred_width(GtkWidget *widget, gint *minimal_width, gint *natural_width)
{
}
static void sp_svg_view_widget_get_preferred_height(GtkWidget *widget, gint *minimal_height, gint *natural_height)
{
}
#endif
/**
* Callback connected with size_allocate signal.
*/
{
}
}
}
/**
* Callback connected with view_resized signal.
*/
static void sp_svg_view_widget_view_resized(SPViewWidget *vw, Inkscape::UI::View::View */*view*/, gdouble width, gdouble height)
{
}
}
{
return widget;
}
{
if ( resize ) {
gtk_widget_queue_resize( GTK_WIDGET(this) );
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :