summaryrefslogtreecommitdiffstats
path: root/src/extension/script/inkscape_perl.pm.h
blob: b33b16045750c9670992df6bd2aa5f9e89126bf2 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/* ###################################################
## This file generated by quotefile.pl from
## inkscape_perl.pm on Thu Dec 16 15:35:48 2004
## DO NOT EDIT
################################################### */

static char *inkscape_module_script =
"# This file was automatically generated by SWIG\n"
"package inkscape_perl;\n"
"require Exporter;\n"
"@ISA = qw(Exporter);\n"
"package inkscape_perlc;\n"
"boot_inkscape_perl();\n"
"package inkscape_perl;\n"
"@EXPORT = qw( );\n"
"\n"
"# ---------- BASE METHODS -------------\n"
"\n"
"package inkscape_perl;\n"
"\n"
"sub TIEHASH {\n"
"    my ($classname,$obj) = @_;\n"
"    return bless $obj, $classname;\n"
"}\n"
"\n"
"sub CLEAR { }\n"
"\n"
"sub FIRSTKEY { }\n"
"\n"
"sub NEXTKEY { }\n"
"\n"
"sub FETCH {\n"
"    my ($self,$field) = @_;\n"
"    my $member_func = \"swig_${field}_get\";\n"
"    $self->$member_func();\n"
"}\n"
"\n"
"sub STORE {\n"
"    my ($self,$field,$newval) = @_;\n"
"    my $member_func = \"swig_${field}_set\";\n"
"    $self->$member_func($newval);\n"
"}\n"
"\n"
"sub this {\n"
"    my $ptr = shift;\n"
"    return tied(%$ptr);\n"
"}\n"
"\n"
"\n"
"# ------- FUNCTION WRAPPERS --------\n"
"\n"
"package inkscape_perl;\n"
"\n"
"*getInkscape = *inkscape_perlc::getInkscape;\n"
"\n"
"############# Class : inkscape_perl::Inkscape ##############\n"
"\n"
"package inkscape_perl::Inkscape;\n"
"@ISA = qw( inkscape_perl );\n"
"%OWNER = ();\n"
"%ITERATORS = ();\n"
"sub DESTROY {\n"
"    return unless $_[0]->isa('HASH');\n"
"    my $self = tied(%{$_[0]});\n"
"    return unless defined $self;\n"
"    delete $ITERATORS{$self};\n"
"    if (exists $OWNER{$self}) {\n"
"        inkscape_perlc::delete_Inkscape($self);\n"
"        delete $OWNER{$self};\n"
"    }\n"
"}\n"
"\n"
"*getDesktop = *inkscape_perlc::Inkscape_getDesktop;\n"
"*getDialogManager = *inkscape_perlc::Inkscape_getDialogManager;\n"
"sub DISOWN {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    delete $OWNER{$ptr};\n"
"}\n"
"\n"
"sub ACQUIRE {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    $OWNER{$ptr} = 1;\n"
"}\n"
"\n"
"\n"
"############# Class : inkscape_perl::DialogManager ##############\n"
"\n"
"package inkscape_perl::DialogManager;\n"
"@ISA = qw( inkscape_perl );\n"
"%OWNER = ();\n"
"%ITERATORS = ();\n"
"sub DESTROY {\n"
"    return unless $_[0]->isa('HASH');\n"
"    my $self = tied(%{$_[0]});\n"
"    return unless defined $self;\n"
"    delete $ITERATORS{$self};\n"
"    if (exists $OWNER{$self}) {\n"
"        inkscape_perlc::delete_DialogManager($self);\n"
"        delete $OWNER{$self};\n"
"    }\n"
"}\n"
"\n"
"*showAbout = *inkscape_perlc::DialogManager_showAbout;\n"
"sub DISOWN {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    delete $OWNER{$ptr};\n"
"}\n"
"\n"
"sub ACQUIRE {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    $OWNER{$ptr} = 1;\n"
"}\n"
"\n"
"\n"
"############# Class : inkscape_perl::Desktop ##############\n"
"\n"
"package inkscape_perl::Desktop;\n"
"@ISA = qw( inkscape_perl );\n"
"%OWNER = ();\n"
"%ITERATORS = ();\n"
"sub DESTROY {\n"
"    return unless $_[0]->isa('HASH');\n"
"    my $self = tied(%{$_[0]});\n"
"    return unless defined $self;\n"
"    delete $ITERATORS{$self};\n"
"    if (exists $OWNER{$self}) {\n"
"        inkscape_perlc::delete_Desktop($self);\n"
"        delete $OWNER{$self};\n"
"    }\n"
"}\n"
"\n"
"*getDocument = *inkscape_perlc::Desktop_getDocument;\n"
"sub DISOWN {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    delete $OWNER{$ptr};\n"
"}\n"
"\n"
"sub ACQUIRE {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    $OWNER{$ptr} = 1;\n"
"}\n"
"\n"
"\n"
"############# Class : inkscape_perl::Document ##############\n"
"\n"
"package inkscape_perl::Document;\n"
"@ISA = qw( inkscape_perl );\n"
"%OWNER = ();\n"
"%ITERATORS = ();\n"
"sub DESTROY {\n"
"    return unless $_[0]->isa('HASH');\n"
"    my $self = tied(%{$_[0]});\n"
"    return unless defined $self;\n"
"    delete $ITERATORS{$self};\n"
"    if (exists $OWNER{$self}) {\n"
"        inkscape_perlc::delete_Document($self);\n"
"        delete $OWNER{$self};\n"
"    }\n"
"}\n"
"\n"
"*hello = *inkscape_perlc::Document_hello;\n"
"sub DISOWN {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    delete $OWNER{$ptr};\n"
"}\n"
"\n"
"sub ACQUIRE {\n"
"    my $self = shift;\n"
"    my $ptr = tied(%$self);\n"
"    $OWNER{$ptr} = 1;\n"
"}\n"
"\n"
"\n"
"# ------- VARIABLE STUBS --------\n"
"\n"
"package inkscape_perl;\n"
"\n"
"1;\n"
"";