Code

Node tool: fix handle retraction with non-cusp nodes
[inkscape.git] / src / inkscape.h
1 #ifndef __INKSCAPE_H__
2 #define __INKSCAPE_H__
4 /*
5  * Interface to main application
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 1999-2003 Authors
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include <list>
16 #include <glib/gtypes.h>
18 struct SPDesktop;
19 struct SPDocument;
20 struct SPEventContext;
22 namespace Inkscape {
23     struct Application;
24     namespace XML {
25         class Node;
26         class Document;
27         }
28 }
30 #define INKSCAPE inkscape_get_instance()
32 void inkscape_autosave_init();
34 void inkscape_application_init (const gchar *argv0, gboolean use_gui);
36 bool inkscape_load_config (const gchar *filename, Inkscape::XML::Document *config, const gchar *skeleton, unsigned int skel_size, const gchar *e_notreg, const gchar *e_notxml, const gchar *e_notsp, const gchar *warn);
38 /* Menus */
39 bool inkscape_load_menus (Inkscape::Application * inkscape);
40 bool inkscape_save_menus (Inkscape::Application * inkscape);
41 Inkscape::XML::Node *inkscape_get_menus (Inkscape::Application * inkscape);
43 Inkscape::Application *inkscape_get_instance();
44 gboolean inkscape_use_gui();
46 bool inkscapeIsCrashing();
48 SPDesktop * inkscape_find_desktop_by_dkey (unsigned int dkey);
50 #define SP_ACTIVE_EVENTCONTEXT inkscape_active_event_context ()
51 SPEventContext * inkscape_active_event_context (void);
53 #define SP_ACTIVE_DOCUMENT inkscape_active_document ()
54 SPDocument * inkscape_active_document (void);
56 #define SP_ACTIVE_DESKTOP inkscape_active_desktop ()
57 SPDesktop * inkscape_active_desktop (void);
59 bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
61 gchar *homedir_path(const char *filename);
62 gchar *profile_path(const char *filename);
64 /* Inkscape desktop stuff */
65 void inkscape_activate_desktop (SPDesktop * desktop);
66 void inkscape_switch_desktops_next ();
67 void inkscape_switch_desktops_prev ();
68 void inkscape_get_all_desktops (std::list< SPDesktop* >& listbuf);
70 void inkscape_dialogs_hide ();
71 void inkscape_dialogs_unhide ();
72 void inkscape_dialogs_toggle ();
74 void inkscape_external_change ();
75 void inkscape_subselection_changed (SPDesktop *desktop);
77 /*
78  * fixme: This has to be rethought
79  */
81 void inkscape_refresh_display (Inkscape::Application *inkscape);
83 /*
84  * fixme: This also
85  */
87 void inkscape_exit (Inkscape::Application *inkscape);
89 #endif
91 /*
92   Local Variables:
93   mode:c++
94   c-file-style:"stroustrup"
95   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
96   indent-tabs-mode:nil
97   fill-column:99
98   End:
99 */
100 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :