Code

adapt includes to glib 2.9 changes
[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 "forward.h"
17 namespace Inkscape {
18 namespace XML {
19 class Node;
20 class Document;
21 }
22 }
25 #define INKSCAPE inkscape_get_instance()
27 void inkscape_application_init (const gchar *argv0, gboolean use_gui);
29 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);
30 Inkscape::XML::Node *inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key);
32 /* Menus */
33 bool inkscape_load_menus (Inkscape::Application * inkscape);
34 bool inkscape_save_menus (Inkscape::Application * inkscape);
35 Inkscape::XML::Node *inkscape_get_menus (Inkscape::Application * inkscape);
37 Inkscape::Application *inkscape_get_instance();
39 #define SP_ACTIVE_EVENTCONTEXT inkscape_active_event_context ()
40 SPEventContext * inkscape_active_event_context (void);
42 #define SP_ACTIVE_DOCUMENT inkscape_active_document ()
43 SPDocument * inkscape_active_document (void);
45 #define SP_ACTIVE_DESKTOP inkscape_active_desktop ()
46 SPDesktop * inkscape_active_desktop (void);
48 bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
50 gchar *homedir_path(const char *filename);
51 gchar *profile_path(const char *filename);
53 void inkscape_switch_desktops_next ();
54 void inkscape_switch_desktops_prev ();
56 void inkscape_dialogs_hide ();
57 void inkscape_dialogs_unhide ();
58 void inkscape_dialogs_toggle ();
60 void inkscape_external_change ();
61 void inkscape_subselection_changed (SPDesktop *desktop);
63 /*
64  * fixme: This has to be rethought
65  */
67 void inkscape_refresh_display (Inkscape::Application *inkscape);
69 /*
70  * fixme: This also
71  */
73 void inkscape_exit (Inkscape::Application *inkscape);
75 #endif
77 /*
78   Local Variables:
79   mode:c++
80   c-file-style:"stroustrup"
81   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
82   indent-tabs-mode:nil
83   fill-column:99
84   End:
85 */
86 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :