summaryrefslogtreecommitdiffstats
path: root/src/sp-root.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/sp-root.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/sp-root.h')
-rw-r--r--src/sp-root.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/sp-root.h b/src/sp-root.h
new file mode 100644
index 000000000..8a6a4ed57
--- /dev/null
+++ b/src/sp-root.h
@@ -0,0 +1,81 @@
+#ifndef SP_ROOT_H_SEEN
+#define SP_ROOT_H_SEEN
+
+/** \file
+ * SPRoot: SVG \<svg\> implementation.
+ */
+/*
+ * Authors:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 1999-2002 Lauris Kaplinski
+ * Copyright (C) 2000-2001 Ximian, Inc.
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#define SP_TYPE_ROOT (sp_root_get_type())
+#define SP_ROOT(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SP_TYPE_ROOT, SPRoot))
+#define SP_ROOT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SP_TYPE_ROOT, SPRootClass))
+#define SP_IS_ROOT(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SP_TYPE_ROOT))
+#define SP_IS_ROOT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE((k), SP_TYPE_ROOT))
+
+#include <libnr/nr-matrix.h>
+#include "version.h"
+#include "svg/svg-length.h"
+#include "enums.h"
+#include "sp-item-group.h"
+
+/** \<svg\> element */
+struct SPRoot : public SPGroup {
+ struct {
+ Inkscape::Version svg;
+ Inkscape::Version sodipodi;
+ Inkscape::Version inkscape;
+ } version, original;
+
+ SVGLength x;
+ SVGLength y;
+ SVGLength width;
+ SVGLength height;
+
+ /* viewBox; */
+ unsigned int viewBox_set : 1;
+ NRRect viewBox;
+
+ /* preserveAspectRatio */
+ unsigned int aspect_set : 1;
+ unsigned int aspect_align : 4;
+ unsigned int aspect_clip : 1;
+
+ /** Child to parent additional transform. */
+ NR::Matrix c2p;
+
+ /**
+ * Primary \<defs\> element where we put new defs (patterns, gradients etc.).
+ *
+ * At the time of writing, this is chosen as the first \<defs\> child of
+ * this \<svg\> element: see writers of this member in sp-root.cpp.
+ */
+ SPDefs *defs;
+};
+
+struct SPRootClass {
+ SPGroupClass parent_class;
+};
+
+GType sp_root_get_type();
+
+
+#endif /* !SP_ROOT_H_SEEN */
+
+/*
+ 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 :