Code

Keeping up with trunk
[inkscape.git] / src / extension / dbus / wrapper / inkscape-dbus-wrapper.h
1 #ifndef INKSCAPE_EXTENSION_DOCUMENT_INTERFACE_H_
2 #define INKSCAPE_EXTENSION_DOCUMENT_INTERFACE_H_
4 #include <glib.h>
5 #include <glib-object.h>
7 //#include "document-client-glue-mod.h"
9 //#include <dbus/dbus-glib-bindings.h>
10 //#include <dbus/dbus-glib-lowlevel.h>
12 #define DBUS_DOCUMENT_INTERFACE_PATH  "/org/inkscape/document"
13         
14 #define TYPE_DOCUMENT_INTERFACE            (document_interface_get_type ())
15 #define DOCUMENT_INTERFACE(object)         (G_TYPE_CHECK_INSTANCE_CAST ((object), TYPE_DOCUMENT_INTERFACE, DocumentInterface))
16 #define DOCUMENT_INTERFACE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DOCUMENT_INTERFACE, DocumentInterfaceClass))
17 #define IS_DOCUMENT_INTERFACE(object)      (G_TYPE_CHECK_INSTANCE_TYPE ((object), TYPE_DOCUMENT_INTERFACE))
18 #define IS_DOCUMENT_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DOCUMENT_INTERFACE))
19 #define DOCUMENT_INTERFACE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DOCUMENT_INTERFACE, DocumentInterfaceClass))
21 G_BEGIN_DECLS
23 typedef struct _DocumentInterface DocumentInterface;
24 typedef struct _DocumentInterfaceClass DocumentInterfaceClass;
26 struct _DocumentInterface;
28 struct _DocumentInterfaceClass {
29         GObjectClass parent;
30 };
33 DocumentInterface *document_interface_new (void);
34 GType document_interface_get_type (void);
38 DocumentInterface * 
39 inkscape_desktop_init_dbus ();
41 //static
42 gboolean
43 inkscape_delete_all (DocumentInterface *doc, GError **error);
45 //static
46 gboolean
47 inkscape_call_verb (DocumentInterface *doc, const char * IN_verbid, GError **error);
49  
50 //static
51 gchar *
52 inkscape_rectangle (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error);
54 //static
55 char *
56 inkscape_ellipse (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_width, const gint IN_height, GError **error);
58 //static
59 char *
60 inkscape_polygon (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_radius, const gint IN_rotation, const gint IN_sides, GError **error);
62 //static
63 char *
64 inkscape_star (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r1, const gint IN_r2, const gdouble IN_arg1, const gdouble IN_arg2, const gint IN_sides, const gdouble IN_rounded, GError **error);
66 //static
67 char *
68 inkscape_spiral (DocumentInterface *doc, const gint IN_cx, const gint IN_cy, const gint IN_r, const gint IN_revolutions, GError **error);
70 //static
71 char *
72 inkscape_line (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, GError **error);
74 //static
75 gboolean
76 inkscape_text (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error);
78 //static
79 char *
80 inkscape_image (DocumentInterface *doc, const gint IN_x, const gint IN_y, const char * IN_text, GError **error);
82 //static
83 char *
84 inkscape_node (DocumentInterface *doc, const char * IN_svgtype, GError **error);
86 //static
87 gdouble
88 inkscape_document_get_width (DocumentInterface *doc, GError **error);
90 //static
91 gdouble
92 inkscape_document_get_height (DocumentInterface *doc, GError **error);
94 //static
95 char *
96 inkscape_document_get_css (DocumentInterface *doc, GError **error);
98 //static
99 gboolean
100 inkscape_document_set_css (DocumentInterface *doc, const char * IN_stylestring, GError **error);
102 //static
103 gboolean
104 inkscape_document_merge_css (DocumentInterface *doc, const char * IN_stylestring, GError **error);
106 //static
107 gboolean
108 inkscape_document_resize_to_fit_selection (DocumentInterface *doc, GError **error);
110 //static
111 gboolean
112 inkscape_set_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const char * IN_newval, GError **error);
114 //static
115 gboolean
116 inkscape_set_int_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gint IN_newval, GError **error);
118 //static
119 gboolean
120 inkscape_set_double_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, const gdouble IN_newval, GError **error);
122 //static
123 char *
124 inkscape_get_attribute (DocumentInterface *doc, const char * IN_shape, const char * IN_attribute, GError **error);
126 //static
127 gboolean
128 inkscape_move (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error);
130 //static
131 gboolean
132 inkscape_move_to (DocumentInterface *doc, const char * IN_shape, const gdouble IN_x, const gdouble IN_y, GError **error);
134 //static
135 gboolean
136 inkscape_object_to_path (DocumentInterface *doc, const char * IN_objectname, GError **error);
138 //static
139 char *
140 inkscape_get_path (DocumentInterface *doc, const char * IN_shape, GError **error);
142 //static
143 gboolean
144 inkscape_transform (DocumentInterface *doc, const char * IN_shape, const char * IN_transformstr, GError **error);
146 //static
147 char *
148 inkscape_get_css (DocumentInterface *doc, const char * IN_shape, GError **error);
150 //static
151 gboolean
152 inkscape_modify_css (DocumentInterface *doc, const char * IN_shape, const char * IN_cssattrib, const char * IN_newval, GError **error);
154 //static
155 gboolean
156 inkscape_inkscape_merge_css (DocumentInterface *doc, const char * IN_shape, const char * IN_stylestring, GError **error);
158 //static
159 gboolean
160 inkscape_set_color (DocumentInterface *doc, const char * IN_shape, const gint IN_red, const gint IN_green, const gint IN_blue, const gboolean IN_fill, GError **error);
162 //static
163 gboolean
164 inkscape_move_to_layer (DocumentInterface *doc, const char * IN_objectname, const char * IN_layername, GError **error);
166 //static
167 GArray*
168 inkscape_get_node_coordinates (DocumentInterface *doc, const char * IN_shape, GError **error);
170 //static
171 gboolean
172 inkscape_save (DocumentInterface *doc, GError **error);
174 //static
175 gboolean
176 inkscape_save_as (DocumentInterface *doc, const char * IN_pathname, GError **error);
178 //static
179 gboolean
180 inkscape_load (DocumentInterface *doc, const char * IN_pathname, GError **error);
182 //static
183 gboolean
184 inkscape_mark_as_unmodified (DocumentInterface *doc, GError **error);
186 //static
187 gboolean
188 inkscape_close (DocumentInterface *doc, GError **error);
190 //static
191 gboolean
192 inkscape_inkscape_exit (DocumentInterface *doc, GError **error);
194 //static
195 gboolean
196 inkscape_undo (DocumentInterface *doc, GError **error);
198 //static
199 gboolean
200 inkscape_redo (DocumentInterface *doc, GError **error);
202 //static
203 gboolean
204 inkscape_pause_updates (DocumentInterface *doc, GError **error);
206 //static
207 gboolean
208 inkscape_resume_updates (DocumentInterface *doc, GError **error);
210 //static
211 gboolean
212 inkscape_update (DocumentInterface *doc, GError **error);
214 //static
215 char **
216 inkscape_selection_get (DocumentInterface *doc, GError **error);
218 //static
219 gboolean
220 inkscape_selection_add (DocumentInterface *doc, const char * IN_name, GError **error);
222 //static
223 gboolean
224 inkscape_selection_add_list (DocumentInterface *doc, const char ** IN_name, GError **error);
226 //static
227 gboolean
228 inkscape_selection_set (DocumentInterface *doc, const char * IN_name, GError **error);
230 //static
231 gboolean
232 inkscape_selection_set_list (DocumentInterface *doc, const char ** IN_name, GError **error);
234 //static
235 gboolean
236 inkscape_selection_rotate (DocumentInterface *doc, const gint IN_angle, GError **error);
238 //static
239 gboolean
240 inkscape_selection_delete (DocumentInterface *doc, GError **error);
242 //static
243 gboolean
244 inkscape_selection_clear (DocumentInterface *doc, GError **error);
246 //static
247 gboolean
248 inkscape_select_all (DocumentInterface *doc, GError **error);
250 //static
251 gboolean
252 inkscape_select_all_in_all_layers (DocumentInterface *doc, GError **error);
254 //static
255 gboolean
256 inkscape_selection_box (DocumentInterface *doc, const gint IN_x, const gint IN_y, const gint IN_x2, const gint IN_y2, const gboolean IN_replace, GError **error);
258 //static
259 gboolean
260 inkscape_selection_invert (DocumentInterface *doc, GError **error);
262 //static
263 gboolean
264 inkscape_selection_group (DocumentInterface *doc, GError **error);
266 //static
267 gboolean
268 inkscape_selection_ungroup (DocumentInterface *doc, GError **error);
270 //static
271 gboolean
272 inkscape_selection_cut (DocumentInterface *doc, GError **error);
274 //static
275 gboolean
276 inkscape_selection_copy (DocumentInterface *doc, GError **error);
278 //static
279 gboolean
280 inkscape_selection_paste (DocumentInterface *doc, GError **error);
282 //static
283 gboolean
284 inkscape_selection_scale (DocumentInterface *doc, const gdouble IN_grow, GError **error);
286 //static
287 gboolean
288 inkscape_selection_move (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error);
290 //static
291 gboolean
292 inkscape_selection_move_to (DocumentInterface *doc, const gdouble IN_x, const gdouble IN_y, GError **error);
294 //static
295 gboolean
296 inkscape_selection_move_to_layer (DocumentInterface *doc, const char * IN_layer, GError **error);
298 //static
299 GArray *
300 inkscape_selection_get_center (DocumentInterface *doc, GError **error);
302 //static
303 gboolean
304 inkscape_selection_to_path (DocumentInterface *doc, GError **error);
306 //static
307 char *
308 inkscape_selection_combine (DocumentInterface *doc, const char * IN_type, GError **error);
310 //static
311 char **
312 inkscape_selection_divide (DocumentInterface *doc, GError **error);
314 //static
315 gboolean
316 inkscape_selection_change_level (DocumentInterface *doc, const char * IN_command, GError **error);
318 //static
319 char *
320 inkscape_layer_new (DocumentInterface *doc, GError **error);
322 //static
323 gboolean
324 inkscape_layer_set (DocumentInterface *doc, const char * IN_layer, GError **error);
326 //static
327 char **
328 inkscape_layer_get_all (DocumentInterface *doc, GError **error);
330 //static
331 gboolean
332 inkscape_layer_change_level (DocumentInterface *doc, const char * IN_command, GError **error);
334 //static
335 gboolean
336 inkscape_layer_next (DocumentInterface *doc, GError **error);
338 //static
339 gboolean
340 inkscape_layer_previous (DocumentInterface *doc, GError **error);
342 G_END_DECLS
344 #endif // INKSCAPE_EXTENSION_DOCUMENT_INTERFACE_H_