blob: 655bc3caf1146d918fe61e609462e7dc18001ede (
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
|
#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 "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. */
Geom::Matrix c2p;
gchar *onload;
/**
* 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 :
|