1 /* Dia -- an diagram creation/manipulation program
2  * Copyright (C) 1998 Alexander Larsson
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 #ifdef HAVE_CONFIG_H
20 #include <config.h>
21 #endif
22 
23 #include "object.h"
24 #include "sheet.h"
25 #include "intl.h"
26 #include "plug-ins.h"
27 
28 extern DiaObjectType *_arc_type;
29 extern DiaObjectType *_box_type;
30 extern DiaObjectType *_ellipse_type;
31 extern DiaObjectType *_line_type;
32 extern DiaObjectType *_zigzagline_type;
33 extern DiaObjectType *_polyline_type;
34 extern DiaObjectType *_bezierline_type;
35 extern DiaObjectType *_textobj_type;
36 extern DiaObjectType *_image_type;
37 extern DiaObjectType *_outline_type;
38 extern DiaObjectType *_polygon_type;
39 extern DiaObjectType *_beziergon_type;
40 
41 DIA_PLUGIN_CHECK_INIT
42 
43 PluginInitResult
dia_plugin_init(PluginInfo * info)44 dia_plugin_init(PluginInfo *info)
45 {
46   if (!dia_plugin_info_init(info, "Standard", _("Standard objects"),
47 			    NULL, NULL))
48     return DIA_PLUGIN_INIT_ERROR;
49 
50   object_register_type(_arc_type);
51   object_register_type(_box_type);
52   object_register_type(_ellipse_type);
53   object_register_type(_line_type);
54   object_register_type(_polyline_type);
55   object_register_type(_zigzagline_type);
56   object_register_type(_bezierline_type);
57   object_register_type(_textobj_type);
58   object_register_type(_image_type);
59 #ifdef HAVE_CAIRO
60   object_register_type(_outline_type);
61 #endif
62   object_register_type(_polygon_type);
63   object_register_type(_beziergon_type);
64 
65   return DIA_PLUGIN_INIT_OK;
66 }
67 
68