diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-07-22 12:05:49 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-07-22 12:05:49 +0000 |
| commit | 1da87c36ad655ddcfced4becb7972747fcbb89f6 (patch) | |
| tree | 9bf3726fda21670b37821f76d197ba5fb63b2553 /src/sp-script.h | |
| parent | slightly changed svgfonts example (diff) | |
| download | inkscape-1da87c36ad655ddcfced4becb7972747fcbb89f6.tar.gz inkscape-1da87c36ad655ddcfced4becb7972747fcbb89f6.zip | |
initial handling of <script> tag
Some people develope SVG files that contain javascript. We should not
erase their script nodes!
Also, we could develop a scripting IDE in inkscape. Look at
http://wiki.inkscape.org/wiki/index.php/BlueprintScriptingIDE
(bzr r6391)
Diffstat (limited to 'src/sp-script.h')
| -rw-r--r-- | src/sp-script.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/sp-script.h b/src/sp-script.h new file mode 100644 index 000000000..8a48f9b92 --- /dev/null +++ b/src/sp-script.h @@ -0,0 +1,45 @@ +#ifndef __SP_SCRIPT_H__ +#define __SP_SCRIPT_H__ + +/* + * SVG <script> implementation + * + * Author: + * Felipe C. da S. Sanches <felipe.sanches@gmail.com> + * + * Copyright (C) 2008 Author + * + * Released under GNU GPL version 2 or later, read the file 'COPYING' for more information + */ + +#include "sp-item.h" + +#define SP_TYPE_SCRIPT (sp_script_get_type()) +#define SP_SCRIPT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SP_TYPE_SCRIPT, SPScript)) +#define SP_SCRIPT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SP_TYPE_SCRIPT, SPScriptClass)) +#define SP_IS_SCRIPT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), SP_TYPE_SCRIPT)) +#define SP_IS_SCRIPT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SP_TYPE_SCRIPT)) + +/* SPScript */ + +struct SPScript : public SPObject { +}; + +struct SPScriptClass { + SPObjectClass parent_class; +}; + +GType sp_script_get_type(); + +#endif + +/* + 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 : |
