blob: 6bbd82fc636584433cb7e7994867c6cf21881354 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
#ifndef __INKSCAPE_BINDING_H__
#define __INKSCAPE_BINDING_H__
/**
* This file is an attempt to provide a hierarchical design
* to wrap Inkscape in an OO model. This file is parsed by Swig
* to produce scripting extension modules for such interpreters
* as Python or Perl
*
* Authors:
* Bob Jamison <rjamison@titan.com>
*
* Copyright (C) 2004 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
/*
* Note: we are doc-ing this file instead of the .cpp since
* the .cpp file has impl's, not def's of these classes.
* Also note that you need to understand Swig before you edit this file.
*/
namespace Inkscape {
namespace Extension {
namespace Script {
class Inkscape;
class DialogManager;
class Desktop;
class Document;
/**
* Get the root Inkscape object. The module wrapper should
* always call this first so that there will be an 'inkscape'
* object available to the user.
*/
Inkscape *getInkscape();
/**
* Root inkscape object. Owner of everything
*/
class Inkscape
{
public:
/**
*
*/
Inkscape(){}
/**
*
*/
virtual ~Inkscape(){};
/**
*
*/
virtual Desktop *getDesktop() = 0;
/**
*
*/
virtual DialogManager *getDialogManager() = 0;
};
/**
* Controller for the various Inkscape dialogs
*/
class DialogManager
{
public:
/**
*
*/
DialogManager(){}
/**
*
*/
virtual ~DialogManager(){};
/**
*
*/
virtual void showAbout() = 0;
};
/**
*
*/
class Desktop
{
public:
/**
*
*/
Desktop() {}
/**
*
*/
virtual ~Desktop(){};
/**
*
*/
virtual Document *getDocument() = 0;
};
/**
*
*/
class Document
{
public:
/**
*
*/
Document() {};
/**
*
*/
virtual ~Document(){};
/**
*
*/
virtual void hello() = 0;
};
}//namespace Script
}//namespace Extension
}//namespace Inkscape
#endif /*__INKSCAPE_BINDING_H__*/
/*
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 :
|