svg-view.cpp revision 884dc21c8024aa9f128c19d059a51491cfd0a72b
/*
* Functions and callbacks for generic SVG view and widget.
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ralf Stephan <ralf@ark.in-berlin.de>
* Jon A. Cruz <jon@joncruz.org>
* Abhishek Sharma
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/canvas-arena.h"
#include "display/drawing-group.h"
#include "document.h"
#include "sp-item.h"
#include "svg-view.h"
#include "sp-root.h"
{
_hscale = 1.0;
_vscale = 1.0;
_keepaspect = FALSE;
_width = 0.0;
_height = 0.0;
_dkey = 0;
_drawing = 0;
}
{
{
}
}
{
doRescale (true);
}
}
{
doRescale (true);
}
{
if (!doc()) {
return;
}
return;
}
return;
}
if (_rescale) {
if (_keepaspect) {
} else {
}
}
}
if (_drawing) {
}
if (event) {
}
}
{
}
{
}
//----------------------------------------------------------------
/**
* Callback connected with arena_event.
*/
/// \todo fixme.
static gint arena_handler(SPCanvasArena */*arena*/, Inkscape::DrawingItem *ai, GdkEvent *event, SPSVGView *svgview)
{
static gdouble x, y;
case GDK_BUTTON_PRESS:
}
break;
case GDK_BUTTON_RELEASE:
if ( spitem != 0 )
{
}
}
}
break;
case GDK_MOTION_NOTIFY:
break;
case GDK_ENTER_NOTIFY:
if ( spitem != 0 )
{
}
break;
case GDK_LEAVE_NOTIFY:
if ( spitem != 0 )
{
}
break;
default:
break;
}
return TRUE;
}
{
if (doc()) {
}
if (!_drawing) {
}
if (document) {
if (ai) {
}
}
}
{
}
/*
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 :