summaryrefslogtreecommitdiff
path: root/lib/dia_xml.h
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2009-01-31 23:20:57 +0000
committerHans Breuer <hans@src.gnome.org>2009-01-31 23:20:57 +0000
commitf0ab83cccd189770ec539d67135165357884264c (patch)
tree2fdeb47e9b915ba1944be07b951a369dd5a3f6d5 /lib/dia_xml.h
parent1fe94938449b5541e5c922c812987d6472da814d (diff)
downloaddia-f0ab83cccd189770ec539d67135165357884264c.tar.xz
implement data_(add_)bezpoint to serialize bezier points use it instead of
2009-01-31 Hans Breuer <hans@breuer.org> * lib/dia_xml.[ch] lib/libdia.def : implement data_(add_)bezpoint to serialize bezier points * lib/prop_geomtypes.c : use it instead of g_error() for an attempt to save a bezpoint array (not used by any object implementation yet) * plug-ins/python/diasvg_import.py : fixed typo svn path=/trunk/; revision=4247
Diffstat (limited to 'lib/dia_xml.h')
-rw-r--r--lib/dia_xml.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dia_xml.h b/lib/dia_xml.h
index 6c578dc8..feae6b52 100644
--- a/lib/dia_xml.h
+++ b/lib/dia_xml.h
@@ -56,7 +56,8 @@ typedef enum{
DATATYPE_POINT,
DATATYPE_RECTANGLE,
DATATYPE_STRING,
- DATATYPE_FONT
+ DATATYPE_FONT,
+ DATATYPE_BEZPOINT,
} DataType;
AttributeNode object_find_attribute(ObjectNode obj_node,
@@ -73,6 +74,7 @@ real data_real(DataNode data);
int data_boolean(DataNode data);
void data_color(DataNode data, Color *col);
void data_point(DataNode data, Point *point);
+void data_bezpoint(DataNode data, BezPoint *point);
void data_rectangle(DataNode data, Rectangle *rect);
char *data_string(DataNode data);
char *data_filename(DataNode data);
@@ -87,6 +89,7 @@ void data_add_real(AttributeNode attr, real data);
void data_add_boolean(AttributeNode attr, int data);
void data_add_color(AttributeNode attr, const Color *col);
void data_add_point(AttributeNode attr, const Point *point);
+void data_add_bezpoint(AttributeNode attr, const BezPoint *point);
void data_add_rectangle(AttributeNode attr, const Rectangle *rect);
void data_add_string(AttributeNode attr, const char *str);
void data_add_filename(AttributeNode attr, const char *str);