~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/inkscape.h

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __INKSCAPE_H__
 
2
#define __INKSCAPE_H__
 
3
 
 
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
 */
 
14
 
 
15
#include "forward.h"
 
16
 
 
17
namespace Inkscape {
 
18
namespace XML {
 
19
class Node;
 
20
class Document;
 
21
}
 
22
}
 
23
 
 
24
 
 
25
#define INKSCAPE inkscape_get_instance()
 
26
 
 
27
void inkscape_application_init (const gchar *argv0, gboolean use_gui);
 
28
 
 
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);
 
31
 
 
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);
 
36
 
 
37
Inkscape::Application *inkscape_get_instance();
 
38
 
 
39
#define SP_ACTIVE_EVENTCONTEXT inkscape_active_event_context ()
 
40
SPEventContext * inkscape_active_event_context (void);
 
41
 
 
42
#define SP_ACTIVE_DOCUMENT inkscape_active_document ()
 
43
SPDocument * inkscape_active_document (void);
 
44
 
 
45
#define SP_ACTIVE_DESKTOP inkscape_active_desktop ()
 
46
SPDesktop * inkscape_active_desktop (void);
 
47
 
 
48
bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
 
49
 
 
50
gchar *homedir_path(const char *filename);
 
51
gchar *profile_path(const char *filename);
 
52
 
 
53
void inkscape_switch_desktops_next ();
 
54
void inkscape_switch_desktops_prev ();
 
55
 
 
56
void inkscape_dialogs_hide ();
 
57
void inkscape_dialogs_unhide ();
 
58
void inkscape_dialogs_toggle ();
 
59
 
 
60
void inkscape_external_change ();
 
61
void inkscape_subselection_changed (SPDesktop *desktop);
 
62
 
 
63
/*
 
64
 * fixme: This has to be rethought
 
65
 */
 
66
 
 
67
void inkscape_refresh_display (Inkscape::Application *inkscape);
 
68
 
 
69
/*
 
70
 * fixme: This also
 
71
 */
 
72
 
 
73
void inkscape_exit (Inkscape::Application *inkscape);
 
74
 
 
75
#endif
 
76
 
 
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 :