1 #ifndef __SP_DESKTOP_HANDLES_H__
2 #define __SP_DESKTOP_HANDLES_H__
4 /*
5 * Frontends
6 *
7 * Authors:
8 * Lauris Kaplinski <lauris@kaplinski.com>
9 *
10 * Copyright (C) 1999-2002 Lauris Kaplinski
11 * Copyright (C) 2000-2001 Ximian, Inc.
12 *
13 * Released under GNU GPL, read the file 'COPYING' for more information
14 */
16 #include "display/display-forward.h"
17 #include "forward.h"
19 namespace Inkscape {
20 class MessageStack;
21 class Selection;
22 }
24 #define SP_DESKTOP_SCROLL_LIMIT 4000.0
25 #define SP_DESKTOP_ZOOM_MAX 256.0
26 #define SP_DESKTOP_ZOOM_MIN 0.01
28 #define SP_COORDINATES_UNDERLINE_NONE (0)
29 #define SP_COORDINATES_UNDERLINE_X (1 << NR::X)
30 #define SP_COORDINATES_UNDERLINE_Y (1 << NR::Y)
32 SPEventContext * sp_desktop_event_context (SPDesktop const * desktop);
33 Inkscape::Selection * sp_desktop_selection (SPDesktop const * desktop);
34 SPDocument * sp_desktop_document (SPDesktop const * desktop);
35 SPCanvas * sp_desktop_canvas (SPDesktop const * desktop);
36 SPCanvasItem * sp_desktop_acetate (SPDesktop const * desktop);
37 SPCanvasGroup * sp_desktop_main (SPDesktop const * desktop);
38 SPCanvasGroup * sp_desktop_grid (SPDesktop const * desktop);
39 SPCanvasGroup * sp_desktop_guides (SPDesktop const * desktop);
40 SPCanvasItem *sp_desktop_drawing (SPDesktop const *desktop);
41 SPCanvasGroup * sp_desktop_sketch (SPDesktop const * desktop);
42 SPCanvasGroup * sp_desktop_controls (SPDesktop const * desktop);
43 Inkscape::MessageStack * sp_desktop_message_stack (SPDesktop const * desktop);
44 SPNamedView * sp_desktop_namedview (SPDesktop const * desktop);
46 #endif
48 /*
49 Local Variables:
50 mode:c++
51 c-file-style:"stroustrup"
52 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
53 indent-tabs-mode:nil
54 fill-column:99
55 End:
56 */
57 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :