summaryrefslogtreecommitdiffstats
path: root/src/inkscape.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/inkscape.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/inkscape.h')
-rw-r--r--src/inkscape.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/inkscape.h b/src/inkscape.h
new file mode 100644
index 000000000..9907f320f
--- /dev/null
+++ b/src/inkscape.h
@@ -0,0 +1,86 @@
+#ifndef __INKSCAPE_H__
+#define __INKSCAPE_H__
+
+/*
+ * Interface to main application
+ *
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 1999-2003 Authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include "forward.h"
+
+namespace Inkscape {
+namespace XML {
+class Node;
+class Document;
+}
+}
+
+
+#define INKSCAPE inkscape_get_instance()
+
+void inkscape_application_init (const gchar *argv0, gboolean use_gui);
+
+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);
+Inkscape::XML::Node *inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key);
+
+/* Menus */
+bool inkscape_load_menus (Inkscape::Application * inkscape);
+bool inkscape_save_menus (Inkscape::Application * inkscape);
+Inkscape::XML::Node *inkscape_get_menus (Inkscape::Application * inkscape);
+
+Inkscape::Application *inkscape_get_instance();
+
+#define SP_ACTIVE_EVENTCONTEXT inkscape_active_event_context ()
+SPEventContext * inkscape_active_event_context (void);
+
+#define SP_ACTIVE_DOCUMENT inkscape_active_document ()
+SPDocument * inkscape_active_document (void);
+
+#define SP_ACTIVE_DESKTOP inkscape_active_desktop ()
+SPDesktop * inkscape_active_desktop (void);
+
+bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
+
+gchar *homedir_path(const char *filename);
+gchar *profile_path(const char *filename);
+
+void inkscape_switch_desktops_next ();
+void inkscape_switch_desktops_prev ();
+
+void inkscape_dialogs_hide ();
+void inkscape_dialogs_unhide ();
+void inkscape_dialogs_toggle ();
+
+void inkscape_external_change ();
+void inkscape_subselection_changed (SPDesktop *desktop);
+
+/*
+ * fixme: This has to be rethought
+ */
+
+void inkscape_refresh_display (Inkscape::Application *inkscape);
+
+/*
+ * fixme: This also
+ */
+
+void inkscape_exit (Inkscape::Application *inkscape);
+
+#endif
+
+/*
+ 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:encoding=utf-8:textwidth=99 :