svg-view-widget.cpp revision caf60ce95aac2d44c7cdd41125e9f4ab32ded886
#define __SP_SVG_VIEW_C__
/** \file
* Functions and callbacks for generic SVG view and widget
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ralf Stephan <ralf@ark.in-berlin.de>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtk/gtkscrolledwindow.h>
#include "display/canvas-arena.h"
#include "document.h"
#include "svg-view.h"
#include "svg-view-widget.h"
static void sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View *view, gdouble width, gdouble height);
static SPViewWidgetClass *widget_parent_class;
/**
* Registers SPSVGSPViewWidget class with Gtk and returns its type number.
*/
sp_svg_view_widget_get_type (void)
{
if (!type) {
GtkTypeInfo info = {
"SPSVGSPViewWidget",
sizeof (SPSVGSPViewWidget),
sizeof (SPSVGSPViewWidgetClass),
};
}
return type;
}
/**
* Callback to initialize SPSVGSPViewWidget vtable.
*/
static void
{
}
/**
* Callback to initialize SPSVGSPViewWidget object.
*/
static void
{
/* Settings */
/* ScrolledWindow */
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (vw->sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
/* Canvas */
/* View */
}
/*
* Destructor callback for SPSVGSPViewWidget objects.
*/
static void
{
}
/**
* Callback connected with size_request signal.
*/
static void
{
if (v->doc()) {
} else {
}
} else {
}
}
}
/**
* Callback connected with size_allocate signal.
*/
static void
{
}
}
/**
* 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)
{
}
}
/**
* Constructs new SPSVGSPViewWidget object and returns pointer to it.
*/
{
return widget;
}
/**
* Flags the SPSVGSPViewWidget to have its size renegotiated with Gtk.
*/
void
{
if (resize) {
}
}
/*
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 :