Code

bulk whitespace removal patch #1198588 by gigaclon
[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 <glib/gtypes.h>
17 struct SPDesktop;
18 struct SPDocument;
19 struct SPEventContext;
21 namespace Inkscape {
22     struct Application;
23     namespace XML {
24         class Node;
25         class Document;
26         }
27 }
29 #define INKSCAPE inkscape_get_instance()
31 void inkscape_application_init (const gchar *argv0, gboolean use_gui);
33 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);
34 Inkscape::XML::Node *inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key);
36 /* Menus */
37 bool inkscape_load_menus (Inkscape::Application * inkscape);
38 bool inkscape_save_menus (Inkscape::Application * inkscape);
39 Inkscape::XML::Node *inkscape_get_menus (Inkscape::Application * inkscape);
41 Inkscape::Application *inkscape_get_instance();
43 #define SP_ACTIVE_EVENTCONTEXT inkscape_active_event_context ()
44 SPEventContext * inkscape_active_event_context (void);
46 #define SP_ACTIVE_DOCUMENT inkscape_active_document ()
47 SPDocument * inkscape_active_document (void);
49 #define SP_ACTIVE_DESKTOP inkscape_active_desktop ()
50 SPDesktop * inkscape_active_desktop (void);
52 bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
54 gchar *homedir_path(const char *filename);
55 gchar *profile_path(const char *filename);
57 void inkscape_switch_desktops_next ();
58 void inkscape_switch_desktops_prev ();
60 void inkscape_dialogs_hide ();
61 void inkscape_dialogs_unhide ();
62 void inkscape_dialogs_toggle ();
64 void inkscape_external_change ();
65 void inkscape_subselection_changed (SPDesktop *desktop);
67 /*
68  * fixme: This has to be rethought
69  */
71 void inkscape_refresh_display (Inkscape::Application *inkscape);
73 /*
74  * fixme: This also
75  */
77 void inkscape_exit (Inkscape::Application *inkscape);
79 #endif
81 /*
82   Local Variables:
83   mode:c++
84   c-file-style:"stroustrup"
85   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
86   indent-tabs-mode:nil
87   fill-column:99
88   End:
89 */
90 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :