From ffc3caac52be3af14ab168ba63b3adeefe5d08ec Mon Sep 17 00:00:00 2001 From: Christoffer Holmstedt Date: Mon, 24 Jun 2013 08:28:46 +0200 Subject: Changed document properties - metadata tooltips to match the definition of dublin core terms. Fixed bugs: - https://launchpad.net/bugs/835849 (bzr r12387.2.1) --- src/rdf.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/rdf.cpp b/src/rdf.cpp index 017de42c1..1265928ea 100644 --- a/src/rdf.cpp +++ b/src/rdf.cpp @@ -230,56 +230,56 @@ struct rdf_license_t rdf_licenses [] = { // the localization functions when you use them! struct rdf_work_entity_t rdf_work_entities [] = { { "title", N_("Title:"), "dc:title", RDF_CONTENT, - N_("Name by which this document is formally known"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("A name given to the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "date", N_("Date:"), "dc:date", RDF_CONTENT, - N_("Date associated with the creation of this document (YYYY-MM-DD)"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("A point or period of time associated with an event in the lifecycle of the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "format", N_("Format:"), "dc:format", RDF_CONTENT, - N_("The physical or digital manifestation of this document (MIME type)"), RDF_FORMAT_LINE, RDF_EDIT_HARDCODED, + N_("The file format, physical medium, or dimensions of the resource"), RDF_FORMAT_LINE, RDF_EDIT_HARDCODED, }, { "type", N_("Type:"), "dc:type", RDF_RESOURCE, - N_("Type of document (DCMI Type)"), RDF_FORMAT_LINE, RDF_EDIT_HARDCODED, + N_("The nature or genre of the resource"), RDF_FORMAT_LINE, RDF_EDIT_HARDCODED, }, { "creator", N_("Creator:"), "dc:creator", RDF_AGENT, - N_("Name of entity primarily responsible for making the content of this document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("An entity primarily responsible for making the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "rights", N_("Rights:"), "dc:rights", RDF_AGENT, - N_("Name of entity with rights to the Intellectual Property of this document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("Information about rights held in and over the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "publisher", N_("Publisher:"), "dc:publisher", RDF_AGENT, - N_("Name of entity responsible for making this document available"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("An entity responsible for making the resource available"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "identifier", N_("Identifier:"), "dc:identifier", RDF_CONTENT, - N_("Unique URI to reference this document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("An unambiguous reference to the resource within a given context"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "source", N_("Source:"), "dc:source", RDF_CONTENT, - N_("Unique URI to reference the source of this document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("A related resource from which the described resource is derived"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "relation", N_("Relation:"), "dc:relation", RDF_CONTENT, - N_("Unique URI to a related document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("A related resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "language", N_("Language:"), "dc:language", RDF_CONTENT, - N_("Two-letter language tag with optional subtags for the language of this document (e.g. 'en-GB')"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("A language of the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "subject", N_("Keywords:"), "dc:subject", RDF_BAG, - N_("The topic of this document as comma-separated key words, phrases, or classifications"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("The topic of the resource"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, // TRANSLATORS: "Coverage": the spatial or temporal characteristics of the content. // For info, see Appendix D of http://www.w3.org/TR/1998/WD-rdf-schema-19980409/ { "coverage", N_("Coverage:"), "dc:coverage", RDF_CONTENT, - N_("Extent or scope of this document"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, + N_("The spatial or temporal topic of the resource, the spatial applicability of the resource, or the jurisdiction under which the resource is relevant"), RDF_FORMAT_LINE, RDF_EDIT_GENERIC, }, { "description", N_("Description:"), "dc:description", RDF_CONTENT, - N_("A short account of the content of this document"), RDF_FORMAT_MULTILINE, RDF_EDIT_GENERIC, + N_("An account of the resource"), RDF_FORMAT_MULTILINE, RDF_EDIT_GENERIC, }, // FIXME: need to handle 1 agent per line of input { "contributor", N_("Contributors:"), "dc:contributor", RDF_AGENT, - N_("Names of entities responsible for making contributions to the content of this document"), RDF_FORMAT_MULTILINE, RDF_EDIT_GENERIC, + N_("An entity responsible for making contributions to the resource"), RDF_FORMAT_MULTILINE, RDF_EDIT_GENERIC, }, // TRANSLATORS: URL to a page that defines the license for the document @@ -292,7 +292,7 @@ struct rdf_work_entity_t rdf_work_entities [] = { { "license_fragment", N_("Fragment:"), "License", RDF_XML, N_("XML fragment for the RDF 'License' section"), RDF_FORMAT_MULTILINE, RDF_EDIT_SPECIAL, }, - + { NULL, NULL, NULL, RDF_CONTENT, NULL, RDF_FORMAT_LINE, RDF_EDIT_HARDCODED, } -- cgit v1.2.3 From 5dfee0e64ecd76e42e15e4538dc742da19528997 Mon Sep 17 00:00:00 2001 From: Christoffer Holmstedt Date: Tue, 16 Jul 2013 10:13:07 +0200 Subject: Merging patch from Peter Liljenberg. License comparison is now done by comparing license URI and nothing else. (bzr r12419.1.1) --- src/rdf.cpp | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------ src/rdf.h | 2 +- 2 files changed, 86 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/rdf.cpp b/src/rdf.cpp index 72aea4898..4094ece5e 100644 --- a/src/rdf.cpp +++ b/src/rdf.cpp @@ -225,6 +225,9 @@ struct rdf_license_t rdf_licenses [] = { #define XML_TAG_NAME_RDF "rdf:RDF" #define XML_TAG_NAME_WORK "cc:Work" #define XML_TAG_NAME_LICENSE "cc:License" +// Note the lowercase L! +#define XML_TAG_NAME_LICENSE_PROP "cc:license" + // Remember when using the "title" and "tip" elements to pass them through // the localization functions when you use them! @@ -338,7 +341,7 @@ public: struct rdf_work_entity_t const & entity, gchar const * text ); - static struct rdf_license_t *getLicense(SPDocument const * document); + static struct rdf_license_t *getLicense(SPDocument *document); static void setLicense(SPDocument * doc, struct rdf_license_t const * license); }; @@ -1028,26 +1031,95 @@ rdf_match_license(Inkscape::XML::Node const *repr, struct rdf_license_t const *l } // Public API: -struct rdf_license_t *rdf_get_license(SPDocument const * document) +struct rdf_license_t *rdf_get_license(SPDocument *document) { return RDFImpl::getLicense(document); } -struct rdf_license_t *RDFImpl::getLicense(SPDocument const *document) +struct rdf_license_t *RDFImpl::getLicense(SPDocument *document) { + // Base license lookup on the URI of cc:license rather than the license + // properties, per instructions from the ccREL gurus. + // (Fixes https://bugs.launchpad.net/inkscape/+bug/372427) + + struct rdf_work_entity_t *entity = rdf_find_entity("license_uri"); + if (entity == NULL) { + g_critical("Can't find internal entity structure for 'license_uri'"); + return NULL; + } + + const gchar *uri = getWorkEntity(document, *entity); + struct rdf_license_t * license_by_uri = NULL; + + if (uri != NULL) { + for (struct rdf_license_t * license = rdf_licenses; license->name; license++) { + if (g_strcmp0(uri, license->uri) == 0) { + license_by_uri = license; + break; + } + } + } + + // To improve backward compatibility, the old license matching code is + // kept as fallback and to warn about and fix discrepancies. + + // TODO: would it be better to do this code on document load? Is + // sp_metadata_build() then the right place to put the call to sort out + // any RDF mess? + + struct rdf_license_t * license_by_properties = NULL; + Inkscape::XML::Node const *repr = getXmlRepr( document, XML_TAG_NAME_LICENSE ); if (repr) { for ( struct rdf_license_t * license = rdf_licenses; license->name; license++ ) { if ( rdf_match_license( repr, license ) ) { - return license; + license_by_properties = license; + break; } } } -#ifdef DEBUG_MATCH - else { - printf("no license XML\n"); + + if (license_by_uri != NULL && license_by_properties != NULL) { + // Both property and structure, use property + if (license_by_uri != license_by_properties) { + // TODO: this should be a user-visible warning, but how? + g_warning("Mismatch between %s and %s metadata:\n" + "%s value URI: %s (using this one!)\n" + "%s derived URI: %s", + XML_TAG_NAME_LICENSE_PROP, + XML_TAG_NAME_LICENSE, + XML_TAG_NAME_LICENSE_PROP, + license_by_uri->uri, + XML_TAG_NAME_LICENSE, + license_by_properties->uri); + } + + // Reset license structure to match so the document is consistent + // (and this will also silence the warning above on repeated calls). + setLicense(document, license_by_uri); + + return license_by_uri; } -#endif + else if (license_by_uri != NULL) { + // Only cc:license property, set structure for backward compatiblity + setLicense(document, license_by_uri); + + return license_by_uri; + } + else if (license_by_properties != NULL) { + // Only cc:License structure + // TODO: this could be a user-visible warning too + g_warning("No %s metadata found, derived license URI from %s: %s", + XML_TAG_NAME_LICENSE_PROP, XML_TAG_NAME_LICENSE, + license_by_properties->uri); + + // Set license property to match + setWorkEntity(document, *entity, license_by_properties->uri); + + return license_by_properties; + } + + // No license info at all return NULL; } @@ -1059,6 +1131,11 @@ void rdf_set_license(SPDocument * doc, struct rdf_license_t const * license) void RDFImpl::setLicense(SPDocument * doc, struct rdf_license_t const * license) { + // When basing license check on only the license URI (see fix for + // https://bugs.launchpad.net/inkscape/+bug/372427 above) we should + // really drop this license section, but keep writing it for a while for + // compatibility with older versions. + // drop old license section Inkscape::XML::Node * repr = getXmlRepr( doc, XML_TAG_NAME_LICENSE ); if (repr) { diff --git a/src/rdf.h b/src/rdf.h index aa742bb62..3dde1cb48 100644 --- a/src/rdf.h +++ b/src/rdf.h @@ -121,7 +121,7 @@ unsigned int rdf_set_work_entity(SPDocument * doc, * \return A pointer to the static RDF license structure * */ -struct rdf_license_t * rdf_get_license(SPDocument const * doc); +struct rdf_license_t * rdf_get_license(SPDocument *doc); /** * \brief Stores an RDF/License XML in the document XML -- cgit v1.2.3 From f5023f704fb05b25d5fa6c78e0faefd93ef044ae Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Wed, 17 Jul 2013 12:42:40 +0100 Subject: Fix remaining g_type_init deprecation issues (bzr r12421) --- src/main.cpp | 3 +++ src/test-helpers.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 4e2f2fd2b..d425b88bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1283,12 +1283,15 @@ int sp_main_console(int argc, char const **argv) { /* We are started in text mode */ +#if !GLIB_CHECK_VERSION(2,36,0) /* Do this g_type_init(), so that we can use Xft/Freetype2 (Pango) * in a non-Gtk environment. Used in libnrtype's * FontInstance.cpp and FontFactory.cpp. * http://mail.gnome.org/archives/gtk-list/2003-December/msg00063.html */ g_type_init(); +#endif + char **argv2 = const_cast(argv); gtk_init_check( &argc, &argv2 ); //setlocale(LC_ALL, ""); diff --git a/src/test-helpers.h b/src/test-helpers.h index bda48599e..001356e65 100644 --- a/src/test-helpers.h +++ b/src/test-helpers.h @@ -23,7 +23,10 @@ T* createSuiteAndDocument( void (*fun)(T*&) ) { T* suite = 0; +#if !GLIB_CHECK_VERSION(2,36,0) g_type_init(); +#endif + Inkscape::GC::init(); if ( !inkscape_get_instance() ) { -- cgit v1.2.3 From 0ae1b56c3420006295bdd1cafe3b0fc57f2f89be Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Wed, 17 Jul 2013 13:16:27 +0100 Subject: Fix ordering of verbs (bzr r12423) --- src/verbs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/verbs.cpp b/src/verbs.cpp index d0396155c..a085e841f 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -2452,10 +2452,10 @@ Verb *Verb::_base_verbs[] = { N_("Select previous object or node"), NULL), new EditVerb(SP_VERB_EDIT_DESELECT, "EditDeselect", N_("D_eselect"), N_("Deselect any selected objects or nodes"), INKSCAPE_ICON("edit-select-none")), - new EditVerb(SP_VERB_EDIT_GUIDES_AROUND_PAGE, "EditGuidesAroundPage", N_("Create _Guides Around the Page"), - N_("Create four guides aligned with the page borders"), NULL), new EditVerb(SP_VERB_EDIT_DELETE_ALL_GUIDES, "EditRemoveAllGuides", N_("Delete All Guides"), N_("Create four guides aligned with the page borders"), NULL), + new EditVerb(SP_VERB_EDIT_GUIDES_AROUND_PAGE, "EditGuidesAroundPage", N_("Create _Guides Around the Page"), + N_("Create four guides aligned with the page borders"), NULL), new EditVerb(SP_VERB_EDIT_NEXT_PATHEFFECT_PARAMETER, "EditNextPathEffectParameter", N_("Next path effect parameter"), N_("Show next editable path effect parameter"), INKSCAPE_ICON("path-effect-parameter-next")), -- cgit v1.2.3 From eb7b26af09df66f30ba50058e9e4a583028cd81a Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 12:54:01 +0200 Subject: Remove the disabled script dialog and the nonfunctional Java binding (bzr r12428) --- src/CMakeLists.txt | 1 - src/Makefile.am | 6 - src/bind/CMakeLists.txt | 18 - src/bind/DomStub.java | 299 --- src/bind/Makefile_insert | 11 - src/bind/dobinding.cpp | 251 --- src/bind/java/org/inkscape/cmn/BaseInterface.java | 85 - src/bind/java/org/inkscape/cmn/BaseObject.java | 81 - src/bind/java/org/inkscape/cmn/Gateway.java | 346 ---- src/bind/java/org/inkscape/cmn/Resource.java | 66 - src/bind/java/org/inkscape/dom/AttrImpl.java | 58 - .../java/org/inkscape/dom/CDATASectionImpl.java | 37 - .../java/org/inkscape/dom/CharacterDataImpl.java | 70 - src/bind/java/org/inkscape/dom/CommentImpl.java | 37 - src/bind/java/org/inkscape/dom/DOMBase.java | 72 - .../org/inkscape/dom/DOMConfigurationImpl.java | 53 - .../java/org/inkscape/dom/DOMErrorHandlerImpl.java | 38 - src/bind/java/org/inkscape/dom/DOMErrorImpl.java | 48 - .../org/inkscape/dom/DOMImplementationImpl.java | 60 - .../inkscape/dom/DOMImplementationListImpl.java | 43 - .../inkscape/dom/DOMImplementationSourceImpl.java | 41 - src/bind/java/org/inkscape/dom/DOMLocatorImpl.java | 48 - .../java/org/inkscape/dom/DOMStringListImpl.java | 43 - .../org/inkscape/dom/DocumentFragmentImpl.java | 36 - src/bind/java/org/inkscape/dom/DocumentImpl.java | 138 -- .../java/org/inkscape/dom/DocumentTypeImpl.java | 52 - src/bind/java/org/inkscape/dom/ElementImpl.java | 111 -- src/bind/java/org/inkscape/dom/EntityImpl.java | 49 - .../java/org/inkscape/dom/EntityReferenceImpl.java | 37 - src/bind/java/org/inkscape/dom/NameListImpl.java | 46 - .../java/org/inkscape/dom/NamedNodeMapImpl.java | 65 - src/bind/java/org/inkscape/dom/NodeImpl.java | 139 -- src/bind/java/org/inkscape/dom/NodeListImpl.java | 41 - src/bind/java/org/inkscape/dom/NotationImpl.java | 41 - .../inkscape/dom/ProcessingInstructionImpl.java | 46 - src/bind/java/org/inkscape/dom/TextImpl.java | 52 - src/bind/java/org/inkscape/dom/TypeInfoImpl.java | 44 - .../java/org/inkscape/dom/UserDataHandlerImpl.java | 45 - .../org/inkscape/dom/css/CSS2PropertiesImpl.java | 527 ------ .../org/inkscape/dom/css/CSSCharsetRuleImpl.java | 44 - .../org/inkscape/dom/css/CSSFontFaceRuleImpl.java | 43 - .../org/inkscape/dom/css/CSSImportRuleImpl.java | 48 - .../org/inkscape/dom/css/CSSMediaRuleImpl.java | 53 - .../java/org/inkscape/dom/css/CSSPageRuleImpl.java | 46 - .../inkscape/dom/css/CSSPrimitiveValueImpl.java | 68 - .../java/org/inkscape/dom/css/CSSRuleImpl.java | 51 - .../java/org/inkscape/dom/css/CSSRuleListImpl.java | 44 - .../inkscape/dom/css/CSSStyleDeclarationImpl.java | 66 - .../org/inkscape/dom/css/CSSStyleRuleImpl.java | 47 - .../org/inkscape/dom/css/CSSStyleSheetImpl.java | 55 - .../org/inkscape/dom/css/CSSUnknownRuleImpl.java | 37 - .../java/org/inkscape/dom/css/CSSValueImpl.java | 46 - .../org/inkscape/dom/css/CSSValueListImpl.java | 45 - .../java/org/inkscape/dom/css/CounterImpl.java | 44 - .../inkscape/dom/css/DOMImplementationCSSImpl.java | 47 - .../java/org/inkscape/dom/css/DocumentCSSImpl.java | 47 - .../dom/css/ElementCSSInlineStyleImpl.java | 43 - .../java/org/inkscape/dom/css/RGBColorImpl.java | 45 - src/bind/java/org/inkscape/dom/css/RectImpl.java | 48 - .../java/org/inkscape/dom/css/ViewCSSImpl.java | 46 - .../org/inkscape/dom/events/CustomEventImpl.java | 46 - .../org/inkscape/dom/events/DocumentEventImpl.java | 48 - .../java/org/inkscape/dom/events/EventImpl.java | 74 - .../org/inkscape/dom/events/EventListenerImpl.java | 41 - .../org/inkscape/dom/events/EventTargetImpl.java | 71 - .../org/inkscape/dom/events/KeyboardEventImpl.java | 70 - .../org/inkscape/dom/events/MouseEventImpl.java | 96 - .../org/inkscape/dom/events/MutationEventImpl.java | 67 - .../inkscape/dom/events/MutationNameEventImpl.java | 58 - .../org/inkscape/dom/events/TextEventImpl.java | 55 - .../java/org/inkscape/dom/events/UIEventImpl.java | 56 - .../smil/ElementExclusiveTimeContainerImpl.java | 50 - .../org/inkscape/dom/smil/ElementLayoutImpl.java | 50 - .../dom/smil/ElementParallelTimeContainerImpl.java | 47 - .../smil/ElementSequentialTimeContainerImpl.java | 37 - .../inkscape/dom/smil/ElementSyncBehaviorImpl.java | 53 - .../dom/smil/ElementTargetAttributesImpl.java | 46 - .../org/inkscape/dom/smil/ElementTestImpl.java | 73 - .../dom/smil/ElementTimeContainerImpl.java | 43 - .../inkscape/dom/smil/ElementTimeControlImpl.java | 45 - .../org/inkscape/dom/smil/ElementTimeImpl.java | 95 - .../dom/smil/ElementTimeManipulationImpl.java | 60 - .../dom/smil/SMILAnimateColorElementImpl.java | 37 - .../inkscape/dom/smil/SMILAnimateElementImpl.java | 37 - .../dom/smil/SMILAnimateMotionElementImpl.java | 46 - .../org/inkscape/dom/smil/SMILAnimationImpl.java | 153 -- .../org/inkscape/dom/smil/SMILDocumentImpl.java | 103 - .../org/inkscape/dom/smil/SMILElementImpl.java | 42 - .../inkscape/dom/smil/SMILLayoutElementImpl.java | 43 - .../inkscape/dom/smil/SMILMediaElementImpl.java | 152 -- .../org/inkscape/dom/smil/SMILRefElementImpl.java | 37 - .../inkscape/dom/smil/SMILRegionElementImpl.java | 76 - .../inkscape/dom/smil/SMILRegionInterfaceImpl.java | 42 - .../dom/smil/SMILRootLayoutElementImpl.java | 67 - .../org/inkscape/dom/smil/SMILSetElementImpl.java | 122 -- .../inkscape/dom/smil/SMILSwitchElementImpl.java | 40 - .../dom/smil/SMILTopLayoutElementImpl.java | 66 - .../java/org/inkscape/dom/smil/TimeEventImpl.java | 49 - src/bind/java/org/inkscape/dom/smil/TimeImpl.java | 70 - .../java/org/inkscape/dom/smil/TimeListImpl.java | 43 - .../dom/stylesheets/DocumentStyleImpl.java | 43 - .../inkscape/dom/stylesheets/LinkStyleImpl.java | 41 - .../inkscape/dom/stylesheets/MediaListImpl.java | 53 - .../inkscape/dom/stylesheets/StyleSheetImpl.java | 56 - .../dom/stylesheets/StyleSheetListImpl.java | 42 - .../org/inkscape/dom/svg/GetSVGDocumentImpl.java | 43 - .../java/org/inkscape/dom/svg/SVGAElementImpl.java | 176 -- .../dom/svg/SVGAltGlyphDefElementImpl.java | 36 - .../inkscape/dom/svg/SVGAltGlyphElementImpl.java | 60 - .../dom/svg/SVGAltGlyphItemElementImpl.java | 36 - .../java/org/inkscape/dom/svg/SVGAngleImpl.java | 50 - .../dom/svg/SVGAnimateColorElementImpl.java | 36 - .../inkscape/dom/svg/SVGAnimateElementImpl.java | 35 - .../dom/svg/SVGAnimateMotionElementImpl.java | 35 - .../dom/svg/SVGAnimateTransformElementImpl.java | 35 - .../org/inkscape/dom/svg/SVGAnimatedAngleImpl.java | 43 - .../inkscape/dom/svg/SVGAnimatedBooleanImpl.java | 46 - .../dom/svg/SVGAnimatedEnumerationImpl.java | 45 - .../inkscape/dom/svg/SVGAnimatedIntegerImpl.java | 46 - .../inkscape/dom/svg/SVGAnimatedLengthImpl.java | 44 - .../dom/svg/SVGAnimatedLengthListImpl.java | 42 - .../inkscape/dom/svg/SVGAnimatedNumberImpl.java | 45 - .../dom/svg/SVGAnimatedNumberListImpl.java | 43 - .../inkscape/dom/svg/SVGAnimatedPathDataImpl.java | 46 - .../inkscape/dom/svg/SVGAnimatedPointsImpl.java | 43 - .../svg/SVGAnimatedPreserveAspectRatioImpl.java | 39 - .../org/inkscape/dom/svg/SVGAnimatedRectImpl.java | 38 - .../inkscape/dom/svg/SVGAnimatedStringImpl.java | 39 - .../dom/svg/SVGAnimatedTransformListImpl.java | 39 - .../inkscape/dom/svg/SVGAnimationElementImpl.java | 132 -- .../java/org/inkscape/dom/svg/SVGCSSRuleImpl.java | 39 - .../org/inkscape/dom/svg/SVGCircleElementImpl.java | 172 -- .../inkscape/dom/svg/SVGClipPathElementImpl.java | 134 -- .../java/org/inkscape/dom/svg/SVGColorImpl.java | 54 - .../dom/svg/SVGColorProfileElementImpl.java | 68 - .../inkscape/dom/svg/SVGColorProfileRuleImpl.java | 53 - .../SVGComponentTransferFunctionElementImpl.java | 50 - .../org/inkscape/dom/svg/SVGCursorElementImpl.java | 84 - .../dom/svg/SVGDefinitionSrcElementImpl.java | 36 - .../org/inkscape/dom/svg/SVGDefsElementImpl.java | 165 -- .../org/inkscape/dom/svg/SVGDescElementImpl.java | 82 - .../java/org/inkscape/dom/svg/SVGDocumentImpl.java | 65 - .../java/org/inkscape/dom/svg/SVGElementImpl.java | 53 - .../inkscape/dom/svg/SVGElementInstanceImpl.java | 52 - .../dom/svg/SVGElementInstanceListImpl.java | 42 - .../inkscape/dom/svg/SVGEllipseElementImpl.java | 172 -- .../java/org/inkscape/dom/svg/SVGEventImpl.java | 40 - .../dom/svg/SVGExternalResourcesRequiredImpl.java | 44 - .../inkscape/dom/svg/SVGFEBlendElementImpl.java | 84 - .../dom/svg/SVGFEColorMatrixElementImpl.java | 84 - .../dom/svg/SVGFEComponentTransferElementImpl.java | 79 - .../dom/svg/SVGFECompositeElementImpl.java | 93 - .../dom/svg/SVGFEConvolveMatrixElementImpl.java | 99 - .../dom/svg/SVGFEDiffuseLightingElementImpl.java | 86 - .../dom/svg/SVGFEDisplacementMapElementImpl.java | 81 - .../dom/svg/SVGFEDistantLightElementImpl.java | 45 - .../inkscape/dom/svg/SVGFEFloodElementImpl.java | 79 - .../inkscape/dom/svg/SVGFEFuncAElementImpl.java | 39 - .../inkscape/dom/svg/SVGFEFuncBElementImpl.java | 39 - .../inkscape/dom/svg/SVGFEFuncGElementImpl.java | 39 - .../inkscape/dom/svg/SVGFEFuncRElementImpl.java | 40 - .../dom/svg/SVGFEGaussianBlurElementImpl.java | 85 - .../inkscape/dom/svg/SVGFEImageElementImpl.java | 116 -- .../inkscape/dom/svg/SVGFEMergeElementImpl.java | 74 - .../dom/svg/SVGFEMergeNodeElementImpl.java | 44 - .../dom/svg/SVGFEMorphologyElementImpl.java | 78 - .../inkscape/dom/svg/SVGFEOffsetElementImpl.java | 79 - .../dom/svg/SVGFEPointLightElementImpl.java | 44 - .../dom/svg/SVGFESpecularLightingElementImpl.java | 81 - .../dom/svg/SVGFESpotLightElementImpl.java | 49 - .../org/inkscape/dom/svg/SVGFETileElementImpl.java | 75 - .../dom/svg/SVGFETurbulenceElementImpl.java | 85 - .../org/inkscape/dom/svg/SVGFilterElementImpl.java | 106 -- .../SVGFilterPrimitiveStandardAttributesImpl.java | 47 - .../org/inkscape/dom/svg/SVGFitToViewBoxImpl.java | 46 - .../org/inkscape/dom/svg/SVGFontElementImpl.java | 69 - .../inkscape/dom/svg/SVGFontFaceElementImpl.java | 39 - .../dom/svg/SVGFontFaceFormatElementImpl.java | 38 - .../dom/svg/SVGFontFaceNameElementImpl.java | 39 - .../dom/svg/SVGFontFaceSrcElementImpl.java | 38 - .../dom/svg/SVGFontFaceUriElementImpl.java | 38 - .../dom/svg/SVGForeignObjectElementImpl.java | 169 -- .../java/org/inkscape/dom/svg/SVGGElementImpl.java | 166 -- .../org/inkscape/dom/svg/SVGGlyphElementImpl.java | 64 - .../inkscape/dom/svg/SVGGlyphRefElementImpl.java | 90 - .../inkscape/dom/svg/SVGGradientElementImpl.java | 87 - .../org/inkscape/dom/svg/SVGHKernElementImpl.java | 38 - .../java/org/inkscape/dom/svg/SVGICCColorImpl.java | 44 - .../org/inkscape/dom/svg/SVGImageElementImpl.java | 178 -- .../org/inkscape/dom/svg/SVGLangSpaceImpl.java | 47 - .../java/org/inkscape/dom/svg/SVGLengthImpl.java | 52 - .../org/inkscape/dom/svg/SVGLengthListImpl.java | 56 - .../org/inkscape/dom/svg/SVGLineElementImpl.java | 170 -- .../dom/svg/SVGLinearGradientElementImpl.java | 45 - .../org/inkscape/dom/svg/SVGLocatableImpl.java | 51 - .../org/inkscape/dom/svg/SVGMPathElementImpl.java | 63 - .../org/inkscape/dom/svg/SVGMarkerElementImpl.java | 107 -- .../org/inkscape/dom/svg/SVGMaskElementImpl.java | 108 -- .../java/org/inkscape/dom/svg/SVGMatrixImpl.java | 72 - .../inkscape/dom/svg/SVGMetadataElementImpl.java | 38 - .../dom/svg/SVGMissingGlyphElementImpl.java | 61 - .../java/org/inkscape/dom/svg/SVGNumberImpl.java | 42 - .../org/inkscape/dom/svg/SVGNumberListImpl.java | 58 - .../java/org/inkscape/dom/svg/SVGPaintImpl.java | 49 - .../org/inkscape/dom/svg/SVGPathElementImpl.java | 215 --- .../org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java | 61 - .../org/inkscape/dom/svg/SVGPathSegArcRelImpl.java | 61 - .../inkscape/dom/svg/SVGPathSegClosePathImpl.java | 38 - .../dom/svg/SVGPathSegCurvetoCubicAbsImpl.java | 58 - .../dom/svg/SVGPathSegCurvetoCubicRelImpl.java | 58 - .../svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java | 52 - .../svg/SVGPathSegCurvetoCubicSmoothRelImpl.java | 52 - .../dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java | 52 - .../dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java | 52 - .../SVGPathSegCurvetoQuadraticSmoothAbsImpl.java | 46 - .../SVGPathSegCurvetoQuadraticSmoothRelImpl.java | 46 - .../java/org/inkscape/dom/svg/SVGPathSegImpl.java | 38 - .../inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java | 46 - .../dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java | 43 - .../dom/svg/SVGPathSegLinetoHorizontalRelImpl.java | 43 - .../inkscape/dom/svg/SVGPathSegLinetoRelImpl.java | 46 - .../dom/svg/SVGPathSegLinetoVerticalAbsImpl.java | 43 - .../dom/svg/SVGPathSegLinetoVerticalRelImpl.java | 43 - .../org/inkscape/dom/svg/SVGPathSegListImpl.java | 57 - .../inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java | 46 - .../inkscape/dom/svg/SVGPathSegMovetoRelImpl.java | 46 - .../inkscape/dom/svg/SVGPatternElementImpl.java | 135 -- .../java/org/inkscape/dom/svg/SVGPointImpl.java | 49 - .../org/inkscape/dom/svg/SVGPointListImpl.java | 56 - .../inkscape/dom/svg/SVGPolygonElementImpl.java | 177 -- .../inkscape/dom/svg/SVGPolylineElementImpl.java | 175 -- .../dom/svg/SVGPreserveAspectRatioImpl.java | 44 - .../dom/svg/SVGRadialGradientElementImpl.java | 46 - .../org/inkscape/dom/svg/SVGRectElementImpl.java | 170 -- .../java/org/inkscape/dom/svg/SVGRectImpl.java | 49 - .../inkscape/dom/svg/SVGRenderingIntentImpl.java | 36 - .../org/inkscape/dom/svg/SVGSVGElementImpl.java | 280 --- .../org/inkscape/dom/svg/SVGScriptElementImpl.java | 70 - .../org/inkscape/dom/svg/SVGSetElementImpl.java | 38 - .../org/inkscape/dom/svg/SVGStopElementImpl.java | 62 - .../org/inkscape/dom/svg/SVGStringListImpl.java | 56 - .../java/org/inkscape/dom/svg/SVGStylableImpl.java | 47 - .../org/inkscape/dom/svg/SVGStyleElementImpl.java | 52 - .../org/inkscape/dom/svg/SVGSwitchElementImpl.java | 166 -- .../org/inkscape/dom/svg/SVGSymbolElementImpl.java | 161 -- .../org/inkscape/dom/svg/SVGTRefElementImpl.java | 54 - .../org/inkscape/dom/svg/SVGTSpanElementImpl.java | 38 - .../java/org/inkscape/dom/svg/SVGTestsImpl.java | 45 - .../dom/svg/SVGTextContentElementImpl.java | 161 -- .../org/inkscape/dom/svg/SVGTextElementImpl.java | 69 - .../inkscape/dom/svg/SVGTextPathElementImpl.java | 57 - .../dom/svg/SVGTextPositioningElementImpl.java | 45 - .../org/inkscape/dom/svg/SVGTitleElementImpl.java | 79 - .../org/inkscape/dom/svg/SVGTransformImpl.java | 49 - .../org/inkscape/dom/svg/SVGTransformListImpl.java | 60 - .../org/inkscape/dom/svg/SVGTransformableImpl.java | 42 - .../org/inkscape/dom/svg/SVGURIReferenceImpl.java | 42 - .../org/inkscape/dom/svg/SVGUnitTypesImpl.java | 36 - .../org/inkscape/dom/svg/SVGUseElementImpl.java | 180 -- .../org/inkscape/dom/svg/SVGVKernElementImpl.java | 38 - .../org/inkscape/dom/svg/SVGViewElementImpl.java | 77 - .../java/org/inkscape/dom/svg/SVGViewSpecImpl.java | 64 - .../org/inkscape/dom/svg/SVGZoomAndPanImpl.java | 43 - .../org/inkscape/dom/svg/SVGZoomEventImpl.java | 47 - .../org/inkscape/dom/views/AbstractViewImpl.java | 42 - .../org/inkscape/dom/views/DocumentViewImpl.java | 43 - src/bind/java/org/inkscape/script/Editor.java | 311 ---- .../java/org/inkscape/script/ScriptConsole.java | 652 ------- src/bind/java/org/inkscape/script/Terminal.java | 297 --- src/bind/java/org/w3c/dom/css/CSS2Properties.java | 1411 -------------- src/bind/java/org/w3c/dom/css/CSSCharsetRule.java | 48 - src/bind/java/org/w3c/dom/css/CSSFontFaceRule.java | 28 - src/bind/java/org/w3c/dom/css/CSSImportRule.java | 44 - src/bind/java/org/w3c/dom/css/CSSMediaRule.java | 76 - src/bind/java/org/w3c/dom/css/CSSPageRule.java | 41 - .../java/org/w3c/dom/css/CSSPrimitiveValue.java | 296 --- src/bind/java/org/w3c/dom/css/CSSRule.java | 93 - src/bind/java/org/w3c/dom/css/CSSRuleList.java | 43 - .../java/org/w3c/dom/css/CSSStyleDeclaration.java | 152 -- src/bind/java/org/w3c/dom/css/CSSStyleRule.java | 42 - src/bind/java/org/w3c/dom/css/CSSStyleSheet.java | 85 - src/bind/java/org/w3c/dom/css/CSSUnknownRule.java | 22 - src/bind/java/org/w3c/dom/css/CSSValue.java | 68 - src/bind/java/org/w3c/dom/css/CSSValueList.java | 46 - src/bind/java/org/w3c/dom/css/Counter.java | 38 - .../java/org/w3c/dom/css/DOMImplementationCSS.java | 40 - src/bind/java/org/w3c/dom/css/DocumentCSS.java | 50 - .../org/w3c/dom/css/ElementCSSInlineStyle.java | 32 - src/bind/java/org/w3c/dom/css/RGBColor.java | 47 - src/bind/java/org/w3c/dom/css/Rect.java | 44 - src/bind/java/org/w3c/dom/css/ViewCSS.java | 43 - src/bind/java/org/w3c/dom/events/CustomEvent.java | 70 - .../java/org/w3c/dom/events/DocumentEvent.java | 86 - src/bind/java/org/w3c/dom/events/Event.java | 209 --- .../java/org/w3c/dom/events/EventException.java | 41 - .../java/org/w3c/dom/events/EventListener.java | 40 - src/bind/java/org/w3c/dom/events/EventTarget.java | 202 -- .../java/org/w3c/dom/events/KeyboardEvent.java | 178 -- src/bind/java/org/w3c/dom/events/MouseEvent.java | 219 --- .../java/org/w3c/dom/events/MutationEvent.java | 160 -- .../java/org/w3c/dom/events/MutationNameEvent.java | 104 -- src/bind/java/org/w3c/dom/events/TextEvent.java | 81 - src/bind/java/org/w3c/dom/events/UIEvent.java | 82 - .../dom/smil/ElementExclusiveTimeContainer.java | 41 - src/bind/java/org/w3c/dom/smil/ElementLayout.java | 55 - .../w3c/dom/smil/ElementParallelTimeContainer.java | 40 - .../dom/smil/ElementSequentialTimeContainer.java | 21 - .../java/org/w3c/dom/smil/ElementSyncBehavior.java | 49 - .../org/w3c/dom/smil/ElementTargetAttributes.java | 38 - src/bind/java/org/w3c/dom/smil/ElementTest.java | 83 - src/bind/java/org/w3c/dom/smil/ElementTime.java | 150 -- .../org/w3c/dom/smil/ElementTimeContainer.java | 39 - .../java/org/w3c/dom/smil/ElementTimeControl.java | 103 - .../org/w3c/dom/smil/ElementTimeManipulation.java | 75 - .../org/w3c/dom/smil/SMILAnimateColorElement.java | 20 - .../java/org/w3c/dom/smil/SMILAnimateElement.java | 20 - .../org/w3c/dom/smil/SMILAnimateMotionElement.java | 41 - src/bind/java/org/w3c/dom/smil/SMILAnimation.java | 124 -- src/bind/java/org/w3c/dom/smil/SMILDocument.java | 28 - src/bind/java/org/w3c/dom/smil/SMILElement.java | 40 - .../java/org/w3c/dom/smil/SMILLayoutElement.java | 33 - .../java/org/w3c/dom/smil/SMILMediaElement.java | 157 -- src/bind/java/org/w3c/dom/smil/SMILRefElement.java | 20 - .../java/org/w3c/dom/smil/SMILRegionElement.java | 47 - .../java/org/w3c/dom/smil/SMILRegionInterface.java | 26 - .../org/w3c/dom/smil/SMILRootLayoutElement.java | 21 - src/bind/java/org/w3c/dom/smil/SMILSetElement.java | 27 - .../java/org/w3c/dom/smil/SMILSwitchElement.java | 30 - .../org/w3c/dom/smil/SMILTopLayoutElement.java | 21 - src/bind/java/org/w3c/dom/smil/Time.java | 119 -- src/bind/java/org/w3c/dom/smil/TimeEvent.java | 53 - src/bind/java/org/w3c/dom/smil/TimeList.java | 41 - .../org/w3c/dom/stylesheets/DocumentStyle.java | 34 - .../java/org/w3c/dom/stylesheets/LinkStyle.java | 31 - .../java/org/w3c/dom/stylesheets/MediaList.java | 81 - .../java/org/w3c/dom/stylesheets/StyleSheet.java | 95 - .../org/w3c/dom/stylesheets/StyleSheetList.java | 42 - src/bind/java/org/w3c/dom/svg/GetSVGDocument.java | 9 - src/bind/java/org/w3c/dom/svg/SVGAElement.java | 16 - .../org/w3c/dom/svg/SVGAltGlyphDefElement.java | 6 - .../java/org/w3c/dom/svg/SVGAltGlyphElement.java | 15 - .../org/w3c/dom/svg/SVGAltGlyphItemElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGAngle.java | 26 - .../org/w3c/dom/svg/SVGAnimateColorElement.java | 6 - .../java/org/w3c/dom/svg/SVGAnimateElement.java | 6 - .../org/w3c/dom/svg/SVGAnimateMotionElement.java | 6 - .../w3c/dom/svg/SVGAnimateTransformElement.java | 6 - .../java/org/w3c/dom/svg/SVGAnimatedAngle.java | 7 - .../java/org/w3c/dom/svg/SVGAnimatedBoolean.java | 10 - .../org/w3c/dom/svg/SVGAnimatedEnumeration.java | 10 - .../java/org/w3c/dom/svg/SVGAnimatedInteger.java | 10 - .../java/org/w3c/dom/svg/SVGAnimatedLength.java | 7 - .../org/w3c/dom/svg/SVGAnimatedLengthList.java | 7 - .../java/org/w3c/dom/svg/SVGAnimatedNumber.java | 10 - .../org/w3c/dom/svg/SVGAnimatedNumberList.java | 7 - .../java/org/w3c/dom/svg/SVGAnimatedPathData.java | 9 - .../java/org/w3c/dom/svg/SVGAnimatedPoints.java | 7 - .../dom/svg/SVGAnimatedPreserveAspectRatio.java | 7 - src/bind/java/org/w3c/dom/svg/SVGAnimatedRect.java | 7 - .../java/org/w3c/dom/svg/SVGAnimatedString.java | 10 - .../org/w3c/dom/svg/SVGAnimatedTransformList.java | 7 - .../java/org/w3c/dom/svg/SVGAnimationElement.java | 20 - src/bind/java/org/w3c/dom/svg/SVGCSSRule.java | 10 - .../java/org/w3c/dom/svg/SVGCircleElement.java | 17 - .../java/org/w3c/dom/svg/SVGClipPathElement.java | 13 - src/bind/java/org/w3c/dom/svg/SVGColor.java | 25 - .../org/w3c/dom/svg/SVGColorProfileElement.java | 19 - .../java/org/w3c/dom/svg/SVGColorProfileRule.java | 18 - .../svg/SVGComponentTransferFunctionElement.java | 21 - .../java/org/w3c/dom/svg/SVGCursorElement.java | 11 - .../org/w3c/dom/svg/SVGDefinitionSrcElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGDefsElement.java | 14 - src/bind/java/org/w3c/dom/svg/SVGDescElement.java | 8 - src/bind/java/org/w3c/dom/svg/SVGDocument.java | 15 - src/bind/java/org/w3c/dom/svg/SVGElement.java | 17 - .../java/org/w3c/dom/svg/SVGElementInstance.java | 16 - .../org/w3c/dom/svg/SVGElementInstanceList.java | 8 - .../java/org/w3c/dom/svg/SVGEllipseElement.java | 18 - src/bind/java/org/w3c/dom/svg/SVGEvent.java | 8 - src/bind/java/org/w3c/dom/svg/SVGException.java | 13 - .../w3c/dom/svg/SVGExternalResourcesRequired.java | 6 - .../java/org/w3c/dom/svg/SVGFEBlendElement.java | 18 - .../org/w3c/dom/svg/SVGFEColorMatrixElement.java | 17 - .../w3c/dom/svg/SVGFEComponentTransferElement.java | 8 - .../org/w3c/dom/svg/SVGFECompositeElement.java | 23 - .../w3c/dom/svg/SVGFEConvolveMatrixElement.java | 24 - .../w3c/dom/svg/SVGFEDiffuseLightingElement.java | 12 - .../w3c/dom/svg/SVGFEDisplacementMapElement.java | 19 - .../org/w3c/dom/svg/SVGFEDistantLightElement.java | 8 - .../java/org/w3c/dom/svg/SVGFEFloodElement.java | 8 - .../java/org/w3c/dom/svg/SVGFEFuncAElement.java | 6 - .../java/org/w3c/dom/svg/SVGFEFuncBElement.java | 6 - .../java/org/w3c/dom/svg/SVGFEFuncGElement.java | 6 - .../java/org/w3c/dom/svg/SVGFEFuncRElement.java | 6 - .../org/w3c/dom/svg/SVGFEGaussianBlurElement.java | 12 - .../java/org/w3c/dom/svg/SVGFEImageElement.java | 13 - .../java/org/w3c/dom/svg/SVGFEMergeElement.java | 7 - .../org/w3c/dom/svg/SVGFEMergeNodeElement.java | 7 - .../org/w3c/dom/svg/SVGFEMorphologyElement.java | 16 - .../java/org/w3c/dom/svg/SVGFEOffsetElement.java | 10 - .../org/w3c/dom/svg/SVGFEPointLightElement.java | 9 - .../w3c/dom/svg/SVGFESpecularLightingElement.java | 11 - .../org/w3c/dom/svg/SVGFESpotLightElement.java | 14 - .../java/org/w3c/dom/svg/SVGFETileElement.java | 8 - .../org/w3c/dom/svg/SVGFETurbulenceElement.java | 22 - .../java/org/w3c/dom/svg/SVGFilterElement.java | 21 - .../svg/SVGFilterPrimitiveStandardAttributes.java | 11 - src/bind/java/org/w3c/dom/svg/SVGFitToViewBox.java | 7 - src/bind/java/org/w3c/dom/svg/SVGFontElement.java | 8 - .../java/org/w3c/dom/svg/SVGFontFaceElement.java | 6 - .../org/w3c/dom/svg/SVGFontFaceFormatElement.java | 6 - .../org/w3c/dom/svg/SVGFontFaceNameElement.java | 6 - .../org/w3c/dom/svg/SVGFontFaceSrcElement.java | 6 - .../org/w3c/dom/svg/SVGFontFaceUriElement.java | 6 - .../org/w3c/dom/svg/SVGForeignObjectElement.java | 18 - src/bind/java/org/w3c/dom/svg/SVGGElement.java | 14 - src/bind/java/org/w3c/dom/svg/SVGGlyphElement.java | 7 - .../java/org/w3c/dom/svg/SVGGlyphRefElement.java | 28 - .../java/org/w3c/dom/svg/SVGGradientElement.java | 19 - src/bind/java/org/w3c/dom/svg/SVGHKernElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGICCColor.java | 10 - src/bind/java/org/w3c/dom/svg/SVGImageElement.java | 20 - src/bind/java/org/w3c/dom/svg/SVGLangSpace.java | 13 - src/bind/java/org/w3c/dom/svg/SVGLength.java | 32 - src/bind/java/org/w3c/dom/svg/SVGLengthList.java | 23 - src/bind/java/org/w3c/dom/svg/SVGLineElement.java | 18 - .../org/w3c/dom/svg/SVGLinearGradientElement.java | 10 - src/bind/java/org/w3c/dom/svg/SVGLocatable.java | 13 - src/bind/java/org/w3c/dom/svg/SVGMPathElement.java | 8 - .../java/org/w3c/dom/svg/SVGMarkerElement.java | 29 - src/bind/java/org/w3c/dom/svg/SVGMaskElement.java | 17 - src/bind/java/org/w3c/dom/svg/SVGMatrix.java | 39 - .../java/org/w3c/dom/svg/SVGMetadataElement.java | 6 - .../org/w3c/dom/svg/SVGMissingGlyphElement.java | 7 - src/bind/java/org/w3c/dom/svg/SVGNumber.java | 10 - src/bind/java/org/w3c/dom/svg/SVGNumberList.java | 23 - src/bind/java/org/w3c/dom/svg/SVGPaint.java | 26 - src/bind/java/org/w3c/dom/svg/SVGPathElement.java | 39 - src/bind/java/org/w3c/dom/svg/SVGPathSeg.java | 29 - .../java/org/w3c/dom/svg/SVGPathSegArcAbs.java | 29 - .../java/org/w3c/dom/svg/SVGPathSegArcRel.java | 29 - .../java/org/w3c/dom/svg/SVGPathSegClosePath.java | 6 - .../org/w3c/dom/svg/SVGPathSegCurvetoCubicAbs.java | 26 - .../org/w3c/dom/svg/SVGPathSegCurvetoCubicRel.java | 26 - .../dom/svg/SVGPathSegCurvetoCubicSmoothAbs.java | 20 - .../dom/svg/SVGPathSegCurvetoCubicSmoothRel.java | 20 - .../w3c/dom/svg/SVGPathSegCurvetoQuadraticAbs.java | 20 - .../w3c/dom/svg/SVGPathSegCurvetoQuadraticRel.java | 20 - .../svg/SVGPathSegCurvetoQuadraticSmoothAbs.java | 14 - .../svg/SVGPathSegCurvetoQuadraticSmoothRel.java | 14 - .../java/org/w3c/dom/svg/SVGPathSegLinetoAbs.java | 14 - .../w3c/dom/svg/SVGPathSegLinetoHorizontalAbs.java | 11 - .../w3c/dom/svg/SVGPathSegLinetoHorizontalRel.java | 11 - .../java/org/w3c/dom/svg/SVGPathSegLinetoRel.java | 14 - .../w3c/dom/svg/SVGPathSegLinetoVerticalAbs.java | 11 - .../w3c/dom/svg/SVGPathSegLinetoVerticalRel.java | 11 - src/bind/java/org/w3c/dom/svg/SVGPathSegList.java | 23 - .../java/org/w3c/dom/svg/SVGPathSegMovetoAbs.java | 14 - .../java/org/w3c/dom/svg/SVGPathSegMovetoRel.java | 14 - .../java/org/w3c/dom/svg/SVGPatternElement.java | 20 - src/bind/java/org/w3c/dom/svg/SVGPoint.java | 15 - src/bind/java/org/w3c/dom/svg/SVGPointList.java | 23 - .../java/org/w3c/dom/svg/SVGPolygonElement.java | 15 - .../java/org/w3c/dom/svg/SVGPolylineElement.java | 15 - .../org/w3c/dom/svg/SVGPreserveAspectRatio.java | 30 - .../org/w3c/dom/svg/SVGRadialGradientElement.java | 11 - src/bind/java/org/w3c/dom/svg/SVGRect.java | 19 - src/bind/java/org/w3c/dom/svg/SVGRectElement.java | 20 - .../java/org/w3c/dom/svg/SVGRenderingIntent.java | 12 - src/bind/java/org/w3c/dom/svg/SVGSVGElement.java | 74 - .../java/org/w3c/dom/svg/SVGScriptElement.java | 13 - src/bind/java/org/w3c/dom/svg/SVGSetElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGStopElement.java | 8 - src/bind/java/org/w3c/dom/svg/SVGStringList.java | 23 - src/bind/java/org/w3c/dom/svg/SVGStylable.java | 12 - src/bind/java/org/w3c/dom/svg/SVGStyleElement.java | 20 - .../java/org/w3c/dom/svg/SVGSwitchElement.java | 14 - .../java/org/w3c/dom/svg/SVGSymbolElement.java | 13 - src/bind/java/org/w3c/dom/svg/SVGTRefElement.java | 7 - src/bind/java/org/w3c/dom/svg/SVGTSpanElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGTests.java | 10 - .../org/w3c/dom/svg/SVGTextContentElement.java | 37 - src/bind/java/org/w3c/dom/svg/SVGTextElement.java | 7 - .../java/org/w3c/dom/svg/SVGTextPathElement.java | 19 - .../org/w3c/dom/svg/SVGTextPositioningElement.java | 11 - src/bind/java/org/w3c/dom/svg/SVGTitleElement.java | 8 - src/bind/java/org/w3c/dom/svg/SVGTransform.java | 24 - .../java/org/w3c/dom/svg/SVGTransformList.java | 25 - .../java/org/w3c/dom/svg/SVGTransformable.java | 7 - src/bind/java/org/w3c/dom/svg/SVGURIReference.java | 6 - src/bind/java/org/w3c/dom/svg/SVGUnitTypes.java | 9 - src/bind/java/org/w3c/dom/svg/SVGUseElement.java | 21 - src/bind/java/org/w3c/dom/svg/SVGVKernElement.java | 6 - src/bind/java/org/w3c/dom/svg/SVGViewElement.java | 10 - src/bind/java/org/w3c/dom/svg/SVGViewSpec.java | 13 - src/bind/java/org/w3c/dom/svg/SVGZoomAndPan.java | 15 - src/bind/java/org/w3c/dom/svg/SVGZoomEvent.java | 13 - src/bind/java/org/w3c/dom/views/AbstractView.java | 27 - src/bind/java/org/w3c/dom/views/DocumentView.java | 30 - src/bind/javabind-private.h | 147 -- src/bind/javabind.cpp | 1209 ------------ src/bind/javabind.h | 405 ---- src/bind/javainc/jni.h | 1959 -------------------- src/bind/javainc/linux/jni_md.h | 26 - src/bind/javainc/solaris/jni_md.h | 42 - src/bind/javainc/win32/jni_md.h | 37 - src/bind/makefile.in | 17 - src/check-header-compile.in | 1 - src/extension/CMakeLists.txt | 4 - src/extension/script/InkscapeScript.cpp | 223 --- src/extension/script/InkscapeScript.h | 102 - src/extension/script/Makefile_insert | 6 - src/extension/script/makefile.in | 17 - src/menus-skeleton.h | 1 - src/ui/CMakeLists.txt | 2 - src/ui/dialog/Makefile_insert | 2 - src/ui/dialog/dialog-manager.cpp | 3 - src/ui/dialog/scriptdialog.cpp | 255 --- src/ui/dialog/scriptdialog.h | 64 - src/verbs.cpp | 7 - src/verbs.h | 1 - 521 files changed, 32394 deletions(-) delete mode 100644 src/bind/CMakeLists.txt delete mode 100644 src/bind/DomStub.java delete mode 100644 src/bind/Makefile_insert delete mode 100644 src/bind/dobinding.cpp delete mode 100644 src/bind/java/org/inkscape/cmn/BaseInterface.java delete mode 100644 src/bind/java/org/inkscape/cmn/BaseObject.java delete mode 100644 src/bind/java/org/inkscape/cmn/Gateway.java delete mode 100644 src/bind/java/org/inkscape/cmn/Resource.java delete mode 100644 src/bind/java/org/inkscape/dom/AttrImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/CDATASectionImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/CharacterDataImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/CommentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMBase.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMErrorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMImplementationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMLocatorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DOMStringListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DocumentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/DocumentTypeImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/ElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/EntityImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/EntityReferenceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/NameListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/NodeImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/NodeListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/NotationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/TextImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/TypeInfoImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSValueImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/CounterImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/RGBColorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/RectImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/CustomEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/EventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/EventListenerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/EventTargetImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/MouseEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/MutationEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/TextEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/events/UIEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/TimeImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/smil/TimeListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java delete mode 100644 src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java delete mode 100644 src/bind/java/org/inkscape/script/Editor.java delete mode 100644 src/bind/java/org/inkscape/script/ScriptConsole.java delete mode 100644 src/bind/java/org/inkscape/script/Terminal.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSS2Properties.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSCharsetRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSFontFaceRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSImportRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSMediaRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSPageRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSPrimitiveValue.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSRuleList.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSStyleDeclaration.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSStyleRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSStyleSheet.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSUnknownRule.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSValue.java delete mode 100644 src/bind/java/org/w3c/dom/css/CSSValueList.java delete mode 100644 src/bind/java/org/w3c/dom/css/Counter.java delete mode 100644 src/bind/java/org/w3c/dom/css/DOMImplementationCSS.java delete mode 100644 src/bind/java/org/w3c/dom/css/DocumentCSS.java delete mode 100644 src/bind/java/org/w3c/dom/css/ElementCSSInlineStyle.java delete mode 100644 src/bind/java/org/w3c/dom/css/RGBColor.java delete mode 100644 src/bind/java/org/w3c/dom/css/Rect.java delete mode 100644 src/bind/java/org/w3c/dom/css/ViewCSS.java delete mode 100644 src/bind/java/org/w3c/dom/events/CustomEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/DocumentEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/Event.java delete mode 100644 src/bind/java/org/w3c/dom/events/EventException.java delete mode 100644 src/bind/java/org/w3c/dom/events/EventListener.java delete mode 100644 src/bind/java/org/w3c/dom/events/EventTarget.java delete mode 100644 src/bind/java/org/w3c/dom/events/KeyboardEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/MouseEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/MutationEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/MutationNameEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/TextEvent.java delete mode 100644 src/bind/java/org/w3c/dom/events/UIEvent.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementExclusiveTimeContainer.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementLayout.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementParallelTimeContainer.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementSequentialTimeContainer.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementSyncBehavior.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTargetAttributes.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTest.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTime.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTimeContainer.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTimeControl.java delete mode 100644 src/bind/java/org/w3c/dom/smil/ElementTimeManipulation.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILAnimateColorElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILAnimateElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILAnimateMotionElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILAnimation.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILDocument.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILLayoutElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILMediaElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILRefElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILRegionElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILRegionInterface.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILRootLayoutElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILSetElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILSwitchElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/SMILTopLayoutElement.java delete mode 100644 src/bind/java/org/w3c/dom/smil/Time.java delete mode 100644 src/bind/java/org/w3c/dom/smil/TimeEvent.java delete mode 100644 src/bind/java/org/w3c/dom/smil/TimeList.java delete mode 100644 src/bind/java/org/w3c/dom/stylesheets/DocumentStyle.java delete mode 100644 src/bind/java/org/w3c/dom/stylesheets/LinkStyle.java delete mode 100644 src/bind/java/org/w3c/dom/stylesheets/MediaList.java delete mode 100644 src/bind/java/org/w3c/dom/stylesheets/StyleSheet.java delete mode 100644 src/bind/java/org/w3c/dom/stylesheets/StyleSheetList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/GetSVGDocument.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAltGlyphDefElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAltGlyphElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAltGlyphItemElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAngle.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimateColorElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimateElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimateMotionElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimateTransformElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedAngle.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedBoolean.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedEnumeration.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedInteger.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedLength.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedLengthList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedNumber.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedNumberList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedPathData.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedPoints.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedPreserveAspectRatio.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedRect.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedString.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimatedTransformList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGAnimationElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGCSSRule.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGCircleElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGClipPathElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGColor.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGColorProfileElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGColorProfileRule.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGComponentTransferFunctionElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGCursorElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGDefinitionSrcElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGDefsElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGDescElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGDocument.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGElementInstance.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGElementInstanceList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGEllipseElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGEvent.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGException.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGExternalResourcesRequired.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEBlendElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEColorMatrixElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEComponentTransferElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFECompositeElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEConvolveMatrixElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEDiffuseLightingElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEDisplacementMapElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEDistantLightElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEFloodElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEFuncAElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEFuncBElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEFuncGElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEFuncRElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEGaussianBlurElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEImageElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEMergeElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEMergeNodeElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEMorphologyElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEOffsetElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFEPointLightElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFESpecularLightingElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFESpotLightElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFETileElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFETurbulenceElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFilterElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFilterPrimitiveStandardAttributes.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFitToViewBox.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontFaceElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontFaceFormatElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontFaceNameElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontFaceSrcElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGFontFaceUriElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGForeignObjectElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGGElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGGlyphElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGGlyphRefElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGGradientElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGHKernElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGICCColor.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGImageElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLangSpace.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLength.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLengthList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLineElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLinearGradientElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGLocatable.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMPathElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMarkerElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMaskElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMatrix.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMetadataElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGMissingGlyphElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGNumber.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGNumberList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPaint.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSeg.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegArcAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegArcRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegClosePath.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoAbs.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoRel.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPatternElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPoint.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPointList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPolygonElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPolylineElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGPreserveAspectRatio.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGRadialGradientElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGRect.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGRectElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGRenderingIntent.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGSVGElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGScriptElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGSetElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGStopElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGStringList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGStylable.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGStyleElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGSwitchElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGSymbolElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTRefElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTSpanElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTests.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTextContentElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTextElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTextPathElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTextPositioningElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTitleElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTransform.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTransformList.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGTransformable.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGURIReference.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGUnitTypes.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGUseElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGVKernElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGViewElement.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGViewSpec.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGZoomAndPan.java delete mode 100644 src/bind/java/org/w3c/dom/svg/SVGZoomEvent.java delete mode 100644 src/bind/java/org/w3c/dom/views/AbstractView.java delete mode 100644 src/bind/java/org/w3c/dom/views/DocumentView.java delete mode 100644 src/bind/javabind-private.h delete mode 100644 src/bind/javabind.cpp delete mode 100644 src/bind/javabind.h delete mode 100644 src/bind/javainc/jni.h delete mode 100644 src/bind/javainc/linux/jni_md.h delete mode 100644 src/bind/javainc/solaris/jni_md.h delete mode 100644 src/bind/javainc/win32/jni_md.h delete mode 100644 src/bind/makefile.in delete mode 100644 src/extension/script/InkscapeScript.cpp delete mode 100644 src/extension/script/InkscapeScript.h delete mode 100644 src/extension/script/Makefile_insert delete mode 100644 src/extension/script/makefile.in delete mode 100644 src/ui/dialog/scriptdialog.cpp delete mode 100644 src/ui/dialog/scriptdialog.h (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fa54940db..87f223150 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -538,7 +538,6 @@ list(APPEND inkscape_SRC # All folders for internal inkscape # these call add_inkscape_source -add_subdirectory(bind) add_subdirectory(debug) add_subdirectory(dialogs) add_subdirectory(display) diff --git a/src/Makefile.am b/src/Makefile.am index b9ec53ab1..3a937d58b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -82,8 +82,6 @@ AM_CPPFLAGS = \ $(INKSCAPE_CFLAGS) \ -I$(top_srcdir)/cxxtest \ $(WIN32_CFLAGS) \ - -I$(srcdir)/bind/javainc \ - -I$(srcdir)/bind/javainc/linux \ -I$(builddir)/extension/dbus \ $(X11_CFLAGS) @@ -107,7 +105,6 @@ endif # Include all partial makefiles from subdirectories include Makefile_insert -include bind/Makefile_insert include dialogs/Makefile_insert include display/Makefile_insert include dom/Makefile_insert @@ -115,7 +112,6 @@ include extension/Makefile_insert include extension/dbus/Makefile_insert include extension/implementation/Makefile_insert include extension/internal/Makefile_insert -include extension/script/Makefile_insert include filters/Makefile_insert include helper/Makefile_insert include io/Makefile_insert @@ -147,7 +143,6 @@ EXTRA_DIST += \ $(top_srcdir)/Doxyfile \ sp-skeleton.cpp sp-skeleton.h \ util/makefile.in \ - bind/makefile.in \ debug/makefile.in \ dialogs/makefile.in \ display/makefile.in \ @@ -155,7 +150,6 @@ EXTRA_DIST += \ extension/implementation/makefile.in \ extension/internal/makefile.in \ extension/makefile.in \ - extension/script/makefile.in \ filters/makefile.in \ helper/makefile.in \ io/makefile.in \ diff --git a/src/bind/CMakeLists.txt b/src/bind/CMakeLists.txt deleted file mode 100644 index 9b6abad4f..000000000 --- a/src/bind/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ - -set(bind_SRC - dobinding.cpp - javabind.cpp - - - # ------- - # Headers - javabind-private.h - javabind.h - javainc/jni.h - javainc/linux/jni_md.h - javainc/solaris/jni_md.h - javainc/win32/jni_md.h -) - -# add_inkscape_lib(bind_LIB "${bind_SRC}") -add_inkscape_source("${bind_SRC}") diff --git a/src/bind/DomStub.java b/src/bind/DomStub.java deleted file mode 100644 index df82e5012..000000000 --- a/src/bind/DomStub.java +++ /dev/null @@ -1,299 +0,0 @@ - -import java.io.*; -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Collections; - - -/** - * This is not an actual java binding class. Rather, it is - * a simple tool for generating C++ native method stubs from classfiles - */ -public class DomStub -{ - -class MethodEntry -{ -ArrayList parms; -String name; -String type; - -public void addParam(String type) -{ - parms.add(type); -} - -public MethodEntry(String methodName, String type) -{ - this.name = methodName; - this.type = type; - parms = new ArrayList(); -} -} - - -class ClassEntry -{ -ArrayList methods; -String name; - -public void addMethod(MethodEntry method) -{ - methods.add(method); -} - -public ClassEntry(String className) -{ - this.name = className; - methods = new ArrayList(); -} -} - - -HashMap classes; - - -BufferedWriter out; - -void err(String msg) -{ - System.out.println("DomStub err:" + msg); -} - -void trace(String msg) -{ - System.out.println("DomStub:" + msg); -} - -void po(String msg) -{ - try - { - out.write(msg); - } - catch (IOException e) - { - } -} - - -//######################################################################## -//# G E N E R A T E -//######################################################################## - -void dumpClasses() -{ - for (ClassEntry ce : classes.values()) - { - trace("########################"); - trace("Class " + ce.name); - for (MethodEntry me : ce.methods) - { - trace(" " + me.type + " " + me.name); - for (String parm : me.parms) - { - trace(" " + parm); - } - } - } -} - - -void generateMethod(MethodEntry me) -{ - po("/**\n"); - po(" * Method : " + me.name + "\n"); - po(" */\n"); - for (String parm : me.parms) - { - po(" " + parm + "\n"); - } - -} - -void generateClass(ClassEntry ce) -{ - po("//################################################################\n"); - po("//## " + ce.name + "\n"); - po("//################################################################\n"); - - for (MethodEntry me : ce.methods) - generateMethod(me); - -} - - -void generate() -{ - ArrayList classNames = new ArrayList(classes.keySet()); - Collections.sort(classNames); - for (String key : classNames) - { - ClassEntry ce = classes.get(key); - generateClass(ce); - } -} - -//######################################################################## -//# P A R S E -//######################################################################## -boolean parseEntry(String className, String methodName, String signature) -{ - //trace("Decl :" + methodDecl); - //trace("params:" + params); - //################################# - //# Parse class and method lines - //################################# - String s = className.substring(14); - className = s.replace('_', '/'); - methodName = methodName.substring(14); - signature = signature.substring(14); - //trace("className : " + className); - //trace("methodName : " + methodName); - - int pos = signature.indexOf('('); - if (pos<0) - { - err("no opening ( for signature"); - return false; - } - pos++; - int p2 = signature.indexOf(')', pos); - if (p2<0) - { - err("no closing ) for signature"); - return false; - } - String parms = signature.substring(pos, p2); - String type = signature.substring(p2+1); - //################################# - //# create method entry. add to new or existing class - //################################# - MethodEntry method = new MethodEntry(methodName, type); - - ClassEntry clazz = classes.get(className); - if (clazz == null) - { - clazz = new ClassEntry(className); - classes.put(className, clazz); - } - clazz.addMethod(method); - - //################################# - //# Parse signature line - //################################# - - pos = 0; - int len = parms.length(); - while (pos(); -} - - - -public static void main(String argv[]) -{ - DomStub st = new DomStub(); - boolean ret = st.processFile("out.h"); -} - - -} \ No newline at end of file diff --git a/src/bind/Makefile_insert b/src/bind/Makefile_insert deleted file mode 100644 index b640957d3..000000000 --- a/src/bind/Makefile_insert +++ /dev/null @@ -1,11 +0,0 @@ -## Makefile.am fragment sourced by src/Makefile.am. - -ink_common_sources += \ - bind/javabind.h \ - bind/javabind-private.h \ - bind/javabind.cpp \ - bind/dobinding.cpp \ - bind/javainc/jni.h \ - bind/javainc/linux/jni_md.h \ - bind/javainc/solaris/jni_md.h \ - bind/javainc/win32/jni_md.h diff --git a/src/bind/dobinding.cpp b/src/bind/dobinding.cpp deleted file mode 100644 index 03b16a9dd..000000000 --- a/src/bind/dobinding.cpp +++ /dev/null @@ -1,251 +0,0 @@ -/* - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - -#include -#include -#include -#include -#include - -#ifdef __WIN32__ -#include -#else -#include -#include -#endif - -#include "javabind.h" -#include "javabind-private.h" - -#include -#include - -namespace Inkscape -{ -namespace Bind -{ - -using namespace org::w3c::dom; - -/** - * This file has the actual C++ --> Java bindings - * This file can get quite large! - */ - -/** - * This struct associates a class name with its native - * bindings. Since C++ does not allow "flexible" arrays, - * we will separate each of the tables into a JNINativeMethod - * array, and a class with a name and a pointer to that array. - */ -typedef struct -{ - const char *className; - JNINativeMethod *methods; -} NativeClass; - -/** - * Although I dislike macros, this one seems reasonable - */ -#define EXCEPTION (getExceptionString(env).c_str()) - -//######################################################################## -//# BASE OBJECT -//######################################################################## - -static jmethodID _getPointer_id = NULL; - -static jlong getPointer(JNIEnv *env, jobject obj) -{ - if (!_getPointer_id) - { - _getPointer_id = env->GetMethodID(env->GetObjectClass(obj), "getPointer", "()J"); - if (!_getPointer_id) - { - err("getPointer(): %s", EXCEPTION); - return 0; - } - } - jlong val = env->CallLongMethod(obj, _getPointer_id); - return val; -} - - -static jmethodID _setPointer_id = NULL; - -static void setPointer(JNIEnv *env, jobject obj, jlong val) -{ - if (!_setPointer_id) - { - _setPointer_id = env->GetMethodID(env->GetObjectClass(obj), "setPointer", "(J)V"); - if (!_setPointer_id) - { - err("setPointer(): %s", EXCEPTION); - return; - } - } - env->CallVoidMethod(obj, _setPointer_id, val); -} - - -static void JNICALL BaseObject_construct (JNIEnv *env, jobject obj) -{ - setPointer(env, obj, 0L); -} - -static void JNICALL BaseObject_destruct (JNIEnv *env, jobject obj) -{ - BaseObject *ptr = reinterpret_cast(getPointer(env, obj)); - if (ptr) - { - delete ptr; - } - setPointer(env, obj, 0L); -} - - -static JNINativeMethod nm_BaseObject[] = -{ -{ (char *)"construct", (char *)"()V", (void *)BaseObject_construct }, -{ (char *)"destruct", (char *)"()V", (void *)BaseObject_destruct }, -{ NULL, NULL, NULL } -}; - -static NativeClass nc_BaseObject = -{ - "org/inkscape/cmn/BaseObject", - nm_BaseObject -}; - -//######################################################################## -//# BASE OBJECT -//######################################################################## - -static void JNICALL DOMBase_construct - (JNIEnv *env, jobject obj) -{ - setPointer(env, obj, 0L); -} - -static void JNICALL DOMBase_destruct - (JNIEnv *env, jobject obj) -{ - NodePtr *ptr = reinterpret_cast(getPointer(env, obj)); - if (ptr) - { - delete ptr; - } - setPointer(env, obj, 0L); -} - - -static JNINativeMethod nm_DOMBase[] = -{ -{ (char *)"construct", (char *)"()V", (void *)DOMBase_construct }, -{ (char *)"destruct", (char *)"()V", (void *)DOMBase_destruct }, -{ NULL, NULL, NULL } -}; - -static NativeClass nc_DOMBase = -{ - "org/inkscape/dom/DOMBase", - nm_DOMBase -}; - - -//######################################################################## -//# DOMImplementation -//######################################################################## - - -static void JNICALL DOMImplementation_nCreateDocument - (JNIEnv *env, jobject obj) -{ - DOMImplementationImpl domImpl; - DocumentTypePtr docType = domImpl.createDocumentType("", "", ""); - DocumentPtr doc = domImpl.createDocument("", "", docType); - DocumentPtr *ptr = new DocumentPtr(doc); - setPointer(env, obj, (jlong)ptr); -} - - - -static JNINativeMethod nm_DOMImplementation[] = -{ -{ (char *)"construct", (char *)"()V", (void *)DOMImplementation_nCreateDocument }, -{ NULL, NULL, NULL } -}; - -static NativeClass nc_DOMImplementation = -{ - "org/inkscape/dom/DOMImplementation", - nm_DOMImplementation -}; - - - -//######################################################################## -//# MAIN -//######################################################################## - - -/** - * This is a table-of-tables, matching a class name to its - * table of native methods. We can probably think of a cleaner way - * of doing this - */ -static NativeClass *allClasses[] = -{ - &nc_BaseObject, - &nc_DOMBase, - &nc_DOMImplementation, - NULL -}; - - - -bool JavaBinderyImpl::doBinding() -{ - for (NativeClass **nc = allClasses ; *nc ; nc++) - { - bool ret = registerNatives((*nc)->className, (*nc)->methods); - if (!ret) - { - err("Could not bind native methods"); - return false; - } - } - return true; -} - - - - -} // namespace Bind -} // namespace Inkscape - -//######################################################################## -//# E N D O F F I L E -//######################################################################## diff --git a/src/bind/java/org/inkscape/cmn/BaseInterface.java b/src/bind/java/org/inkscape/cmn/BaseInterface.java deleted file mode 100644 index 2cc1228f5..000000000 --- a/src/bind/java/org/inkscape/cmn/BaseInterface.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.cmn; - -/** - * A BaseInterface is not an object of its down, but is owned - * by a parent BaseObject. It has no mapping to a C++ object of - * its own, but is merely the delegate that a BaseObject calls. - * This is how we provide some semblance of multiple inheritance, - * and keep the native method count down. - */ -public class BaseInterface extends BaseObject -{ -BaseObject parent; - - -public void setParent(BaseObject par) -{ - parent = par; -} - -/** - * Overloaded. getPointer() means that -any- java instance rooted on - * either BaseObject or BaseInterface can call getPointer() to get the - * handle to the associated C++ object pointer. The difference is that - * BaseObject holds the actual pointer, while BaseInterface refers to - * its owner BaseObject. - */ -protected long getPointer() -{ - if (parent == null) - return 0L; - else - return parent.getPointer(); -} - -/** - * Since this is an interface, construct() - * means nothing. Nothing must happen - */ -protected void construct() -{ -} - -/** - * Since this is an interface, destruct() - * means nothing. Nothing must happen - */ -protected void destruct() -{ -} - - -/** - * Instances of this "interface" can only exist parasitically attached - * to a BaseObject - */ -public BaseInterface() -{ - setParent(null); -} - -} diff --git a/src/bind/java/org/inkscape/cmn/BaseObject.java b/src/bind/java/org/inkscape/cmn/BaseObject.java deleted file mode 100644 index b2c7aac8f..000000000 --- a/src/bind/java/org/inkscape/cmn/BaseObject.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.cmn; - -/** - * This is the base of all classes which map to a corresponding - * C++ object. The _pointer value is storage for the C++ object's - * pointer. Construct() and destruct() are called for when things - * need to be setup or cleaned up on the C++ side during creation or - * destruction of this object. - * - * @see BaseInterface for how we add multiple inheritance to classes - * which are rooted on this class. - */ -public class BaseObject -{ - -private long _pointer; - -/** - * getPointer() means that -any- java instance rooted on - * either BaseObject or BaseInterface can call getPointer() to get the - * handle to the associated C++ object pointer. The difference is that - * BaseObject holds the actual pointer, while BaseInterface refers to - * its owner BaseObject. - */ -protected long getPointer() -{ - return _pointer; -} - -/** - * sets the pointer to the associated C++ object to a new value - */ -protected void setPointer(long val) -{ - _pointer = val; -} - -protected native void construct(); - -protected native void destruct(); - -protected BaseInterface imbue(BaseInterface intf) -{ - intf.setParent(this); - return intf; -} - - -/** - * Simple constructor - */ -public BaseObject() -{ - construct(); -} - -} diff --git a/src/bind/java/org/inkscape/cmn/Gateway.java b/src/bind/java/org/inkscape/cmn/Gateway.java deleted file mode 100644 index fa70d2b7d..000000000 --- a/src/bind/java/org/inkscape/cmn/Gateway.java +++ /dev/null @@ -1,346 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.cmn; - -import java.util.List; -import java.io.FileReader; -import java.io.PrintStream; -import java.io.OutputStream; -import java.io.IOException; -import javax.swing.JOptionPane; - -//####for xml -//read -import org.w3c.dom.Document; -import java.io.ByteArrayInputStream; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -//write -import java.io.ByteArrayOutputStream; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.Transformer; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.StreamResult; - -import org.inkscape.script.ScriptConsole; - - - -/** - * Provide a gateway from C to Java, to simplify adding - * interfaces. - */ -public class Gateway -{ -/** - * Pointer back to the BinderyImpl C++ object that launched me - */ -long backPtr; - - -//######################################################################## -//# MESSSAGES -//######################################################################## -void err(String message) -{ - ScriptConsole console = ScriptConsole.getInstance(); - if (console != null) - console.err("Gateway err:" + message); - else - log("Gateway err:" + message); -} - -void msg(String message) -{ - ScriptConsole console = ScriptConsole.getInstance(); - if (console != null) - console.msg("Gateway err:" + message); - else - log("Gateway:" + message); -} - -void trace(String message) -{ - ScriptConsole console = ScriptConsole.getInstance(); - if (console != null) - console.trace("Gateway:" + message); - else - log("Gateway:" + message); -} - - -//######################################################################## -//# U T I L I T Y -//######################################################################## - -/** - * Parse a String to an XML Document - */ -public Document stringToDoc(String xmlStr) -{ - if (xmlStr == null || xmlStr.length()==0) - return null; - Document doc = null; - try - { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - DocumentBuilder parser = factory.newDocumentBuilder(); - doc = parser.parse(new ByteArrayInputStream(xmlStr.getBytes())); - } - catch (java.io.IOException e) - { - err("stringToDoc:" + e); - return null; - } - catch (javax.xml.parsers.ParserConfigurationException e) - { - err("stringToDoc:" + e); - return null; - } - catch (org.xml.sax.SAXException e) - { - err("stringToDoc:" + e); - return null; - } - return doc; -} - - - -/** - * Serialize an XML Document to a string - */ -public String docToString(Document doc) -{ - if (doc == null) - return ""; - String buf = ""; - try - { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - TransformerFactory factory = TransformerFactory.newInstance(); - Transformer tf = factory.newTransformer(); - tf.transform(new DOMSource(doc), new StreamResult(baos)); - baos.close(); - buf = baos.toString(); - } - catch (java.io.IOException e) - { - err("docToString:" + e); - return null; - } - catch (javax.xml.transform.TransformerConfigurationException e) - { - err("docToString:" + e); - return null; - } - catch (javax.xml.transform.TransformerException e) - { - err("docToString:" + e); - return null; - } - return buf; -} - - -//######################################################################## -//# R E P R (inkscape's xml tree) -//######################################################################## - -private native String documentGet(long backPtr); - -public String documentGet() -{ - return documentGet(backPtr); -} - - -public Document documentGetXml() -{ - String xmlStr = documentGet(); - return stringToDoc(xmlStr); -} - -private native boolean documentSet(long backPtr, String xmlStr); - -public boolean documentSet(String xmlStr) -{ - return documentSet(backPtr, xmlStr); -} - -public boolean documentSetXml(Document doc) -{ - String xmlStr = docToString(doc); - return documentSet(xmlStr); -} - - -//######################################################################## -//# LOGGING STREAM -//######################################################################## - -public native void logWrite(long backptr, int ch); - -class LogStream extends OutputStream -{ - -public void write(int ch) -{ - logWrite(backPtr, ch); -} - -} - -PrintStream log = null; - -/** - * printf-style logging - */ -void log(String fmt, Object... args) -{ - log.printf("Gateway:" + fmt, args); -} - - -//######################################################################## -//# RUN -//######################################################################## - - -/** - * Run a script buffer - * - * @param backPtr pointer back to the C context that called this - * @param lang the scripting language to run - * @param str the script buffer to execute - * @return true if successful, else false - */ -public boolean scriptRun(String lang, String str) -{ - //wrap whole thing in try/catch, since this will - //likely be called from C - try - { - ScriptConsole console = ScriptConsole.getInstance(); - if (console == null) - { - err("ScriptConsole not initialized"); - return false; - } - return console.doRun(lang, str); - } - catch (Exception e) - { - err("run :" + e); - e.printStackTrace(); - return false; - } -} - - -/** - * Run a script file - * - * @param backPtr pointer back to the C context that called this - * @param lang the scripting language to run - * @param fname the script file to execute - * @return true if successful, else false - */ -public boolean scriptRunFile(String lang, String fname) -{ - //wrap whole thing in try/catch, since this will - //likely be called from C - try - { - { - ScriptConsole console = ScriptConsole.getInstance(); - if (console == null) - { - err("ScriptConsole not initialized"); - return false; - } - return console.doRun(lang, fname); - } - } - catch (Exception e) - { - err("scriptRunFile :" + e); - return false; - } -} - - - - - -//######################################################################## -//# C O N S O L E -//######################################################################## - - -public boolean showConsole() -{ - ScriptConsole.getInstance().setVisible(true); - return true; -} - - -//######################################################################## -//# CONSTRUCTOR -//######################################################################## - - - - -/** - * Constructor - * @param backPtr pointer back to the C context that called this - */ -public Gateway(long backPtr) -{ - /** - * Set up the logging stream - */ - log = new PrintStream(new LogStream()); - - //Point back to C++ object - this.backPtr = backPtr; - - _instance = this; -} - -private static Gateway _instance = null; - -public static Gateway getInstance() -{ - return _instance; -} - -} -//######################################################################## -//# E N D O F F I L E -//######################################################################## - - diff --git a/src/bind/java/org/inkscape/cmn/Resource.java b/src/bind/java/org/inkscape/cmn/Resource.java deleted file mode 100644 index 3ad139d8a..000000000 --- a/src/bind/java/org/inkscape/cmn/Resource.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.cmn; - -import java.awt.Image; -import javax.swing.ImageIcon; -import java.net.URL; - - - -/** - * This class will hold various functions for getting a - * resource from the classpath or jarfile - */ -public class Resource -{ - - -public static ImageIcon getIcon(String name) -{ - - String path = "/data/icons/" + name; - URL imgurl = Resource.class.getResource(path); - if (imgurl == null) - { - System.err.println("Icon '" + path + "' not found"); - return null; - } - ImageIcon icon = new ImageIcon(imgurl); - return icon; -} - -public static Image getImage(String name) -{ - - ImageIcon icon = getIcon(name); - if (icon == null) - return null; - return icon.getImage(); -} - - -} - diff --git a/src/bind/java/org/inkscape/dom/AttrImpl.java b/src/bind/java/org/inkscape/dom/AttrImpl.java deleted file mode 100644 index ead12c6c5..000000000 --- a/src/bind/java/org/inkscape/dom/AttrImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.Element; -import org.w3c.dom.TypeInfo; - - -public class AttrImpl - extends NodeImpl - implements org.w3c.dom.Attr -{ - -public native String getName(); - -public native boolean getSpecified(); - -public native String getValue(); - -public native void setValue(String value) - throws DOMException; - -public native Element getOwnerElement(); - -public native TypeInfo getSchemaTypeInfo(); - -public native boolean isId(); - -} diff --git a/src/bind/java/org/inkscape/dom/CDATASectionImpl.java b/src/bind/java/org/inkscape/dom/CDATASectionImpl.java deleted file mode 100644 index 3ac77da54..000000000 --- a/src/bind/java/org/inkscape/dom/CDATASectionImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - - -package org.inkscape.dom; - - -public class CDATASectionImpl - extends TextImpl - implements org.w3c.dom.CDATASection -{ -} diff --git a/src/bind/java/org/inkscape/dom/CharacterDataImpl.java b/src/bind/java/org/inkscape/dom/CharacterDataImpl.java deleted file mode 100644 index 1c540a41c..000000000 --- a/src/bind/java/org/inkscape/dom/CharacterDataImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - - - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - - - - -public class CharacterDataImpl - extends NodeImpl - implements org.w3c.dom.CharacterData -{ - -public native String getData() - throws DOMException; -public native void setData(String data) - throws DOMException; - -public native int getLength(); - -public native String substringData(int offset, - int count) - throws DOMException; - -public native void appendData(String arg) - throws DOMException; - -public native void insertData(int offset, - String arg) - throws DOMException; - -public native void deleteData(int offset, - int count) - throws DOMException; - -public native void replaceData(int offset, - int count, - String arg) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/CommentImpl.java b/src/bind/java/org/inkscape/dom/CommentImpl.java deleted file mode 100644 index 5abe4d14b..000000000 --- a/src/bind/java/org/inkscape/dom/CommentImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - - -package org.inkscape.dom; - - -public class CommentImpl - extends CharacterDataImpl - implements org.w3c.dom.Comment -{ -} diff --git a/src/bind/java/org/inkscape/dom/DOMBase.java b/src/bind/java/org/inkscape/dom/DOMBase.java deleted file mode 100644 index 4ab1409f0..000000000 --- a/src/bind/java/org/inkscape/dom/DOMBase.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.dom; - - - -/** - * This is the base Java class upon which - * all of the DOM classes are rooted - */ -public class DOMBase - extends org.inkscape.cmn.BaseObject -{ - -/** - * @see dobinding.cpp: DOMBase_construct(). - * - * Overloaded from BaseObject so that we can do 'special' construction - */ -protected native void construct(); - -/** - * @see dobinding.cpp: DOMBase_destruct() - * - * Overloaded from BaseObject so that we can do 'special' destruction - */ -protected native void destruct(); - - - -/** - * Overload Object.finalize() so that we - * can perform proper cleanup. - */ -protected void finalize() -{ - destruct(); -} - - -public DOMBase() -{ - construct(); -} - -} -//######################################################################## -//# E N D O F F I L E -//######################################################################## - diff --git a/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java b/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java deleted file mode 100644 index 23ed58628..000000000 --- a/src/bind/java/org/inkscape/dom/DOMConfigurationImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; -import org.w3c.dom.DOMStringList; - - - - -public class DOMConfigurationImpl - implements org.w3c.dom.DOMConfiguration -{ - -public native void setParameter(String name, - Object value) - throws DOMException; - -public native Object getParameter(String name) - throws DOMException; - -public native boolean canSetParameter(String name, - Object value); - -public native DOMStringList getParameterNames(); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java b/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java deleted file mode 100644 index 5cdbe2ee9..000000000 --- a/src/bind/java/org/inkscape/dom/DOMErrorHandlerImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class DOMErrorHandlerImpl - implements org.w3c.dom.DOMErrorHandler -{ - -public native boolean handleError(org.w3c.dom.DOMError error); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMErrorImpl.java b/src/bind/java/org/inkscape/dom/DOMErrorImpl.java deleted file mode 100644 index 80cb09b9b..000000000 --- a/src/bind/java/org/inkscape/dom/DOMErrorImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class DOMErrorImpl - implements org.w3c.dom.DOMError -{ - -public native short getSeverity(); - -public native String getMessage(); - -public native String getType(); - -public native Object getRelatedException(); - -public native Object getRelatedData(); - -public native org.w3c.dom.DOMLocator getLocation(); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java deleted file mode 100644 index 1c4188ed7..000000000 --- a/src/bind/java/org/inkscape/dom/DOMImplementationImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Document; -import org.w3c.dom.DocumentType; - - - -public class DOMImplementationImpl - implements org.w3c.dom.DOMImplementation -{ - -public native boolean hasFeature(String feature, - String version); - - -public native DocumentType createDocumentType(String qualifiedName, - String publicId, - String systemId) - throws DOMException; - - -public native Document createDocument(String namespaceURI, - String qualifiedName, - DocumentType doctype) - throws DOMException; - - -public native Object getFeature(String feature, - String version); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java deleted file mode 100644 index 35bee53d2..000000000 --- a/src/bind/java/org/inkscape/dom/DOMImplementationListImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMImplementation; - - -public class DOMImplementationListImpl - implements org.w3c.dom.DOMImplementationList -{ - -public native DOMImplementation item(int index); - - -public native int getLength(); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java b/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java deleted file mode 100644 index a2a2a8f26..000000000 --- a/src/bind/java/org/inkscape/dom/DOMImplementationSourceImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMImplementation; -import org.w3c.dom.DOMImplementationList; - -public class DOMImplementationSourceImpl - implements org.w3c.dom.DOMImplementationSource -{ -public native DOMImplementation getDOMImplementation(String features); - -public native DOMImplementationList getDOMImplementationList(String features); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java b/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java deleted file mode 100644 index c5abe4ca1..000000000 --- a/src/bind/java/org/inkscape/dom/DOMLocatorImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class DOMLocatorImpl - implements org.w3c.dom.DOMLocator -{ - -public native int getLineNumber(); - -public native int getColumnNumber(); - -public native int getByteOffset(); - -public native int getUtf16Offset(); - -public native org.w3c.dom.Node getRelatedNode(); - -public native String getUri(); - -} diff --git a/src/bind/java/org/inkscape/dom/DOMStringListImpl.java b/src/bind/java/org/inkscape/dom/DOMStringListImpl.java deleted file mode 100644 index 91c31c574..000000000 --- a/src/bind/java/org/inkscape/dom/DOMStringListImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - - -public class DOMStringListImpl - implements org.w3c.dom.DOMStringList -{ - -public native String item(int index); - -public native int getLength(); - -public native boolean contains(String str); - -} diff --git a/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java b/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java deleted file mode 100644 index 4148f598e..000000000 --- a/src/bind/java/org/inkscape/dom/DocumentFragmentImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class DocumentFragmentImpl - extends NodeImpl - implements org.w3c.dom.DocumentFragment -{ -} diff --git a/src/bind/java/org/inkscape/dom/DocumentImpl.java b/src/bind/java/org/inkscape/dom/DocumentImpl.java deleted file mode 100644 index e381ce573..000000000 --- a/src/bind/java/org/inkscape/dom/DocumentImpl.java +++ /dev/null @@ -1,138 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - - -import org.w3c.dom.Attr; -import org.w3c.dom.CDATASection; -import org.w3c.dom.Comment; -import org.w3c.dom.DocumentFragment; -import org.w3c.dom.DocumentType; -import org.w3c.dom.DOMConfiguration; -import org.w3c.dom.DOMImplementation; -import org.w3c.dom.DOMStringList; -import org.w3c.dom.Element; -import org.w3c.dom.EntityReference; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.ProcessingInstruction; -import org.w3c.dom.Text; - - - -public class DocumentImpl - extends NodeImpl - implements org.w3c.dom.Document -{ - -public native DocumentType getDoctype(); - -public native DOMImplementation getImplementation(); - -public native Element getDocumentElement(); - -public native Element createElement(String tagName) - throws DOMException; - -public native DocumentFragment createDocumentFragment(); - -public native Text createTextNode(String data); - -public native Comment createComment(String data); - -public native CDATASection createCDATASection(String data) - throws DOMException; - -public native ProcessingInstruction createProcessingInstruction(String target, - String data) - throws DOMException; - -public native Attr createAttribute(String name) - throws DOMException; - -public native EntityReference createEntityReference(String name) - throws DOMException; - -public native NodeList getElementsByTagName(String tagname); - -public native Node importNode(Node importedNode, - boolean deep) - throws DOMException; - -public native Element createElementNS(String namespaceURI, - String qualifiedName) - throws DOMException; - -public native Attr createAttributeNS(String namespaceURI, - String qualifiedName) - throws DOMException; - -public native NodeList getElementsByTagNameNS(String namespaceURI, - String localName); - -public native Element getElementById(String elementId); - -public native String getInputEncoding(); - -public native String getXmlEncoding(); - -public native boolean getXmlStandalone(); - -public native void setXmlStandalone(boolean xmlStandalone) - throws DOMException; - -public native String getXmlVersion(); - -public native void setXmlVersion(String xmlVersion) - throws DOMException; - -public native boolean getStrictErrorChecking(); - -public native void setStrictErrorChecking(boolean strictErrorChecking); - -public native String getDocumentURI(); - -public native void setDocumentURI(String documentURI); - -public native Node adoptNode(Node source) - throws DOMException; - -public native DOMConfiguration getDomConfig(); - -public native void normalizeDocument(); - -public native Node renameNode(Node n, - String namespaceURI, - String qualifiedName) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java b/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java deleted file mode 100644 index d3aa13552..000000000 --- a/src/bind/java/org/inkscape/dom/DocumentTypeImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.NamedNodeMap; - - - -public class DocumentTypeImpl - extends NodeImpl - implements org.w3c.dom.DocumentType -{ - -public native String getName(); - -public native NamedNodeMap getEntities(); - -public native NamedNodeMap getNotations(); - -public native String getPublicId(); - -public native String getSystemId(); - -public native String getInternalSubset(); - -} diff --git a/src/bind/java/org/inkscape/dom/ElementImpl.java b/src/bind/java/org/inkscape/dom/ElementImpl.java deleted file mode 100644 index 9040c6ba4..000000000 --- a/src/bind/java/org/inkscape/dom/ElementImpl.java +++ /dev/null @@ -1,111 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Attr; -import org.w3c.dom.NodeList; -import org.w3c.dom.TypeInfo; - - - - -public class ElementImpl - extends NodeImpl - implements org.w3c.dom.Element - -{ - -public native String getTagName(); - -public native String getAttribute(String name); - -public native void setAttribute(String name, - String value) - throws DOMException; - -public native void removeAttribute(String name) - throws DOMException; - -public native Attr getAttributeNode(String name); - -public native Attr setAttributeNode(Attr newAttr) - throws DOMException; - -public native Attr removeAttributeNode(Attr oldAttr) - throws DOMException; - -public native NodeList getElementsByTagName(String name); - -public native String getAttributeNS(String namespaceURI, - String localName) - throws DOMException; - -public native void setAttributeNS(String namespaceURI, - String qualifiedName, - String value) - throws DOMException; - -public native void removeAttributeNS(String namespaceURI, - String localName) - throws DOMException; - -public native Attr getAttributeNodeNS(String namespaceURI, - String localName) - throws DOMException; - -public native Attr setAttributeNodeNS(Attr newAttr) - throws DOMException; - -public native NodeList getElementsByTagNameNS(String namespaceURI, - String localName) - throws DOMException; - -public native boolean hasAttribute(String name); - -public native boolean hasAttributeNS(String namespaceURI, - String localName) - throws DOMException; - -public native TypeInfo getSchemaTypeInfo(); - -public native void setIdAttribute(String name, - boolean isId) - throws DOMException; - -public native void setIdAttributeNS(String namespaceURI, - String localName, - boolean isId) - throws DOMException; - -public native void setIdAttributeNode(Attr idAttr, - boolean isId) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/EntityImpl.java b/src/bind/java/org/inkscape/dom/EntityImpl.java deleted file mode 100644 index 9b86060a6..000000000 --- a/src/bind/java/org/inkscape/dom/EntityImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - - -public class EntityImpl - extends NodeImpl - implements org.w3c.dom.Entity -{ -public native String getPublicId(); - -public native String getSystemId(); - -public native String getNotationName(); - -public native String getInputEncoding(); - -public native String getXmlEncoding(); - -public native String getXmlVersion(); - -} diff --git a/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java b/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java deleted file mode 100644 index 32bbe6d58..000000000 --- a/src/bind/java/org/inkscape/dom/EntityReferenceImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - - -public class EntityReferenceImpl - extends NodeImpl - implements org.w3c.dom.EntityReference -{ -} diff --git a/src/bind/java/org/inkscape/dom/NameListImpl.java b/src/bind/java/org/inkscape/dom/NameListImpl.java deleted file mode 100644 index e6d1f10fe..000000000 --- a/src/bind/java/org/inkscape/dom/NameListImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class NameListImpl - implements org.w3c.dom.NameList -{ -public native String getName(int index); - -public native String getNamespaceURI(int index); - -public native int getLength(); - -public native boolean contains(String str); - -public native boolean containsNS(String namespaceURI, - String name); - -} diff --git a/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java b/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java deleted file mode 100644 index 2ee9a7c1e..000000000 --- a/src/bind/java/org/inkscape/dom/NamedNodeMapImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Node; - - - - -public class NamedNodeMapImpl - implements org.w3c.dom.NamedNodeMap -{ - -public native Node getNamedItem(String name); - - -public native Node setNamedItem(Node arg) - throws DOMException; - -public native Node removeNamedItem(String name) - throws DOMException; - -public native Node item(int index); - -public native int getLength(); - -public native Node getNamedItemNS(String namespaceURI, - String localName) - throws DOMException; - -public native Node setNamedItemNS(Node arg) - throws DOMException; - -public native Node removeNamedItemNS(String namespaceURI, - String localName) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/NodeImpl.java b/src/bind/java/org/inkscape/dom/NodeImpl.java deleted file mode 100644 index e6071df42..000000000 --- a/src/bind/java/org/inkscape/dom/NodeImpl.java +++ /dev/null @@ -1,139 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.Document; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.UserDataHandler; - - - - -public class NodeImpl - extends DOMBase - implements org.w3c.dom.Node -{ - -public native String getNodeName(); - -public native String getNodeValue() - throws DOMException; -public native void setNodeValue(String nodeValue) - throws DOMException; - -public native short getNodeType(); - -public native Node getParentNode(); - -public native NodeList getChildNodes(); - -public native Node getFirstChild(); - -public native Node getLastChild(); - -public native Node getPreviousSibling(); - -public native Node getNextSibling(); - -public native NamedNodeMap getAttributes(); - -public native Document getOwnerDocument(); - -public native Node insertBefore(Node newChild, - Node refChild) - throws DOMException; - -public native Node replaceChild(Node newChild, - Node oldChild) - throws DOMException; - -public native Node removeChild(Node oldChild) - throws DOMException; - -public native Node appendChild(Node newChild) - throws DOMException; - -public native boolean hasChildNodes(); - -public native Node cloneNode(boolean deep); - -public native void normalize(); - -public native boolean isSupported(String feature, - String version); - -public native String getNamespaceURI(); - -public native String getPrefix(); - -public native void setPrefix(String prefix) - throws DOMException; - -public native String getLocalName(); - -public native boolean hasAttributes(); - -public native String getBaseURI(); - - -public native short compareDocumentPosition(Node other) - throws DOMException; - - -public native String getTextContent() - throws DOMException; - -public native void setTextContent(String textContent) - throws DOMException; - - -public native boolean isSameNode(Node other); - -public native String lookupPrefix(String namespaceURI); - -public native boolean isDefaultNamespace(String namespaceURI); - -public native String lookupNamespaceURI(String prefix); - -public native boolean isEqualNode(Node arg); - -public native Object getFeature(String feature, - String version); - -public native Object setUserData(String key, - Object data, - UserDataHandler handler); - -public native Object getUserData(String key); - -} diff --git a/src/bind/java/org/inkscape/dom/NodeListImpl.java b/src/bind/java/org/inkscape/dom/NodeListImpl.java deleted file mode 100644 index 14568cc81..000000000 --- a/src/bind/java/org/inkscape/dom/NodeListImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class NodeListImpl - implements org.w3c.dom.NodeList -{ - -public native org.w3c.dom.Node item(int index); - - -public native int getLength(); - -} diff --git a/src/bind/java/org/inkscape/dom/NotationImpl.java b/src/bind/java/org/inkscape/dom/NotationImpl.java deleted file mode 100644 index 326e24f88..000000000 --- a/src/bind/java/org/inkscape/dom/NotationImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class NotationImpl - extends NodeImpl - implements org.w3c.dom.Notation -{ - -public native String getPublicId(); - -public native String getSystemId(); - -} diff --git a/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java b/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java deleted file mode 100644 index db63fd8c0..000000000 --- a/src/bind/java/org/inkscape/dom/ProcessingInstructionImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - - - -public class ProcessingInstructionImpl - extends NodeImpl - implements org.w3c.dom.ProcessingInstruction -{ - -public native String getTarget(); - -public native String getData(); - -public native void setData(String data) throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/TextImpl.java b/src/bind/java/org/inkscape/dom/TextImpl.java deleted file mode 100644 index 0c0bb79b8..000000000 --- a/src/bind/java/org/inkscape/dom/TextImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.Text; - - - -public class TextImpl - extends CharacterDataImpl - implements org.w3c.dom.Text -{ - -public native Text splitText(int offset) - throws DOMException; - -public native boolean isElementContentWhitespace(); - -public native String getWholeText(); - -public native Text replaceWholeText(String content) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/TypeInfoImpl.java b/src/bind/java/org/inkscape/dom/TypeInfoImpl.java deleted file mode 100644 index d19f5f6db..000000000 --- a/src/bind/java/org/inkscape/dom/TypeInfoImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - - -public class TypeInfoImpl - implements org.w3c.dom.TypeInfo -{ - -public native String getTypeName(); - -public native String getTypeNamespace(); - -public native boolean isDerivedFrom(String typeNamespaceArg, - String typeNameArg, - int derivationMethod); - -} diff --git a/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java b/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java deleted file mode 100644 index 98ebeae38..000000000 --- a/src/bind/java/org/inkscape/dom/UserDataHandlerImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html - */ - -package org.inkscape.dom; - -import org.w3c.dom.Node; - - - -public class UserDataHandlerImpl - implements org.w3c.dom.UserDataHandler -{ - -public native void handle(short operation, - String key, - Object data, - Node src, - Node dst); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java b/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java deleted file mode 100644 index 2b1404da5..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSS2PropertiesImpl.java +++ /dev/null @@ -1,527 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; - - -public class CSS2PropertiesImpl - implements org.w3c.dom.css.CSS2Properties -{ - -public native String getAzimuth(); -public native void setAzimuth(String azimuth) - throws DOMException; - -public native String getBackground(); -public native void setBackground(String background) - throws DOMException; - -public native String getBackgroundAttachment(); -public native void setBackgroundAttachment(String backgroundAttachment) - throws DOMException; - -public native String getBackgroundColor(); -public native void setBackgroundColor(String backgroundColor) - throws DOMException; - -public native String getBackgroundImage(); -public native void setBackgroundImage(String backgroundImage) - throws DOMException; - -public native String getBackgroundPosition(); -public native void setBackgroundPosition(String backgroundPosition) - throws DOMException; - -public native String getBackgroundRepeat(); -public native void setBackgroundRepeat(String backgroundRepeat) - throws DOMException; - -public native String getBorder(); -public native void setBorder(String border) - throws DOMException; - -public native String getBorderCollapse(); -public native void setBorderCollapse(String borderCollapse) - throws DOMException; - -public native String getBorderColor(); -public native void setBorderColor(String borderColor) - throws DOMException; - -public native String getBorderSpacing(); -public native void setBorderSpacing(String borderSpacing) - throws DOMException; - -public native String getBorderStyle(); -public native void setBorderStyle(String borderStyle) - throws DOMException; - -public native String getBorderTop(); -public native void setBorderTop(String borderTop) - throws DOMException; - -public native String getBorderRight(); -public native void setBorderRight(String borderRight) - throws DOMException; - -public native String getBorderBottom(); -public native void setBorderBottom(String borderBottom) - throws DOMException; - -public native String getBorderLeft(); -public native void setBorderLeft(String borderLeft) - throws DOMException; - -public native String getBorderTopColor(); -public native void setBorderTopColor(String borderTopColor) - throws DOMException; - -public native String getBorderRightColor(); -public native void setBorderRightColor(String borderRightColor) - throws DOMException; - -public native String getBorderBottomColor(); -public native void setBorderBottomColor(String borderBottomColor) - throws DOMException; - -public native String getBorderLeftColor(); -public native void setBorderLeftColor(String borderLeftColor) - throws DOMException; - -public native String getBorderTopStyle(); -public native void setBorderTopStyle(String borderTopStyle) - throws DOMException; - -public native String getBorderRightStyle(); -public native void setBorderRightStyle(String borderRightStyle) - throws DOMException; - -public native String getBorderBottomStyle(); -public native void setBorderBottomStyle(String borderBottomStyle) - throws DOMException; - -public native String getBorderLeftStyle(); -public native void setBorderLeftStyle(String borderLeftStyle) - throws DOMException; - -public native String getBorderTopWidth(); -public native void setBorderTopWidth(String borderTopWidth) - throws DOMException; - -public native String getBorderRightWidth(); -public native void setBorderRightWidth(String borderRightWidth) - throws DOMException; - -public native String getBorderBottomWidth(); -public native void setBorderBottomWidth(String borderBottomWidth) - throws DOMException; - -public native String getBorderLeftWidth(); -public native void setBorderLeftWidth(String borderLeftWidth) - throws DOMException; - -public native String getBorderWidth(); -public native void setBorderWidth(String borderWidth) - throws DOMException; - -public native String getBottom(); -public native void setBottom(String bottom) - throws DOMException; - -public native String getCaptionSide(); -public native void setCaptionSide(String captionSide) - throws DOMException; - -public native String getClear(); -public native void setClear(String clear) - throws DOMException; - -public native String getClip(); -public native void setClip(String clip) - throws DOMException; - -public native String getColor(); -public native void setColor(String color) - throws DOMException; - -public native String getContent(); -public native void setContent(String content) - throws DOMException; - -public native String getCounterIncrement(); -public native void setCounterIncrement(String counterIncrement) - throws DOMException; - -public native String getCounterReset(); -public native void setCounterReset(String counterReset) - throws DOMException; - -public native String getCue(); -public native void setCue(String cue) - throws DOMException; - -public native String getCueAfter(); -public native void setCueAfter(String cueAfter) - throws DOMException; - -public native String getCueBefore(); -public native void setCueBefore(String cueBefore) - throws DOMException; - -public native String getCursor(); -public native void setCursor(String cursor) - throws DOMException; - -public native String getDirection(); -public native void setDirection(String direction) - throws DOMException; - -public native String getDisplay(); -public native void setDisplay(String display) - throws DOMException; - -public native String getElevation(); -public native void setElevation(String elevation) - throws DOMException; - -public native String getEmptyCells(); -public native void setEmptyCells(String emptyCells) - throws DOMException; - -public native String getCssFloat(); -public native void setCssFloat(String cssFloat) - throws DOMException; - -public native String getFont(); -public native void setFont(String font) - throws DOMException; - -public native String getFontFamily(); -public native void setFontFamily(String fontFamily) - throws DOMException; - -public native String getFontSize(); -public native void setFontSize(String fontSize) - throws DOMException; - -public native String getFontSizeAdjust(); -public native void setFontSizeAdjust(String fontSizeAdjust) - throws DOMException; - -public native String getFontStretch(); -public native void setFontStretch(String fontStretch) - throws DOMException; - -public native String getFontStyle(); -public native void setFontStyle(String fontStyle) - throws DOMException; - -public native String getFontVariant(); -public native void setFontVariant(String fontVariant) - throws DOMException; - -public native String getFontWeight(); -public native void setFontWeight(String fontWeight) - throws DOMException; - -public native String getHeight(); -public native void setHeight(String height) - throws DOMException; - -public native String getLeft(); -public native void setLeft(String left) - throws DOMException; - -public native String getLetterSpacing(); -public native void setLetterSpacing(String letterSpacing) - throws DOMException; - -public native String getLineHeight(); -public native void setLineHeight(String lineHeight) - throws DOMException; - -public native String getListStyle(); -public native void setListStyle(String listStyle) - throws DOMException; - -public native String getListStyleImage(); -public native void setListStyleImage(String listStyleImage) - throws DOMException; - -public native String getListStylePosition(); -public native void setListStylePosition(String listStylePosition) - throws DOMException; - -public native String getListStyleType(); -public native void setListStyleType(String listStyleType) - throws DOMException; - -public native String getMargin(); -public native void setMargin(String margin) - throws DOMException; - -public native String getMarginTop(); -public native void setMarginTop(String marginTop) - throws DOMException; - -public native String getMarginRight(); -public native void setMarginRight(String marginRight) - throws DOMException; - -public native String getMarginBottom(); -public native void setMarginBottom(String marginBottom) - throws DOMException; - -public native String getMarginLeft(); -public native void setMarginLeft(String marginLeft) - throws DOMException; - -public native String getMarkerOffset(); -public native void setMarkerOffset(String markerOffset) - throws DOMException; - -public native String getMarks(); -public native void setMarks(String marks) - throws DOMException; - -public native String getMaxHeight(); -public native void setMaxHeight(String maxHeight) - throws DOMException; - -public native String getMaxWidth(); -public native void setMaxWidth(String maxWidth) - throws DOMException; - -public native String getMinHeight(); -public native void setMinHeight(String minHeight) - throws DOMException; - -public native String getMinWidth(); -public native void setMinWidth(String minWidth) - throws DOMException; - -public native String getOrphans(); -public native void setOrphans(String orphans) - throws DOMException; - -public native String getOutline(); -public native void setOutline(String outline) - throws DOMException; - -public native String getOutlineColor(); -public native void setOutlineColor(String outlineColor) - throws DOMException; - -public native String getOutlineStyle(); -public native void setOutlineStyle(String outlineStyle) - throws DOMException; - -public native String getOutlineWidth(); -public native void setOutlineWidth(String outlineWidth) - throws DOMException; - -public native String getOverflow(); -public native void setOverflow(String overflow) - throws DOMException; - -public native String getPadding(); -public native void setPadding(String padding) - throws DOMException; - -public native String getPaddingTop(); -public native void setPaddingTop(String paddingTop) - throws DOMException; - -public native String getPaddingRight(); -public native void setPaddingRight(String paddingRight) - throws DOMException; - -public native String getPaddingBottom(); -public native void setPaddingBottom(String paddingBottom) - throws DOMException; - -public native String getPaddingLeft(); -public native void setPaddingLeft(String paddingLeft) - throws DOMException; - -public native String getPage(); -public native void setPage(String page) - throws DOMException; - -public native String getPageBreakAfter(); -public native void setPageBreakAfter(String pageBreakAfter) - throws DOMException; - -public native String getPageBreakBefore(); -public native void setPageBreakBefore(String pageBreakBefore) - throws DOMException; - -public native String getPageBreakInside(); -public native void setPageBreakInside(String pageBreakInside) - throws DOMException; - -public native String getPause(); -public native void setPause(String pause) - throws DOMException; - -public native String getPauseAfter(); -public native void setPauseAfter(String pauseAfter) - throws DOMException; - -public native String getPauseBefore(); -public native void setPauseBefore(String pauseBefore) - throws DOMException; - -public native String getPitch(); -public native void setPitch(String pitch) - throws DOMException; - -public native String getPitchRange(); -public native void setPitchRange(String pitchRange) - throws DOMException; - -public native String getPlayDuring(); -public native void setPlayDuring(String playDuring) - throws DOMException; - -public native String getPosition(); -public native void setPosition(String position) - throws DOMException; - -public native String getQuotes(); -public native void setQuotes(String quotes) - throws DOMException; - -public native String getRichness(); -public native void setRichness(String richness) - throws DOMException; - -public native String getRight(); -public native void setRight(String right) - throws DOMException; - -public native String getSize(); -public native void setSize(String size) - throws DOMException; - -public native String getSpeak(); -public native void setSpeak(String speak) - throws DOMException; - -public native String getSpeakHeader(); -public native void setSpeakHeader(String speakHeader) - throws DOMException; - -public native String getSpeakNumeral(); -public native void setSpeakNumeral(String speakNumeral) - throws DOMException; - -public native String getSpeakPunctuation(); -public native void setSpeakPunctuation(String speakPunctuation) - throws DOMException; - -public native String getSpeechRate(); -public native void setSpeechRate(String speechRate) - throws DOMException; - -public native String getStress(); -public native void setStress(String stress) - throws DOMException; - -public native String getTableLayout(); -public native void setTableLayout(String tableLayout) - throws DOMException; - -public native String getTextAlign(); -public native void setTextAlign(String textAlign) - throws DOMException; - -public native String getTextDecoration(); -public native void setTextDecoration(String textDecoration) - throws DOMException; - -public native String getTextIndent(); -public native void setTextIndent(String textIndent) - throws DOMException; - -public native String getTextShadow(); -public native void setTextShadow(String textShadow) - throws DOMException; - -public native String getTextTransform(); -public native void setTextTransform(String textTransform) - throws DOMException; - -public native String getTop(); -public native void setTop(String top) - throws DOMException; - -public native String getUnicodeBidi(); -public native void setUnicodeBidi(String unicodeBidi) - throws DOMException; - -public native String getVerticalAlign(); -public native void setVerticalAlign(String verticalAlign) - throws DOMException; - -public native String getVisibility(); -public native void setVisibility(String visibility) - throws DOMException; - -public native String getVoiceFamily(); -public native void setVoiceFamily(String voiceFamily) - throws DOMException; - -public native String getVolume(); -public native void setVolume(String volume) - throws DOMException; - -public native String getWhiteSpace(); -public native void setWhiteSpace(String whiteSpace) - throws DOMException; - -public native String getWidows(); -public native void setWidows(String widows) - throws DOMException; - -public native String getWidth(); -public native void setWidth(String width) - throws DOMException; - -public native String getWordSpacing(); -public native void setWordSpacing(String wordSpacing) - throws DOMException; - -public native String getZIndex(); -public native void setZIndex(String zIndex) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java deleted file mode 100644 index b29173353..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSCharsetRuleImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; - - -public class CSSCharsetRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSCharsetRule -{ - -public native String getEncoding(); -public native void setEncoding(String encoding) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java deleted file mode 100644 index cfa779e27..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSFontFaceRuleImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSStyleDeclaration; - - - -public class CSSFontFaceRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSFontFaceRule -{ - -public native CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java deleted file mode 100644 index 8efb7265f..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSImportRuleImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSStyleSheet; -import org.w3c.dom.stylesheets.MediaList; - - - -public class CSSImportRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSImportRule -{ - -public native String getHref(); - -public native MediaList getMedia(); - -public native CSSStyleSheet getStyleSheet(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java deleted file mode 100644 index 0993592ba..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSMediaRuleImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.stylesheets.MediaList; -import org.w3c.dom.css.CSSRuleList; - - -public class CSSMediaRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSMediaRule -{ - -public native MediaList getMedia(); - -public native CSSRuleList getCssRules(); - -public native int insertRule(String rule, - int index) - throws DOMException; - -public native void deleteRule(int index) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java deleted file mode 100644 index 1b7594304..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSPageRuleImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.css.CSSStyleDeclaration; - - -public class CSSPageRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSPageRule -{ - -public native String getSelectorText(); -public native void setSelectorText(String selectorText) - throws DOMException; - -public native CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java b/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java deleted file mode 100644 index 34abe3ca1..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSPrimitiveValueImpl.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.css.Counter; -import org.w3c.dom.css.RGBColor; -import org.w3c.dom.css.Rect; - - -public class CSSPrimitiveValueImpl - extends CSSValueImpl - implements org.w3c.dom.css.CSSPrimitiveValue -{ - -public native short getPrimitiveType(); - -public native void setFloatValue(short unitType, - float floatValue) - throws DOMException; - -public native float getFloatValue(short unitType) - throws DOMException; - -public native void setStringValue(short stringType, - String stringValue) - throws DOMException; - -public native String getStringValue() - throws DOMException; - -public native Counter getCounterValue() - throws DOMException; - -public native Rect getRectValue() - throws DOMException; - -public native RGBColor getRGBColorValue() - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java deleted file mode 100644 index ace49a055..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSRuleImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.css.CSSStyleSheet; -import org.w3c.dom.css.CSSRule; - - -public class CSSRuleImpl - implements org.w3c.dom.css.CSSRule -{ - -public native short getType(); - -public native String getCssText(); -public native void setCssText(String cssText) - throws DOMException; - -public native CSSStyleSheet getParentStyleSheet(); - -public native CSSRule getParentRule(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java b/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java deleted file mode 100644 index 9fa2d0535..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSRuleListImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSRule; - - - -public class CSSRuleListImpl - implements org.w3c.dom.css.CSSRuleList -{ - -public native int getLength(); - -public native CSSRule item(int index); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java deleted file mode 100644 index 73483f07b..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSStyleDeclarationImpl.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.css.CSSRule; -import org.w3c.dom.css.CSSValue; - - - -public class CSSStyleDeclarationImpl - implements org.w3c.dom.css.CSSStyleDeclaration -{ - -public native String getCssText(); -public native void setCssText(String cssText) - throws DOMException; - -public native String getPropertyValue(String propertyName); - -public native CSSValue getPropertyCSSValue(String propertyName); - -public native String removeProperty(String propertyName) - throws DOMException; - -public native String getPropertyPriority(String propertyName); - -public native void setProperty(String propertyName, - String value, - String priority) - throws DOMException; - -public native int getLength(); - -public native String item(int index); - -public native CSSRule getParentRule(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java deleted file mode 100644 index de2d4945e..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSStyleRuleImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.css.CSSStyleDeclaration; - - -public class CSSStyleRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSStyleRule -{ - -public native String getSelectorText(); -public native void setSelectorText(String selectorText) - throws DOMException; - -public native CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java b/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java deleted file mode 100644 index ed14d69c9..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSStyleSheetImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.stylesheets.StyleSheet; -import org.w3c.dom.css.CSSRule; -import org.w3c.dom.css.CSSRuleList; - - -public class CSSStyleSheetImpl - extends org.inkscape.dom.stylesheets.StyleSheetImpl - implements org.w3c.dom.css.CSSStyleSheet -{ - -public native CSSRule getOwnerRule(); - - -public native CSSRuleList getCssRules(); - -public native int insertRule(String rule, - int index) - throws DOMException; - -public native void deleteRule(int index) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java b/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java deleted file mode 100644 index d09a73681..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSUnknownRuleImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - - -public class CSSUnknownRuleImpl - extends CSSRuleImpl - implements org.w3c.dom.css.CSSUnknownRule -{ -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java b/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java deleted file mode 100644 index 6782a95b7..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSValueImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMException; - - -public class CSSValueImpl - implements org.w3c.dom.css.CSSValue -{ - -public native String getCssText(); -public native void setCssText(String cssText) - throws DOMException; - -public native short getCssValueType(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java b/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java deleted file mode 100644 index 334afb1c7..000000000 --- a/src/bind/java/org/inkscape/dom/css/CSSValueListImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSValue; - - - -public class CSSValueListImpl - extends CSSValueImpl - implements org.w3c.dom.css.CSSValueList -{ - -public native int getLength(); - -public native CSSValue item(int index); - -} diff --git a/src/bind/java/org/inkscape/dom/css/CounterImpl.java b/src/bind/java/org/inkscape/dom/css/CounterImpl.java deleted file mode 100644 index 1f656b944..000000000 --- a/src/bind/java/org/inkscape/dom/css/CounterImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - - - -public class CounterImpl - implements org.w3c.dom.css.Counter -{ - -public native String getIdentifier(); - -public native String getListStyle(); - -public native String getSeparator(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java b/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java deleted file mode 100644 index 16bf7a994..000000000 --- a/src/bind/java/org/inkscape/dom/css/DOMImplementationCSSImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.DOMImplementation; -import org.w3c.dom.DOMException; -import org.w3c.dom.css.CSSStyleSheet; - - -public class DOMImplementationCSSImpl - extends - org.inkscape.dom.DOMImplementationImpl - implements org.w3c.dom.css.DOMImplementationCSS -{ - -public native CSSStyleSheet createCSSStyleSheet(String title, - String media) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java b/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java deleted file mode 100644 index bbbd9c110..000000000 --- a/src/bind/java/org/inkscape/dom/css/DocumentCSSImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.stylesheets.DocumentStyle; -import org.w3c.dom.Element; -import org.w3c.dom.css.CSSStyleDeclaration; - - - -public class DocumentCSSImpl - extends - org.inkscape.dom.stylesheets.DocumentStyleImpl - implements org.w3c.dom.css.DocumentCSS -{ - -public native CSSStyleDeclaration getOverrideStyle(Element elt, - String pseudoElt); - -} diff --git a/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java b/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java deleted file mode 100644 index ba36ae487..000000000 --- a/src/bind/java/org/inkscape/dom/css/ElementCSSInlineStyleImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSStyleDeclaration; - - - -public class ElementCSSInlineStyleImpl - implements org.w3c.dom.css.ElementCSSInlineStyle -{ - -public native CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java b/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java deleted file mode 100644 index 0f4d50b58..000000000 --- a/src/bind/java/org/inkscape/dom/css/RGBColorImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSPrimitiveValue; - - -public class RGBColorImpl - implements org.w3c.dom.css.RGBColor -{ - -public native CSSPrimitiveValue getRed(); - -public native CSSPrimitiveValue getGreen(); - -public native CSSPrimitiveValue getBlue(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/RectImpl.java b/src/bind/java/org/inkscape/dom/css/RectImpl.java deleted file mode 100644 index 1ef0a766a..000000000 --- a/src/bind/java/org/inkscape/dom/css/RectImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - - -package org.inkscape.dom.css; - -import org.w3c.dom.css.CSSPrimitiveValue; - - -public class RectImpl - implements org.w3c.dom.css.Rect -{ - -public native CSSPrimitiveValue getTop(); - -public native CSSPrimitiveValue getRight(); - -public native CSSPrimitiveValue getBottom(); - -public native CSSPrimitiveValue getLeft(); - -} diff --git a/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java b/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java deleted file mode 100644 index c52d056b7..000000000 --- a/src/bind/java/org/inkscape/dom/css/ViewCSSImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style - */ - - -package org.inkscape.dom.css; - -import org.w3c.dom.views.AbstractView; -import org.w3c.dom.Element; -import org.w3c.dom.css.CSSStyleDeclaration; - - -public class ViewCSSImpl - extends - org.inkscape.dom.views.AbstractViewImpl - implements org.w3c.dom.css.ViewCSS -{ - -public native CSSStyleDeclaration getComputedStyle(Element elt, - String pseudoElt); - -} diff --git a/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java b/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java deleted file mode 100644 index 3762e57e2..000000000 --- a/src/bind/java/org/inkscape/dom/events/CustomEventImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.events.EventTarget; - - - -public class CustomEventImpl - extends EventImpl - implements org.w3c.dom.events.CustomEvent -{ -public native void setDispatchState(EventTarget target, - short phase); - -public native boolean isPropagationStopped(); - -public native boolean isImmediatePropagationStopped(); - -} diff --git a/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java b/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java deleted file mode 100644 index 504427db3..000000000 --- a/src/bind/java/org/inkscape/dom/events/DocumentEventImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.events.Event; - - - -public class DocumentEventImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.events.DocumentEvent -{ - -public native Event createEvent(String eventType) - throws DOMException; -public native boolean canDispatch(String namespaceURI, - String type); - -} diff --git a/src/bind/java/org/inkscape/dom/events/EventImpl.java b/src/bind/java/org/inkscape/dom/events/EventImpl.java deleted file mode 100644 index 858a3e095..000000000 --- a/src/bind/java/org/inkscape/dom/events/EventImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.events.EventTarget; - - - -public class EventImpl - implements org.w3c.dom.events.Event -{ - -public native String getType(); - -public native EventTarget getTarget(); - -public native EventTarget getCurrentTarget(); - -public native short getEventPhase(); - -public native boolean getBubbles(); - -public native boolean getCancelable(); - -public native long getTimeStamp(); - -public native void stopPropagation(); - -public native void preventDefault(); - -public native void initEvent(String eventTypeArg, - boolean canBubbleArg, - boolean cancelableArg); - -public native String getNamespaceURI(); - -public native boolean isCustom(); - -public native void stopImmediatePropagation(); - -public native boolean isDefaultPrevented(); - -public native void initEventNS(String namespaceURIArg, - String eventTypeArg, - boolean canBubbleArg, - boolean cancelableArg); - -} diff --git a/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java b/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java deleted file mode 100644 index 4b680ff86..000000000 --- a/src/bind/java/org/inkscape/dom/events/EventListenerImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.events.Event; - - - -public class EventListenerImpl - implements org.w3c.dom.events.EventListener -{ - -public native void handleEvent(Event evt); - -} diff --git a/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java b/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java deleted file mode 100644 index 34778f03b..000000000 --- a/src/bind/java/org/inkscape/dom/events/EventTargetImpl.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventListener; - - - -public class EventTargetImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.events.EventTarget -{ - -public native void addEventListener(String type, - EventListener listener, - boolean useCapture); - -public native void removeEventListener(String type, - EventListener listener, - boolean useCapture); - -public native boolean dispatchEvent(Event evt) - throws EventException; - -public native void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup); - -public native void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture); - -public native boolean willTriggerNS(String namespaceURI, - String type); - -public native boolean hasEventListenerNS(String namespaceURI, - String type); - -} diff --git a/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java b/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java deleted file mode 100644 index 24f8de968..000000000 --- a/src/bind/java/org/inkscape/dom/events/KeyboardEventImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.views.AbstractView; - - -public class KeyboardEventImpl - extends UIEventImpl - implements org.w3c.dom.events.KeyboardEvent -{ - -public native String getKeyIdentifier(); - -public native int getKeyLocation(); - -public native boolean getCtrlKey(); - -public native boolean getShiftKey(); - -public native boolean getAltKey(); - -public native boolean getMetaKey(); - -public native boolean getModifierState(String keyIdentifierArg); - -public native void initKeyboardEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String keyIdentifierArg, - int keyLocationArg, - String modifiersList); - -public native void initKeyboardEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String keyIdentifierArg, - int keyLocationArg, - String modifiersList); - -} diff --git a/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java b/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java deleted file mode 100644 index 900074643..000000000 --- a/src/bind/java/org/inkscape/dom/events/MouseEventImpl.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.views.AbstractView; - -import org.w3c.dom.events.EventTarget; - - - -public class MouseEventImpl - extends UIEventImpl - implements org.w3c.dom.events.MouseEvent -{ - -public native int getScreenX(); - -public native int getScreenY(); - -public native int getClientX(); - -public native int getClientY(); - -public native boolean getCtrlKey(); - -public native boolean getShiftKey(); - -public native boolean getAltKey(); - -public native boolean getMetaKey(); - -public native short getButton(); - -public native EventTarget getRelatedTarget(); - -public native void initMouseEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg, - int screenXArg, - int screenYArg, - int clientXArg, - int clientYArg, - boolean ctrlKeyArg, - boolean altKeyArg, - boolean shiftKeyArg, - boolean metaKeyArg, - short buttonArg, - EventTarget relatedTargetArg); - -public native boolean getModifierState(String keyIdentifierArg); - -public native void initMouseEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg, - int screenXArg, - int screenYArg, - int clientXArg, - int clientYArg, - short buttonArg, - EventTarget relatedTargetArg, - String modifiersList); - -} - - diff --git a/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java b/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java deleted file mode 100644 index df3b9915c..000000000 --- a/src/bind/java/org/inkscape/dom/events/MutationEventImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.Node; - - -public class MutationEventImpl - extends EventImpl - implements org.w3c.dom.events.MutationEvent -{ -public native Node getRelatedNode(); - -public native String getPrevValue(); - -public native String getNewValue(); - -public native String getAttrName(); - -public native short getAttrChange(); - -public native void initMutationEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevValueArg, - String newValueArg, - String attrNameArg, - short attrChangeArg); - -public native void initMutationEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevValueArg, - String newValueArg, - String attrNameArg, - short attrChangeArg); - -} diff --git a/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java b/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java deleted file mode 100644 index 5ee722bfa..000000000 --- a/src/bind/java/org/inkscape/dom/events/MutationNameEventImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.Node; - - -public class MutationNameEventImpl - extends MutationEventImpl - implements org.w3c.dom.events.MutationNameEvent -{ - -public native String getPrevNamespaceURI(); - -public native String getPrevNodeName(); - -public native void initMutationNameEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevNamespaceURIArg, - String prevNodeNameArg); - -public native void initMutationNameEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevNamespaceURIArg, - String prevNodeNameArg); - -} diff --git a/src/bind/java/org/inkscape/dom/events/TextEventImpl.java b/src/bind/java/org/inkscape/dom/events/TextEventImpl.java deleted file mode 100644 index c62963c53..000000000 --- a/src/bind/java/org/inkscape/dom/events/TextEventImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - - -package org.inkscape.dom.events; - -import org.w3c.dom.views.AbstractView; - - -public class TextEventImpl - extends UIEventImpl - implements org.w3c.dom.events.TextEvent -{ - -public native String getData(); - -public native void initTextEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String dataArg); - -public native void initTextEventNS(String namespaceURI, - String type, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String dataArg); - -} diff --git a/src/bind/java/org/inkscape/dom/events/UIEventImpl.java b/src/bind/java/org/inkscape/dom/events/UIEventImpl.java deleted file mode 100644 index bb66d154f..000000000 --- a/src/bind/java/org/inkscape/dom/events/UIEventImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the Events files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/java-binding.html - */ - -package org.inkscape.dom.events; - -import org.w3c.dom.views.AbstractView; - - -public class UIEventImpl - extends EventImpl - implements org.w3c.dom.events.UIEvent -{ - -public native AbstractView getView(); - -public native int getDetail(); - -public native void initUIEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg); - -public native void initUIEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg); - -} diff --git a/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java deleted file mode 100644 index bc9ce930e..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementExclusiveTimeContainerImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; -import org.w3c.dom.NodeList; - - -public class ElementExclusiveTimeContainerImpl - extends ElementTimeContainerImpl - implements org.w3c.dom.smil.ElementExclusiveTimeContainer -{ - - -public native String getEndSync(); -public native void setEndSync(String endSync) - throws DOMException; - - -public native NodeList getPausedElements(); - - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java deleted file mode 100644 index 2dfeacbe7..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementLayoutImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class ElementLayoutImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementLayout -{ - -public native String getTitle(); -public native void setTitle(String title) throws DOMException; -public native String getBackgroundColor(); -public native void setBackgroundColor(String backgroundColor) throws DOMException; -public native int getHeight(); -public native void setHeight(int height) throws DOMException; -public native int getWidth(); -public native void setWidth(int width) throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java deleted file mode 100644 index 1feed68dd..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementParallelTimeContainerImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class ElementParallelTimeContainerImpl - extends ElementTimeContainerImpl - implements org.w3c.dom.smil.ElementParallelTimeContainer -{ - -public native String getEndSync(); -public native void setEndSync(String endSync) - throws DOMException; - - -public native float getImplicitDuration(); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java deleted file mode 100644 index 51a3abd38..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementSequentialTimeContainerImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class ElementSequentialTimeContainerImpl - extends ElementTimeContainerImpl - implements org.w3c.dom.smil.ElementSequentialTimeContainer -{ -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java deleted file mode 100644 index 891895064..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementSyncBehaviorImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class ElementSyncBehaviorImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementSyncBehavior -{ - -public native String getSyncBehavior(); - - -public native float getSyncTolerance(); - - -public native String getDefaultSyncBehavior(); - - -public native float getDefaultSyncTolerance(); - - -public native boolean getSyncMaster(); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java deleted file mode 100644 index e406a67e9..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTargetAttributesImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class ElementTargetAttributesImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementTargetAttributes -{ - -public native String getAttributeName(); -public native void setAttributeName(String attributeName); - - -public native short getAttributeType(); -public native void setAttributeType(short attributeType); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java deleted file mode 100644 index 8ab0c57b5..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTestImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -public class ElementTestImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementTest -{ - -public native int getSystemBitrate(); -public native void setSystemBitrate(int systemBitrate) - throws DOMException; - - -public native boolean getSystemCaptions(); -public native void setSystemCaptions(boolean systemCaptions) - throws DOMException; - - -public native String getSystemLanguage(); -public native void setSystemLanguage(String systemLanguage) - throws DOMException; - - -public native boolean getSystemRequired(); - - -public native boolean getSystemScreenSize(); - - -public native boolean getSystemScreenDepth(); - - -public native String getSystemOverdubOrSubtitle(); -public native void setSystemOverdubOrSubtitle(String systemOverdubOrSubtitle) - throws DOMException; - - -public native boolean getSystemAudioDesc(); -public native void setSystemAudioDesc(boolean systemAudioDesc) - throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java deleted file mode 100644 index 2f4fc4cb2..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTimeContainerImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.NodeList; - - -public class ElementTimeContainerImpl - extends ElementTimeImpl - implements org.w3c.dom.smil.ElementTimeContainer -{ - -public native NodeList getTimeChildren(); -public native NodeList getActiveChildrenAt(float instant); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java deleted file mode 100644 index e82161139..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTimeControlImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class ElementTimeControlImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementTimeControl -{ -public native boolean beginElement() throws DOMException; -public native boolean endElement() throws DOMException; -public native boolean beginElementAt(float offset) throws DOMException; -public native boolean endElementAt(float offset) throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java deleted file mode 100644 index fd1567033..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTimeImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.smil.TimeList; - - - -public class ElementTimeImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementTime -{ - -public native TimeList getBegin(); -public native void setBegin(TimeList begin) - throws DOMException; - - -public native TimeList getEnd(); -public native void setEnd(TimeList end) - throws DOMException; - - -public native float getDur(); -public native void setDur(float dur) - throws DOMException; - - - -public native short getRestart(); -public native void setRestart(short restart) - throws DOMException; - - - -public native short getFill(); -public native void setFill(short fill) - throws DOMException; - - -public native float getRepeatCount(); -public native void setRepeatCount(float repeatCount) - throws DOMException; - - -public native float getRepeatDur(); -public native void setRepeatDur(float repeatDur) - throws DOMException; - - -public native boolean beginElement(); - - -public native boolean endElement(); - - -public native void pauseElement(); - - -public native void resumeElement(); - - -public native void seekElement(float seekTo); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java b/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java deleted file mode 100644 index 89acd6188..000000000 --- a/src/bind/java/org/inkscape/dom/smil/ElementTimeManipulationImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class ElementTimeManipulationImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.smil.ElementTimeManipulation -{ - -public native float getSpeed(); -public native void setSpeed(float speed) - throws DOMException; - - -public native float getAccelerate(); -public native void setAccelerate(float accelerate) - throws DOMException; - - -public native float getDecelerate(); -public native void setDecelerate(float decelerate) - throws DOMException; - - -public native boolean getAutoReverse(); -public native void setAutoReverse(boolean autoReverse) - throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java deleted file mode 100644 index 028bda1a9..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILAnimateColorElementImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class SMILAnimateColorElementImpl - extends SMILAnimationImpl - implements org.w3c.dom.smil.SMILAnimateColorElement -{ -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java deleted file mode 100644 index 371174d4e..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILAnimateElementImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class SMILAnimateElementImpl - extends SMILAnimationImpl - implements org.w3c.dom.smil.SMILAnimateElement -{ -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java deleted file mode 100644 index b5f9a5a10..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILAnimateMotionElementImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class SMILAnimateMotionElementImpl - extends SMILAnimateElementImpl - implements org.w3c.dom.smil.SMILAnimateMotionElement -{ - -public native String getPath(); -public native void setPath(String path) throws DOMException; - -public native String getOrigin(); -public native void setOrigin(String origin) throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java deleted file mode 100644 index 46c8feeb3..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILAnimationImpl.java +++ /dev/null @@ -1,153 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.smil.TimeList; - - -public class SMILAnimationImpl - extends SMILElementImpl - //ElementTargetAttributes, - //ElementTime, - //ElementTimeControl - implements org.w3c.dom.smil.SMILAnimation -{ - -public SMILAnimationImpl() -{ - imbue(_ElementTargetAttributes = new ElementTargetAttributesImpl()); - imbue(_ElementTime = new ElementTimeImpl()); - imbue(_ElementTimeControl = new ElementTimeControlImpl()); -} - -//from ElementTargetAttributes -ElementTargetAttributesImpl _ElementTargetAttributes; -public String getAttributeName() - { return _ElementTargetAttributes.getAttributeName(); } -public void setAttributeName(String attributeName) - { _ElementTargetAttributes.setAttributeName(attributeName); } -public short getAttributeType() - { return _ElementTargetAttributes.getAttributeType(); } -public void setAttributeType(short attributeType) - { _ElementTargetAttributes.setAttributeType(attributeType); } -//end ElementTargetAttributes - -//from ElementTime -ElementTimeImpl _ElementTime; -public TimeList getBegin() - { return _ElementTime.getBegin(); } -public void setBegin(TimeList begin) throws DOMException - { _ElementTime.setBegin(begin); } -public TimeList getEnd() - { return _ElementTime.getEnd(); } -public void setEnd(TimeList end) throws DOMException - { _ElementTime.setEnd(end); } -public float getDur() - { return _ElementTime.getDur(); } -public void setDur(float dur) throws DOMException - { _ElementTime.setDur(dur); } -public short getRestart() - { return _ElementTime.getRestart(); } -public void setRestart(short restart) throws DOMException - { _ElementTime.setRestart(restart); } -public short getFill() - { return _ElementTime.getFill(); } -public void setFill(short fill) throws DOMException - { _ElementTime.setFill(fill); } -public float getRepeatCount() - { return _ElementTime.getRepeatCount(); } -public void setRepeatCount(float repeatCount) throws DOMException - { _ElementTime.setRepeatCount(repeatCount); } -public float getRepeatDur() - { return _ElementTime.getRepeatDur(); } -public void setRepeatDur(float repeatDur) throws DOMException - { _ElementTime.setRepeatDur(repeatDur); } -public boolean beginElement() - { return _ElementTime.beginElement(); } -public boolean endElement() - { return _ElementTime.endElement(); } -public void pauseElement() - { _ElementTime.pauseElement(); } -public void resumeElement() - { _ElementTime.resumeElement(); } -public void seekElement(float seekTo) - { _ElementTime.seekElement(seekTo); } -//end ElementTime - - -//from ElementTimeControl -ElementTimeControlImpl _ElementTimeControl; -public boolean beginElementAt(float offset) throws DOMException - { return _ElementTimeControl.beginElementAt(offset); } -public boolean endElementAt(float offset) throws DOMException - { return _ElementTimeControl.endElementAt(offset); } -//end ElementTimeControl - - -public native short getAdditive(); -public native void setAdditive(short additive) - throws DOMException; - - -public native short getAccumulate(); -public native void setAccumulate(short accumulate) - throws DOMException; - -public native short getCalcMode(); -public native void setCalcMode(short calcMode) - throws DOMException; - -public native String getKeySplines(); -public native void setKeySplines(String keySplines) - throws DOMException; - -public native TimeList getKeyTimes(); -public native void setKeyTimes(TimeList keyTimes) - throws DOMException; - -public native String getValues(); -public native void setValues(String values) - throws DOMException; - -public native String getFrom(); -public native void setFrom(String from) - throws DOMException; - -public native String getTo(); -public native void setTo(String to) - throws DOMException; - -public native String getBy(); -public native void setBy(String by) - throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java deleted file mode 100644 index 15104bf47..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILDocumentImpl.java +++ /dev/null @@ -1,103 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.NodeList; -import org.w3c.dom.smil.TimeList; - - - -public class SMILDocumentImpl - extends org.inkscape.dom.DocumentImpl - //ElementTimeContainer - implements org.w3c.dom.smil.SMILDocument -{ -public SMILDocumentImpl() -{ - imbue(_ElementTimeContainer = new ElementTimeContainerImpl()); - _ElementTime = (ElementTimeImpl)_ElementTimeContainer; -} - - - -//from ElementTimeContainer -ElementTimeContainerImpl _ElementTimeContainer; -public NodeList getTimeChildren() - { return _ElementTimeContainer.getTimeChildren(); } -public NodeList getActiveChildrenAt(float instant) - { return _ElementTimeContainer.getActiveChildrenAt(instant); } -//end ElementTimeContainer - -//from ElementTime -ElementTimeImpl _ElementTime; -public TimeList getBegin() - { return _ElementTime.getBegin(); } -public void setBegin(TimeList begin) throws DOMException - { _ElementTime.setBegin(begin); } -public TimeList getEnd() - { return _ElementTime.getEnd(); } -public void setEnd(TimeList end) throws DOMException - { _ElementTime.setEnd(end); } -public float getDur() - { return _ElementTime.getDur(); } -public void setDur(float dur) throws DOMException - { _ElementTime.setDur(dur); } -public short getRestart() - { return _ElementTime.getRestart(); } -public void setRestart(short restart) throws DOMException - { _ElementTime.setRestart(restart); } -public short getFill() - { return _ElementTime.getFill(); } -public void setFill(short fill) throws DOMException - { _ElementTime.setFill(fill); } -public float getRepeatCount() - { return _ElementTime.getRepeatCount(); } -public void setRepeatCount(float repeatCount) throws DOMException - { _ElementTime.setRepeatCount(repeatCount); } -public float getRepeatDur() - { return _ElementTime.getRepeatDur(); } -public void setRepeatDur(float repeatDur) throws DOMException - { _ElementTime.setRepeatDur(repeatDur); } -public boolean beginElement() - { return _ElementTime.beginElement(); } -public boolean endElement() - { return _ElementTime.endElement(); } -public void pauseElement() - { _ElementTime.pauseElement(); } -public void resumeElement() - { _ElementTime.resumeElement(); } -public void seekElement(float seekTo) - { _ElementTime.seekElement(seekTo); } -//end ElementTime - - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java deleted file mode 100644 index d69fdf02e..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILElementImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -public class SMILElementImpl - extends org.inkscape.dom.ElementImpl - implements org.w3c.dom.smil.SMILElement -{ - -public native String getId(); -public native void setId(String id) throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java deleted file mode 100644 index 51fc5912a..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILLayoutElementImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class SMILLayoutElementImpl - extends SMILElementImpl - implements org.w3c.dom.smil.SMILLayoutElement -{ - -public native String getType(); - - -public native boolean getResolved(); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java deleted file mode 100644 index 67e8b032a..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILMediaElementImpl.java +++ /dev/null @@ -1,152 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.smil.TimeList; - - - -public class SMILMediaElementImpl - extends SMILElementImpl - //ElementTime - implements org.w3c.dom.smil.SMILMediaElement -{ -public SMILMediaElementImpl() -{ - imbue(_ElementTime = new ElementTimeImpl()); -} - -//from ElementTime -ElementTimeImpl _ElementTime; -public TimeList getBegin() - { return _ElementTime.getBegin(); } -public void setBegin(TimeList begin) throws DOMException - { _ElementTime.setBegin(begin); } -public TimeList getEnd() - { return _ElementTime.getEnd(); } -public void setEnd(TimeList end) throws DOMException - { _ElementTime.setEnd(end); } -public float getDur() - { return _ElementTime.getDur(); } -public void setDur(float dur) throws DOMException - { _ElementTime.setDur(dur); } -public short getRestart() - { return _ElementTime.getRestart(); } -public void setRestart(short restart) throws DOMException - { _ElementTime.setRestart(restart); } -public short getFill() - { return _ElementTime.getFill(); } -public void setFill(short fill) throws DOMException - { _ElementTime.setFill(fill); } -public float getRepeatCount() - { return _ElementTime.getRepeatCount(); } -public void setRepeatCount(float repeatCount) throws DOMException - { _ElementTime.setRepeatCount(repeatCount); } -public float getRepeatDur() - { return _ElementTime.getRepeatDur(); } -public void setRepeatDur(float repeatDur) throws DOMException - { _ElementTime.setRepeatDur(repeatDur); } -public boolean beginElement() - { return _ElementTime.beginElement(); } -public boolean endElement() - { return _ElementTime.endElement(); } -public void pauseElement() - { _ElementTime.pauseElement(); } -public void resumeElement() - { _ElementTime.resumeElement(); } -public void seekElement(float seekTo) - { _ElementTime.seekElement(seekTo); } -//end ElementTime - - -public native String getAbstractAttr(); -public native void setAbstractAttr(String abstractAttr) - throws DOMException; - - -public native String getAlt(); -public native void setAlt(String alt) - throws DOMException; - -public native String getAuthor(); -public native void setAuthor(String author) - throws DOMException; - -public native String getClipBegin(); -public native void setClipBegin(String clipBegin) - throws DOMException; - -public native String getClipEnd(); -public native void setClipEnd(String clipEnd) - throws DOMException; - -public native String getCopyright(); -public native void setCopyright(String copyright) - throws DOMException; - -public native String getLongdesc(); -public native void setLongdesc(String longdesc) - throws DOMException; - -public native String getPort(); -public native void setPort(String port) - throws DOMException; - -public native String getReadIndex(); -public native void setReadIndex(String readIndex) - throws DOMException; - -public native String getRtpformat(); -public native void setRtpformat(String rtpformat) - throws DOMException; - -public native String getSrc(); -public native void setSrc(String src) - throws DOMException; - -public native String getStripRepeat(); -public native void setStripRepeat(String stripRepeat) - throws DOMException; - -public native String getTitle(); -public native void setTitle(String title) - throws DOMException; - -public native String getTransport(); -public native void setTransport(String transport) - throws DOMException; - -public native String getType(); -public native void setType(String type) - throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java deleted file mode 100644 index 1eb3d6a28..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILRefElementImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class SMILRefElementImpl - extends SMILMediaElementImpl - implements org.w3c.dom.smil.SMILRefElement -{ -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java deleted file mode 100644 index d85cf3d0f..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILRegionElementImpl.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - -public class SMILRegionElementImpl - extends SMILElementImpl - //ElementLayout - implements org.w3c.dom.smil.SMILRegionElement -{ - -public SMILRegionElementImpl() -{ - imbue(_ElementLayout = new ElementLayoutImpl()); -} - -//from ElementLayout -ElementLayoutImpl _ElementLayout; -public String getTitle() - { return _ElementLayout.getTitle(); } -public void setTitle(String title) throws DOMException - { _ElementLayout.setTitle(title); } -public String getBackgroundColor() - { return _ElementLayout.getBackgroundColor(); } -public void setBackgroundColor(String backgroundColor) throws DOMException - { _ElementLayout.setBackgroundColor(backgroundColor); } -public int getHeight() - { return _ElementLayout.getHeight(); } -public void setHeight(int height) throws DOMException - { _ElementLayout.setHeight(height); } -public int getWidth() - { return _ElementLayout.getWidth(); } -public void setWidth(int width) throws DOMException - { _ElementLayout.setWidth(width); } -//end ElementLayout - - -public native String getFit(); -public native void setFit(String fit) throws DOMException; - -public native String getTop(); -public native void setTop(String top) throws DOMException; - -public native int getZIndex(); -public native void setZIndex(int zIndex) throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java deleted file mode 100644 index 1f44f9d1b..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILRegionInterfaceImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.smil.SMILRegionElement; - - -public class SMILRegionInterfaceImpl - implements org.w3c.dom.smil.SMILRegionInterface -{ - -public native SMILRegionElement getRegion(); -public native void setRegion(SMILRegionElement region); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java deleted file mode 100644 index 01def0622..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILRootLayoutElementImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - - -public class SMILRootLayoutElementImpl - extends SMILElementImpl - //, ElementLayout - implements org.w3c.dom.smil.SMILRootLayoutElement -{ - -public SMILRootLayoutElementImpl() -{ - imbue(_ElementLayout = new ElementLayoutImpl()); -} - -//from ElementLayout -ElementLayoutImpl _ElementLayout; -public String getTitle() - { return _ElementLayout.getTitle(); } -public void setTitle(String title) throws DOMException - { _ElementLayout.setTitle(title); } -public String getBackgroundColor() - { return _ElementLayout.getBackgroundColor(); } -public void setBackgroundColor(String backgroundColor) throws DOMException - { _ElementLayout.setBackgroundColor(backgroundColor); } -public int getHeight() - { return _ElementLayout.getHeight(); } -public void setHeight(int height) throws DOMException - { _ElementLayout.setHeight(height); } -public int getWidth() - { return _ElementLayout.getWidth(); } -public void setWidth(int width) throws DOMException - { _ElementLayout.setWidth(width); } -//end ElementLayout - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java deleted file mode 100644 index fce213000..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILSetElementImpl.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.smil.TimeList; - - - -public class SMILSetElementImpl - extends SMILElementImpl - //ElementTimeControl, - //ElementTime, - //ElementTargetAttributes - implements org.w3c.dom.smil.SMILSetElement -{ - -public SMILSetElementImpl() -{ - imbue(_ElementTimeControl = new ElementTimeControlImpl()); - imbue(_ElementTime = new ElementTimeImpl()); - imbue(_ElementTargetAttributes = new ElementTargetAttributesImpl()); -} - - -//from ElementTimeControl -ElementTimeControlImpl _ElementTimeControl; -public boolean beginElementAt(float offset) throws DOMException - { return _ElementTimeControl.beginElementAt(offset); } -public boolean endElementAt(float offset) throws DOMException - { return _ElementTimeControl.endElementAt(offset); } -//end ElementTimeControl - -//from ElementTime -ElementTimeImpl _ElementTime; -public TimeList getBegin() - { return _ElementTime.getBegin(); } -public void setBegin(TimeList begin) throws DOMException - { _ElementTime.setBegin(begin); } -public TimeList getEnd() - { return _ElementTime.getEnd(); } -public void setEnd(TimeList end) throws DOMException - { _ElementTime.setEnd(end); } -public float getDur() - { return _ElementTime.getDur(); } -public void setDur(float dur) throws DOMException - { _ElementTime.setDur(dur); } -public short getRestart() - { return _ElementTime.getRestart(); } -public void setRestart(short restart) throws DOMException - { _ElementTime.setRestart(restart); } -public short getFill() - { return _ElementTime.getFill(); } -public void setFill(short fill) throws DOMException - { _ElementTime.setFill(fill); } -public float getRepeatCount() - { return _ElementTime.getRepeatCount(); } -public void setRepeatCount(float repeatCount) throws DOMException - { _ElementTime.setRepeatCount(repeatCount); } -public float getRepeatDur() - { return _ElementTime.getRepeatDur(); } -public void setRepeatDur(float repeatDur) throws DOMException - { _ElementTime.setRepeatDur(repeatDur); } -public boolean beginElement() - { return _ElementTime.beginElement(); } -public boolean endElement() - { return _ElementTime.endElement(); } -public void pauseElement() - { _ElementTime.pauseElement(); } -public void resumeElement() - { _ElementTime.resumeElement(); } -public void seekElement(float seekTo) - { _ElementTime.seekElement(seekTo); } -//end ElementTime - -//from ElementTargetAttributes -ElementTargetAttributesImpl _ElementTargetAttributes; -public String getAttributeName() - { return _ElementTargetAttributes.getAttributeName(); } -public void setAttributeName(String attributeName) - { _ElementTargetAttributes.setAttributeName(attributeName); } -public short getAttributeType() - { return _ElementTargetAttributes.getAttributeType(); } -public void setAttributeType(short attributeType) - { _ElementTargetAttributes.setAttributeType(attributeType); } -//end ElementTargetAttributes - - - - -public native String getTo(); -public native void setTo(String to); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java deleted file mode 100644 index 78fe093b5..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILSwitchElementImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - - -public class SMILSwitchElementImpl - extends SMILElementImpl - implements org.w3c.dom.smil.SMILSwitchElement -{ - -public native org.w3c.dom.Element getSelectedElement(); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java b/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java deleted file mode 100644 index c5982e5b3..000000000 --- a/src/bind/java/org/inkscape/dom/smil/SMILTopLayoutElementImpl.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; - - - -public class SMILTopLayoutElementImpl - extends SMILElementImpl - //, ElementLayout - implements org.w3c.dom.smil.SMILTopLayoutElement -{ -public SMILTopLayoutElementImpl() -{ - imbue(_ElementLayout = new ElementLayoutImpl()); -} - -//from ElementLayout -ElementLayoutImpl _ElementLayout; -public String getTitle() - { return _ElementLayout.getTitle(); } -public void setTitle(String title) throws DOMException - { _ElementLayout.setTitle(title); } -public String getBackgroundColor() - { return _ElementLayout.getBackgroundColor(); } -public void setBackgroundColor(String backgroundColor) throws DOMException - { _ElementLayout.setBackgroundColor(backgroundColor); } -public int getHeight() - { return _ElementLayout.getHeight(); } -public void setHeight(int height) throws DOMException - { _ElementLayout.setHeight(height); } -public int getWidth() - { return _ElementLayout.getWidth(); } -public void setWidth(int width) throws DOMException - { _ElementLayout.setWidth(width); } -//end ElementLayout - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java deleted file mode 100644 index 40305a7ba..000000000 --- a/src/bind/java/org/inkscape/dom/smil/TimeEventImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.views.AbstractView; - - - -public class TimeEventImpl - extends org.inkscape.dom.events.EventImpl - implements org.w3c.dom.smil.TimeEvent -{ - -public native AbstractView getView(); - -public native int getDetail(); - -public native void initTimeEvent(String typeArg, - AbstractView viewArg, - int detailArg); - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/TimeImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeImpl.java deleted file mode 100644 index e5c6d5987..000000000 --- a/src/bind/java/org/inkscape/dom/smil/TimeImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Element; - - - -public class TimeImpl - implements org.w3c.dom.smil.Time -{ - -public native boolean getResolved(); - -public native double getResolvedOffset(); - -public native short getTimeType(); - -public native double getOffset(); -public native void setOffset(double offset) - throws DOMException; - -public native Element getBaseElement(); -public native void setBaseElement(Element baseElement) - throws DOMException; - - -public native boolean getBaseBegin(); -public native void setBaseBegin(boolean baseBegin) - throws DOMException; - - -public native String getEvent(); -public native void setEvent(String event) - throws DOMException; - - -public native String getMarker(); -public native void setMarker(String marker) - throws DOMException; - -} - diff --git a/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java b/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java deleted file mode 100644 index 88759e61b..000000000 --- a/src/bind/java/org/inkscape/dom/smil/TimeListImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that the SMIL files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/smil-boston-dom/java-binding.html - */ - -package org.inkscape.dom.smil; - -import org.w3c.dom.smil.Time; - - -public class TimeListImpl - implements org.w3c.dom.smil.TimeList -{ - -public native Time item(int index); - -public native int getLength(); - -} - diff --git a/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java deleted file mode 100644 index 924e06d4e..000000000 --- a/src/bind/java/org/inkscape/dom/stylesheets/DocumentStyleImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style/ - */ - - -package org.inkscape.dom.stylesheets; - -import org.w3c.dom.stylesheets.StyleSheetList; - - -public class DocumentStyleImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.stylesheets.DocumentStyle -{ - -public native StyleSheetList getStyleSheets(); - -} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java deleted file mode 100644 index 8497fbccd..000000000 --- a/src/bind/java/org/inkscape/dom/stylesheets/LinkStyleImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style/ - */ - -package org.inkscape.dom.stylesheets; - -import org.w3c.dom.stylesheets.StyleSheet; - - - -public class LinkStyleImpl - implements org.w3c.dom.stylesheets.LinkStyle -{ - -public native StyleSheet getSheet(); - -} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java deleted file mode 100644 index 7451dd55d..000000000 --- a/src/bind/java/org/inkscape/dom/stylesheets/MediaListImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style/ - */ - - -package org.inkscape.dom.stylesheets; - -import org.w3c.dom.DOMException; - - -public class MediaListImpl - implements org.w3c.dom.stylesheets.MediaList -{ - -public native String getMediaText(); -public native void setMediaText(String mediaText) - throws DOMException; - -public native int getLength(); - -public native String item(int index); - -public native void deleteMedium(String oldMedium) - throws DOMException; - -public native void appendMedium(String newMedium) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java deleted file mode 100644 index 7383fa871..000000000 --- a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style/ - */ - -package org.inkscape.dom.stylesheets; - -import org.w3c.dom.Node; -import org.w3c.dom.stylesheets.StyleSheet; -import org.w3c.dom.stylesheets.MediaList; - - - -public class StyleSheetImpl - implements org.w3c.dom.stylesheets.StyleSheet -{ - -public native String getType(); - -public native boolean getDisabled(); -public native void setDisabled(boolean disabled); - -public native Node getOwnerNode(); - -public native StyleSheet getParentStyleSheet(); - -public native String getHref(); - -public native String getTitle(); - -public native MediaList getMedia(); - -} diff --git a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java b/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java deleted file mode 100644 index 11d024948..000000000 --- a/src/bind/java/org/inkscape/dom/stylesheets/StyleSheetListImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these DOM files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/DOM-Level-2-Style/ - */ - - -package org.inkscape.dom.stylesheets; - -import org.w3c.dom.stylesheets.StyleSheet; - -public class StyleSheetListImpl - implements org.w3c.dom.stylesheets.StyleSheetList -{ - -public native int getLength(); - -public native StyleSheet item(int index); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java b/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java deleted file mode 100644 index afa49fd2f..000000000 --- a/src/bind/java/org/inkscape/dom/svg/GetSVGDocumentImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGDocument; - - -public class GetSVGDocumentImpl - implements org.w3c.dom.svg.GetSVGDocument -{ - -public native SVGDocument getSVGDocument ( ) - throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java deleted file mode 100644 index 5a2c8986f..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAElementImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGAElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGAElement -{ - -public SVGAElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -public native SVGAnimatedString getTarget( ); - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java deleted file mode 100644 index a7d7fa013..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphDefElementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -public class SVGAltGlyphDefElementImpl - extends SVGElementImpl - implements org.w3c.dom.svg.SVGAltGlyphDefElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java deleted file mode 100644 index a3d8522cb..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphElementImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.*; - - -public class SVGAltGlyphElementImpl - extends - SVGTextPositioningElementImpl - //SVGURIReference - implements org.w3c.dom.svg.SVGAltGlyphElement -{ - -public SVGAltGlyphElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); -} - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - - -public native String getGlyphRef(); -public native void setGlyphRef(String glyphRef) throws DOMException; -public native String getFormat(); -public native void setFormat(String format) throws DOMException; - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java deleted file mode 100644 index 6c769576a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAltGlyphItemElementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -public class SVGAltGlyphItemElementImpl - extends SVGElementImpl - implements org.w3c.dom.svg.SVGAltGlyphItemElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java deleted file mode 100644 index 8c6f385d4..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAngleImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGAngleImpl - implements org.w3c.dom.svg.SVGAngle -{ -public native short getUnitType( ); -public native float getValue( ); -public native void setValue( float value ) - throws DOMException; -public native float getValueInSpecifiedUnits( ); -public native void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) - throws DOMException; -public native String getValueAsString( ); -public native void setValueAsString( String valueAsString ) - throws DOMException; - -public native void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); -public native void convertToSpecifiedUnits ( short unitType ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java deleted file mode 100644 index d8dbeeab0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimateColorElementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -public class SVGAnimateColorElementImpl - extends SVGAnimationElementImpl - implements org.w3c.dom.svg.SVGAnimateColorElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java deleted file mode 100644 index fb4cf9fe0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimateElementImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -public class SVGAnimateElementImpl - extends SVGAnimationElementImpl - implements org.w3c.dom.svg.SVGAnimateElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java deleted file mode 100644 index 40911bf9d..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimateMotionElementImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -public class SVGAnimateMotionElementImpl - extends SVGAnimationElementImpl - implements org.w3c.dom.svg.SVGAnimateMotionElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java deleted file mode 100644 index 1be3639ac..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimateTransformElementImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -public class SVGAnimateTransformElementImpl - extends SVGAnimationElementImpl - implements org.w3c.dom.svg.SVGAnimateTransformElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java deleted file mode 100644 index f419f49cc..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedAngleImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAngle; - - - -public class SVGAnimatedAngleImpl - implements org.w3c.dom.svg.SVGAnimatedAngle -{ - -public native SVGAngle getBaseVal( ); -public native SVGAngle getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java deleted file mode 100644 index 7501e5120..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedBooleanImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGAnimatedBooleanImpl - implements org.w3c.dom.svg.SVGAnimatedBoolean -{ - -public native boolean getBaseVal( ); - -public native void setBaseVal( boolean baseVal ) - throws DOMException; - -public native boolean getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java deleted file mode 100644 index f38118053..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedEnumerationImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGAnimatedEnumerationImpl - implements org.w3c.dom.svg.SVGAnimatedEnumeration -{ - -public native short getBaseVal( ); - -public native void setBaseVal( short baseVal ) - throws DOMException; - -public native short getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java deleted file mode 100644 index dc6ad43d1..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedIntegerImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGAnimatedIntegerImpl - implements org.w3c.dom.svg.SVGAnimatedInteger -{ - -public native int getBaseVal( ); - -public native void setBaseVal( int baseVal ) - throws DOMException; - -public native int getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java deleted file mode 100644 index 44dce05c8..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGLength; - - -public class SVGAnimatedLengthImpl - implements org.w3c.dom.svg.SVGAnimatedLength -{ - -public native SVGLength getBaseVal( ); - -public native SVGLength getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java deleted file mode 100644 index b9ec6059a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedLengthListImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGLengthList; - - -public class SVGAnimatedLengthListImpl - implements org.w3c.dom.svg.SVGAnimatedLengthList -{ - -public native SVGLengthList getBaseVal( ); -public native SVGLengthList getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java deleted file mode 100644 index dffbb259c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGAnimatedNumberImpl - implements org.w3c.dom.svg.SVGAnimatedNumber -{ - -public native float getBaseVal( ); - -public native void setBaseVal( float baseVal ) - throws DOMException; - -public native float getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java deleted file mode 100644 index 0862330b0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedNumberListImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGNumberList; - - -public class SVGAnimatedNumberListImpl - implements org.w3c.dom.svg.SVGAnimatedNumberList -{ - -public native SVGNumberList getBaseVal( ); - -public native SVGNumberList getAnimVal( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java deleted file mode 100644 index a26e0b5f7..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPathDataImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGPathSegList; - - -public class SVGAnimatedPathDataImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGAnimatedPathData -{ - -public native SVGPathSegList getPathSegList( ); -public native SVGPathSegList getNormalizedPathSegList( ); -public native SVGPathSegList getAnimatedPathSegList( ); -public native SVGPathSegList getAnimatedNormalizedPathSegList( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java deleted file mode 100644 index 3b79d667a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPointsImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGPointList; - - -public class SVGAnimatedPointsImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGAnimatedPoints -{ - -public native SVGPointList getPoints( ); -public native SVGPointList getAnimatedPoints( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java deleted file mode 100644 index 93d463ca0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedPreserveAspectRatioImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGPreserveAspectRatio; - - -public class SVGAnimatedPreserveAspectRatioImpl - implements org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio -{ -public native SVGPreserveAspectRatio getBaseVal( ); -public native SVGPreserveAspectRatio getAnimVal( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java deleted file mode 100644 index ba2bc09a8..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedRectImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGRect; - -public class SVGAnimatedRectImpl - implements org.w3c.dom.svg.SVGAnimatedRect -{ -public native SVGRect getBaseVal( ); -public native SVGRect getAnimVal( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java deleted file mode 100644 index 4276bcb13..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedStringImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -public class SVGAnimatedStringImpl - implements org.w3c.dom.svg.SVGAnimatedString -{ -public native String getBaseVal( ); -public native void setBaseVal( String baseVal ) - throws DOMException; -public native String getAnimVal( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java deleted file mode 100644 index 21a015177..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimatedTransformListImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGTransformList; - - -public class SVGAnimatedTransformListImpl - implements org.w3c.dom.svg.SVGAnimatedTransformList -{ -public native SVGTransformList getBaseVal( ); -public native SVGTransformList getAnimVal( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java deleted file mode 100644 index 8681052fd..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGAnimationElementImpl.java +++ /dev/null @@ -1,132 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.smil.ElementTimeControl; -import org.w3c.dom.svg.*; - -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventListener; - - - -public class SVGAnimationElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGExternalResourcesRequired, - //ElementTimeControl, - //EventTarget - implements org.w3c.dom.svg.SVGAnimationElement -{ - -public SVGAnimationElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_ElementTimeControl = new org.inkscape.dom.smil.ElementTimeControlImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from ElementTimeControl -org.inkscape.dom.smil.ElementTimeControlImpl _ElementTimeControl; -public boolean beginElement() throws DOMException - { return _ElementTimeControl.beginElement(); } -public boolean endElement() throws DOMException - { return _ElementTimeControl.endElement(); } -public boolean beginElementAt(float offset) throws DOMException - { return _ElementTimeControl.beginElementAt(offset); } -public boolean endElementAt(float offset) throws DOMException - { return _ElementTimeControl.endElementAt(offset); } -//end ElementTimeControl - - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -public native SVGElement getTargetElement( ); - -public native float getStartTime ( ); - -public native float getCurrentTime ( ); - -public native float getSimpleDuration ( ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java deleted file mode 100644 index d99f6da80..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGCSSRuleImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - - - -public class SVGCSSRuleImpl - extends - org.inkscape.dom.css.CSSRuleImpl - implements org.w3c.dom.svg.SVGCSSRule -{ - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java deleted file mode 100644 index 4391867b4..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGCircleElementImpl.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventListener; - - -public class SVGCircleElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGCircleElement -{ - -public SVGCircleElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -public native SVGAnimatedLength getCx( ); - -public native SVGAnimatedLength getCy( ); - -public native SVGAnimatedLength getR( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java deleted file mode 100644 index be5dcbbfa..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGClipPathElementImpl.java +++ /dev/null @@ -1,134 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - - -public class SVGClipPathElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //SVGUnitTypes - implements org.w3c.dom.svg.SVGClipPathElement -{ - -public SVGClipPathElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); -} - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - - - - -public native SVGAnimatedEnumeration getClipPathUnits( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java deleted file mode 100644 index 51d11e777..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGColorImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.css.RGBColor; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.svg.SVGICCColor; - -public class SVGColorImpl - extends - org.inkscape.dom.css.CSSValueImpl - implements org.w3c.dom.svg.SVGColor -{ - -public native short getColorType( ); -public native RGBColor getRGBColor( ); -public native SVGICCColor getICCColor( ); - -public native void setRGBColor ( String rgbColor ) - throws SVGException; -public native void setRGBColorICCColor ( String rgbColor, String iccColor ) - throws SVGException; -public native void setColor ( short colorType, String rgbColor, String iccColor ) - throws SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java deleted file mode 100644 index 6e9e70a74..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileElementImpl.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGAnimatedString; - - - -public class SVGColorProfileElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGRenderingIntent - implements org.w3c.dom.svg.SVGColorProfileElement -{ - -public SVGColorProfileElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); -} - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - - -public native String getLocal( ); -public native void setLocal( String local ) - throws DOMException; - -public native String getName( ); -public native void setName( String name ) - throws DOMException; - -public native short getRenderingIntent( ); -public native void setRenderingIntent( short renderingIntent ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java deleted file mode 100644 index 62b95b219..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGColorProfileRuleImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGColorProfileRuleImpl - extends - SVGCSSRuleImpl - //SVGRenderingIntent - implements org.w3c.dom.svg.SVGColorProfileRule -{ - -public native String getSrc( ); -public native void setSrc( String src ) - throws DOMException; - -public native String getName( ); -public native void setName( String name ) - throws DOMException; - -public native short getRenderingIntent( ); -public native void setRenderingIntent( short renderingIntent ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java deleted file mode 100644 index e257e76c8..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGComponentTransferFunctionElementImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedEnumeration; -import org.w3c.dom.svg.SVGAnimatedNumberList; -import org.w3c.dom.svg.SVGAnimatedNumber; - - -public class SVGComponentTransferFunctionElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGComponentTransferFunctionElement -{ - -public native SVGAnimatedEnumeration getType( ); -public native SVGAnimatedNumberList getTableValues( ); -public native SVGAnimatedNumber getSlope( ); -public native SVGAnimatedNumber getIntercept( ); -public native SVGAnimatedNumber getAmplitude( ); -public native SVGAnimatedNumber getExponent( ); -public native SVGAnimatedNumber getOffset( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java deleted file mode 100644 index 29ffd4a10..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGCursorElementImpl.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - - -public class SVGCursorElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGTests, - //SVGExternalResourcesRequired - implements org.w3c.dom.svg.SVGCursorElement -{ - -public SVGCursorElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - - - -public native SVGAnimatedLength getX( ); - -public native SVGAnimatedLength getY( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java deleted file mode 100644 index bc57aa1c9..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGDefinitionSrcElementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -public class SVGDefinitionSrcElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGDefinitionSrcElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java deleted file mode 100644 index b1d23df04..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGDefsElementImpl.java +++ /dev/null @@ -1,165 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGDefsElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGDefsElement -{ -public SVGDefsElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java deleted file mode 100644 index 56a510974..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGDescElementImpl.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGDescElementImpl - extends - SVGElementImpl - // SVGLangSpace, - // SVGStylable - implements org.w3c.dom.svg.SVGDescElement -{ - -public SVGDescElementImpl() -{ - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java deleted file mode 100644 index 9ee152446..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGDocumentImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Document; -import org.w3c.dom.events.Event; -import org.w3c.dom.events.DocumentEvent; - -import org.w3c.dom.svg.SVGSVGElement; - - -public class SVGDocumentImpl - extends - org.inkscape.dom.DocumentImpl - //DocumentEvent - implements org.w3c.dom.svg.SVGDocument -{ -public SVGDocumentImpl() -{ - imbue(_DocumentEvent = new org.inkscape.dom.events.DocumentEventImpl()); -} - -//from DocumentEvent -org.inkscape.dom.events.DocumentEventImpl _DocumentEvent; -public Event createEvent(String eventType) throws DOMException - { return _DocumentEvent.createEvent(eventType); } -public boolean canDispatch(String namespaceURI, String type) - { return _DocumentEvent.canDispatch(namespaceURI, type); } -//end DocumentEvent - -public native String getTitle( ); -public native String getReferrer( ); -public native String getDomain( ); -public native String getURL( ); -public native SVGSVGElement getRootElement( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java deleted file mode 100644 index f0f8c3436..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGElementImpl.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGElement; -import org.w3c.dom.svg.SVGSVGElement; - - - -public class SVGElementImpl - extends - org.inkscape.dom.ElementImpl - implements org.w3c.dom.svg.SVGElement -{ - -public native String getId( ); -public native void setId( String id ) - throws DOMException; -public native String getXMLbase( ); -public native void setXMLbase( String xmlbase ) - throws DOMException; -public native SVGSVGElement getOwnerSVGElement( ); -public native SVGElement getViewportElement( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java deleted file mode 100644 index 2d33de6c2..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGElement; -import org.w3c.dom.svg.SVGUseElement; -import org.w3c.dom.svg.SVGElementInstance; -import org.w3c.dom.svg.SVGElementInstanceList; - - -public class SVGElementInstanceImpl - extends - org.inkscape.dom.events.EventTargetImpl - implements org.w3c.dom.svg.SVGElementInstance -{ - -public native SVGElement getCorrespondingElement( ); -public native SVGUseElement getCorrespondingUseElement( ); -public native SVGElementInstance getParentNode( ); -public native SVGElementInstanceList getChildNodes( ); -public native SVGElementInstance getFirstChild( ); -public native SVGElementInstance getLastChild( ); -public native SVGElementInstance getPreviousSibling( ); -public native SVGElementInstance getNextSibling( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java deleted file mode 100644 index c504701ae..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGElementInstanceListImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGElementInstance; - - -public class SVGElementInstanceListImpl - implements org.w3c.dom.svg.SVGElementInstanceList -{ -public native int getLength( ); - -public native SVGElementInstance item ( int index ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java deleted file mode 100644 index 2e2111649..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGEllipseElementImpl.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGEllipseElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGEllipseElement -{ -public SVGEllipseElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - - -public native SVGAnimatedLength getCx( ); - -public native SVGAnimatedLength getCy( ); - -public native SVGAnimatedLength getRx( ); - -public native SVGAnimatedLength getRy( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java deleted file mode 100644 index ab1b4686d..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGEventImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - - - - -public class SVGEventImpl - extends - org.inkscape.dom.events.EventImpl - implements org.w3c.dom.svg.SVGEvent -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java deleted file mode 100644 index 08fac8312..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGExternalResourcesRequiredImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedBoolean; - - -public class SVGExternalResourcesRequiredImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGExternalResourcesRequired -{ - -public native SVGAnimatedBoolean getExternalResourcesRequired( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java deleted file mode 100644 index a55f2ef49..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEBlendElementImpl.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFEBlendElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEBlendElement -{ -public SVGFEBlendElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedString getIn1(); - -public native SVGAnimatedString getIn2(); - -public native SVGAnimatedEnumeration getMode(); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java deleted file mode 100644 index 9a68d21ab..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEColorMatrixElementImpl.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFEColorMatrixElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEColorMatrixElement -{ -public SVGFEColorMatrixElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedString getIn1( ); - -public native SVGAnimatedEnumeration getType( ); - -public native SVGAnimatedNumberList getValues( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java deleted file mode 100644 index 8ecf3180c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEComponentTransferElementImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFEComponentTransferElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEComponentTransferElement -{ -public SVGFEComponentTransferElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedString getIn1( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java deleted file mode 100644 index 0b5ca1276..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFECompositeElementImpl.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFECompositeElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFECompositeElement -{ -public SVGFECompositeElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - - -public native SVGAnimatedString getIn1( ); - -public native SVGAnimatedString getIn2( ); - -public native SVGAnimatedEnumeration getOperator( ); - -public native SVGAnimatedNumber getK1( ); - -public native SVGAnimatedNumber getK2( ); - -public native SVGAnimatedNumber getK3( ); - -public native SVGAnimatedNumber getK4( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java deleted file mode 100644 index 5fc3514b6..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEConvolveMatrixElementImpl.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEConvolveMatrixElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEConvolveMatrixElement -{ -public SVGFEConvolveMatrixElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedInteger getOrderX( ); - -public native SVGAnimatedInteger getOrderY( ); - -public native SVGAnimatedNumberList getKernelMatrix( ); - -public native SVGAnimatedNumber getDivisor( ); - -public native SVGAnimatedNumber getBias( ); - -public native SVGAnimatedInteger getTargetX( ); - -public native SVGAnimatedInteger getTargetY( ); - -public native SVGAnimatedEnumeration getEdgeMode( ); - -public native SVGAnimatedNumber getKernelUnitLengthX( ); - -public native SVGAnimatedNumber getKernelUnitLengthY( ); - -public native SVGAnimatedBoolean getPreserveAlpha( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java deleted file mode 100644 index 49c95cbec..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEDiffuseLightingElementImpl.java +++ /dev/null @@ -1,86 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEDiffuseLightingElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEDiffuseLightingElement -{ -public SVGFEDiffuseLightingElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedString getIn1( ); - -public native SVGAnimatedNumber getSurfaceScale( ); - -public native SVGAnimatedNumber getDiffuseConstant( ); - -public native SVGAnimatedNumber getKernelUnitLengthX( ); - -public native SVGAnimatedNumber getKernelUnitLengthY( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java deleted file mode 100644 index 53c3199c3..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEDisplacementMapElementImpl.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEDisplacementMapElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEDisplacementMapElement -{ -public SVGFEDisplacementMapElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedString getIn1( ); -public native SVGAnimatedString getIn2( ); -public native SVGAnimatedNumber getScale( ); -public native SVGAnimatedEnumeration getXChannelSelector( ); -public native SVGAnimatedEnumeration getYChannelSelector( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java deleted file mode 100644 index bda6f9f2c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEDistantLightElementImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedNumber; - - -public class SVGFEDistantLightElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFEDistantLightElement -{ - -public native SVGAnimatedNumber getAzimuth( ); -public native SVGAnimatedNumber getElevation( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java deleted file mode 100644 index 476633c0c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEFloodElementImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFEFloodElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEFloodElement -{ -public SVGFEFloodElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedString getIn1( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java deleted file mode 100644 index 347f2b0de..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncAElementImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - -public class SVGFEFuncAElementImpl - extends - SVGComponentTransferFunctionElementImpl - implements org.w3c.dom.svg.SVGFEFuncAElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java deleted file mode 100644 index 536521c4a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncBElementImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - -public class SVGFEFuncBElementImpl - extends - SVGComponentTransferFunctionElementImpl - implements org.w3c.dom.svg.SVGFEFuncBElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java deleted file mode 100644 index 09e50e137..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncGElementImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - -public class SVGFEFuncGElementImpl - extends - SVGComponentTransferFunctionElementImpl - implements org.w3c.dom.svg.SVGFEFuncGElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java deleted file mode 100644 index 21cf4674e..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEFuncRElementImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - - -public class SVGFEFuncRElementImpl - extends - SVGComponentTransferFunctionElementImpl - implements org.w3c.dom.svg.SVGFEFuncRElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java deleted file mode 100644 index 07c085d35..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEGaussianBlurElementImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEGaussianBlurElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEGaussianBlurElement -{ -public SVGFEGaussianBlurElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - - -public native SVGAnimatedString getIn1( ); - -public native SVGAnimatedNumber getStdDeviationX( ); - -public native SVGAnimatedNumber getStdDeviationY( ); - -public native void setStdDeviation ( float stdDeviationX, float stdDeviationY ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java deleted file mode 100644 index 896e96228..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEImageElementImpl.java +++ /dev/null @@ -1,116 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGFEImageElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEImageElement -{ -public SVGFEImageElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java deleted file mode 100644 index 29e878b69..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeElementImpl.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEMergeElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEMergeElement -{ -public SVGFEMergeElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java deleted file mode 100644 index 9083d0ae0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEMergeNodeElementImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedString; - - -public class SVGFEMergeNodeElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFEMergeNodeElement -{ - -public native SVGAnimatedString getIn1( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java deleted file mode 100644 index 4952375d0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEMorphologyElementImpl.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFEMorphologyElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEMorphologyElement -{ -public SVGFEMorphologyElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedString getIn1(); -public native SVGAnimatedEnumeration getOperator(); -public native SVGAnimatedNumber getRadiusX(); -public native SVGAnimatedNumber getRadiusY(); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java deleted file mode 100644 index 86ca46c5b..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEOffsetElementImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFEOffsetElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFEOffsetElement -{ -public SVGFEOffsetElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - -public native SVGAnimatedString getIn1(); - -public native SVGAnimatedNumber getDx(); - -public native SVGAnimatedNumber getDy(); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java deleted file mode 100644 index 5da2e6571..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFEPointLightElementImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedNumber; - - -public class SVGFEPointLightElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFEPointLightElement -{ -public native SVGAnimatedNumber getX( ); -public native SVGAnimatedNumber getY( ); -public native SVGAnimatedNumber getZ( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java deleted file mode 100644 index 4d1091497..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFESpecularLightingElementImpl.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFESpecularLightingElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFESpecularLightingElement -{ -public SVGFESpecularLightingElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedString getIn1( ); - -public native SVGAnimatedNumber getSurfaceScale( ); - -public native SVGAnimatedNumber getSpecularConstant( ); - -public native SVGAnimatedNumber getSpecularExponent( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java deleted file mode 100644 index 9cd942d59..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFESpotLightElementImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedNumber; - - -public class SVGFESpotLightElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFESpotLightElement -{ -public native SVGAnimatedNumber getX( ); -public native SVGAnimatedNumber getY( ); -public native SVGAnimatedNumber getZ( ); -public native SVGAnimatedNumber getPointsAtX( ); -public native SVGAnimatedNumber getPointsAtY( ); -public native SVGAnimatedNumber getPointsAtZ( ); -public native SVGAnimatedNumber getSpecularExponent( ); -public native SVGAnimatedNumber getLimitingConeAngle( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java deleted file mode 100644 index 768f1d7b0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFETileElementImpl.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFETileElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFETileElement -{ -public SVGFETileElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedString getIn1( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java deleted file mode 100644 index 15c206fe7..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFETurbulenceElementImpl.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGFETurbulenceElementImpl - extends - SVGElementImpl - //SVGFilterPrimitiveStandardAttributes - implements org.w3c.dom.svg.SVGFETurbulenceElement -{ -public SVGFETurbulenceElementImpl() -{ - imbue(_SVGFilterPrimitiveStandardAttributes = - new SVGFilterPrimitiveStandardAttributesImpl()); -} - -//from SVGFilterPrimitiveStandardAttributes -SVGFilterPrimitiveStandardAttributesImpl _SVGFilterPrimitiveStandardAttributes; -public SVGAnimatedLength getX() - { return _SVGFilterPrimitiveStandardAttributes.getX(); } -public SVGAnimatedLength getY() - { return _SVGFilterPrimitiveStandardAttributes.getY(); } -public SVGAnimatedLength getWidth() - { return _SVGFilterPrimitiveStandardAttributes.getWidth(); } -public SVGAnimatedLength getHeight() - { return _SVGFilterPrimitiveStandardAttributes.getHeight(); } -public SVGAnimatedString getResult() - { return _SVGFilterPrimitiveStandardAttributes.getResult(); } -//end SVGFilterPrimitiveStandardAttributes - -//from SVGStylable (from SVGFilterPrimitiveStandardAttributes) -public SVGAnimatedString getClassName() - { return _SVGFilterPrimitiveStandardAttributes.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGFilterPrimitiveStandardAttributes.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGFilterPrimitiveStandardAttributes.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedNumber getBaseFrequencyX( ); - -public native SVGAnimatedNumber getBaseFrequencyY( ); - -public native SVGAnimatedInteger getNumOctaves( ); - -public native SVGAnimatedNumber getSeed( ); - -public native SVGAnimatedEnumeration getStitchTiles( ); - -public native SVGAnimatedEnumeration getType( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java deleted file mode 100644 index d5b36e81e..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFilterElementImpl.java +++ /dev/null @@ -1,106 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFilterElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGUnitTypes - implements org.w3c.dom.svg.SVGFilterElement -{ -public SVGFilterElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedEnumeration getFilterUnits( ); -public native SVGAnimatedEnumeration getPrimitiveUnits( ); -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native SVGAnimatedInteger getFilterResX( ); -public native SVGAnimatedInteger getFilterResY( ); -public native void setFilterRes ( int filterResX, int filterResY ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java deleted file mode 100644 index 1dd6b2ea6..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFilterPrimitiveStandardAttributesImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedLength; -import org.w3c.dom.svg.SVGAnimatedString; - - -public class SVGFilterPrimitiveStandardAttributesImpl - extends - SVGStylableImpl - implements org.w3c.dom.svg.SVGFilterPrimitiveStandardAttributes -{ -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native SVGAnimatedString getResult( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java deleted file mode 100644 index a319e03bf..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFitToViewBoxImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedRect; -import org.w3c.dom.svg.SVGAnimatedPreserveAspectRatio; - - -public class SVGFitToViewBoxImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGFitToViewBox -{ - -public native SVGAnimatedRect getViewBox( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java deleted file mode 100644 index 40e55e27c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontElementImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGFontElementImpl - extends - SVGElementImpl - //SVGExternalResourcesRequired, - //SVGStylable - implements org.w3c.dom.svg.SVGFontElement -{ -public SVGFontElementImpl() -{ - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java deleted file mode 100644 index 3e5da61f5..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceElementImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - -public class SVGFontFaceElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFontFaceElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java deleted file mode 100644 index 448ffe732..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceFormatElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGFontFaceFormatElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFontFaceFormatElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java deleted file mode 100644 index 506e1136f..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceNameElementImpl.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - - -public class SVGFontFaceNameElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFontFaceNameElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java deleted file mode 100644 index 7f86c9453..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceSrcElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGFontFaceSrcElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFontFaceSrcElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java deleted file mode 100644 index 228bc4867..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGFontFaceUriElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGFontFaceUriElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGFontFaceUriElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java deleted file mode 100644 index 63df6409b..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGForeignObjectElementImpl.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGForeignObjectElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGForeignObjectElement -{ -public SVGForeignObjectElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - - -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java deleted file mode 100644 index fcc026984..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGGElementImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGGElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGGElement -{ - -public SVGGElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java deleted file mode 100644 index b5dfc9fc0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGGlyphElementImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGGlyphElementImpl - extends - SVGElementImpl - //SVGStylable - implements org.w3c.dom.svg.SVGGlyphElement -{ -public SVGGlyphElementImpl() -{ - imbue(_SVGStylable = new SVGStylableImpl()); -} - - - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java deleted file mode 100644 index 8f72f4fec..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGGlyphRefElementImpl.java +++ /dev/null @@ -1,90 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGGlyphRefElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGStylable - implements org.w3c.dom.svg.SVGGlyphRefElement -{ -public SVGGlyphRefElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - - -public native String getGlyphRef( ); -public native void setGlyphRef( String glyphRef ) - throws DOMException; -public native String getFormat( ); -public native void setFormat( String format ) - throws DOMException; -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getDx( ); -public native void setDx( float dx ) - throws DOMException; -public native float getDy( ); -public native void setDy( float dy ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java deleted file mode 100644 index 5d4206901..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGGradientElementImpl.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGGradientElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGUnitTypes - implements org.w3c.dom.svg.SVGGradientElement -{ - -public SVGGradientElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - - -public native SVGAnimatedEnumeration getGradientUnits( ); -public native SVGAnimatedTransformList getGradientTransform( ); -public native SVGAnimatedEnumeration getSpreadMethod( ); -} - - diff --git a/src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java deleted file mode 100644 index d8d303ec1..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGHKernElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGHKernElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGHKernElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java deleted file mode 100644 index f282df71e..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGICCColorImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGNumberList; - - -public class SVGICCColorImpl - implements org.w3c.dom.svg.SVGICCColor -{ -public native String getColorProfile( ); -public native void setColorProfile( String colorProfile ) - throws DOMException; -public native SVGNumberList getColors( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java deleted file mode 100644 index d7f287fd1..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGImageElementImpl.java +++ /dev/null @@ -1,178 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGImageElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGImageElement -{ - -public SVGImageElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java deleted file mode 100644 index 5caed0330..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLangSpaceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGLangSpaceImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGLangSpace -{ -public native String getXMLlang( ); -public native void setXMLlang( String xmllang ) - throws DOMException; -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java deleted file mode 100644 index 7b6bf9f86..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLengthImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGLengthImpl - implements org.w3c.dom.svg.SVGLength -{ -public native short getUnitType( ); -public native float getValue( ); -public native void setValue( float value ) - throws DOMException; -public native float getValueInSpecifiedUnits( ); -public native void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) - throws DOMException; -public native String getValueAsString( ); -public native void setValueAsString( String valueAsString ) - throws DOMException; - -public native void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); -public native void convertToSpecifiedUnits ( short unitType ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java deleted file mode 100644 index 4f0ce4c66..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLengthListImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.svg.SVGLength; - - -public class SVGLengthListImpl - implements org.w3c.dom.svg.SVGLengthList -{ -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native SVGLength initialize ( SVGLength newItem ) - throws DOMException, SVGException; -public native SVGLength getItem ( int index ) - throws DOMException; -public native SVGLength insertItemBefore ( SVGLength newItem, int index ) - throws DOMException, SVGException; -public native SVGLength replaceItem ( SVGLength newItem, int index ) - throws DOMException, SVGException; -public native SVGLength removeItem ( int index ) - throws DOMException; -public native SVGLength appendItem ( SVGLength newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java deleted file mode 100644 index 74a5f7a61..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLineElementImpl.java +++ /dev/null @@ -1,170 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGLineElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGLineElement -{ - -public SVGLineElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -public native SVGAnimatedLength getX1( ); -public native SVGAnimatedLength getY1( ); -public native SVGAnimatedLength getX2( ); -public native SVGAnimatedLength getY2( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java deleted file mode 100644 index 26d3bb8c0..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLinearGradientElementImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedLength; - - -public class SVGLinearGradientElementImpl - extends - SVGGradientElementImpl - implements org.w3c.dom.svg.SVGLinearGradientElement -{ -public native SVGAnimatedLength getX1( ); -public native SVGAnimatedLength getY1( ); -public native SVGAnimatedLength getX2( ); -public native SVGAnimatedLength getY2( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java deleted file mode 100644 index df9a0d59b..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGLocatableImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.svg.SVGElement; -import org.w3c.dom.svg.SVGRect; -import org.w3c.dom.svg.SVGMatrix; - - -public class SVGLocatableImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGLocatable -{ -public native SVGElement getNearestViewportElement( ); -public native SVGElement getFarthestViewportElement( ); - -public native SVGRect getBBox ( ); -public native SVGMatrix getCTM ( ); -public native SVGMatrix getScreenCTM ( ); -public native SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java deleted file mode 100644 index 9d7c1c6ee..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMPathElementImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - - -public class SVGMPathElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGExternalResourcesRequired - implements org.w3c.dom.svg.SVGMPathElement -{ - -public SVGMPathElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java deleted file mode 100644 index 656ae0f17..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMarkerElementImpl.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGMarkerElementImpl - extends - SVGElementImpl - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGFitToViewBox - implements org.w3c.dom.svg.SVGMarkerElement -{ - -public SVGMarkerElementImpl() -{ - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); -} - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - - -public native SVGAnimatedLength getRefX( ); -public native SVGAnimatedLength getRefY( ); -public native SVGAnimatedEnumeration getMarkerUnits( ); -public native SVGAnimatedLength getMarkerWidth( ); -public native SVGAnimatedLength getMarkerHeight( ); -public native SVGAnimatedEnumeration getOrientType( ); -public native SVGAnimatedAngle getOrientAngle( ); -public native void setOrientToAuto ( ); -public native void setOrientToAngle ( SVGAngle angle ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java deleted file mode 100644 index 507095771..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMaskElementImpl.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGMaskElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGUnitTypes - implements org.w3c.dom.svg.SVGMaskElement -{ - -public SVGMaskElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedEnumeration getMaskUnits( ); -public native SVGAnimatedEnumeration getMaskContentUnits( ); -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java deleted file mode 100644 index 65cf6fbfe..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMatrixImpl.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.svg.SVGMatrix; - - -public class SVGMatrixImpl - implements org.w3c.dom.svg.SVGMatrix -{ -public native float getA( ); -public native void setA( float a ) - throws DOMException; -public native float getB( ); -public native void setB( float b ) - throws DOMException; -public native float getC( ); -public native void setC( float c ) - throws DOMException; -public native float getD( ); -public native void setD( float d ) - throws DOMException; -public native float getE( ); -public native void setE( float e ) - throws DOMException; -public native float getF( ); -public native void setF( float f ) - throws DOMException; - -public native SVGMatrix multiply ( SVGMatrix secondMatrix ); -public native SVGMatrix inverse ( ) - throws SVGException; -public native SVGMatrix translate ( float x, float y ); -public native SVGMatrix scale ( float scaleFactor ); -public native SVGMatrix scaleNonUniform ( float scaleFactorX, float scaleFactorY ); -public native SVGMatrix rotate ( float angle ); -public native SVGMatrix rotateFromVector ( float x, float y ) - throws SVGException; -public native SVGMatrix flipX ( ); -public native SVGMatrix flipY ( ); -public native SVGMatrix skewX ( float angle ); -public native SVGMatrix skewY ( float angle ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java deleted file mode 100644 index e0197ee6f..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMetadataElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGMetadataElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGMetadataElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java deleted file mode 100644 index cbb115ee1..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGMissingGlyphElementImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGMissingGlyphElementImpl - extends - SVGElementImpl - //SVGStylable - implements org.w3c.dom.svg.SVGMissingGlyphElement -{ - -public SVGMissingGlyphElementImpl() -{ - imbue(_SVGStylable = new SVGStylableImpl()); -} - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java deleted file mode 100644 index 1a0c94ffd..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGNumberImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGNumberImpl - implements org.w3c.dom.svg.SVGNumber -{ -public native float getValue( ); -public native void setValue( float value ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java deleted file mode 100644 index 7e2b0c693..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGNumberListImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.svg.SVGNumber; - - -public class SVGNumberListImpl - implements org.w3c.dom.svg.SVGNumberList -{ - -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native SVGNumber initialize ( SVGNumber newItem ) - throws DOMException, SVGException; -public native SVGNumber getItem ( int index ) - throws DOMException; -public native SVGNumber insertItemBefore ( SVGNumber newItem, int index ) - throws DOMException, SVGException; -public native SVGNumber replaceItem ( SVGNumber newItem, int index ) - throws DOMException, SVGException; -public native SVGNumber removeItem ( int index ) - throws DOMException; -public native SVGNumber appendItem ( SVGNumber newItem ) - throws DOMException, SVGException; - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java deleted file mode 100644 index 7387ae150..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPaintImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.css.RGBColor; -import org.w3c.dom.svg.SVGException; - - - -public class SVGPaintImpl - extends - SVGColorImpl - implements org.w3c.dom.svg.SVGPaint -{ -public native short getPaintType( ); -public native String getUri( ); - -public native void setUri ( String uri ); -public native void setPaint ( short paintType, String uri, - String rgbColor, String iccColor ) - throws SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java deleted file mode 100644 index 692c13213..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathElementImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGPathElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget, - //SVGAnimatedPathData - implements org.w3c.dom.svg.SVGPathElement -{ - -public SVGPathElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); - imbue(_SVGAnimatedPathData = new SVGAnimatedPathDataImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - -//from SVGAnimatedPathData -SVGAnimatedPathDataImpl _SVGAnimatedPathData; -public SVGPathSegList getPathSegList() - { return _SVGAnimatedPathData.getPathSegList(); } -public SVGPathSegList getNormalizedPathSegList() - { return _SVGAnimatedPathData.getNormalizedPathSegList(); } -public SVGPathSegList getAnimatedPathSegList() - { return _SVGAnimatedPathData.getAnimatedPathSegList(); } -public SVGPathSegList getAnimatedNormalizedPathSegList() - { return _SVGAnimatedPathData.getAnimatedNormalizedPathSegList(); } -//end SVGAnimatedPathData - -public native SVGAnimatedNumber getPathLength( ); -public native float getTotalLength ( ); -public native SVGPoint getPointAtLength ( float distance ); -public native int getPathSegAtLength ( float distance ); - -//CREATEs -public native SVGPathSegClosePath createSVGPathSegClosePath ( ); -public native SVGPathSegMovetoAbs createSVGPathSegMovetoAbs ( float x, float y ); -public native SVGPathSegMovetoRel createSVGPathSegMovetoRel ( float x, float y ); -public native SVGPathSegLinetoAbs createSVGPathSegLinetoAbs ( float x, float y ); -public native SVGPathSegLinetoRel createSVGPathSegLinetoRel ( float x, float y ); - -public native SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs ( float x, float y, float x1, float y1, float x2, float y2 ); -public native SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel ( float x, float y, float x1, float y1, float x2, float y2 ); - -public native SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs ( float x, float y, float x1, float y1 ); -public native SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel ( float x, float y, float x1, float y1 ); - -public native SVGPathSegArcAbs createSVGPathSegArcAbs ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); -public native SVGPathSegArcRel createSVGPathSegArcRel ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); - -public native SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs ( float x ); -public native SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel ( float x ); - -public native SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs ( float y ); -public native SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel ( float y ); - -public native SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs ( float x, float y, float x2, float y2 ); -public native SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel ( float x, float y, float x2, float y2 ); - -public native SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs ( float x, float y ); -public native SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel ( float x, float y ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java deleted file mode 100644 index ebef29a0a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcAbsImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegArcAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegArcAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getR1( ); -public native void setR1( float r1 ) - throws DOMException; -public native float getR2( ); -public native void setR2( float r2 ) - throws DOMException; -public native float getAngle( ); -public native void setAngle( float angle ) - throws DOMException; -public native boolean getLargeArcFlag( ); -public native void setLargeArcFlag( boolean largeArcFlag ) - throws DOMException; -public native boolean getSweepFlag( ); -public native void setSweepFlag( boolean sweepFlag ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java deleted file mode 100644 index 5d2b15774..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegArcRelImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegArcRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegArcRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getR1( ); -public native void setR1( float r1 ) - throws DOMException; -public native float getR2( ); -public native void setR2( float r2 ) - throws DOMException; -public native float getAngle( ); -public native void setAngle( float angle ) - throws DOMException; -public native boolean getLargeArcFlag( ); -public native void setLargeArcFlag( boolean largeArcFlag ) - throws DOMException; -public native boolean getSweepFlag( ); -public native void setSweepFlag( boolean sweepFlag ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java deleted file mode 100644 index c1615d007..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegClosePathImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGPathSegClosePathImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegClosePath -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java deleted file mode 100644 index 2ace254c2..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicAbsImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoCubicAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoCubicAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX1( ); -public native void setX1( float x1 ) - throws DOMException; -public native float getY1( ); -public native void setY1( float y1 ) - throws DOMException; -public native float getX2( ); -public native void setX2( float x2 ) - throws DOMException; -public native float getY2( ); -public native void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java deleted file mode 100644 index d3bbf140b..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicRelImpl.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoCubicRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoCubicRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX1( ); -public native void setX1( float x1 ) - throws DOMException; -public native float getY1( ); -public native void setY1( float y1 ) - throws DOMException; -public native float getX2( ); -public native void setX2( float x2 ) - throws DOMException; -public native float getY2( ); -public native void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java deleted file mode 100644 index 1c1b1328c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothAbsImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoCubicSmoothAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoCubicSmoothAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX2( ); -public native void setX2( float x2 ) - throws DOMException; -public native float getY2( ); -public native void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java deleted file mode 100644 index 265228bb5..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoCubicSmoothRelImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoCubicSmoothRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoCubicSmoothRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX2( ); -public native void setX2( float x2 ) - throws DOMException; -public native float getY2( ); -public native void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java deleted file mode 100644 index bc2b39052..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticAbsImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoQuadraticAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX1( ); -public native void setX1( float x1 ) - throws DOMException; -public native float getY1( ); -public native void setY1( float y1 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java deleted file mode 100644 index 35dd8f927..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticRelImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoQuadraticRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getX1( ); -public native void setX1( float x1 ) - throws DOMException; -public native float getY1( ); -public native void setY1( float y1 ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java deleted file mode 100644 index 50f0f4be2..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbsImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoQuadraticSmoothAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticSmoothAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java deleted file mode 100644 index c55c706fc..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegCurvetoQuadraticSmoothRelImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegCurvetoQuadraticSmoothRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegCurvetoQuadraticSmoothRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java deleted file mode 100644 index 2a57b613c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSeg -{ -public native short getPathSegType( ); -public native String getPathSegTypeAsLetter( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java deleted file mode 100644 index c53dc3de3..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoAbsImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java deleted file mode 100644 index d7e29c87d..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalAbsImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoHorizontalAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoHorizontalAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java deleted file mode 100644 index 105f321e8..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoHorizontalRelImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoHorizontalRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoHorizontalRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java deleted file mode 100644 index 1c941a79e..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoRelImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java deleted file mode 100644 index ef7e38820..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalAbsImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoVerticalAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoVerticalAbs -{ -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java deleted file mode 100644 index 22fdf9232..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegLinetoVerticalRelImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegLinetoVerticalRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegLinetoVerticalRel -{ -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java deleted file mode 100644 index 99d10586c..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegListImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; - -import org.w3c.dom.svg.SVGPathSeg; - - -public class SVGPathSegListImpl - implements org.w3c.dom.svg.SVGPathSegList -{ -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native SVGPathSeg initialize ( SVGPathSeg newItem ) - throws DOMException, SVGException; -public native SVGPathSeg getItem ( int index ) - throws DOMException; -public native SVGPathSeg insertItemBefore ( SVGPathSeg newItem, int index ) - throws DOMException, SVGException; -public native SVGPathSeg replaceItem ( SVGPathSeg newItem, int index ) - throws DOMException, SVGException; -public native SVGPathSeg removeItem ( int index ) - throws DOMException; -public native SVGPathSeg appendItem ( SVGPathSeg newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java deleted file mode 100644 index a2e08dc46..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoAbsImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegMovetoAbsImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegMovetoAbs -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java deleted file mode 100644 index 989925787..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPathSegMovetoRelImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPathSegMovetoRelImpl - extends - SVGPathSegImpl - implements org.w3c.dom.svg.SVGPathSegMovetoRel -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java deleted file mode 100644 index 9d8c774fe..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPatternElementImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGPatternElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGFitToViewBox, - //SVGUnitTypes - implements org.w3c.dom.svg.SVGPatternElement -{ - -public SVGPatternElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - - - -public native SVGAnimatedEnumeration getPatternUnits( ); -public native SVGAnimatedEnumeration getPatternContentUnits( ); -public native SVGAnimatedTransformList getPatternTransform( ); -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java deleted file mode 100644 index 87f806a1b..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPointImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGPoint; -import org.w3c.dom.svg.SVGMatrix; - - -public class SVGPointImpl - implements org.w3c.dom.svg.SVGPoint -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; - -public native SVGPoint matrixTransform ( SVGMatrix matrix ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java deleted file mode 100644 index e1ab60265..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPointListImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; -import org.w3c.dom.svg.SVGPoint; - - -public class SVGPointListImpl - implements org.w3c.dom.svg.SVGPointList -{ -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native SVGPoint initialize ( SVGPoint newItem ) - throws DOMException, SVGException; -public native SVGPoint getItem ( int index ) - throws DOMException; -public native SVGPoint insertItemBefore ( SVGPoint newItem, int index ) - throws DOMException, SVGException; -public native SVGPoint replaceItem ( SVGPoint newItem, int index ) - throws DOMException, SVGException; -public native SVGPoint removeItem ( int index ) - throws DOMException; -public native SVGPoint appendItem ( SVGPoint newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java deleted file mode 100644 index a93eca993..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPolygonElementImpl.java +++ /dev/null @@ -1,177 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGPolygonElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget, - //SVGAnimatedPoints - implements org.w3c.dom.svg.SVGPolygonElement -{ - -public SVGPolygonElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); - imbue(_SVGAnimatedPoints = new SVGAnimatedPointsImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -//from SVGAnimatedPoints -SVGAnimatedPointsImpl _SVGAnimatedPoints; -public SVGPointList getPoints() - { return _SVGAnimatedPoints.getPoints(); } -public SVGPointList getAnimatedPoints() - { return _SVGAnimatedPoints.getAnimatedPoints(); } -//end SVGAnimatedPoints - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java deleted file mode 100644 index ea017691d..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPolylineElementImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGPolylineElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget, - //SVGAnimatedPoints - implements org.w3c.dom.svg.SVGPolylineElement -{ - -public SVGPolylineElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); - imbue(_SVGAnimatedPoints = new SVGAnimatedPointsImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -//from SVGAnimatedPoints -SVGAnimatedPointsImpl _SVGAnimatedPoints; -public SVGPointList getPoints() - { return _SVGAnimatedPoints.getPoints(); } -public SVGPointList getAnimatedPoints() - { return _SVGAnimatedPoints.getAnimatedPoints(); } -//end SVGAnimatedPoints - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java deleted file mode 100644 index 07d9e26ec..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGPreserveAspectRatioImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGPreserveAspectRatioImpl - implements org.w3c.dom.svg.SVGPreserveAspectRatio -{ -public native short getAlign( ); -public native void setAlign( short align ) - throws DOMException; -public native short getMeetOrSlice( ); -public native void setMeetOrSlice( short meetOrSlice ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java deleted file mode 100644 index 28db7de38..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGRadialGradientElementImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedLength; - - -public class SVGRadialGradientElementImpl - extends - SVGGradientElementImpl - implements org.w3c.dom.svg.SVGRadialGradientElement -{ -public native SVGAnimatedLength getCx( ); -public native SVGAnimatedLength getCy( ); -public native SVGAnimatedLength getR( ); -public native SVGAnimatedLength getFx( ); -public native SVGAnimatedLength getFy( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java deleted file mode 100644 index e0a3aefc7..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGRectElementImpl.java +++ /dev/null @@ -1,170 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGRectElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGRectElement -{ - -public SVGRectElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native SVGAnimatedLength getRx( ); -public native SVGAnimatedLength getRy( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java deleted file mode 100644 index 9b4b0e762..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGRectImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - - -public class SVGRectImpl - implements org.w3c.dom.svg.SVGRect -{ -public native float getX( ); -public native void setX( float x ) - throws DOMException; -public native float getY( ); -public native void setY( float y ) - throws DOMException; -public native float getWidth( ); -public native void setWidth( float width ) - throws DOMException; -public native float getHeight( ); -public native void setHeight( float height ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java deleted file mode 100644 index 629a105cb..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGRenderingIntentImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGRenderingIntentImpl - implements org.w3c.dom.svg.SVGRenderingIntent -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java deleted file mode 100644 index a98db9e07..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGSVGElementImpl.java +++ /dev/null @@ -1,280 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.NodeList; -import org.w3c.dom.Element; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; -import org.w3c.dom.css.RGBColor; - -import org.w3c.dom.views.DocumentView; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; -import org.w3c.dom.events.DocumentEvent; - -import org.w3c.dom.stylesheets.DocumentStyle; -import org.w3c.dom.stylesheets.StyleSheetList; - - - -public class SVGSVGElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGLocatable, - //SVGFitToViewBox, - //SVGZoomAndPan, - //EventTarget, - //DocumentEvent, - //ViewCSS, - //DocumentCSS - implements org.w3c.dom.svg.SVGSVGElement -{ -public SVGSVGElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGLocatable = new SVGLocatableImpl()); - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); - imbue(_SVGZoomAndPan = new SVGZoomAndPanImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); - imbue(_DocumentEvent = new org.inkscape.dom.events.DocumentEventImpl()); - imbue(_ViewCSS = new org.inkscape.dom.css.ViewCSSImpl()); - imbue(_DocumentCSS = new org.inkscape.dom.css.DocumentCSSImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGLocatable -private SVGLocatableImpl _SVGLocatable; -public SVGElement getNearestViewportElement() - { return _SVGLocatable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGLocatable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGLocatable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGLocatable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGLocatable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGLocatable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - -//from SVGZoomAndPan -SVGZoomAndPanImpl _SVGZoomAndPan; -public short getZoomAndPan() - { return _SVGZoomAndPan.getZoomAndPan(); } -public void setZoomAndPan(short zoomAndPan) throws DOMException - { _SVGZoomAndPan.setZoomAndPan(zoomAndPan); } -//end SVGZoomAndPan - - -//from DocumentEvent -org.inkscape.dom.events.DocumentEventImpl _DocumentEvent; -public Event createEvent(String eventType) throws DOMException - { return _DocumentEvent.createEvent(eventType); } -public boolean canDispatch(String namespaceURI, String type) - { return _DocumentEvent.canDispatch(namespaceURI, type); } -//end DocumentEvent - -//from ViewCSS -org.inkscape.dom.css.ViewCSSImpl _ViewCSS; -public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) - { return _ViewCSS.getComputedStyle(elt, pseudoElt); } -//end ViewCSS - -//from AbstractView (from ViewCSS) -public DocumentView getDocument() - { return _ViewCSS.getDocument(); } -//end AbstractView - -//from DocumentCSS -org.inkscape.dom.css.DocumentCSSImpl _DocumentCSS; -public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt) - { return _DocumentCSS.getOverrideStyle(elt, pseudoElt); } -//end DocumentCSS - -//from DocumentStyle (from DocumentCSS) -public StyleSheetList getStyleSheets() - { return _DocumentCSS.getStyleSheets(); } -//end DocumentStyle - - -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native String getContentScriptType( ); -public native void setContentScriptType( String contentScriptType ) - throws DOMException; -public native String getContentStyleType( ); -public native void setContentStyleType( String contentStyleType ) - throws DOMException; -public native SVGRect getViewport( ); -public native float getPixelUnitToMillimeterX( ); -public native float getPixelUnitToMillimeterY( ); -public native float getScreenPixelToMillimeterX( ); -public native float getScreenPixelToMillimeterY( ); -public native boolean getUseCurrentView( ); -public native void setUseCurrentView( boolean useCurrentView ) - throws DOMException; -public native SVGViewSpec getCurrentView( ); -public native float getCurrentScale( ); -public native void setCurrentScale( float currentScale ) - throws DOMException; -public native SVGPoint getCurrentTranslate( ); - -public native int suspendRedraw ( int max_wait_milliseconds ); -public native void unsuspendRedraw ( int suspend_handle_id ) - throws DOMException; -public native void unsuspendRedrawAll ( ); -public native void forceRedraw ( ); -public native void pauseAnimations ( ); -public native void unpauseAnimations ( ); -public native boolean animationsPaused ( ); -public native float getCurrentTime ( ); -public native void setCurrentTime ( float seconds ); -public native NodeList getIntersectionList ( SVGRect rect, SVGElement referenceElement ); -public native NodeList getEnclosureList ( SVGRect rect, SVGElement referenceElement ); -public native boolean checkIntersection ( SVGElement element, SVGRect rect ); -public native boolean checkEnclosure ( SVGElement element, SVGRect rect ); -public native void deselectAll ( ); -public native SVGNumber createSVGNumber ( ); -public native SVGLength createSVGLength ( ); -public native SVGAngle createSVGAngle ( ); -public native SVGPoint createSVGPoint ( ); -public native SVGMatrix createSVGMatrix ( ); -public native SVGRect createSVGRect ( ); -public native SVGTransform createSVGTransform ( ); -public native SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); -public native Element getElementById ( String elementId ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java deleted file mode 100644 index a211ad345..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGScriptElementImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.*; - - - -public class SVGScriptElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGExternalResourcesRequired - implements org.w3c.dom.svg.SVGScriptElement -{ - -public SVGScriptElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - - -public native String getType( ); -public native void setType( String type ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java deleted file mode 100644 index 9187d6104..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGSetElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGSetElementImpl - extends - SVGAnimationElementImpl - implements org.w3c.dom.svg.SVGSetElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java deleted file mode 100644 index dee28e3ed..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGStopElementImpl.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - -public class SVGStopElementImpl - extends - SVGElementImpl - //SVGStylable - implements org.w3c.dom.svg.SVGStopElement -{ - -public SVGStopElementImpl() -{ - imbue(_SVGStylable = new SVGStylableImpl()); -} - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -public native SVGAnimatedNumber getOffset( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java deleted file mode 100644 index cb352d9c9..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGStringListImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; - - - -public class SVGStringListImpl - implements org.w3c.dom.svg.SVGStringList -{ -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native String initialize ( String newItem ) - throws DOMException, SVGException; -public native String getItem ( int index ) - throws DOMException; -public native String insertItemBefore ( String newItem, int index ) - throws DOMException, SVGException; -public native String replaceItem ( String newItem, int index ) - throws DOMException, SVGException; -public native String removeItem ( int index ) - throws DOMException; -public native String appendItem ( String newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java deleted file mode 100644 index 7523d456d..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGStylableImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; -import org.w3c.dom.svg.SVGAnimatedString; - -public class SVGStylableImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGStylable -{ - -public native SVGAnimatedString getClassName( ); -public native CSSStyleDeclaration getStyle( ); -public native CSSValue getPresentationAttribute ( String name ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java deleted file mode 100644 index 8b7408434..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGStyleElementImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGStyleElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGStyleElement -{ -public native String getXMLspace( ); -public native void setXMLspace( String xmlspace ) - throws DOMException; -public native String getType( ); -public native void setType( String type ) - throws DOMException; -public native String getMedia( ); -public native void setMedia( String media ) - throws DOMException; -public native String getTitle( ); -public native void setTitle( String title ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java deleted file mode 100644 index fa74caf70..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGSwitchElementImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGSwitchElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGSwitchElement -{ - -public SVGSwitchElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -} - diff --git a/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java deleted file mode 100644 index 5fded7c3a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGSymbolElementImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - - -public class SVGSymbolElementImpl - extends - SVGElementImpl - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGFitToViewBox, - //EventTarget - implements org.w3c.dom.svg.SVGSymbolElement -{ - -public SVGSymbolElementImpl() -{ - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java deleted file mode 100644 index 545c1f305..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTRefElementImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedString; - - - -public class SVGTRefElementImpl - extends - SVGTextPositioningElementImpl - //SVGURIReference - implements org.w3c.dom.svg.SVGTRefElement -{ - -public SVGTRefElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java deleted file mode 100644 index 89ed5dabb..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTSpanElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGTSpanElementImpl - extends - SVGTextPositioningElementImpl - implements org.w3c.dom.svg.SVGTSpanElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java deleted file mode 100644 index 5f0a8c727..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTestsImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGStringList; - - -public class SVGTestsImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGTests -{ -public native SVGStringList getRequiredFeatures( ); -public native SVGStringList getRequiredExtensions( ); -public native SVGStringList getSystemLanguage( ); -public native boolean hasExtension ( String extension ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java deleted file mode 100644 index 3a271ce7a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextContentElementImpl.java +++ /dev/null @@ -1,161 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventListener; - - - - -public class SVGTextContentElementImpl - extends - SVGElementImpl - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //EventTarget - implements org.w3c.dom.svg.SVGTextContentElement -{ - -public SVGTextContentElementImpl() -{ - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - - -public native SVGAnimatedLength getTextLength( ); -public native SVGAnimatedEnumeration getLengthAdjust( ); - -public native int getNumberOfChars ( ); -public native float getComputedTextLength ( ); -public native float getSubStringLength ( int charnum, int nchars ) - throws DOMException; -public native SVGPoint getStartPositionOfChar ( int charnum ) - throws DOMException; -public native SVGPoint getEndPositionOfChar ( int charnum ) - throws DOMException; -public native SVGRect getExtentOfChar ( int charnum ) - throws DOMException; -public native float getRotationOfChar ( int charnum ) - throws DOMException; -public native int getCharNumAtPosition ( SVGPoint point ); -public native void selectSubString ( int charnum, int nchars ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java deleted file mode 100644 index a312aade8..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextElementImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - - -public class SVGTextElementImpl - extends - SVGTextPositioningElementImpl - //SVGTransformable - implements org.w3c.dom.svg.SVGTextElement -{ - -public SVGTextElementImpl() -{ - imbue(_SVGTransformable = new SVGTransformableImpl()); -} - - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java deleted file mode 100644 index ce6a96da9..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextPathElementImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedLength; -import org.w3c.dom.svg.SVGAnimatedString; -import org.w3c.dom.svg.SVGAnimatedEnumeration; - -public class SVGTextPathElementImpl - extends - SVGTextContentElementImpl - //SVGURIReference - implements org.w3c.dom.svg.SVGTextPathElement -{ - -public SVGTextPathElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -public native SVGAnimatedLength getStartOffset( ); -public native SVGAnimatedEnumeration getMethod( ); -public native SVGAnimatedEnumeration getSpacing( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java deleted file mode 100644 index 1192f081a..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTextPositioningElementImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedLengthList; -import org.w3c.dom.svg.SVGAnimatedNumberList; - - -public class SVGTextPositioningElementImpl - extends - SVGTextContentElementImpl - implements org.w3c.dom.svg.SVGTextPositioningElement -{ -public native SVGAnimatedLengthList getX( ); -public native SVGAnimatedLengthList getY( ); -public native SVGAnimatedLengthList getDx( ); -public native SVGAnimatedLengthList getDy( ); -public native SVGAnimatedNumberList getRotate( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java deleted file mode 100644 index 83cdea5bf..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTitleElementImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - - - -public class SVGTitleElementImpl - extends - SVGElementImpl - //SVGLangSpace, - //SVGStylable - implements org.w3c.dom.svg.SVGTitleElement -{ - -public SVGTitleElementImpl() -{ - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); -} - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java deleted file mode 100644 index 1a5fdc3e5..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTransformImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGMatrix; - - -public class SVGTransformImpl - implements org.w3c.dom.svg.SVGTransform -{ -public native short getType( ); -public native SVGMatrix getMatrix( ); -public native float getAngle( ); - -public native void setMatrix ( SVGMatrix matrix ); -public native void setTranslate ( float tx, float ty ); -public native void setScale ( float sx, float sy ); -public native void setRotate ( float angle, float cx, float cy ); -public native void setSkewX ( float angle ); -public native void setSkewY ( float angle ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java deleted file mode 100644 index 6fa6012a3..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTransformListImpl.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.SVGException; - -import org.w3c.dom.svg.SVGTransform; -import org.w3c.dom.svg.SVGMatrix; - - -public class SVGTransformListImpl - implements org.w3c.dom.svg.SVGTransformList -{ -public native int getNumberOfItems( ); - -public native void clear ( ) - throws DOMException; -public native SVGTransform initialize ( SVGTransform newItem ) - throws DOMException, SVGException; -public native SVGTransform getItem ( int index ) - throws DOMException; -public native SVGTransform insertItemBefore ( SVGTransform newItem, int index ) - throws DOMException, SVGException; -public native SVGTransform replaceItem ( SVGTransform newItem, int index ) - throws DOMException, SVGException; -public native SVGTransform removeItem ( int index ) - throws DOMException; -public native SVGTransform appendItem ( SVGTransform newItem ) - throws DOMException, SVGException; -public native SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); -public native SVGTransform consolidate ( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java deleted file mode 100644 index 96384f6f6..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGTransformableImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedTransformList; - - -public class SVGTransformableImpl - extends - SVGLocatableImpl - implements org.w3c.dom.svg.SVGTransformable -{ -public native SVGAnimatedTransformList getTransform( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java deleted file mode 100644 index 2e3bb0bd4..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGURIReferenceImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.SVGAnimatedString; - - -public class SVGURIReferenceImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGURIReference -{ -public native SVGAnimatedString getHref( ); -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java deleted file mode 100644 index b76dab8ea..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGUnitTypesImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGUnitTypesImpl - implements org.w3c.dom.svg.SVGUnitTypes -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java deleted file mode 100644 index 3283cdc26..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGUseElementImpl.java +++ /dev/null @@ -1,180 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -import org.w3c.dom.svg.*; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -import org.w3c.dom.events.Event; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.EventException; -import org.w3c.dom.events.EventListener; - - -public class SVGUseElementImpl - extends - SVGElementImpl - //SVGURIReference, - //SVGTests, - //SVGLangSpace, - //SVGExternalResourcesRequired, - //SVGStylable, - //SVGTransformable, - //EventTarget - implements org.w3c.dom.svg.SVGUseElement -{ -public SVGUseElementImpl() -{ - imbue(_SVGURIReference = new SVGURIReferenceImpl()); - imbue(_SVGTests = new SVGTestsImpl()); - imbue(_SVGLangSpace = new SVGLangSpaceImpl()); - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGStylable = new SVGStylableImpl()); - imbue(_SVGTransformable = new SVGTransformableImpl()); - imbue(_EventTarget = new org.inkscape.dom.events.EventTargetImpl()); -} - - -//from SVGURIReference -private SVGURIReferenceImpl _SVGURIReference; -public SVGAnimatedString getHref() - { return _SVGURIReference.getHref(); } -//end SVGURIReference - -//from SVGTests -private SVGTestsImpl _SVGTests; -public SVGStringList getRequiredFeatures() - { return _SVGTests.getRequiredFeatures(); } -public SVGStringList getRequiredExtensions() - { return _SVGTests.getRequiredExtensions(); } -public SVGStringList getSystemLanguage() - { return _SVGTests.getSystemLanguage(); } -public boolean hasExtension (String extension) - { return _SVGTests.hasExtension(extension); } -//end SVGTests - -//from SVGLangSpace -private SVGLangSpaceImpl _SVGLangSpace; -public String getXMLlang() - { return _SVGLangSpace.getXMLlang(); } -public void setXMLlang(String xmllang) - throws DOMException - { _SVGLangSpace.setXMLlang(xmllang); } -public String getXMLspace() - { return _SVGLangSpace.getXMLspace(); } -public void setXMLspace(String xmlspace) - throws DOMException - { _SVGLangSpace.setXMLspace(xmlspace); } -//end SVGLangSpace - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - -//from SVGStylable -private SVGStylableImpl _SVGStylable; -public SVGAnimatedString getClassName() - { return _SVGStylable.getClassName(); } -public CSSStyleDeclaration getStyle() - { return _SVGStylable.getStyle(); } -public CSSValue getPresentationAttribute(String name) - { return _SVGStylable.getPresentationAttribute(name); } -//end SVGStylable - -//from SVGTransformable -private SVGTransformableImpl _SVGTransformable; -public SVGAnimatedTransformList getTransform() - { return _SVGTransformable.getTransform(); } -//end SVGTransformable - -//from SVGLocatable (from SVGTransformable) -public SVGElement getNearestViewportElement() - { return _SVGTransformable.getNearestViewportElement(); } -public SVGElement getFarthestViewportElement() - { return _SVGTransformable.getFarthestViewportElement(); } -public SVGRect getBBox() - { return _SVGTransformable.getBBox(); } -public SVGMatrix getCTM() - { return _SVGTransformable.getCTM(); } -public SVGMatrix getScreenCTM() - { return _SVGTransformable.getScreenCTM(); } -public SVGMatrix getTransformToElement (SVGElement element) - throws SVGException - { return _SVGTransformable.getTransformToElement(element); } -//end SVGLocatable - -//from EventTarget -private org.inkscape.dom.events.EventTargetImpl _EventTarget; -public void addEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.addEventListener(type, listener, useCapture); } -public void removeEventListener(String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListener(type, listener, useCapture); } -public boolean dispatchEvent(Event evt) - throws EventException - { return _EventTarget.dispatchEvent(evt); } -public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup) - { _EventTarget.addEventListenerNS(namespaceURI, type, listener, useCapture, evtGroup); } -public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture) - { _EventTarget.removeEventListenerNS(namespaceURI, type, listener, useCapture); } -public boolean willTriggerNS(String namespaceURI, - String type) - { return _EventTarget.willTriggerNS(namespaceURI, type); } -public boolean hasEventListenerNS(String namespaceURI, - String type) - { return _EventTarget.hasEventListenerNS(namespaceURI, type); } -//end EventTarget - - -public native SVGAnimatedLength getX( ); -public native SVGAnimatedLength getY( ); -public native SVGAnimatedLength getWidth( ); -public native SVGAnimatedLength getHeight( ); -public native SVGElementInstance getInstanceRoot( ); -public native SVGElementInstance getAnimatedInstanceRoot( ); - -} - - diff --git a/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java deleted file mode 100644 index 97af0c646..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGVKernElementImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -public class SVGVKernElementImpl - extends - SVGElementImpl - implements org.w3c.dom.svg.SVGVKernElement -{ -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java deleted file mode 100644 index c47336a02..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGViewElementImpl.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.svg.*; - - -public class SVGViewElementImpl - extends - SVGElementImpl - //SVGExternalResourcesRequired, - //SVGFitToViewBox, - //SVGZoomAndPan - implements org.w3c.dom.svg.SVGViewElement -{ -public SVGViewElementImpl() -{ - imbue(_SVGExternalResourcesRequired = new SVGExternalResourcesRequiredImpl()); - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); - imbue(_SVGZoomAndPan = new SVGZoomAndPanImpl()); -} - - -//from SVGExternalResourcesRequired -private SVGExternalResourcesRequiredImpl _SVGExternalResourcesRequired; -public SVGAnimatedBoolean getExternalResourcesRequired() - { return _SVGExternalResourcesRequired.getExternalResourcesRequired(); } -//end SVGExternalResourcesRequired - - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - -//from SVGZoomAndPan -SVGZoomAndPanImpl _SVGZoomAndPan; -public short getZoomAndPan() - { return _SVGZoomAndPan.getZoomAndPan(); } -public void setZoomAndPan(short zoomAndPan) throws DOMException - { _SVGZoomAndPan.setZoomAndPan(zoomAndPan); } -//end SVGZoomAndPan - - -public native SVGStringList getViewTarget( ); - -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java deleted file mode 100644 index 20042bad5..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGViewSpecImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - -package org.inkscape.dom.svg; - -import org.w3c.dom.svg.*; - - - -public class SVGViewSpecImpl - extends - SVGZoomAndPanImpl - //SVGFitToViewBox - implements org.w3c.dom.svg.SVGViewSpec -{ - -public SVGViewSpecImpl() -{ - imbue(_SVGFitToViewBox = new SVGFitToViewBoxImpl()); -} - - -//from SVGFitToViewBox -SVGFitToViewBoxImpl _SVGFitToViewBox; -public SVGAnimatedRect getViewBox() - { return _SVGFitToViewBox.getViewBox(); } -public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() - { return _SVGFitToViewBox.getPreserveAspectRatio(); } -//end SVGFitToViewBox - - -public native SVGTransformList getTransform( ); -public native SVGElement getViewTarget( ); -public native String getViewBoxString( ); -public native String getPreserveAspectRatioString( ); -public native String getTransformString( ); -public native String getViewTargetString( ); -} - diff --git a/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java deleted file mode 100644 index d77d64f75..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGZoomAndPanImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG11/java.html - */ - - - -package org.inkscape.dom.svg; - -import org.w3c.dom.DOMException; - -public class SVGZoomAndPanImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.svg.SVGZoomAndPan -{ -public native short getZoomAndPan( ); -public native void setZoomAndPan( short zoomAndPan ) - throws DOMException; -} diff --git a/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java b/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java deleted file mode 100644 index 018eee915..000000000 --- a/src/bind/java/org/inkscape/dom/svg/SVGZoomEventImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these SVG files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/SVG/java.html - */ - - -package org.inkscape.dom.svg; - -import org.w3c.dom.events.UIEvent; -import org.w3c.dom.svg.SVGRect; -import org.w3c.dom.svg.SVGPoint; - - -public class SVGZoomEventImpl - extends - org.inkscape.dom.events.UIEventImpl - implements org.w3c.dom.svg.SVGZoomEvent -{ -public native SVGRect getZoomRectScreen( ); -public native float getPreviousScale( ); -public native SVGPoint getPreviousTranslate( ); -public native float getNewScale( ); -public native SVGPoint getNewTranslate( ); -} diff --git a/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java b/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java deleted file mode 100644 index 9b2bd2dad..000000000 --- a/src/bind/java/org/inkscape/dom/views/AbstractViewImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113/java-binding.html - */ - -package org.inkscape.dom.views; - -import org.w3c.dom.views.DocumentView; - - -public class AbstractViewImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.views.AbstractView -{ - -public native DocumentView getDocument(); - -} diff --git a/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java b/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java deleted file mode 100644 index a0ae88004..000000000 --- a/src/bind/java/org/inkscape/dom/views/DocumentViewImpl.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (c) 2007-2008 Inkscape.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - * Note that these files are implementations of the Java - * interface package found here: - * http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113/java-binding.html - */ - - -package org.inkscape.dom.views; - -import org.w3c.dom.views.AbstractView; - - -public class DocumentViewImpl - extends - org.inkscape.cmn.BaseInterface - implements org.w3c.dom.views.DocumentView -{ - -public native AbstractView getDefaultView(); - -} diff --git a/src/bind/java/org/inkscape/script/Editor.java b/src/bind/java/org/inkscape/script/Editor.java deleted file mode 100644 index 81d65f4cf..000000000 --- a/src/bind/java/org/inkscape/script/Editor.java +++ /dev/null @@ -1,311 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.script; - - -import java.awt.BorderLayout; -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import javax.swing.filechooser.FileNameExtensionFilter; -import javax.swing.JFileChooser; -import javax.swing.JOptionPane; -import javax.swing.JPanel; -import javax.swing.JTextPane; - -import java.io.File; -import java.io.FileReader; -import java.io.FileWriter; -import java.io.IOException; - - - -/** - * A simple script editor for quick fixes. - */ -public class Editor extends JPanel -{ -ScriptConsole parent; -JTextPane textPane; - -//######################################################################## -//# MESSSAGES -//######################################################################## -void err(String fmt, Object... arguments) -{ - parent.err("Editor err:" + fmt, arguments); -} - -void msg(String fmt, Object... arguments) -{ - parent.msg("Editor:" + fmt, arguments); -} - -void trace(String fmt, Object... arguments) -{ - parent.trace("Editor:" + fmt, arguments); -} - - -//######################################################################## -//# U T I L I T Y -//######################################################################## - -private JFileChooser _chooser; - -JFileChooser getChooser() -{ - if (_chooser == null) - { - _chooser = new JFileChooser(); - _chooser.setAcceptAllFileFilterUsed(false); - _chooser.setCurrentDirectory(new File(".")); - FileNameExtensionFilter filter = new FileNameExtensionFilter( - "Script Files", "js", "py", "r"); - _chooser.setFileFilter(filter); - } - return _chooser; -} - - -/** - * Returns the current text contained in this editor - */ -public String getText() -{ - return textPane.getText(); -} - - -String lastHash = null; - -/** - * Sets the text of this editor - */ -public void setText(String txt) -{ - textPane.setText(txt); - lastHash = getHash(txt); - trace("hash:" + lastHash); -} - -MessageDigest md = null; - -final String hex = "0123456789abcdef"; - -String toHex(byte arr[]) -{ - StringBuffer buf = new StringBuffer(); - for (byte b : arr) - { - buf.append(hex.charAt((b>>4) & 15)); - buf.append(hex.charAt((b ) & 15)); - } - return buf.toString(); -} - -String getHash(String text) -{ - if (md == null) - { - try - { - md = MessageDigest.getInstance("MD5"); - } - catch (NoSuchAlgorithmException e) - { - err("getHash: " + e); - return ""; - } - } - byte hash[] = md.digest(text.getBytes()); - return toHex(hash); -} - - -//######################################################################## -//# L O A D / S A V E -//######################################################################## -String fileName = ""; - -/** - * Gets the name of the current file in the editor - */ -public String getFileName() -{ - return fileName; -} - -/** - * Sets the name of the current file in the editor - */ -public void setFileName(String val) -{ - fileName = val; -} - -/** - * Selects and opens a file, loading into the editor - */ -public boolean openFile() -{ - JFileChooser chooser = getChooser(); - int ret = chooser.showOpenDialog(this); - if (ret != JFileChooser.APPROVE_OPTION) - return false; - File f = chooser.getSelectedFile(); - String fname = f.getName(); - try - { - FileReader in = new FileReader(fname); - StringBuffer buf = new StringBuffer(); - while (true) - { - int ch = in.read(); - if (ch < 0) - break; - buf.append((char)ch); - } - in.close(); - setText(buf.toString()); - } - catch (IOException e) - { - err("save file:" + e); - return false; - } - return true; -} - - -/** - * Saves the file currently in the editor. Uses the Save - * selector if there is not current file name. - */ -public boolean saveFile() -{ - if (!isDirty()) - return true; - - String fname = getFileName(); - if (fname == null || fname.length()==0) - { - JFileChooser chooser = getChooser(); - int ret = chooser.showSaveDialog(this); - if (ret != JFileChooser.APPROVE_OPTION) - return false; - File f = chooser.getSelectedFile(); - fname = f.getName(); - } - try - { - FileWriter out = new FileWriter(fname); - out.write(getText()); - out.close(); - setFileName(fname); - resetDirty(); - } - catch (IOException e) - { - err("save file:" + e); - return false; - } - return true; -} - - -/** - * Saves the file currently in the editor under a new name. - * Get the new name from the chooser, and see if it already exists. - */ -public boolean saveAsFile() -{ - JFileChooser chooser = getChooser(); - int ret = chooser.showSaveDialog(this); - if (ret != JFileChooser.APPROVE_OPTION) - return false; - File f = chooser.getSelectedFile(); - String fname = f.getName(); - if (f.exists()) - { - ret = JOptionPane.showConfirmDialog(this, - "File '" + fname + "' already exists. Overwrite?"); - if (ret != JOptionPane.YES_OPTION) - return false; - } - try - { - FileWriter out = new FileWriter(fname); - out.write(getText()); - out.close(); - setFileName(fname); - resetDirty(); - } - catch (IOException e) - { - err("saveAs file:" + e); - return false; - } - return true; -} - - -/** - * State that the editor is now 'unedited' - */ -public void resetDirty() -{ - lastHash = getHash(getText()); -} - -/** - * Determines if the editor has been edited since the last open/save - */ -public boolean isDirty() -{ - String txt = getText(); - String hash = getHash(txt); - if ( (lastHash == null && txt.length()>0) || - (lastHash != null && !lastHash.equals(hash)) ) - return true; - return false; -} - - -/** - * Creates the editor for the ScriptConsole - */ -public Editor(ScriptConsole par) -{ - super(); - parent = par; - setLayout(new BorderLayout()); - textPane = new JTextPane(); - add(textPane, BorderLayout.CENTER); -} - - - -} - diff --git a/src/bind/java/org/inkscape/script/ScriptConsole.java b/src/bind/java/org/inkscape/script/ScriptConsole.java deleted file mode 100644 index 8241e2797..000000000 --- a/src/bind/java/org/inkscape/script/ScriptConsole.java +++ /dev/null @@ -1,652 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.script; - -import org.inkscape.cmn.Resource; - -import javax.script.*; - -import javax.swing.WindowConstants; -import javax.swing.JFrame; -import javax.swing.JButton; -import javax.swing.JMenu; -import javax.swing.JLabel; -import javax.swing.JMenuBar; -import javax.swing.JMenuItem; -import javax.swing.JComboBox; -import javax.swing.ButtonGroup; -import javax.swing.JOptionPane; -import javax.swing.JTabbedPane; -import javax.swing.JToolBar; -import javax.swing.Action; -import javax.swing.AbstractAction; - - -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.awt.BorderLayout; - -import java.io.File; -import java.io.FileReader; -import java.io.FileWriter; -import java.io.IOException; - - -import java.util.List; -import java.util.HashMap; -import java.util.ArrayList; -import java.util.List; - - - -/** - * This is the main Script Console window. It contains - * a terminal-like console, and a simple script editor. - */ -public class ScriptConsole extends JFrame -{ -Terminal terminal; -Editor editor; - -JTabbedPane tabPane; -JToolBar toolbar; -JMenuBar menubar; -JComboBox engineBox; - -//######################################################################## -//# MESSSAGES -//######################################################################## -public void err(String fmt, Object... arguments) -{ - terminal.errorf("ScriptConsole err:" + fmt + "\n", arguments); -} - -public void msg(String fmt, Object... arguments) -{ - terminal.outputf("ScriptConsole:" + fmt, arguments); -} - -public void trace(String fmt, Object... arguments) -{ - terminal.outputf("ScriptConsole:" + fmt + "\n", arguments); -} - - - - - - -void alert(String msg) -{ - JOptionPane.showMessageDialog(this, msg); -} - - - - -//######################################################################## -//# S C R I P T S -//######################################################################## -ScriptEngine engine; - -ArrayList engines; - - -public void setEngine(ScriptEngine engine) -{ - this.engine = engine; - this.engine.getContext().setWriter(terminal.getOutWriter()); - this.engine.getContext().setErrorWriter(terminal.getErrWriter()); - //do something to make the combobox show the current engine -} - - -public ScriptEngine getEngine() -{ - return engine; -} - - -public boolean setEngine(String langName) -{ - for (ScriptEngine engine : engines) - { - for(String name: engine.getFactory().getNames()) - { - if (langName.equalsIgnoreCase(name)) - { - setEngine(engine); - return true; - } - } - } - return false; -} - - -/** - * Run a script buffer - * - * @param str the script buffer to execute - * @return true if successful, else false - */ -public boolean doRunCmd(String str) -{ - if (engine == null) - { - err("No engine set"); - return false; - } - - //execute script from buffer - try - { - getEngine().eval(str); - } - catch (javax.script.ScriptException e) - { - err("Executing script: " + e); - //e.printStackTrace(); - } - terminal.output("\nscript> "); - return true; -} - -/** - * Run a script buffer - * - * @param str the script buffer to execute - * @return true if successful, else false - */ -public boolean doRun(String str) -{ - if (engine == null) - { - err("No engine set"); - return false; - } - - //execute script from buffer - try - { - getEngine().eval(str); - } - catch (javax.script.ScriptException e) - { - err("Executing script: " + e); - //e.printStackTrace(); - } - return true; -} - - -/** - * Run a script buffer - * - * @param lang the scripting language to run - * @param str the script buffer to execute - * @return true if successful, else false - */ -public boolean doRun(String lang, String str) -{ - // find script engine - if (!setEngine(lang)) - { - err("doRun: cannot find script engine '" + lang + "'"); - return false; - } - return doRun(str); -} - - -/** - * Run a script file - * - * @param fname the script file to execute - * @return true if successful, else false - */ -public boolean doRunFile(String fname) -{ - if (engine == null) - { - err("No engine set"); - return false; - } - - //try opening file and feeding into engine - FileReader in = null; - boolean ret = true; - try - { - in = new FileReader(fname); - } - catch (java.io.IOException e) - { - err("Executing file: " + e); - return false; - } - try - { - engine.eval(in); - } - catch (javax.script.ScriptException e) - { - err("Executing file: " + e); - ret = false; - } - try - { - in.close(); - } - catch (java.io.IOException e) - { - err("Executing file: " + e); - return false; - } - return ret; -} - - -/** - * Run a script file - * - * @param lang the scripting language to run - * @param fname the script file to execute - * @return true if successful, else false - */ -public boolean doRunFile(String lang, String fname) -{ - // find script engine - if (!setEngine(lang)) - { - err("doRunFile: cannot find script engine '" + lang + "'"); - return false; - } - return doRunFile(fname); -} - - - -class ScriptEngineAction extends AbstractAction -{ - - -public void actionPerformed(ActionEvent evt) -{ - int index = engineBox.getSelectedIndex(); - if (index<0) - return; - ScriptEngine engine = engines.get(index); - setEngine(engine); -} - -public ScriptEngineAction() -{ - super("SelectEngine", null); - putValue(SHORT_DESCRIPTION, "Select a scripting engine"); -} - -} - - -private void initScripts() -{ - engines = new ArrayList(); - Action action = new ScriptEngineAction(); - engineBox = new JComboBox(); - engineBox.setAction(action); - engineBox.setEditable(false); - toolbar.add(engineBox); - - ScriptEngineManager scriptEngineManager = - new ScriptEngineManager(); - List factories = - scriptEngineManager.getEngineFactories(); - for (ScriptEngineFactory factory: factories) - { - trace("ScriptEngineFactory Info"); - String engName = factory.getEngineName(); - String engVersion = factory.getEngineVersion(); - String fullEngName = engName + " (" + engVersion + ")"; - String langName = factory.getLanguageName(); - String langVersion = factory.getLanguageVersion(); - String fullLangName = langName + " (" + langVersion + ")"; - trace("\t" + fullEngName); - List engNames = factory.getNames(); - for(String name: engNames) - { - trace("\tEngine Alias: " + name); - } - trace("\t" + fullLangName); - engines.add(factory.getScriptEngine()); - engineBox.addItem(fullLangName + " / " + fullEngName); - } - if (engineBox.getItemCount()>0) - { - engineBox.setSelectedIndex(0); - setEngine(engines.get(0)); - } -} - - -static final String defaultCodeStr = - "/**\n" + - " * This is some example Javascript.\n" + - " * Try executing\n" + - " */\n" + - "importPackage(javax.swing);\n" + - "function sayHello() {\n" + - " JOptionPane.showMessageDialog(null, 'Hello, world!',\n" + - " 'Welcome to Inkscape', JOptionPane.WARNING_MESSAGE);\n" + - "}\n" + - "\n" + - "sayHello();\n" + - "\n"; - - -//######################################################################## -//# A C T I O N S -//######################################################################## -Action newAction; -Action openAction; -Action quitAction; -Action runAction; -Action saveAction; -Action saveAsAction; -Action stopAction; - - - -class NewAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - // -} - -public NewAction() -{ - super("New", Resource.getIcon("document-new.png")); - putValue(SHORT_DESCRIPTION, "Create a new script file"); -} - -} - - - -class OpenAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - editor.openFile(); -} - -public OpenAction() -{ - super("Open", Resource.getIcon("document-open.png")); - putValue(SHORT_DESCRIPTION, "Open a script file"); -} - -} - - - -class QuitAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - setVisible(false); -} - -public QuitAction() -{ - super("Quit", Resource.getIcon("system-log-out.png")); - putValue(SHORT_DESCRIPTION, "Quit this script console"); -} - -} - - - -class RunAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - String txt = editor.getText(); - doRun(txt); -} - -public RunAction() -{ - super("Run", Resource.getIcon("go-next.png")); - putValue(SHORT_DESCRIPTION, "Run the script in the editor"); -} - -} - - - -class SaveAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - editor.saveFile(); -} - -public SaveAction() -{ - super("Save", Resource.getIcon("document-save.png")); - putValue(SHORT_DESCRIPTION, "Save file"); -} - -} - - - -class SaveAsAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - editor.saveAsFile(); -} - -public SaveAsAction() -{ - super("SaveAs", Resource.getIcon("document-save-as.png")); - putValue(SHORT_DESCRIPTION, "Save under a new file name"); -} - -} - - - -class StopAction extends AbstractAction -{ - -public void actionPerformed(ActionEvent evt) -{ - //# -} - -public StopAction() -{ - super("Stop", Resource.getIcon("process-stop.png")); - putValue(SHORT_DESCRIPTION, "Stop the running script"); -} - -} - - - -HashMap actions; -void setupActions() -{ - actions = new HashMap(); - actions.put("New", newAction = new NewAction()); - actions.put("Open", openAction = new OpenAction()); - actions.put("Quit", quitAction = new QuitAction()); - actions.put("Run", runAction = new RunAction()); - actions.put("Save", saveAction = new SaveAction()); - actions.put("SaveAs", saveAsAction = new SaveAsAction()); - actions.put("Stop", stopAction = new StopAction()); -} - - -public void enableAction(String name) -{ - Action action = actions.get(name); - if (action == null) - return; - action.setEnabled(true); -} - -public void disableAction(String name) -{ - Action action = actions.get(name); - if (action == null) - return; - action.setEnabled(false); -} - - - -//######################################################################## -//# S E T U P -//######################################################################## - -JButton toolbarButton(Action action) -{ - JButton btn = new JButton(action); - btn.setText(""); - btn.setToolTipText((String)action.getValue(Action.SHORT_DESCRIPTION)); - return btn; -} - - -private boolean setup() -{ - setTitle("Inkscape Script Console"); - setSize(600, 400); - setIconImage(Resource.getImage("inkscape.png")); - setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE); - - //###################################################### - //# A C T I O N S - //###################################################### - setupActions(); - - //###################################################### - //# M E N U - //###################################################### - menubar = new JMenuBar(); - setJMenuBar(menubar); - - JMenu menu = new JMenu("File"); - menubar.add(menu); - menu.add(new JMenuItem(openAction)); - menu.add(new JMenuItem(saveAction)); - menu.add(new JMenuItem(saveAsAction)); - menu.add(new JMenuItem(quitAction)); - - menu = new JMenu("Run"); - menubar.add(menu); - menu.add(new JMenuItem(runAction)); - menu.add(new JMenuItem(stopAction)); - - //###################################################### - //# T O O L B A R - //###################################################### - toolbar = new JToolBar(); - getContentPane().add(toolbar, BorderLayout.NORTH); - toolbar.add(toolbarButton(openAction)); - toolbar.add(toolbarButton(saveAction)); - toolbar.add(toolbarButton(runAction)); - toolbar.add(toolbarButton(stopAction)); - - //###################################################### - //# C O N T E N T - //###################################################### - tabPane = new JTabbedPane(); - getContentPane().add(tabPane, BorderLayout.CENTER); - - terminal = new Terminal(); - tabPane.addTab("Console", - Resource.getIcon("utilities-terminal.png"), - terminal); - terminal.output("\nscript> "); - - editor = new Editor(this); - tabPane.addTab("Script", - Resource.getIcon("accessories-text-editor.png"), - editor); - - editor.setText(defaultCodeStr); - - //###################################################### - //# E N G I N E - //###################################################### - initScripts(); - - return true; -} - - - - - - -public ScriptConsole() -{ - setup(); -} - - -private static ScriptConsole _instance = null; -public static ScriptConsole getInstance() -{ - if (_instance == null) - _instance = new ScriptConsole(); - return _instance; -} - - -public static void main(String argv[]) -{ - ScriptConsole sc = getInstance(); - sc.setVisible(true); -} - - -} -//######################################################################## -//# E N D O F F I L E -//######################################################################## - diff --git a/src/bind/java/org/inkscape/script/Terminal.java b/src/bind/java/org/inkscape/script/Terminal.java deleted file mode 100644 index 22d2cb251..000000000 --- a/src/bind/java/org/inkscape/script/Terminal.java +++ /dev/null @@ -1,297 +0,0 @@ -/** - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -package org.inkscape.script; - -import java.awt.BorderLayout; -import javax.swing.JFrame; -import javax.swing.JPanel; -import javax.swing.JTextPane; -import javax.swing.JScrollPane; -import javax.swing.text.DefaultCaret; -import javax.swing.text.Document; -import javax.swing.text.BadLocationException; -import javax.swing.text.StyleConstants; -import javax.swing.text.SimpleAttributeSet; -import java.awt.Color; -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; -import java.awt.Font; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.io.IOException; -import java.io.Writer; -import java.io.PrintWriter; - -public class Terminal extends JPanel - implements KeyListener -{ - -SimpleAttributeSet inTextAttr; -SimpleAttributeSet outTextAttr; -SimpleAttributeSet errTextAttr; - -StringBuffer buf = new StringBuffer(); -JTextPane textPane; - -void err(String msg) -{ - System.out.println("Terminal err: " + msg); -} - -void trace(String msg) -{ - System.out.println("Terminal: " + msg); -} - - -void processInputLine(String txt) -{ - ScriptConsole cons = ScriptConsole.getInstance(); - if (cons != null) - cons.doRunCmd(txt); -} - - - -class OutWriter extends Writer -{ - -public void write(char[] cbuf, int off, int len) -{ - String s = new String(cbuf, off, len); - output(s); -} - -public void flush() -{ -} - -public void close() -{ -} - -} - - - -PrintWriter outWriter; - -public Writer getOutWriter() -{ - if (outWriter == null) - outWriter = new PrintWriter(new OutWriter()); - return outWriter; -} - - -public void output(String txt) -{ - Document doc = textPane.getDocument(); - try - { - doc.insertString(doc.getLength(), txt, outTextAttr); - textPane.setCaretPosition(doc.getLength()); - } - catch (BadLocationException e) - { - } - -} - - -public void outputf(String fmt, Object... args) -{ - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(baos); - out.printf(fmt, args); - out.close(); - String s = baos.toString(); - output(s); -} - - - -class ErrWriter extends Writer -{ - -public void write(char[] cbuf, int off, int len) -{ - String s = new String(cbuf, off, len); - error(s); -} - -public void flush() -{ -} - -public void close() -{ -} - -} - - - -PrintWriter errWriter; - -public Writer getErrWriter() -{ - if (errWriter == null) - errWriter = new PrintWriter(new ErrWriter()); - return errWriter; -} - - -public void error(String txt) -{ - Document doc = textPane.getDocument(); - try - { - doc.insertString(doc.getLength(), txt, errTextAttr); - textPane.setCaretPosition(doc.getLength()); - } - catch (BadLocationException e) - { - } - -} - -public void errorf(String fmt, Object... args) -{ - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(baos); - out.printf(fmt, args); - out.close(); - String s = baos.toString(); - error(s); -} - - -public void keyPressed(KeyEvent evt) -{ -} - -public void keyReleased(KeyEvent evt) -{ -} - -public void keyTyped(KeyEvent evt) -{ - Document doc = textPane.getDocument(); - char ch = evt.getKeyChar(); - if (ch == 127) - { - } - else if (ch == '\b') - { - if (buf.length() == 0) - return; - try - { - buf.delete(buf.length()-1, buf.length()); - doc.remove(doc.getLength()-1, 1); - textPane.setCaretPosition(doc.getLength()); - } - catch (BadLocationException e) - { - err("keyTyped:" + e); - } - } - else - { - try - { - buf.append(ch); - doc.insertString(doc.getLength(), "" + ch, inTextAttr); - textPane.setCaretPosition(doc.getLength()); - } - catch (BadLocationException e) - { - } - if (ch == '\n' || ch == '\r') - { - String txt = buf.toString(); - buf.delete(0, buf.length()); - txt = txt.trim(); - processInputLine(txt); - } - } - - - -} - - - -void setup() -{ - setLayout(new BorderLayout()); - textPane = new JTextPane(); - add(new JScrollPane(textPane), BorderLayout.CENTER); - textPane.setEditable(false); - textPane.setBackground(Color.BLACK); - textPane.setCaretColor(Color.WHITE); - textPane.setCaret(new DefaultCaret()); - textPane.getCaret().setVisible(true); - textPane.getCaret().setBlinkRate(500); - Font currentFont = textPane.getFont(); - textPane.setFont(new Font("Monospaced", currentFont.getStyle(), currentFont.getSize())); - textPane.addKeyListener(this); - - inTextAttr = new SimpleAttributeSet(); - StyleConstants.setForeground(inTextAttr, Color.YELLOW); - outTextAttr = new SimpleAttributeSet(); - StyleConstants.setForeground(outTextAttr, Color.GREEN); - errTextAttr = new SimpleAttributeSet(); - StyleConstants.setForeground(errTextAttr, Color.RED); - - -} - - - - - - -public Terminal() -{ - super(); - setup(); -} - - - -public static void main(String argv[]) -{ - Terminal t = new Terminal(); - JFrame par = new JFrame("Terminal Test"); - par.setSize(500, 350); - par.getContentPane().add(t); - par.setVisible(true); -} - -} - diff --git a/src/bind/java/org/w3c/dom/css/CSS2Properties.java b/src/bind/java/org/w3c/dom/css/CSS2Properties.java deleted file mode 100644 index b84df9b30..000000000 --- a/src/bind/java/org/w3c/dom/css/CSS2Properties.java +++ /dev/null @@ -1,1411 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSS2Properties interface represents a convenience - * mechanism for retrieving and setting properties within a - * CSSStyleDeclaration. The attributes of this interface - * correspond to all the properties specified in CSS2. Getting an attribute - * of this interface is equivalent to calling the - * getPropertyValue method of the - * CSSStyleDeclaration interface. Setting an attribute of this - * interface is equivalent to calling the setProperty method of - * the CSSStyleDeclaration interface. - *

A conformant implementation of the CSS module is not required to - * implement the CSS2Properties interface. If an implementation - * does implement this interface, the expectation is that language-specific - * methods can be used to cast from an instance of the - * CSSStyleDeclaration interface to the - * CSS2Properties interface. - *

If an implementation does implement this interface, it is expected to - * understand the specific syntax of the shorthand properties, and apply - * their semantics; when the margin property is set, for - * example, the marginTop, marginRight, - * marginBottom and marginLeft properties are - * actually being set by the underlying implementation. - *

When dealing with CSS "shorthand" properties, the shorthand properties - * should be decomposed into their component longhand properties as - * appropriate, and when querying for their value, the form returned should - * be the shortest form exactly equivalent to the declarations made in the - * ruleset. However, if there is no shorthand declaration that could be - * added to the ruleset without changing in any way the rules already - * declared in the ruleset (i.e., by adding longhand rules that were - * previously not declared in the ruleset), then the empty string should be - * returned for the shorthand property. - *

For example, querying for the font property should not - * return "normal normal normal 14pt/normal Arial, sans-serif", when "14pt - * Arial, sans-serif" suffices. (The normals are initial values, and are - * implied by use of the longhand property.) - *

If the values for all the longhand properties that compose a particular - * string are the initial values, then a string consisting of all the - * initial values should be returned (e.g. a border-width value - * of "medium" should be returned as such, not as ""). - *

For some shorthand properties that take missing values from other - * sides, such as the margin, padding, and - * border-[width|style|color] properties, the minimum number of - * sides possible should be used; i.e., "0px 10px" will be returned instead - * of "0px 10px 0px 10px". - *

If the value of a shorthand property can not be decomposed into its - * component longhand properties, as is the case for the font - * property with a value of "menu", querying for the values of the component - * longhand properties should return the empty string. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSS2Properties { - /** - * See the azimuth property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getAzimuth(); - public void setAzimuth(String azimuth) - throws DOMException; - - /** - * See the background property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackground(); - public void setBackground(String background) - throws DOMException; - - /** - * See the background-attachment property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackgroundAttachment(); - public void setBackgroundAttachment(String backgroundAttachment) - throws DOMException; - - /** - * See the background-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackgroundColor(); - public void setBackgroundColor(String backgroundColor) - throws DOMException; - - /** - * See the background-image property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackgroundImage(); - public void setBackgroundImage(String backgroundImage) - throws DOMException; - - /** - * See the background-position property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackgroundPosition(); - public void setBackgroundPosition(String backgroundPosition) - throws DOMException; - - /** - * See the background-repeat property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBackgroundRepeat(); - public void setBackgroundRepeat(String backgroundRepeat) - throws DOMException; - - /** - * See the border property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorder(); - public void setBorder(String border) - throws DOMException; - - /** - * See the border-collapse property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderCollapse(); - public void setBorderCollapse(String borderCollapse) - throws DOMException; - - /** - * See the border-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderColor(); - public void setBorderColor(String borderColor) - throws DOMException; - - /** - * See the border-spacing property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderSpacing(); - public void setBorderSpacing(String borderSpacing) - throws DOMException; - - /** - * See the border-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderStyle(); - public void setBorderStyle(String borderStyle) - throws DOMException; - - /** - * See the border-top property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderTop(); - public void setBorderTop(String borderTop) - throws DOMException; - - /** - * See the border-right property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderRight(); - public void setBorderRight(String borderRight) - throws DOMException; - - /** - * See the border-bottom property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderBottom(); - public void setBorderBottom(String borderBottom) - throws DOMException; - - /** - * See the border-left property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderLeft(); - public void setBorderLeft(String borderLeft) - throws DOMException; - - /** - * See the border-top-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderTopColor(); - public void setBorderTopColor(String borderTopColor) - throws DOMException; - - /** - * See the border-right-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderRightColor(); - public void setBorderRightColor(String borderRightColor) - throws DOMException; - - /** - * See the border-bottom-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderBottomColor(); - public void setBorderBottomColor(String borderBottomColor) - throws DOMException; - - /** - * See the border-left-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderLeftColor(); - public void setBorderLeftColor(String borderLeftColor) - throws DOMException; - - /** - * See the border-top-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderTopStyle(); - public void setBorderTopStyle(String borderTopStyle) - throws DOMException; - - /** - * See the border-right-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderRightStyle(); - public void setBorderRightStyle(String borderRightStyle) - throws DOMException; - - /** - * See the border-bottom-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderBottomStyle(); - public void setBorderBottomStyle(String borderBottomStyle) - throws DOMException; - - /** - * See the border-left-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderLeftStyle(); - public void setBorderLeftStyle(String borderLeftStyle) - throws DOMException; - - /** - * See the border-top-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderTopWidth(); - public void setBorderTopWidth(String borderTopWidth) - throws DOMException; - - /** - * See the border-right-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderRightWidth(); - public void setBorderRightWidth(String borderRightWidth) - throws DOMException; - - /** - * See the border-bottom-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderBottomWidth(); - public void setBorderBottomWidth(String borderBottomWidth) - throws DOMException; - - /** - * See the border-left-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderLeftWidth(); - public void setBorderLeftWidth(String borderLeftWidth) - throws DOMException; - - /** - * See the border-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBorderWidth(); - public void setBorderWidth(String borderWidth) - throws DOMException; - - /** - * See the bottom property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getBottom(); - public void setBottom(String bottom) - throws DOMException; - - /** - * See the caption-side property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCaptionSide(); - public void setCaptionSide(String captionSide) - throws DOMException; - - /** - * See the clear property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getClear(); - public void setClear(String clear) - throws DOMException; - - /** - * See the clip property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getClip(); - public void setClip(String clip) - throws DOMException; - - /** - * See the color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getColor(); - public void setColor(String color) - throws DOMException; - - /** - * See the content property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getContent(); - public void setContent(String content) - throws DOMException; - - /** - * See the counter-increment property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCounterIncrement(); - public void setCounterIncrement(String counterIncrement) - throws DOMException; - - /** - * See the counter-reset property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCounterReset(); - public void setCounterReset(String counterReset) - throws DOMException; - - /** - * See the cue property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCue(); - public void setCue(String cue) - throws DOMException; - - /** - * See the cue-after property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCueAfter(); - public void setCueAfter(String cueAfter) - throws DOMException; - - /** - * See the cue-before property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCueBefore(); - public void setCueBefore(String cueBefore) - throws DOMException; - - /** - * See the cursor property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCursor(); - public void setCursor(String cursor) - throws DOMException; - - /** - * See the direction property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getDirection(); - public void setDirection(String direction) - throws DOMException; - - /** - * See the display property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getDisplay(); - public void setDisplay(String display) - throws DOMException; - - /** - * See the elevation property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getElevation(); - public void setElevation(String elevation) - throws DOMException; - - /** - * See the empty-cells property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getEmptyCells(); - public void setEmptyCells(String emptyCells) - throws DOMException; - - /** - * See the float property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getCssFloat(); - public void setCssFloat(String cssFloat) - throws DOMException; - - /** - * See the font property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFont(); - public void setFont(String font) - throws DOMException; - - /** - * See the font-family property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontFamily(); - public void setFontFamily(String fontFamily) - throws DOMException; - - /** - * See the font-size property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontSize(); - public void setFontSize(String fontSize) - throws DOMException; - - /** - * See the font-size-adjust property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontSizeAdjust(); - public void setFontSizeAdjust(String fontSizeAdjust) - throws DOMException; - - /** - * See the font-stretch property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontStretch(); - public void setFontStretch(String fontStretch) - throws DOMException; - - /** - * See the font-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontStyle(); - public void setFontStyle(String fontStyle) - throws DOMException; - - /** - * See the font-variant property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontVariant(); - public void setFontVariant(String fontVariant) - throws DOMException; - - /** - * See the font-weight property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getFontWeight(); - public void setFontWeight(String fontWeight) - throws DOMException; - - /** - * See the height property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getHeight(); - public void setHeight(String height) - throws DOMException; - - /** - * See the left property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getLeft(); - public void setLeft(String left) - throws DOMException; - - /** - * See the letter-spacing property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getLetterSpacing(); - public void setLetterSpacing(String letterSpacing) - throws DOMException; - - /** - * See the line-height property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getLineHeight(); - public void setLineHeight(String lineHeight) - throws DOMException; - - /** - * See the list-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getListStyle(); - public void setListStyle(String listStyle) - throws DOMException; - - /** - * See the list-style-image property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getListStyleImage(); - public void setListStyleImage(String listStyleImage) - throws DOMException; - - /** - * See the list-style-position property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getListStylePosition(); - public void setListStylePosition(String listStylePosition) - throws DOMException; - - /** - * See the list-style-type property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getListStyleType(); - public void setListStyleType(String listStyleType) - throws DOMException; - - /** - * See the margin property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMargin(); - public void setMargin(String margin) - throws DOMException; - - /** - * See the margin-top property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarginTop(); - public void setMarginTop(String marginTop) - throws DOMException; - - /** - * See the margin-right property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarginRight(); - public void setMarginRight(String marginRight) - throws DOMException; - - /** - * See the margin-bottom property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarginBottom(); - public void setMarginBottom(String marginBottom) - throws DOMException; - - /** - * See the margin-left property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarginLeft(); - public void setMarginLeft(String marginLeft) - throws DOMException; - - /** - * See the marker-offset property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarkerOffset(); - public void setMarkerOffset(String markerOffset) - throws DOMException; - - /** - * See the marks property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMarks(); - public void setMarks(String marks) - throws DOMException; - - /** - * See the max-height property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMaxHeight(); - public void setMaxHeight(String maxHeight) - throws DOMException; - - /** - * See the max-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMaxWidth(); - public void setMaxWidth(String maxWidth) - throws DOMException; - - /** - * See the min-height property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMinHeight(); - public void setMinHeight(String minHeight) - throws DOMException; - - /** - * See the min-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getMinWidth(); - public void setMinWidth(String minWidth) - throws DOMException; - - /** - * See the orphans property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOrphans(); - public void setOrphans(String orphans) - throws DOMException; - - /** - * See the outline property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOutline(); - public void setOutline(String outline) - throws DOMException; - - /** - * See the outline-color property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOutlineColor(); - public void setOutlineColor(String outlineColor) - throws DOMException; - - /** - * See the outline-style property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOutlineStyle(); - public void setOutlineStyle(String outlineStyle) - throws DOMException; - - /** - * See the outline-width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOutlineWidth(); - public void setOutlineWidth(String outlineWidth) - throws DOMException; - - /** - * See the overflow property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getOverflow(); - public void setOverflow(String overflow) - throws DOMException; - - /** - * See the padding property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPadding(); - public void setPadding(String padding) - throws DOMException; - - /** - * See the padding-top property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPaddingTop(); - public void setPaddingTop(String paddingTop) - throws DOMException; - - /** - * See the padding-right property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPaddingRight(); - public void setPaddingRight(String paddingRight) - throws DOMException; - - /** - * See the padding-bottom property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPaddingBottom(); - public void setPaddingBottom(String paddingBottom) - throws DOMException; - - /** - * See the padding-left property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPaddingLeft(); - public void setPaddingLeft(String paddingLeft) - throws DOMException; - - /** - * See the page property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPage(); - public void setPage(String page) - throws DOMException; - - /** - * See the page-break-after property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPageBreakAfter(); - public void setPageBreakAfter(String pageBreakAfter) - throws DOMException; - - /** - * See the page-break-before property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPageBreakBefore(); - public void setPageBreakBefore(String pageBreakBefore) - throws DOMException; - - /** - * See the page-break-inside property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPageBreakInside(); - public void setPageBreakInside(String pageBreakInside) - throws DOMException; - - /** - * See the pause property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPause(); - public void setPause(String pause) - throws DOMException; - - /** - * See the pause-after property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPauseAfter(); - public void setPauseAfter(String pauseAfter) - throws DOMException; - - /** - * See the pause-before property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPauseBefore(); - public void setPauseBefore(String pauseBefore) - throws DOMException; - - /** - * See the pitch property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPitch(); - public void setPitch(String pitch) - throws DOMException; - - /** - * See the pitch-range property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPitchRange(); - public void setPitchRange(String pitchRange) - throws DOMException; - - /** - * See the play-during property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPlayDuring(); - public void setPlayDuring(String playDuring) - throws DOMException; - - /** - * See the position property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getPosition(); - public void setPosition(String position) - throws DOMException; - - /** - * See the quotes property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getQuotes(); - public void setQuotes(String quotes) - throws DOMException; - - /** - * See the richness property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getRichness(); - public void setRichness(String richness) - throws DOMException; - - /** - * See the right property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getRight(); - public void setRight(String right) - throws DOMException; - - /** - * See the size property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSize(); - public void setSize(String size) - throws DOMException; - - /** - * See the speak property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSpeak(); - public void setSpeak(String speak) - throws DOMException; - - /** - * See the speak-header property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSpeakHeader(); - public void setSpeakHeader(String speakHeader) - throws DOMException; - - /** - * See the speak-numeral property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSpeakNumeral(); - public void setSpeakNumeral(String speakNumeral) - throws DOMException; - - /** - * See the speak-punctuation property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSpeakPunctuation(); - public void setSpeakPunctuation(String speakPunctuation) - throws DOMException; - - /** - * See the speech-rate property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getSpeechRate(); - public void setSpeechRate(String speechRate) - throws DOMException; - - /** - * See the stress property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getStress(); - public void setStress(String stress) - throws DOMException; - - /** - * See the table-layout property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTableLayout(); - public void setTableLayout(String tableLayout) - throws DOMException; - - /** - * See the text-align property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTextAlign(); - public void setTextAlign(String textAlign) - throws DOMException; - - /** - * See the text-decoration property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTextDecoration(); - public void setTextDecoration(String textDecoration) - throws DOMException; - - /** - * See the text-indent property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTextIndent(); - public void setTextIndent(String textIndent) - throws DOMException; - - /** - * See the text-shadow property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTextShadow(); - public void setTextShadow(String textShadow) - throws DOMException; - - /** - * See the text-transform property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTextTransform(); - public void setTextTransform(String textTransform) - throws DOMException; - - /** - * See the top property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getTop(); - public void setTop(String top) - throws DOMException; - - /** - * See the unicode-bidi property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getUnicodeBidi(); - public void setUnicodeBidi(String unicodeBidi) - throws DOMException; - - /** - * See the vertical-align property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getVerticalAlign(); - public void setVerticalAlign(String verticalAlign) - throws DOMException; - - /** - * See the visibility property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getVisibility(); - public void setVisibility(String visibility) - throws DOMException; - - /** - * See the voice-family property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getVoiceFamily(); - public void setVoiceFamily(String voiceFamily) - throws DOMException; - - /** - * See the volume property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getVolume(); - public void setVolume(String volume) - throws DOMException; - - /** - * See the white-space property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getWhiteSpace(); - public void setWhiteSpace(String whiteSpace) - throws DOMException; - - /** - * See the widows property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getWidows(); - public void setWidows(String widows) - throws DOMException; - - /** - * See the width property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getWidth(); - public void setWidth(String width) - throws DOMException; - - /** - * See the word-spacing property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getWordSpacing(); - public void setWordSpacing(String wordSpacing) - throws DOMException; - - /** - * See the z-index property definition in CSS2. - * @exception DOMException - * SYNTAX_ERR: Raised if the new value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public String getZIndex(); - public void setZIndex(String zIndex) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSCharsetRule.java b/src/bind/java/org/w3c/dom/css/CSSCharsetRule.java deleted file mode 100644 index ac1884557..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSCharsetRule.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSCharsetRule interface represents a @charset rule in a - * CSS style sheet. The value of the encoding attribute does - * not affect the encoding of text data in the DOM objects; this encoding is - * always UTF-16. After a stylesheet is loaded, the value of the - * encoding attribute is the value found in the - * @charset rule. If there was no @charset in the - * original document, then no CSSCharsetRule is created. The - * value of the encoding attribute may also be used as a hint - * for the encoding used on serialization of the style sheet. - *

The value of the @charset rule (and therefore of the - * CSSCharsetRule) may not correspond to the encoding the - * document actually came in; character encoding information e.g. in an HTTP - * header, has priority (see CSS document representation) but this is not - * reflected in the CSSCharsetRule. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSCharsetRule extends CSSRule { - /** - * The encoding information used in this @charset rule. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified encoding value has a syntax error - * and is unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this encoding rule is - * readonly. - */ - public String getEncoding(); - public void setEncoding(String encoding) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSFontFaceRule.java b/src/bind/java/org/w3c/dom/css/CSSFontFaceRule.java deleted file mode 100644 index a17957061..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSFontFaceRule.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The CSSFontFaceRule interface represents a @font-face rule in - * a CSS style sheet. The @font-face rule is used to hold a set - * of font descriptions. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSFontFaceRule extends CSSRule { - /** - * The declaration-block of this rule. - */ - public CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSImportRule.java b/src/bind/java/org/w3c/dom/css/CSSImportRule.java deleted file mode 100644 index e18ad569b..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSImportRule.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.stylesheets.MediaList; - -/** - * The CSSImportRule interface represents a @import rule within - * a CSS style sheet. The @import rule is used to import style - * rules from other style sheets. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSImportRule extends CSSRule { - /** - * The location of the style sheet to be imported. The attribute will not - * contain the "url(...)" specifier around the URI. - */ - public String getHref(); - - /** - * A list of media types for which this style sheet may be used. - */ - public MediaList getMedia(); - - /** - * The style sheet referred to by this rule, if it has been loaded. The - * value of this attribute is null if the style sheet has - * not yet been loaded or if it will not be loaded (e.g. if the style - * sheet is for a media type not supported by the user agent). - */ - public CSSStyleSheet getStyleSheet(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSMediaRule.java b/src/bind/java/org/w3c/dom/css/CSSMediaRule.java deleted file mode 100644 index c74d3faf5..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSMediaRule.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.stylesheets.MediaList; - -/** - * The CSSMediaRule interface represents a @media rule in a CSS - * style sheet. A @media rule can be used to delimit style - * rules for specific media types. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSMediaRule extends CSSRule { - /** - * A list of media types for this rule. - */ - public MediaList getMedia(); - - /** - * A list of all CSS rules contained within the media block. - */ - public CSSRuleList getCssRules(); - - /** - * Used to insert a new rule into the media block. - * @param rule The parsable text representing the rule. For rule sets - * this contains both the selector and the style declaration. For - * at-rules, this specifies both the at-identifier and the rule - * content. - * @param index The index within the media block's rule collection of the - * rule before which to insert the specified rule. If the specified - * index is equal to the length of the media blocks's rule collection, - * the rule will be added to the end of the media block. - * @return The index within the media block's rule collection of the - * newly inserted rule. - * @exception DOMException - * HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the - * specified index, e.g., if an @import rule is inserted - * after a standard rule set or other at-rule. - *
INDEX_SIZE_ERR: Raised if the specified index is not a valid - * insertion point. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is - * readonly. - *
SYNTAX_ERR: Raised if the specified rule has a syntax error and - * is unparsable. - */ - public int insertRule(String rule, - int index) - throws DOMException; - - /** - * Used to delete a rule from the media block. - * @param index The index within the media block's rule collection of the - * rule to remove. - * @exception DOMException - * INDEX_SIZE_ERR: Raised if the specified index does not correspond to - * a rule in the media rule list. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this media rule is - * readonly. - */ - public void deleteRule(int index) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSPageRule.java b/src/bind/java/org/w3c/dom/css/CSSPageRule.java deleted file mode 100644 index d2fc9c351..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSPageRule.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSPageRule interface represents a @page rule within a - * CSS style sheet. The @page rule is used to specify the - * dimensions, orientation, margins, etc. of a page box for paged media. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSPageRule extends CSSRule { - /** - * The parsable textual representation of the page selector for the rule. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified CSS string value has a syntax - * error and is unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly. - */ - public String getSelectorText(); - public void setSelectorText(String selectorText) - throws DOMException; - - /** - * The declaration-block of this rule. - */ - public CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSPrimitiveValue.java b/src/bind/java/org/w3c/dom/css/CSSPrimitiveValue.java deleted file mode 100644 index 781ce8ab4..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSPrimitiveValue.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSPrimitiveValue interface represents a single CSS value - * . This interface may be used to determine the value of a specific style - * property currently set in a block or to set a specific style property - * explicitly within the block. An instance of this interface might be - * obtained from the getPropertyCSSValue method of the - * CSSStyleDeclaration interface. A - * CSSPrimitiveValue object only occurs in a context of a CSS - * property. - *

Conversions are allowed between absolute values (from millimeters to - * centimeters, from degrees to radians, and so on) but not between relative - * values. (For example, a pixel value cannot be converted to a centimeter - * value.) Percentage values can't be converted since they are relative to - * the parent value (or another property value). There is one exception for - * color percentage values: since a color percentage value is relative to - * the range 0-255, a color percentage value can be converted to a number; - * (see also the RGBColor interface). - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSPrimitiveValue extends CSSValue { - // UnitTypes - /** - * The value is not a recognized CSS2 value. The value can only be - * obtained by using the cssText attribute. - */ - public static final short CSS_UNKNOWN = 0; - /** - * The value is a simple number. The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_NUMBER = 1; - /** - * The value is a percentage. The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_PERCENTAGE = 2; - /** - * The value is a length (ems). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_EMS = 3; - /** - * The value is a length (exs). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_EXS = 4; - /** - * The value is a length (px). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_PX = 5; - /** - * The value is a length (cm). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_CM = 6; - /** - * The value is a length (mm). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_MM = 7; - /** - * The value is a length (in). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_IN = 8; - /** - * The value is a length (pt). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_PT = 9; - /** - * The value is a length (pc). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_PC = 10; - /** - * The value is an angle (deg). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_DEG = 11; - /** - * The value is an angle (rad). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_RAD = 12; - /** - * The value is an angle (grad). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_GRAD = 13; - /** - * The value is a time (ms). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_MS = 14; - /** - * The value is a time (s). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_S = 15; - /** - * The value is a frequency (Hz). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_HZ = 16; - /** - * The value is a frequency (kHz). The value can be obtained by using the - * getFloatValue method. - */ - public static final short CSS_KHZ = 17; - /** - * The value is a number with an unknown dimension. The value can be - * obtained by using the getFloatValue method. - */ - public static final short CSS_DIMENSION = 18; - /** - * The value is a STRING. The value can be obtained by using the - * getStringValue method. - */ - public static final short CSS_STRING = 19; - /** - * The value is a URI. The value can be obtained by using the - * getStringValue method. - */ - public static final short CSS_URI = 20; - /** - * The value is an identifier. The value can be obtained by using the - * getStringValue method. - */ - public static final short CSS_IDENT = 21; - /** - * The value is a attribute function. The value can be obtained by using - * the getStringValue method. - */ - public static final short CSS_ATTR = 22; - /** - * The value is a counter or counters function. The value can be obtained - * by using the getCounterValue method. - */ - public static final short CSS_COUNTER = 23; - /** - * The value is a rect function. The value can be obtained by using the - * getRectValue method. - */ - public static final short CSS_RECT = 24; - /** - * The value is a RGB color. The value can be obtained by using the - * getRGBColorValue method. - */ - public static final short CSS_RGBCOLOR = 25; - - /** - * The type of the value as defined by the constants specified above. - */ - public short getPrimitiveType(); - - /** - * A method to set the float value with a specified unit. If the property - * attached with this value can not accept the specified unit or the - * float value, the value will be unchanged and a - * DOMException will be raised. - * @param unitType A unit code as defined above. The unit code can only - * be a float unit type (i.e. CSS_NUMBER, - * CSS_PERCENTAGE, CSS_EMS, - * CSS_EXS, CSS_PX, CSS_CM, - * CSS_MM, CSS_IN, CSS_PT, - * CSS_PC, CSS_DEG, CSS_RAD, - * CSS_GRAD, CSS_MS, CSS_S, - * CSS_HZ, CSS_KHZ, - * CSS_DIMENSION). - * @param floatValue The new float value. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the attached property doesn't support - * the float value or the unit type. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public void setFloatValue(short unitType, - float floatValue) - throws DOMException; - - /** - * This method is used to get a float value in a specified unit. If this - * CSS value doesn't contain a float value or can't be converted into - * the specified unit, a DOMException is raised. - * @param unitType A unit code to get the float value. The unit code can - * only be a float unit type (i.e. CSS_NUMBER, - * CSS_PERCENTAGE, CSS_EMS, - * CSS_EXS, CSS_PX, CSS_CM, - * CSS_MM, CSS_IN, CSS_PT, - * CSS_PC, CSS_DEG, CSS_RAD, - * CSS_GRAD, CSS_MS, CSS_S, - * CSS_HZ, CSS_KHZ, - * CSS_DIMENSION). - * @return The float value in the specified unit. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a float - * value or if the float value can't be converted into the specified - * unit. - */ - public float getFloatValue(short unitType) - throws DOMException; - - /** - * A method to set the string value with the specified unit. If the - * property attached to this value can't accept the specified unit or - * the string value, the value will be unchanged and a - * DOMException will be raised. - * @param stringType A string code as defined above. The string code can - * only be a string unit type (i.e. CSS_STRING, - * CSS_URI, CSS_IDENT, and - * CSS_ATTR). - * @param stringValue The new string value. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string - * value or if the string value can't be converted into the specified - * unit. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly. - */ - public void setStringValue(short stringType, - String stringValue) - throws DOMException; - - /** - * This method is used to get the string value. If the CSS value doesn't - * contain a string value, a DOMException is raised. Some - * properties (like 'font-family' or 'voice-family') convert a - * whitespace separated list of idents to a string. - * @return The string value in the current unit. The current - * primitiveType can only be a string unit type (i.e. - * CSS_STRING, CSS_URI, - * CSS_IDENT and CSS_ATTR). - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string - * value. - */ - public String getStringValue() - throws DOMException; - - /** - * This method is used to get the Counter value. If this CSS value - * doesn't contain a counter value, a DOMException is - * raised. Modification to the corresponding style property can be - * achieved using the Counter interface. - * @return The Counter value. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a - * Counter value (e.g. this is not CSS_COUNTER). - */ - public Counter getCounterValue() - throws DOMException; - - /** - * This method is used to get the Rect value. If this CSS value doesn't - * contain a rect value, a DOMException is raised. - * Modification to the corresponding style property can be achieved - * using the Rect interface. - * @return The Rect value. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a Rect - * value. (e.g. this is not CSS_RECT). - */ - public Rect getRectValue() - throws DOMException; - - /** - * This method is used to get the RGB color. If this CSS value doesn't - * contain a RGB color value, a DOMException is raised. - * Modification to the corresponding style property can be achieved - * using the RGBColor interface. - * @return the RGB color value. - * @exception DOMException - * INVALID_ACCESS_ERR: Raised if the attached property can't return a - * RGB color value (e.g. this is not CSS_RGBCOLOR). - */ - public RGBColor getRGBColorValue() - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSRule.java b/src/bind/java/org/w3c/dom/css/CSSRule.java deleted file mode 100644 index 8626f8089..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSRule.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSRule interface is the abstract base interface for any - * type of CSS statement. This includes both rule sets and at-rules. An - * implementation is expected to preserve all rules specified in a CSS style - * sheet, even if the rule is not recognized by the parser. Unrecognized - * rules are represented using the CSSUnknownRule interface. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSRule { - // RuleType - /** - * The rule is a CSSUnknownRule. - */ - public static final short UNKNOWN_RULE = 0; - /** - * The rule is a CSSStyleRule. - */ - public static final short STYLE_RULE = 1; - /** - * The rule is a CSSCharsetRule. - */ - public static final short CHARSET_RULE = 2; - /** - * The rule is a CSSImportRule. - */ - public static final short IMPORT_RULE = 3; - /** - * The rule is a CSSMediaRule. - */ - public static final short MEDIA_RULE = 4; - /** - * The rule is a CSSFontFaceRule. - */ - public static final short FONT_FACE_RULE = 5; - /** - * The rule is a CSSPageRule. - */ - public static final short PAGE_RULE = 6; - - /** - * The type of the rule, as defined above. The expectation is that - * binding-specific casting methods can be used to cast down from an - * instance of the CSSRule interface to the specific - * derived interface implied by the type. - */ - public short getType(); - - /** - * The parsable textual representation of the rule. This reflects the - * current state of the rule and not its initial value. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified CSS string value has a syntax - * error and is unparsable. - *
INVALID_MODIFICATION_ERR: Raised if the specified CSS string - * value represents a different type of rule than the current one. - *
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at - * this point in the style sheet. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly. - */ - public String getCssText(); - public void setCssText(String cssText) - throws DOMException; - - /** - * The style sheet that contains this rule. - */ - public CSSStyleSheet getParentStyleSheet(); - - /** - * If this rule is contained inside another rule (e.g. a style rule - * inside an @media block), this is the containing rule. If this rule is - * not nested inside any other rules, this returns null. - */ - public CSSRule getParentRule(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSRuleList.java b/src/bind/java/org/w3c/dom/css/CSSRuleList.java deleted file mode 100644 index ba4052074..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSRuleList.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The CSSRuleList interface provides the abstraction of an - * ordered collection of CSS rules. - *

The items in the CSSRuleList are accessible via an - * integral index, starting from 0. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSRuleList { - /** - * The number of CSSRules in the list. The range of valid - * child rule indices is 0 to length-1 - * inclusive. - */ - public int getLength(); - - /** - * Used to retrieve a CSS rule by ordinal index. The order in this - * collection represents the order of the rules in the CSS style sheet. - * If index is greater than or equal to the number of rules in the list, - * this returns null. - * @param indexIndex into the collection - * @return The style rule at the index position in the - * CSSRuleList, or null if that is not a - * valid index. - */ - public CSSRule item(int index); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSStyleDeclaration.java b/src/bind/java/org/w3c/dom/css/CSSStyleDeclaration.java deleted file mode 100644 index d017fbd55..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSStyleDeclaration.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSStyleDeclaration interface represents a single CSS - * declaration block. This interface may be used to determine the style - * properties currently set in a block or to set style properties explicitly - * within the block. - *

While an implementation may not recognize all CSS properties within a - * CSS declaration block, it is expected to provide access to all specified - * properties in the style sheet through the CSSStyleDeclaration - * interface. Furthermore, implementations that support a specific level of - * CSS should correctly handle CSS shorthand properties for that level. For - * a further discussion of shorthand properties, see the - * CSS2Properties interface. - *

This interface is also used to provide a read-only access to the - * computed values of an element. See also the ViewCSS - * interface. The CSS Object Model doesn't provide an access to the - * specified or actual values of the CSS cascade. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSStyleDeclaration { - /** - * The parsable textual representation of the declaration block - * (excluding the surrounding curly braces). Setting this attribute will - * result in the parsing of the new value and resetting of all the - * properties in the declaration block including the removal or addition - * of properties. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified CSS string value has a syntax - * error and is unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is - * readonly or a property is readonly. - */ - public String getCssText(); - public void setCssText(String cssText) - throws DOMException; - - /** - * Used to retrieve the value of a CSS property if it has been explicitly - * set within this declaration block. - * @param propertyName The name of the CSS property. See the CSS property - * index. - * @return Returns the value of the property if it has been explicitly - * set for this declaration block. Returns the empty string if the - * property has not been set. - */ - public String getPropertyValue(String propertyName); - - /** - * Used to retrieve the object representation of the value of a CSS - * property if it has been explicitly set within this declaration block. - * This method returns null if the property is a shorthand - * property. Shorthand property values can only be accessed and modified - * as strings, using the getPropertyValue and - * setProperty methods. - * @param propertyName The name of the CSS property. See the CSS property - * index. - * @return Returns the value of the property if it has been explicitly - * set for this declaration block. Returns null if the - * property has not been set. - */ - public CSSValue getPropertyCSSValue(String propertyName); - - /** - * Used to remove a CSS property if it has been explicitly set within - * this declaration block. - * @param propertyName The name of the CSS property. See the CSS property - * index. - * @return Returns the value of the property if it has been explicitly - * set for this declaration block. Returns the empty string if the - * property has not been set or the property name does not correspond - * to a known CSS property. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly - * or the property is readonly. - */ - public String removeProperty(String propertyName) - throws DOMException; - - /** - * Used to retrieve the priority of a CSS property (e.g. the - * "important" qualifier) if the property has been - * explicitly set in this declaration block. - * @param propertyName The name of the CSS property. See the CSS property - * index. - * @return A string representing the priority (e.g. - * "important") if one exists. The empty string if none - * exists. - */ - public String getPropertyPriority(String propertyName); - - /** - * Used to set a property value and priority within this declaration - * block. - * @param propertyName The name of the CSS property. See the CSS property - * index. - * @param value The new value of the property. - * @param priority The new priority of the property (e.g. - * "important"). - * @exception DOMException - * SYNTAX_ERR: Raised if the specified value has a syntax error and is - * unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is - * readonly or the property is readonly. - */ - public void setProperty(String propertyName, - String value, - String priority) - throws DOMException; - - /** - * The number of properties that have been explicitly set in this - * declaration block. The range of valid indices is 0 to length-1 - * inclusive. - */ - public int getLength(); - - /** - * Used to retrieve the properties that have been explicitly set in this - * declaration block. The order of the properties retrieved using this - * method does not have to be the order in which they were set. This - * method can be used to iterate over all properties in this declaration - * block. - * @param index Index of the property name to retrieve. - * @return The name of the property at this ordinal position. The empty - * string if no property exists at this position. - */ - public String item(int index); - - /** - * The CSS rule that contains this declaration block or null - * if this CSSStyleDeclaration is not attached to a - * CSSRule. - */ - public CSSRule getParentRule(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSStyleRule.java b/src/bind/java/org/w3c/dom/css/CSSStyleRule.java deleted file mode 100644 index 45a647b19..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSStyleRule.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSStyleRule interface represents a single rule set in a - * CSS style sheet. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSStyleRule extends CSSRule { - /** - * The textual representation of the selector for the rule set. The - * implementation may have stripped out insignificant whitespace while - * parsing the selector. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified CSS string value has a syntax - * error and is unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly. - */ - public String getSelectorText(); - public void setSelectorText(String selectorText) - throws DOMException; - - /** - * The declaration-block of this rule set. - */ - public CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSStyleSheet.java b/src/bind/java/org/w3c/dom/css/CSSStyleSheet.java deleted file mode 100644 index cdfd74d9a..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSStyleSheet.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; -import org.w3c.dom.stylesheets.StyleSheet; - -/** - * The CSSStyleSheet interface is a concrete interface used to - * represent a CSS style sheet i.e., a style sheet whose content type is - * "text/css". - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSStyleSheet extends StyleSheet { - /** - * If this style sheet comes from an @import rule, the - * ownerRule attribute will contain the - * CSSImportRule. In that case, the ownerNode - * attribute in the StyleSheet interface will be - * null. If the style sheet comes from an element or a - * processing instruction, the ownerRule attribute will be - * null and the ownerNode attribute will - * contain the Node. - */ - public CSSRule getOwnerRule(); - - /** - * The list of all CSS rules contained within the style sheet. This - * includes both rule sets and at-rules. - */ - public CSSRuleList getCssRules(); - - /** - * Used to insert a new rule into the style sheet. The new rule now - * becomes part of the cascade. - * @param rule The parsable text representing the rule. For rule sets - * this contains both the selector and the style declaration. For - * at-rules, this specifies both the at-identifier and the rule - * content. - * @param index The index within the style sheet's rule list of the rule - * before which to insert the specified rule. If the specified index - * is equal to the length of the style sheet's rule collection, the - * rule will be added to the end of the style sheet. - * @return The index within the style sheet's rule collection of the - * newly inserted rule. - * @exception DOMException - * HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the - * specified index e.g. if an @import rule is inserted - * after a standard rule set or other at-rule. - *
INDEX_SIZE_ERR: Raised if the specified index is not a valid - * insertion point. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is - * readonly. - *
SYNTAX_ERR: Raised if the specified rule has a syntax error and - * is unparsable. - */ - public int insertRule(String rule, - int index) - throws DOMException; - - /** - * Used to delete a rule from the style sheet. - * @param index The index within the style sheet's rule list of the rule - * to remove. - * @exception DOMException - * INDEX_SIZE_ERR: Raised if the specified index does not correspond to - * a rule in the style sheet's rule list. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is - * readonly. - */ - public void deleteRule(int index) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSUnknownRule.java b/src/bind/java/org/w3c/dom/css/CSSUnknownRule.java deleted file mode 100644 index 763d5f1b6..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSUnknownRule.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The CSSUnknownRule interface represents an at-rule not - * supported by this user agent. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSUnknownRule extends CSSRule { -} diff --git a/src/bind/java/org/w3c/dom/css/CSSValue.java b/src/bind/java/org/w3c/dom/css/CSSValue.java deleted file mode 100644 index c40929095..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSValue.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -/** - * The CSSValue interface represents a simple or a complex - * value. A CSSValue object only occurs in a context of a CSS - * property. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSValue { - // UnitTypes - /** - * The value is inherited and the cssText contains "inherit". - */ - public static final short CSS_INHERIT = 0; - /** - * The value is a primitive value and an instance of the - * CSSPrimitiveValue interface can be obtained by using - * binding-specific casting methods on this instance of the - * CSSValue interface. - */ - public static final short CSS_PRIMITIVE_VALUE = 1; - /** - * The value is a CSSValue list and an instance of the - * CSSValueList interface can be obtained by using - * binding-specific casting methods on this instance of the - * CSSValue interface. - */ - public static final short CSS_VALUE_LIST = 2; - /** - * The value is a custom value. - */ - public static final short CSS_CUSTOM = 3; - - /** - * A string representation of the current value. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified CSS string value has a syntax - * error (according to the attached property) or is unparsable. - *
INVALID_MODIFICATION_ERR: Raised if the specified CSS string - * value represents a different type of values than the values allowed - * by the CSS property. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this value is readonly. - */ - public String getCssText(); - public void setCssText(String cssText) - throws DOMException; - - /** - * A code defining the type of the value as defined above. - */ - public short getCssValueType(); - -} diff --git a/src/bind/java/org/w3c/dom/css/CSSValueList.java b/src/bind/java/org/w3c/dom/css/CSSValueList.java deleted file mode 100644 index b159165d9..000000000 --- a/src/bind/java/org/w3c/dom/css/CSSValueList.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The CSSValueList interface provides the abstraction of an - * ordered collection of CSS values. - *

Some properties allow an empty list into their syntax. In that case, - * these properties take the none identifier. So, an empty list - * means that the property has the value none. - *

The items in the CSSValueList are accessible via an - * integral index, starting from 0. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface CSSValueList extends CSSValue { - /** - * The number of CSSValues in the list. The range of valid - * values of the indices is 0 to length-1 - * inclusive. - */ - public int getLength(); - - /** - * Used to retrieve a CSSValue by ordinal index. The order in - * this collection represents the order of the values in the CSS style - * property. If index is greater than or equal to the number of values - * in the list, this returns null. - * @param indexIndex into the collection. - * @return The CSSValue at the index position - * in the CSSValueList, or null if that is - * not a valid index. - */ - public CSSValue item(int index); - -} diff --git a/src/bind/java/org/w3c/dom/css/Counter.java b/src/bind/java/org/w3c/dom/css/Counter.java deleted file mode 100644 index 8cd4967b3..000000000 --- a/src/bind/java/org/w3c/dom/css/Counter.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The Counter interface is used to represent any counter or - * counters function value. This interface reflects the values in the - * underlying style property. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface Counter { - /** - * This attribute is used for the identifier of the counter. - */ - public String getIdentifier(); - - /** - * This attribute is used for the style of the list. - */ - public String getListStyle(); - - /** - * This attribute is used for the separator of the nested counters. - */ - public String getSeparator(); - -} diff --git a/src/bind/java/org/w3c/dom/css/DOMImplementationCSS.java b/src/bind/java/org/w3c/dom/css/DOMImplementationCSS.java deleted file mode 100644 index 66755de64..000000000 --- a/src/bind/java/org/w3c/dom/css/DOMImplementationCSS.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.DOMImplementation; -import org.w3c.dom.DOMException; - -/** - * This interface allows the DOM user to create a CSSStyleSheet - * outside the context of a document. There is no way to associate the new - * CSSStyleSheet with a document in DOM Level 2. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface DOMImplementationCSS extends DOMImplementation { - /** - * Creates a new CSSStyleSheet. - * @param title The advisory title. See also the section. - * @param media The comma-separated list of media associated with the new - * style sheet. See also the section. - * @return A new CSS style sheet. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified media string value has a syntax - * error and is unparsable. - */ - public CSSStyleSheet createCSSStyleSheet(String title, - String media) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/css/DocumentCSS.java b/src/bind/java/org/w3c/dom/css/DocumentCSS.java deleted file mode 100644 index bb1b8540a..000000000 --- a/src/bind/java/org/w3c/dom/css/DocumentCSS.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.stylesheets.DocumentStyle; -import org.w3c.dom.Element; - -/** - * This interface represents a document with a CSS view. - *

The getOverrideStyle method provides a mechanism through - * which a DOM author could effect immediate change to the style of an - * element without modifying the explicitly linked style sheets of a - * document or the inline style of elements in the style sheets. This style - * sheet comes after the author style sheet in the cascade algorithm and is - * called override style sheet. The override style sheet takes precedence - * over author style sheets. An "!important" declaration still takes - * precedence over a normal declaration. Override, author, and user style - * sheets all may contain "!important" declarations. User "!important" rules - * take precedence over both override and author "!important" rules, and - * override "!important" rules take precedence over author "!important" - * rules. - *

The expectation is that an instance of the DocumentCSS - * interface can be obtained by using binding-specific casting methods on an - * instance of the Document interface. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface DocumentCSS extends DocumentStyle { - /** - * This method is used to retrieve the override style declaration for a - * specified element and a specified pseudo-element. - * @param elt The element whose style is to be modified. This parameter - * cannot be null. - * @param pseudoElt The pseudo-element or null if none. - * @return The override style declaration. - */ - public CSSStyleDeclaration getOverrideStyle(Element elt, - String pseudoElt); - -} diff --git a/src/bind/java/org/w3c/dom/css/ElementCSSInlineStyle.java b/src/bind/java/org/w3c/dom/css/ElementCSSInlineStyle.java deleted file mode 100644 index 98b60bf9d..000000000 --- a/src/bind/java/org/w3c/dom/css/ElementCSSInlineStyle.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * Inline style information attached to elements is exposed through the - * style attribute. This represents the contents of the STYLE - * attribute for HTML elements (or elements in other schemas or DTDs which - * use the STYLE attribute in the same way). The expectation is that an - * instance of the ElementCSSInlineStyle interface can be obtained by using - * binding-specific casting methods on an instance of the Element interface - * when the element supports inline CSS style informations. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface ElementCSSInlineStyle { - /** - * The style attribute. - */ - public CSSStyleDeclaration getStyle(); - -} diff --git a/src/bind/java/org/w3c/dom/css/RGBColor.java b/src/bind/java/org/w3c/dom/css/RGBColor.java deleted file mode 100644 index cd5daa567..000000000 --- a/src/bind/java/org/w3c/dom/css/RGBColor.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The RGBColor interface is used to represent any RGB color - * value. This interface reflects the values in the underlying style - * property. Hence, modifications made to the CSSPrimitiveValue - * objects modify the style property. - *

A specified RGB color is not clipped (even if the number is outside the - * range 0-255 or 0%-100%). A computed RGB color is clipped depending on the - * device. - *

Even if a style sheet can only contain an integer for a color value, - * the internal storage of this integer is a float, and this can be used as - * a float in the specified or the computed style. - *

A color percentage value can always be converted to a number and vice - * versa. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface RGBColor { - /** - * This attribute is used for the red value of the RGB color. - */ - public CSSPrimitiveValue getRed(); - - /** - * This attribute is used for the green value of the RGB color. - */ - public CSSPrimitiveValue getGreen(); - - /** - * This attribute is used for the blue value of the RGB color. - */ - public CSSPrimitiveValue getBlue(); - -} diff --git a/src/bind/java/org/w3c/dom/css/Rect.java b/src/bind/java/org/w3c/dom/css/Rect.java deleted file mode 100644 index f5efb1084..000000000 --- a/src/bind/java/org/w3c/dom/css/Rect.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -/** - * The Rect interface is used to represent any rect value. This - * interface reflects the values in the underlying style property. Hence, - * modifications made to the CSSPrimitiveValue objects modify - * the style property. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface Rect { - /** - * This attribute is used for the top of the rect. - */ - public CSSPrimitiveValue getTop(); - - /** - * This attribute is used for the right of the rect. - */ - public CSSPrimitiveValue getRight(); - - /** - * This attribute is used for the bottom of the rect. - */ - public CSSPrimitiveValue getBottom(); - - /** - * This attribute is used for the left of the rect. - */ - public CSSPrimitiveValue getLeft(); - -} diff --git a/src/bind/java/org/w3c/dom/css/ViewCSS.java b/src/bind/java/org/w3c/dom/css/ViewCSS.java deleted file mode 100644 index 6c98bd4ec..000000000 --- a/src/bind/java/org/w3c/dom/css/ViewCSS.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.css; - -import org.w3c.dom.views.AbstractView; -import org.w3c.dom.Element; - -/** - * This interface represents a CSS view. The getComputedStyle - * method provides a read only access to the computed values of an element. - *

The expectation is that an instance of the ViewCSS - * interface can be obtained by using binding-specific casting methods on an - * instance of the AbstractView interface. - *

Since a computed style is related to an Element node, if - * this element is removed from the document, the associated - * CSSStyleDeclaration and CSSValue related to - * this declaration are no longer valid. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface ViewCSS extends AbstractView { - /** - * This method is used to get the computed style as it is defined in . - * @param elt The element whose style is to be computed. This parameter - * cannot be null. - * @param pseudoElt The pseudo-element or null if none. - * @return The computed style. The CSSStyleDeclaration is - * read-only and contains only absolute values. - */ - public CSSStyleDeclaration getComputedStyle(Element elt, - String pseudoElt); - -} diff --git a/src/bind/java/org/w3c/dom/events/CustomEvent.java b/src/bind/java/org/w3c/dom/events/CustomEvent.java deleted file mode 100644 index c7bdf0433..000000000 --- a/src/bind/java/org/w3c/dom/events/CustomEvent.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -/** - * The CustomEvent interface gives access to the attributes - * Event.currentTarget and Event.eventPhase. It is - * intended to be used by the DOM Events implementation to access the - * underlying current target and event phase while dispatching a custom - * Event in the tree; it is also intended to be implemented, - * and not used, by DOM applications. - *

The methods contained in this interface are not intended to be used by - * a DOM application, especially during the dispatch on the - * Event object. Changing the current target or the current - * phase may result in unpredictable results of the event flow. The DOM - * Events implementation should ensure that both methods return the - * appropriate current target and phase before invoking each event listener - * on the current target to protect DOM applications from malicious event - * listeners. - *

Note: If this interface is supported by the event object, - * Event.isCustom() must return true. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 3 - */ -public interface CustomEvent extends Event { - /** - * The setDispatchState method is used by the DOM Events - * implementation to set the values of Event.currentTarget - * and Event.eventPhase. It also reset the states of - * isPropagationStopped and - * isImmediatePropagationStopped. - * @param target Specifies the new value for the - * Event.currentTarget attribute. - * @param phase Specifies the new value for the - * Event.eventPhase attribute. - */ - public void setDispatchState(EventTarget target, - short phase); - - /** - * This method will return true if the method - * stopPropagation() has been called for this event, - * false in any other cases. - * @return true if the event propagation has been stopped - * in the current group. - */ - public boolean isPropagationStopped(); - - /** - * The isImmediatePropagationStopped method is used by the - * DOM Events implementation to know if the method - * stopImmediatePropagation() has been called for this - * event. It returns true if the method has been called, - * false otherwise. - * @return true if the event propagation has been stopped - * immediately in the current group. - */ - public boolean isImmediatePropagationStopped(); - -} diff --git a/src/bind/java/org/w3c/dom/events/DocumentEvent.java b/src/bind/java/org/w3c/dom/events/DocumentEvent.java deleted file mode 100644 index 8f50dd74b..000000000 --- a/src/bind/java/org/w3c/dom/events/DocumentEvent.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.DOMException; - -/** - * The DocumentEvent interface provides a mechanism by which the - * user can create an Event object of a type supported by the - * implementation. If the feature "Events" is supported by the - * Document object, the DocumentEvent interface - * must be implemented on the same object. If the feature "+Events" is - * supported by the Document object, an object that supports - * the DocumentEvent interface must be returned by invoking the - * method Node.getFeature("+Events", "3.0") on the - * Document object. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface DocumentEvent { - /** - * - * @param eventType The eventType parameter specifies the - * name of the DOM Events interface to be supported by the created - * event object, e.g. "Event", "MouseEvent", - * "MutationEvent" and so on. If the Event - * is to be dispatched via the EventTarget.dispatchEvent() - * method the appropriate event init method must be called after - * creation in order to initialize the Event's values. - * As an example, a user wishing to synthesize some kind of - * UIEvent would invoke - * DocumentEvent.createEvent("UIEvent"). The - * UIEvent.initUIEventNS() method could then be called on - * the newly created UIEvent object to set the specific - * type of user interface event to be dispatched, - * {"http://www.w3.org/2001/xml-events", "DOMActivate"} - * for example, and set its context information, e.g. - * UIEvent.detail in this example. The - * createEvent method is used in creating - * Events when it is either inconvenient or unnecessary - * for the user to create an Event themselves. In cases - * where the implementation provided Event is - * insufficient, users may supply their own Event - * implementations for use with the - * EventTarget.dispatchEvent() method. However, the DOM - * implementation needs access to the attributes - * Event.currentTarget and Event.eventPhase - * to appropriately propagate the event in the DOM tree. Therefore - * users' Event implementations might need to support the - * CustomEvent interface for that effect. - *

Note: For backward compatibility reason, "UIEvents", - * "MouseEvents", "MutationEvents", and "HTMLEvents" feature names are - * valid values for the parameter eventType and represent - * respectively the interfaces "UIEvent", "MouseEvent", - * "MutationEvent", and "Event". - * @return The newly created event object. - * @exception DOMException - * NOT_SUPPORTED_ERR: Raised if the implementation does not support the - * Event interface requested. - */ - public Event createEvent(String eventType) - throws DOMException; - - /** - * Test if the implementation can generate events of a specified type. - * @param namespaceURI Specifies the Event.namespaceURI of - * the event. - * @param type Specifies the Event.type of the event. - * @return true if the implementation can generate and - * dispatch this event type, false otherwise. - * @since DOM Level 3 - */ - public boolean canDispatch(String namespaceURI, - String type); - -} diff --git a/src/bind/java/org/w3c/dom/events/Event.java b/src/bind/java/org/w3c/dom/events/Event.java deleted file mode 100644 index 949931518..000000000 --- a/src/bind/java/org/w3c/dom/events/Event.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -/** - * The Event interface is used to provide contextual information - * about an event to the listener processing the event. An object which - * implements the Event interface is passed as the parameter to - * an EventListener. More specific context information is - * passed to event listeners by deriving additional interfaces from - * Event which contain information directly relating to the - * type of event they represent. These derived interfaces are also - * implemented by the object passed to the event listener. - *

To create an instance of the Event interface, use the - * DocumentEvent.createEvent("Event") method call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface Event { - // PhaseType - /** - * The current event phase is the capture phase. - */ - public static final short CAPTURING_PHASE = 1; - /** - * The current event is in the target phase, i.e. it is being evaluated - * at the event target. - */ - public static final short AT_TARGET = 2; - /** - * The current event phase is the bubbling phase. - */ - public static final short BUBBLING_PHASE = 3; - - /** - * The name should be an NCName as defined in [XML Namespaces] - * and is case-sensitive. - *
If the attribute Event.namespaceURI is different from - * null, this attribute represents a local name. - */ - public String getType(); - - /** - * Used to indicate the event target. This attribute contains the target - * node when used with the . - */ - public EventTarget getTarget(); - - /** - * Used to indicate the EventTarget whose - * EventListeners are currently being processed. This is - * particularly useful during the capture and bubbling phases. This - * attribute could contain the target node or a target ancestor when - * used with the . - */ - public EventTarget getCurrentTarget(); - - /** - * Used to indicate which phase of event flow is currently being - * accomplished. - */ - public short getEventPhase(); - - /** - * Used to indicate whether or not an event is a bubbling event. If the - * event can bubble the value is true, otherwise the value - * is false. - */ - public boolean getBubbles(); - - /** - * Used to indicate whether or not an event can have its default action - * prevented (see also ). If the default action can be prevented the - * value is true, otherwise the value is false - * . - */ - public boolean getCancelable(); - - /** - * Used to specify the time (in milliseconds relative to the epoch) at - * which the event was created. Due to the fact that some systems may - * not provide this information the value of timeStamp may - * be not available for all events. When not available, a value of - * 0 will be returned. Examples of epoch time are the time - * of the system start or 0:0:0 UTC 1st January 1970. - */ - public long getTimeStamp(); - - /** - * This method is used to prevent event listeners of the same group to be - * triggered but its effect is deferred until all event listeners - * attached on the currentTarget have been triggered (see - * ). Once it has been called, further calls to that method have no - * additional effect. - *

Note: This method does not prevent the default action from - * being invoked; use preventDefault for that effect. - */ - public void stopPropagation(); - - /** - * If an event is cancelable, the preventDefault method is - * used to signify that the event is to be canceled, meaning any default - * action normally taken by the implementation as a result of the event - * will not occur (see also ), and thus independently of event groups. - * Calling this method for a non-cancelable event has no effect. - *

Note: This method does not stop the event propagation; use - * stopPropagation or stopImmediatePropagation - * for that effect. - */ - public void preventDefault(); - - /** - * The initEvent method is used to initialize the value of - * an Event created through the - * DocumentEvent.createEvent method. This method may only - * be called before the Event has been dispatched via the - * EventTarget.dispatchEvent() method. If the method is - * called several times before invoking - * EventTarget.dispatchEvent, only the final invocation - * takes precedence. This method has no effect if called after the event - * has been dispatched. If called from a subclass of the - * Event interface only the values specified in this method - * are modified, all other attributes are left unchanged. - *
This method sets the Event.type attribute to - * eventTypeArg, and Event.namespaceURI to - * null. To initialize an event with a namespace URI, use - * the Event.initEventNS(namespaceURIArg, eventTypeArg, ...) - * method. - * @param eventTypeArg Specifies Event.type. - * @param canBubbleArg Specifies Event.bubbles. This - * parameter overrides the intrinsic bubbling behavior of the event. - * @param cancelableArg Specifies Event.cancelable. This - * parameter overrides the intrinsic cancelable behavior of the event. - */ - public void initEvent(String eventTypeArg, - boolean canBubbleArg, - boolean cancelableArg); - - /** - * The namespace URI associated with this event at creation time, or - * null if it is unspecified. - *
For events initialized with a DOM Level 2 Events method, such as - * Event.initEvent(), this is always null. - * @since DOM Level 3 - */ - public String getNamespaceURI(); - - /** - * This method will always return false, unless the event - * implements the CustomEvent interface. - * @return false, unless the event object implements the - * CustomEvent interface. - * @since DOM Level 3 - */ - public boolean isCustom(); - - /** - * This method is used to prevent event listeners of the same group to be - * triggered and, unlike stopPropagation its effect is - * immediate (see ). Once it has been called, further calls to that - * method have no additional effect. - *

Note: This method does not prevent the default action from - * being invoked; use Event.preventDefault() for that - * effect. - * @since DOM Level 3 - */ - public void stopImmediatePropagation(); - - /** - * This method will return true if the method - * Event.preventDefault() has been called for this event, - * false otherwise. - * @return true if Event.preventDefault() has - * been called for this event. - * @since DOM Level 3 - */ - public boolean isDefaultPrevented(); - - /** - * The initEventNS method is used to initialize the value of - * an Event object and has the same behavior as - * Event.initEvent(). - * @param namespaceURIArg Specifies Event.namespaceuRI, the - * namespace URI associated with this event, or null if - * no namespace. - * @param eventTypeArg Specifies Event.type, the local name - * of the event type. - * @param canBubbleArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @since DOM Level 3 - */ - public void initEventNS(String namespaceURIArg, - String eventTypeArg, - boolean canBubbleArg, - boolean cancelableArg); - -} diff --git a/src/bind/java/org/w3c/dom/events/EventException.java b/src/bind/java/org/w3c/dom/events/EventException.java deleted file mode 100644 index 51763b46b..000000000 --- a/src/bind/java/org/w3c/dom/events/EventException.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -/** - * Event operations may throw an EventException as specified in - * their method descriptions. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public class EventException extends RuntimeException { - public EventException(short code, String message) { - super(message); - this.code = code; - } - public short code; - // EventExceptionCode - /** - * If the Event.type was not specified by initializing the - * event before the method was called. Specification of the - * Event.type as null or an empty string will - * also trigger this exception. - */ - public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0; - /** - * If the Event object is already dispatched in the tree. - * @since DOM Level 3 - */ - public static final short DISPATCH_REQUEST_ERR = 1; - -} diff --git a/src/bind/java/org/w3c/dom/events/EventListener.java b/src/bind/java/org/w3c/dom/events/EventListener.java deleted file mode 100644 index a5102b130..000000000 --- a/src/bind/java/org/w3c/dom/events/EventListener.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -/** - * The EventListener interface is the primary way for handling - * events. Users implement the EventListener interface and - * register their event listener on an EventTarget. The users - * should also remove their EventListener from its - * EventTarget after they have completed using the listener. - *

Copying a Node, with methods such as - * Node.cloneNode or Range.cloneContents, does not - * copy the event listeners attached to it. Event listeners must be attached - * to the newly created Node afterwards if so desired. - *

Moving a Node, with methods Document.adoptNode - * , Node.appendChild, or Range.extractContents, - * does not affect the event listeners attached to it. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface EventListener { - /** - * This method is called whenever an event occurs of the event type for - * which the EventListener interface was registered. - * @param evt The Event contains contextual information - * about the event. - */ - public void handleEvent(Event evt); - -} diff --git a/src/bind/java/org/w3c/dom/events/EventTarget.java b/src/bind/java/org/w3c/dom/events/EventTarget.java deleted file mode 100644 index 1be6edace..000000000 --- a/src/bind/java/org/w3c/dom/events/EventTarget.java +++ /dev/null @@ -1,202 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -/** - * The EventTarget interface is implemented by all the objects - * which could be event targets in an implementation which supports the . - * The interface allows registration, removal or query of event listeners, - * and dispatch of events to an event target. - *

When used with , this interface is implemented by all target nodes and - * target ancestors, i.e. all DOM Nodes of the tree support - * this interface when the implementation conforms to DOM Level 3 Events - * and, therefore, this interface can be obtained by using binding-specific - * casting methods on an instance of the Node interface. - *

Invoking addEventListener or - * addEventListenerNS multiple times on the same - * EventTarget with the same parameters ( - * namespaceURI, type, listener, and - * useCapture) is considered to be a no-op and thus - * independently of the event group. They do not cause the - * EventListener to be called more than once and do not cause a - * change in the triggering order. In order to guarantee that an event - * listener will be added to the event target for the specified event group, - * one needs to invoke removeEventListener or - * removeEventListenerNS first. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface EventTarget { - /** - * This method allows the registration of an event listener in the - * default group and, depending on the useCapture - * parameter, on the capture phase of the DOM event flow or its target - * and bubbling phases. - * @param type Specifies the Event.type associated with the - * event for which the user is registering. - * @param listener The listener parameter takes an object - * implemented by the user which implements the - * EventListener interface and contains the method to be - * called when the event occurs. - * @param useCapture If true, useCapture indicates that the - * user wishes to add the event listener for the capture phase only, - * i.e. this event listener will not be triggered during the target - * and bubbling phases. If false, the event listener will - * only be triggered during the target and bubbling phases. - */ - public void addEventListener(String type, - EventListener listener, - boolean useCapture); - - /** - * This method allows the removal of event listeners from the default - * group. - *
Calling removeEventListener with arguments which do - * not identify any currently registered EventListener on - * the EventTarget has no effect. - * @param type Specifies the Event.type for which the user - * registered the event listener. - * @param listener The EventListener to be removed. - * @param useCapture Specifies whether the EventListener - * being removed was registered for the capture phase or not. If a - * listener was registered twice, once for the capture phase and once - * for the target and bubbling phases, each must be removed - * separately. Removal of an event listener registered for the capture - * phase does not affect the same event listener registered for the - * target and bubbling phases, and vice versa. - */ - public void removeEventListener(String type, - EventListener listener, - boolean useCapture); - - /** - * This method allows the dispatch of events into the implementation's - * event model. The event target of the event is the - * EventTarget object on which dispatchEvent - * is called. - * @param evt The event to be dispatched. - * @return Indicates whether any of the listeners which handled the - * event called Event.preventDefault(). If - * Event.preventDefault() was called the returned value - * is false, else it is true. - * @exception EventException - * UNSPECIFIED_EVENT_TYPE_ERR: Raised if the Event.type - * was not specified by initializing the event before - * dispatchEvent was called. Specification of the - * Event.type as null or an empty string - * will also trigger this exception. - *
DISPATCH_REQUEST_ERR: Raised if the Event object is - * already being dispatched in the tree. - *
NOT_SUPPORTED_ERR: Raised if the Event object has - * not been created using DocumentEvent.createEvent() or - * does not support the interface CustomEvent. - * @version DOM Level 3 - */ - public boolean dispatchEvent(Event evt) - throws EventException; - - /** - * This method allows the registration of an event listener in a - * specified group or the default group and, depending on the - * useCapture parameter, on the capture phase of the DOM - * event flow or its target and bubbling phases. - * @param namespaceURI Specifies the Event.namespaceURI - * associated with the event for which the user is registering. - * @param type Specifies the Event.type associated with the - * event for which the user is registering. - * @param listener The listener parameter takes an object - * implemented by the user which implements the - * EventListener interface and contains the method to be - * called when the event occurs. - * @param useCapture If true, useCapture indicates that the - * user wishes to add the event listener for the capture phase only, - * i.e. this event listener will not be triggered during the target - * and bubbling phases. If false, the event listener will - * only be triggered during the target and bubbling phases. - * @param evtGroup The object that represents the event group to - * associate with the EventListener (see also ). Use - * null to attach the event listener to the default - * group. - * @since DOM Level 3 - */ - public void addEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture, - Object evtGroup); - - /** - * This method allows the removal of an event listener, independently of - * the associated event group. - *
Calling removeEventListenerNS with arguments which do - * not identify any currently registered EventListener on - * the EventTarget has no effect. - * @param namespaceURI Specifies the Event.namespaceURI - * associated with the event for which the user registered the event - * listener. - * @param type Specifies the Event.type associated with the - * event for which the user registered the event listener. - * @param listener The EventListener parameter indicates - * the EventListener to be removed. - * @param useCapture Specifies whether the EventListener - * being removed was registered for the capture phase or not. If a - * listener was registered twice, once for the capture phase and once - * for the target and bubbling phases, each must be removed - * separately. Removal of an event listener registered for the capture - * phase does not affect the same event listener registered for the - * target and bubbling phases, and vice versa. - * @since DOM Level 3 - */ - public void removeEventListenerNS(String namespaceURI, - String type, - EventListener listener, - boolean useCapture); - - /** - * This method allows the DOM application to know if an event listener, - * attached to this EventTarget or one of its ancestors, - * will be triggered by the specified event type during the dispatch of - * the event to this event target or one of its descendants. - * @param namespaceURI Specifies the Event.namespaceURI - * associated with the event. - * @param type Specifies the Event.type associated with the - * event. - * @return true if an event listener will be triggered on - * the EventTarget with the specified event type, - * false otherwise. - * @since DOM Level 3 - */ - public boolean willTriggerNS(String namespaceURI, - String type); - - /** - * This method allows the DOM application to know if this - * EventTarget contains an event listener registered for - * the specified event type. This is useful for determining at which - * nodes within a hierarchy altered handling of specific event types has - * been introduced, but should not be used to determine whether the - * specified event type triggers an event listener (see - * EventTarget.willTriggerNS()). - * @param namespaceURI Specifies the Event.namespaceURI - * associated with the event. - * @param type Specifies the Event.type associated with the - * event. - * @return true if an event listener is registered on this - * EventTarget for the specified event type, - * false otherwise. - * @since DOM Level 3 - */ - public boolean hasEventListenerNS(String namespaceURI, - String type); - -} diff --git a/src/bind/java/org/w3c/dom/events/KeyboardEvent.java b/src/bind/java/org/w3c/dom/events/KeyboardEvent.java deleted file mode 100644 index e166f5f77..000000000 --- a/src/bind/java/org/w3c/dom/events/KeyboardEvent.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.views.AbstractView; - -/** - * The KeyboardEvent interface provides specific contextual - * information associated with keyboard devices. Each keyboard event - * references a key using an identifier. Keyboard events are commonly - * directed at the element that has the focus. - *

The KeyboardEvent interface provides convenient attributes - * for some common modifiers keys: KeyboardEvent.ctrlKey, - * KeyboardEvent.shiftKey, KeyboardEvent.altKey, - * KeyboardEvent.metaKey. These attributes are equivalent to - * use the method - * KeyboardEvent.getModifierState(keyIdentifierArg) with - * "Control", "Shift", "Alt", or "Meta" respectively. - *

To create an instance of the KeyboardEvent interface, use - * the DocumentEvent.createEvent("KeyboardEvent") method call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 3 - */ -public interface KeyboardEvent extends UIEvent { - // KeyLocationCode - /** - * The key activation is not distinguished as the left or right version - * of the key, and did not originate from the numeric keypad (or did not - * originate with a virtual key corresponding to the numeric keypad). - * Example: the 'Q' key on a PC 101 Key US keyboard. - */ - public static final int DOM_KEY_LOCATION_STANDARD = 0x00; - /** - * The key activated is in the left key location (there is more than one - * possible location for this key). Example: the left Shift key on a PC - * 101 Key US keyboard. - */ - public static final int DOM_KEY_LOCATION_LEFT = 0x01; - /** - * The key activation is in the right key location (there is more than - * one possible location for this key). Example: the right Shift key on - * a PC 101 Key US keyboard. - */ - public static final int DOM_KEY_LOCATION_RIGHT = 0x02; - /** - * The key activation originated on the numeric keypad or with a virtual - * key corresponding to the numeric keypad. Example: the '1' key on a PC - * 101 Key US keyboard located on the numeric pad. - */ - public static final int DOM_KEY_LOCATION_NUMPAD = 0x03; - - /** - * keyIdentifier holds the identifier of the key. The key - * identifiers are defined in Appendix A.2 "". Implementations that are - * unable to identify a key must use the key identifier - * "Unidentified". - */ - public String getKeyIdentifier(); - - /** - * The keyLocation attribute contains an indication of the - * location of they key on the device, as described in . - */ - public int getKeyLocation(); - - /** - * true if the control (Ctrl) key modifier is activated. - */ - public boolean getCtrlKey(); - - /** - * true if the shift (Shift) key modifier is activated. - */ - public boolean getShiftKey(); - - /** - * true if the alternative (Alt) key modifier is activated. - *

Note: The Option key modifier on Macintosh systems must be - * represented using this key modifier. - */ - public boolean getAltKey(); - - /** - * true if the meta (Meta) key modifier is activated. - *

Note: The Command key modifier on Macintosh systems must be - * represented using this key modifier. - */ - public boolean getMetaKey(); - - /** - * This methods queries the state of a modifier using a key identifier. - * See also . - * @param keyIdentifierArg A modifier key identifier. Common modifier - * keys are "Alt", "AltGraph", - * "CapsLock", "Control", "Meta" - * , "NumLock", "Scroll", or - * "Shift". - *

Note: If an application wishes to distinguish between - * right and left modifiers, this information could be deduced using - * keyboard events and KeyboardEvent.keyLocation. - * @return true if it is modifier key and the modifier is - * activated, false otherwise. - */ - public boolean getModifierState(String keyIdentifierArg); - - /** - * The initKeyboardEvent method is used to initialize the - * value of a KeyboardEvent object and has the same - * behavior as UIEvent.initUIEvent(). The value of - * UIEvent.detail remains undefined. - * @param typeArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param keyIdentifierArg Specifies - * KeyboardEvent.keyIdentifier. - * @param keyLocationArg Specifies KeyboardEvent.keyLocation - * . - * @param modifiersList A white space separated list of modifier key identifiers to be activated on this - * object. - */ - public void initKeyboardEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String keyIdentifierArg, - int keyLocationArg, - String modifiersList); - - /** - * The initKeyboardEventNS method is used to initialize the - * value of a KeyboardEvent object and has the same - * behavior as UIEvent.initUIEventNS(). The value of - * UIEvent.detail remains undefined. - * @param namespaceURI Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param typeArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param keyIdentifierArg Refer to the - * KeyboardEvent.initKeyboardEvent() method for a - * description of this parameter. - * @param keyLocationArg Refer to the - * KeyboardEvent.initKeyboardEvent() method for a - * description of this parameter. - * @param modifiersList A white space separated list of modifier key identifiers to be activated on this - * object. As an example, "Control Alt" will activated - * the control and alt modifiers. - */ - public void initKeyboardEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String keyIdentifierArg, - int keyLocationArg, - String modifiersList); - -} diff --git a/src/bind/java/org/w3c/dom/events/MouseEvent.java b/src/bind/java/org/w3c/dom/events/MouseEvent.java deleted file mode 100644 index 9877e8dbc..000000000 --- a/src/bind/java/org/w3c/dom/events/MouseEvent.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.views.AbstractView; - -/** - * The MouseEvent interface provides specific contextual - * information associated with Mouse events. - *

In the case of nested elements mouse events are always targeted at the - * most deeply nested element. Ancestors of the targeted element may use - * bubbling to obtain notification of mouse events which occur within theirs - * descendent elements. - *

To create an instance of the MouseEvent interface, use the - * DocumentEvent.createEvent("MouseEvent") method call. - *

Note: When initializing MouseEvent objects using - * initMouseEvent or initMouseEventNS, - * implementations should use the client coordinates clientX - * and clientY for calculation of other coordinates (such as - * target coordinates exposed by DOM Level 0 implementations). - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface MouseEvent extends UIEvent { - /** - * The horizontal coordinate at which the event occurred relative to the - * origin of the screen coordinate system. - */ - public int getScreenX(); - - /** - * The vertical coordinate at which the event occurred relative to the - * origin of the screen coordinate system. - */ - public int getScreenY(); - - /** - * The horizontal coordinate at which the event occurred relative to the - * DOM implementation's client area. - */ - public int getClientX(); - - /** - * The vertical coordinate at which the event occurred relative to the DOM - * implementation's client area. - */ - public int getClientY(); - - /** - * true if the control (Ctrl) key modifier is activated. - */ - public boolean getCtrlKey(); - - /** - * true if the shift (Shift) key modifier is activated. - */ - public boolean getShiftKey(); - - /** - * true if the alt (alternative) key modifier is activated. - *

Note: The Option key modifier on Macintosh systems must be - * represented using this key modifier. - */ - public boolean getAltKey(); - - /** - * true if the meta (Meta) key modifier is activated. - *

Note: The Command key modifier on Macintosh system must be - * represented using this meta key. - */ - public boolean getMetaKey(); - - /** - * During mouse events caused by the depression or release of a mouse - * button, button is used to indicate which mouse button - * changed state. 0 indicates the normal button of the - * mouse (in general on the left or the one button on Macintosh mice, - * used to activate a button or select text). 2 indicates - * the contextual property (in general on the right, used to display a - * context menu) button of the mouse if present. 1 - * indicates the extra (in general in the middle and often combined with - * the mouse wheel) button. Some mice may provide or simulate more - * buttons, and values higher than 2 can be used to - * represent such buttons. - */ - public short getButton(); - - /** - * Used to identify a secondary EventTarget related to a UI - * event. Currently this attribute is used with the mouseover event to - * indicate the EventTarget which the pointing device - * exited and with the mouseout event to indicate the - * EventTarget which the pointing device entered. - */ - public EventTarget getRelatedTarget(); - - /** - * The initMouseEvent method is used to initialize the value - * of a MouseEvent object and has the same behavior as - * UIEvent.initUIEvent(). - * @param typeArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param detailArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param screenXArg Specifies MouseEvent.screenX. - * @param screenYArg Specifies MouseEvent.screenY. - * @param clientXArg Specifies MouseEvent.clientX. - * @param clientYArg Specifies MouseEvent.clientY. - * @param ctrlKeyArg Specifies MouseEvent.ctrlKey. - * @param altKeyArg Specifies MouseEvent.altKey. - * @param shiftKeyArg Specifies MouseEvent.shiftKey. - * @param metaKeyArg Specifies MouseEvent.metaKey. - * @param buttonArg Specifies MouseEvent.button. - * @param relatedTargetArg Specifies - * MouseEvent.relatedTarget. - */ - public void initMouseEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg, - int screenXArg, - int screenYArg, - int clientXArg, - int clientYArg, - boolean ctrlKeyArg, - boolean altKeyArg, - boolean shiftKeyArg, - boolean metaKeyArg, - short buttonArg, - EventTarget relatedTargetArg); - - /** - * This methods queries the state of a modifier using a key identifier. - * See also . - * @param keyIdentifierArg A modifier key identifier, as defined by the - * KeyboardEvent.keyIdentifier attribute. Common modifier - * keys are "Alt", "AltGraph", - * "CapsLock", "Control", "Meta" - * , "NumLock", "Scroll", or - * "Shift". - *

Note: If an application wishes to distinguish between - * right and left modifiers, this information could be deduced using - * keyboard events and KeyboardEvent.keyLocation. - * @return true if it is modifier key and the modifier is - * activated, false otherwise. - * @since DOM Level 3 - */ - public boolean getModifierState(String keyIdentifierArg); - - /** - * The initMouseEventNS method is used to initialize the - * value of a MouseEvent object and has the same behavior - * as UIEvent.initUIEventNS(). - * @param namespaceURI Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param typeArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param detailArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param screenXArg Refer to the - * MouseEvent.initMouseEvent() method for a description - * of this parameter. - * @param screenYArg Refer to the - * MouseEvent.initMouseEvent() method for a description - * of this parameter. - * @param clientXArg Refer to the - * MouseEvent.initMouseEvent() method for a description - * of this parameter. - * @param clientYArg Refer to the - * MouseEvent.initMouseEvent() method for a description - * of this parameter. - * @param buttonArg Refer to the MouseEvent.initMouseEvent() - * method for a description of this parameter. - * @param relatedTargetArg Refer to the - * MouseEvent.initMouseEvent() method for a description - * of this parameter. - * @param modifiersList A white space separated list of modifier key identifiers to be activated on this - * object. As an example, "Control Alt" will activated - * the control and alt modifiers. - * @since DOM Level 3 - */ - public void initMouseEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg, - int screenXArg, - int screenYArg, - int clientXArg, - int clientYArg, - short buttonArg, - EventTarget relatedTargetArg, - String modifiersList); - -} diff --git a/src/bind/java/org/w3c/dom/events/MutationEvent.java b/src/bind/java/org/w3c/dom/events/MutationEvent.java deleted file mode 100644 index 12d8b2f6b..000000000 --- a/src/bind/java/org/w3c/dom/events/MutationEvent.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.Node; - -/** - * The MutationEvent interface provides specific contextual - * information associated with Mutation events. - *

To create an instance of the MutationEvent interface, use - * the DocumentEvent.createEvent("MutationEvent") method call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface MutationEvent extends Event { - // attrChangeType - /** - * The Attr was modified in place. - */ - public static final short MODIFICATION = 1; - /** - * The Attr was just added. - */ - public static final short ADDITION = 2; - /** - * The Attr was just removed. - */ - public static final short REMOVAL = 3; - - /** - * relatedNode is used to identify a secondary node related - * to a mutation event. For example, if a mutation event is dispatched - * to a node indicating that its parent has changed, the - * relatedNode is the changed parent. If an event is - * instead dispatched to a subtree indicating a node was changed within - * it, the relatedNode is the changed node. In the case of - * the - * {"http://www.w3.org/2001/xml-events", "DOMAttrModified"} - * event it indicates the Attr node which was modified, - * added, or removed. - */ - public Node getRelatedNode(); - - /** - * prevValue indicates the previous value of the - * Attr node in - * {"http://www.w3.org/2001/xml-events", "DOMAttrModified"} - * events, and of the CharacterData node in - * {"http://www.w3.org/2001/xml-events", "DOMCharacterDataModified"} - * events. - */ - public String getPrevValue(); - - /** - * newValue indicates the new value of the Attr - * node in - * {"http://www.w3.org/2001/xml-events", "DOMAttrModified"} - * events, and of the CharacterData node in - * {"http://www.w3.org/2001/xml-events", "DOMCharacterDataModified"} - * events. - */ - public String getNewValue(); - - /** - * attrName indicates the name of the changed - * Attr node in a - * {"http://www.w3.org/2001/xml-events", "DOMAttrModified"} - * event. - */ - public String getAttrName(); - - /** - * attrChange indicates the type of change which triggered - * the - * {"http://www.w3.org/2001/xml-events", "DOMAttrModified"} - * event. The values can be MODIFICATION, - * ADDITION, or REMOVAL. - */ - public short getAttrChange(); - - /** - * The initMutationEvent method is used to initialize the - * value of a MutationEvent object and has the same - * behavior as Event.initEvent(). - * @param typeArg Refer to the Event.initEvent() method for - * a description of this parameter. - * @param canBubbleArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @param relatedNodeArg Specifies MutationEvent.relatedNode - * . - * @param prevValueArg Specifies MutationEvent.prevValue. - * This value may be null. - * @param newValueArg Specifies MutationEvent.newValue. - * This value may be null. - * @param attrNameArg Specifies MutationEvent.attrname. - * This value may be null. - * @param attrChangeArg Specifies MutationEvent.attrChange. - * This value may be null. - */ - public void initMutationEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevValueArg, - String newValueArg, - String attrNameArg, - short attrChangeArg); - - /** - * The initMutationEventNS method is used to initialize the - * value of a MutationEvent object and has the same - * behavior as Event.initEventNS(). - * @param namespaceURI Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param typeArg Refer to the Event.initEventNS() method - * for a description of this parameter. - * @param canBubbleArg Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param cancelableArg Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param relatedNodeArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param prevValueArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param newValueArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param attrNameArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param attrChangeArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @since DOM Level 3 - */ - public void initMutationEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevValueArg, - String newValueArg, - String attrNameArg, - short attrChangeArg); - -} diff --git a/src/bind/java/org/w3c/dom/events/MutationNameEvent.java b/src/bind/java/org/w3c/dom/events/MutationNameEvent.java deleted file mode 100644 index f5c217198..000000000 --- a/src/bind/java/org/w3c/dom/events/MutationNameEvent.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.Node; - -/** - * The MutationNameEvent interface provides specific contextual - * information associated with Mutation name event types. - *

To create an instance of the MutationNameEvent interface, - * use the Document.createEvent("MutationNameEvent") method - * call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 3 - */ -public interface MutationNameEvent extends MutationEvent { - /** - * The previous value of the relatedNode's - * namespaceURI. - */ - public String getPrevNamespaceURI(); - - /** - * The previous value of the relatedNode's - * nodeName. - */ - public String getPrevNodeName(); - - /** - * The initMutationNameEvent method is used to initialize - * the value of a MutationNameEvent object and has the same - * behavior as MutationEvent.initMutationEvent(). - * @param typeArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param canBubbleArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param cancelableArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param relatedNodeArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param prevNamespaceURIArg Specifies - * MutationNameEvent.prevNamespaceURI. This value may be - * null. - * @param prevNodeNameArg Specifies - * MutationNameEvent.prevNodeName. - * @since DOM Level 3 - */ - public void initMutationNameEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevNamespaceURIArg, - String prevNodeNameArg); - - /** - * The initMutationNameEventNS method is used to initialize - * the value of a MutationNameEvent object and has the same - * behavior as MutationEvent.initMutationEventNS(). - * @param namespaceURI Refer to the - * MutationEvent.initMutationEventNS() method for a - * description of this parameter. - * @param typeArg Refer to the - * MutationEvent.initMutationEventNS() method for a - * description of this parameter. - * @param canBubbleArg Refer to the - * MutationEvent.initMutationEventNS() method for a - * description of this parameter. - * @param cancelableArg Refer to the - * MutationEvent.initMutationEventNS() method for a - * description of this parameter. - * @param relatedNodeArg Refer to the - * MutationEvent.initMutationEventNS() method for a - * description of this parameter. - * @param prevNamespaceURIArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @param prevNodeNameArg Refer to the - * MutationEvent.initMutationEvent() method for a - * description of this parameter. - * @since DOM Level 3 - */ - public void initMutationNameEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - Node relatedNodeArg, - String prevNamespaceURIArg, - String prevNodeNameArg); - -} diff --git a/src/bind/java/org/w3c/dom/events/TextEvent.java b/src/bind/java/org/w3c/dom/events/TextEvent.java deleted file mode 100644 index 4ba5f5abf..000000000 --- a/src/bind/java/org/w3c/dom/events/TextEvent.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.views.AbstractView; - -/** - * The TextEvent interface provides specific contextual - * information associated with Text Events. - *

To create an instance of the TextEvent interface, use the - * DocumentEvent.createEvent("TextEvent") method call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 3 - */ -public interface TextEvent extends UIEvent { - /** - * data holds the value of the characters generated by the - * character device. This may be a single Unicode character or a - * non-empty sequence of Unicode characters [Unicode]. Characters should be normalized as defined by the Unicode - * normalization form NFC, defined in [UTR #15]. This - * attribute cannot be null or contain the empty string. - */ - public String getData(); - - /** - * The initTextEvent method is used to initialize the value - * of a TextEvent object and has the same behavior as - * UIEvent.initUIEvent(). The value of - * UIEvent.detail remains undefined. - * @param typeArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param dataArg Specifies TextEvent.data. - */ - public void initTextEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String dataArg); - - /** - * The initTextEventNS method is used to initialize the - * value of a TextEvent object and has the same behavior as - * UIEvent.initUIEventNS(). The value of - * UIEvent.detail remains undefined. - * @param namespaceURI Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param type Refer to the UIEvent.initUIEventNS() method - * for a description of this parameter. - * @param canBubbleArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param cancelableArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEventNS() - * method for a description of this parameter. - * @param dataArg Refer to the TextEvent.initTextEvent() - * method for a description of this parameter. - */ - public void initTextEventNS(String namespaceURI, - String type, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - String dataArg); - -} diff --git a/src/bind/java/org/w3c/dom/events/UIEvent.java b/src/bind/java/org/w3c/dom/events/UIEvent.java deleted file mode 100644 index e4a819c73..000000000 --- a/src/bind/java/org/w3c/dom/events/UIEvent.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2003 World Wide Web Consortium, - * - * (Massachusetts Institute of Technology, European Research Consortium for - * Informatics and Mathematics, Keio University). All Rights Reserved. This - * work is distributed under the W3C(r) Software License [1] in the hope that - * it will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 - */ - -package org.w3c.dom.events; - -import org.w3c.dom.views.AbstractView; - -/** - * The UIEvent interface provides specific contextual - * information associated with User Interface events. - *

To create an instance of the UIEvent interface, use the - * DocumentEvent.createEvent("UIEvent") method call. - *

See also the Document Object Model (DOM) Level 3 Events Specification. - * @since DOM Level 2 - */ -public interface UIEvent extends Event { - /** - * The view attribute identifies the AbstractView - * from which the event was generated. - */ - public AbstractView getView(); - - /** - * Specifies some detail information about the Event, - * depending on the type of event. - */ - public int getDetail(); - - /** - * The initUIEvent method is used to initialize the value of - * a UIEvent object and has the same behavior as - * Event.initEvent(). - * @param typeArg Refer to the Event.initEvent() method for - * a description of this parameter. - * @param canBubbleArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @param cancelableArg Refer to the Event.initEvent() - * method for a description of this parameter. - * @param viewArg Specifies UIEvent.view. - * @param detailArg Specifies UIEvent.detail. - */ - public void initUIEvent(String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg); - - /** - * The initUIEventNS method is used to initialize the value - * of a UIEvent object and has the same behavior as - * Event.initEventNS(). - * @param namespaceURI Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param typeArg Refer to the Event.initEventNS() method - * for a description of this parameter. - * @param canBubbleArg Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param cancelableArg Refer to the Event.initEventNS() - * method for a description of this parameter. - * @param viewArg Refer to the UIEvent.initUIEvent() method - * for a description of this parameter. - * @param detailArg Refer to the UIEvent.initUIEvent() - * method for a description of this parameter. - * @since DOM Level 3 - */ - public void initUIEventNS(String namespaceURI, - String typeArg, - boolean canBubbleArg, - boolean cancelableArg, - AbstractView viewArg, - int detailArg); - -} diff --git a/src/bind/java/org/w3c/dom/smil/ElementExclusiveTimeContainer.java b/src/bind/java/org/w3c/dom/smil/ElementExclusiveTimeContainer.java deleted file mode 100644 index 84c7a14b4..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementExclusiveTimeContainer.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; -import org.w3c.dom.NodeList; - -/** - * This interface defines a time container with semantics based upon par, but - * with the additional constraint that only one child element may play at a - * time. - */ -public interface ElementExclusiveTimeContainer extends ElementTimeContainer { - /** - * Controls the end of the container. Need to address thr id-ref value. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getEndSync(); - public void setEndSync(String endSync) - throws DOMException; - - /** - * This should support another method to get the ordered collection of - * paused elements (the paused stack) at a given point in time. - * @return All paused elements at the current time. - */ - public NodeList getPausedElements(); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementLayout.java b/src/bind/java/org/w3c/dom/smil/ElementLayout.java deleted file mode 100644 index 7f3128fae..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementLayout.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * This interface is used by SMIL elements root-layout, top-layout and region. - * - */ -public interface ElementLayout { - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getTitle(); - public void setTitle(String title) - throws DOMException; - - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getBackgroundColor(); - public void setBackgroundColor(String backgroundColor) - throws DOMException; - - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public int getHeight(); - public void setHeight(int height) - throws DOMException; - - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public int getWidth(); - public void setWidth(int width) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementParallelTimeContainer.java b/src/bind/java/org/w3c/dom/smil/ElementParallelTimeContainer.java deleted file mode 100644 index a796bc7be..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementParallelTimeContainer.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * A parallel container defines a simple parallel time grouping - * in which multiple elements can play back at the same time. It may have to - * specify a repeat iteration. (?) - */ -public interface ElementParallelTimeContainer extends ElementTimeContainer { - /** - * Controls the end of the container. Need to address thr id-ref value. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getEndSync(); - public void setEndSync(String endSync) - throws DOMException; - - /** - * This method returns the implicit duration in seconds. - * @return The implicit duration in seconds or -1 if the implicit is - * unknown (indefinite?). - */ - public float getImplicitDuration(); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementSequentialTimeContainer.java b/src/bind/java/org/w3c/dom/smil/ElementSequentialTimeContainer.java deleted file mode 100644 index bca584164..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementSequentialTimeContainer.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * A seq container defines a sequence of elements in which - * elements play one after the other. - */ -public interface ElementSequentialTimeContainer extends ElementTimeContainer { -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementSyncBehavior.java b/src/bind/java/org/w3c/dom/smil/ElementSyncBehavior.java deleted file mode 100644 index e75feccc0..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementSyncBehavior.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * The synchronization behavior extension. - */ -public interface ElementSyncBehavior { - /** - * The runtime synchronization behavior for an element. - */ - public String getSyncBehavior(); - - /** - * The sync tolerance for the associated element. It has an effect only if - * the element has syncBehavior="locked" . - */ - public float getSyncTolerance(); - - /** - * Defines the default value for the runtime synchronization behavior for - * an element, and all descendents. - */ - public String getDefaultSyncBehavior(); - - /** - * Defines the default value for the sync tolerance for an element, and - * all descendents. - */ - public float getDefaultSyncTolerance(); - - /** - * If set to true, forces the time container playback to sync to this - * element. - */ - public boolean getSyncMaster(); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTargetAttributes.java b/src/bind/java/org/w3c/dom/smil/ElementTargetAttributes.java deleted file mode 100644 index 23a37b638..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTargetAttributes.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * This interface define the set of animation target extensions. - */ -public interface ElementTargetAttributes { - /** - * The name of the target attribute. - */ - public String getAttributeName(); - public void setAttributeName(String attributeName); - - // attributeTypes - public static final short ATTRIBUTE_TYPE_AUTO = 0; - public static final short ATTRIBUTE_TYPE_CSS = 1; - public static final short ATTRIBUTE_TYPE_XML = 2; - - /** - * A code representing the value of the attributeType attribute, as - * defined above. Default value is ATTRIBUTE_TYPE_CODE . - */ - public short getAttributeType(); - public void setAttributeType(short attributeType); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTest.java b/src/bind/java/org/w3c/dom/smil/ElementTest.java deleted file mode 100644 index 78fe497d5..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * Defines the test attributes interface. See the Test attributes definition - * . - */ -public interface ElementTest { - /** - * The systemBitrate value. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public int getSystemBitrate(); - public void setSystemBitrate(int systemBitrate) - throws DOMException; - - /** - * The systemCaptions value. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public boolean getSystemCaptions(); - public void setSystemCaptions(boolean systemCaptions) - throws DOMException; - - /** - * The systemLanguage value. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getSystemLanguage(); - public void setSystemLanguage(String systemLanguage) - throws DOMException; - - /** - * The result of the evaluation of the systemRequired attribute. - */ - public boolean getSystemRequired(); - - /** - * The result of the evaluation of the systemScreenSize attribute. - */ - public boolean getSystemScreenSize(); - - /** - * The result of the evaluation of the systemScreenDepth attribute. - */ - public boolean getSystemScreenDepth(); - - /** - * The value of the systemOverdubOrSubtitle attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getSystemOverdubOrSubtitle(); - public void setSystemOverdubOrSubtitle(String systemOverdubOrSubtitle) - throws DOMException; - - /** - * The value of the systemAudioDesc attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public boolean getSystemAudioDesc(); - public void setSystemAudioDesc(boolean systemAudioDesc) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTime.java b/src/bind/java/org/w3c/dom/smil/ElementTime.java deleted file mode 100644 index 715d46ac9..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTime.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * This interface defines the set of timing attributes that are common to all - * timed elements. - */ -public interface ElementTime { - /** - * The desired value (as a list of times) of the begin instant of this - * node. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public TimeList getBegin(); - public void setBegin(TimeList begin) - throws DOMException; - - /** - * The list of active ends for this node. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public TimeList getEnd(); - public void setEnd(TimeList end) - throws DOMException; - - /** - * The desired simple duration value of this node in seconds. Negative - * value means "indefinite". - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getDur(); - public void setDur(float dur) - throws DOMException; - - // restartTypes - public static final short RESTART_ALWAYS = 0; - public static final short RESTART_NEVER = 1; - public static final short RESTART_WHEN_NOT_ACTIVE = 2; - - /** - * A code representing the value of the restart attribute, as defined - * above. Default value is RESTART_ALWAYS . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public short getRestart(); - public void setRestart(short restart) - throws DOMException; - - // fillTypes - public static final short FILL_REMOVE = 0; - public static final short FILL_FREEZE = 1; - - /** - * A code representing the value of the fill attribute, as defined - * above. Default value is FILL_REMOVE . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public short getFill(); - public void setFill(short fill) - throws DOMException; - - /** - * The repeatCount attribute causes the element to play repeatedly - * (loop) for the specified number of times. A negative value repeat the - * element indefinitely. Default value is 0 (unspecified). - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getRepeatCount(); - public void setRepeatCount(float repeatCount) - throws DOMException; - - /** - * The repeatDur causes the element to play repeatedly (loop) for the - * specified duration in milliseconds. Negative means "indefinite". - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getRepeatDur(); - public void setRepeatDur(float repeatDur) - throws DOMException; - - /** - * Causes this element to begin the local timeline (subject to sync - * constraints). - * @return true if the method call was successful and the - * element was begun. false if the method call failed. - * Possible reasons for failure include: The element doesn't support - * the beginElement method. (the beginEvent - * attribute is not set to "undefinite" ) The element is - * already active and can't be restart when it is active. (the - * restart attribute is set to "whenNotActive" - * ) The element is active or has been active and can't be restart. - * (the restart attribute is set to "never" ). - * - */ - public boolean beginElement(); - - /** - * Causes this element to end the local timeline (subject to sync - * constraints). - * @return true if the method call was successful and the - * element was endeed. false if method call failed. - * Possible reasons for failure include: The element doesn't support - * the endElement method. (the endEvent - * attribute is not set to "undefinite" ) The element is - * not active. - */ - public boolean endElement(); - - /** - * Causes this element to pause the local timeline (subject to sync - * constraints). - */ - public void pauseElement(); - - /** - * Causes this element to resume a paused local timeline. - */ - public void resumeElement(); - - /** - * Seeks this element to the specified point on the local timeline - * (subject to sync constraints). If this is a timeline, this must seek - * the entire timeline (i.e. propagate to all timeChildren). - * @param seekTo The desired position on the local timeline in - * milliseconds. - */ - public void seekElement(float seekTo); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTimeContainer.java b/src/bind/java/org/w3c/dom/smil/ElementTimeContainer.java deleted file mode 100644 index 69b39e820..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTimeContainer.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.NodeList; - -/** - * This is a placeholder - subject to change. This represents generic - * timelines. - */ -public interface ElementTimeContainer extends ElementTime { - /** - * A NodeList that contains all timed childrens of this node. If there are - * no timed children, the Nodelist is empty. An iterator - * is more appropriate here than a node list but it requires Traversal - * module support. - */ - public NodeList getTimeChildren(); - - /** - * Returns a list of child elements active at the specified invocation. - * @param instant The desired position on the local timeline in - * milliseconds. - * @return List of timed child-elements active at instant. - */ - public NodeList getActiveChildrenAt(float instant); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTimeControl.java b/src/bind/java/org/w3c/dom/smil/ElementTimeControl.java deleted file mode 100644 index e546b3609..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTimeControl.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - */ -public interface ElementTimeControl { - /** - * Causes this element to begin the local timeline (subject to sync - * constraints). - * @return true if the method call was successful and the - * element was begun. false if the method call failed. - * Possible reasons for failure include: The element doesn't support - * the beginElement method. (the begin - * attribute is not set to "indefinite" ) The element is - * already active and can't be restart when it is active. (the - * restart attribute is set to "whenNotActive" - * ) The element is active or has been active and can't be restart. - * (the restart attribute is set to "never" ). - * - * @exception DOMException - * SYNTAX_ERR: The element was not defined with the appropriate syntax - * to allow beginElement calls. - */ - public boolean beginElement() - throws DOMException; - - /** - * Causes this element to begin the local timeline (subject to sync - * constraints), at the passed offset from the current time when the - * method is called. If the offset is >= 0, the semantics are - * equivalent to an event-base begin with the specified offset. If the - * offset is < 0, the semantics are equivalent to beginElement(), but - * the element active duration is evaluated as though the element had - * begun at the passed (negative) offset from the current time when the - * method is called. - * @param offset The offset in seconds at which to begin the element. - * @return true if the method call was successful and the - * element was begun. false if the method call failed. - * Possible reasons for failure include: The element doesn't support - * the beginElementAt method. (the begin - * attribute is not set to "indefinite" ) The element is - * already active and can't be restart when it is active. (the - * restart attribute is set to "whenNotActive" - * ) The element is active or has been active and can't be restart. - * (the restart attribute is set to "never" ). - * - * @exception DOMException - * SYNTAX_ERR: The element was not defined with the appropriate syntax - * to allow beginElementAt calls. - */ - public boolean beginElementAt(float offset) - throws DOMException; - - /** - * Causes this element to end the local timeline (subject to sync - * constraints). - * @return true if the method call was successful and the - * element was ended. false if method call failed. - * Possible reasons for failure include: The element doesn't support - * the endElement method. (the end attribute - * is not set to "indefinite" ) The element is not active. - * - * @exception DOMException - * SYNTAX_ERR: The element was not defined with the appropriate syntax - * to allow endElement calls. - */ - public boolean endElement() - throws DOMException; - - /** - * Causes this element to end the local timeline (subject to sync - * constraints) at the specified offset from the current time when the - * method is called. - * @param offset The offset in seconds at which to end the element. Must - * be >= 0. - * @return true if the method call was successful and the - * element was ended. false if method call failed. - * Possible reasons for failure include: The element doesn't support - * the endElementAt method. (the end - * attribute is not set to "indefinite" ) The element is - * not active. - * @exception DOMException - * SYNTAX_ERR: The element was not defined with the appropriate syntax - * to allow endElementAt calls. - */ - public boolean endElementAt(float offset) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/ElementTimeManipulation.java b/src/bind/java/org/w3c/dom/smil/ElementTimeManipulation.java deleted file mode 100644 index bb83326e6..000000000 --- a/src/bind/java/org/w3c/dom/smil/ElementTimeManipulation.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * This interface support use-cases commonly associated with animation. - * "accelerate" and "decelerate" are float values in the timing draft and - * percentage values even in this draft if both of them represent a - * percentage. - */ -public interface ElementTimeManipulation { - /** - * Defines the playback speed of element time. The value is specified as - * a multiple of normal (parent time container) play speed. Legal values - * are signed floating point values. Zero values are not allowed. The - * default is 1.0 (no modification of speed). - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getSpeed(); - public void setSpeed(float speed) - throws DOMException; - - /** - * The percentage value of the simple acceleration of time for the - * element. Allowed values are from 0 to 100 . - * Default value is 0 (no acceleration). - *
The sum of the values for accelerate and decelerate must not exceed - * 100. If it does, the deceleration value will be reduced to make the - * sum legal. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getAccelerate(); - public void setAccelerate(float accelerate) - throws DOMException; - - /** - * The percentage value of the simple decelerate of time for the - * element. Allowed values are from 0 to 100 . - * Default value is 0 (no deceleration). - *
The sum of the values for accelerate and decelerate must not exceed - * 100. If it does, the deceleration value will be reduced to make the - * sum legal. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public float getDecelerate(); - public void setDecelerate(float decelerate) - throws DOMException; - - /** - * The autoReverse attribute controls the "play forwards then backwards" - * functionality. Default value is false . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public boolean getAutoReverse(); - public void setAutoReverse(boolean autoReverse) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILAnimateColorElement.java b/src/bind/java/org/w3c/dom/smil/SMILAnimateColorElement.java deleted file mode 100644 index 9bd9d13a6..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILAnimateColorElement.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * This interface represents the SMIL animateColor element. - */ -public interface SMILAnimateColorElement extends SMILAnimation { -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILAnimateElement.java b/src/bind/java/org/w3c/dom/smil/SMILAnimateElement.java deleted file mode 100644 index 9393e00c5..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILAnimateElement.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * This interface represents the SMIL animate element. - */ -public interface SMILAnimateElement extends SMILAnimation { -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILAnimateMotionElement.java b/src/bind/java/org/w3c/dom/smil/SMILAnimateMotionElement.java deleted file mode 100644 index 6a140ad9f..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILAnimateMotionElement.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * This interface present the animationMotion element in SMIL. - */ -public interface SMILAnimateMotionElement extends SMILAnimateElement { - /** - * Specifies the curve that describes the attribute value as a function - * of time. Check with the SVG spec for better support - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getPath(); - public void setPath(String path) - throws DOMException; - - /** - * Specifies the origin of motion for the animation. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getOrigin(); - public void setOrigin(String origin) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILAnimation.java b/src/bind/java/org/w3c/dom/smil/SMILAnimation.java deleted file mode 100644 index 8615dfaeb..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILAnimation.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * This interface define the set of animation extensions for SMIL. The - * attributes will go in a XLink interface. - */ -public interface SMILAnimation extends SMILElement, ElementTargetAttributes, ElementTime, ElementTimeControl { - // additiveTypes - public static final short ADDITIVE_REPLACE = 0; - public static final short ADDITIVE_SUM = 1; - - /** - * A code representing the value of the additive attribute, as defined - * above. Default value is ADDITIVE_REPLACE . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public short getAdditive(); - public void setAdditive(short additive) - throws DOMException; - - // accumulateTypes - public static final short ACCUMULATE_NONE = 0; - public static final short ACCUMULATE_SUM = 1; - - /** - * A code representing the value of the accumulate attribute, as defined - * above. Default value is ACCUMULATE_NONE . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public short getAccumulate(); - public void setAccumulate(short accumulate) - throws DOMException; - - // calcModeTypes - public static final short CALCMODE_DISCRETE = 0; - public static final short CALCMODE_LINEAR = 1; - public static final short CALCMODE_PACED = 2; - public static final short CALCMODE_SPLINE = 3; - - /** - * A code representing the value of the calcMode attribute, as defined - * above. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public short getCalcMode(); - public void setCalcMode(short calcMode) - throws DOMException; - - /** - * A DOMString representing the value of the keySplines - * attribute. Need an interface a point (x1,y1,x2,y2) - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getKeySplines(); - public void setKeySplines(String keySplines) - throws DOMException; - - /** - * A list of the time value of the keyTimes attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public TimeList getKeyTimes(); - public void setKeyTimes(TimeList keyTimes) - throws DOMException; - - /** - * A DOMString representing the value of the values - * attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getValues(); - public void setValues(String values) - throws DOMException; - - /** - * A DOMString representing the value of the from attribute. - * - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getFrom(); - public void setFrom(String from) - throws DOMException; - - /** - * A DOMString representing the value of the to attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getTo(); - public void setTo(String to) - throws DOMException; - - /** - * A DOMString representing the value of the by attribute. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getBy(); - public void setBy(String by) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILDocument.java b/src/bind/java/org/w3c/dom/smil/SMILDocument.java deleted file mode 100644 index 5f54dd329..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILDocument.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.Document; - -/** - * A SMIL document is the root of the SMIL Hierarchy and holds the entire - * content. Beside providing access to the hierarchy, it also provides some - * convenience methods for accessing certain sets of information from the - * document. Cover document timing, document locking?, linking modality and - * any other document level issues. Are there issues with nested SMIL files? - * Is it worth talking about different document scenarios, corresponding to - * differing profiles? E.g. Standalone SMIL, HTML integration, etc. - */ -public interface SMILDocument extends Document, ElementSequentialTimeContainer { -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILElement.java b/src/bind/java/org/w3c/dom/smil/SMILElement.java deleted file mode 100644 index 748de23fc..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILElement.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Element; - -/** - * The SMILElement interface is the base for all SMIL element - * types. It follows the model of the HTMLElement in the HTML - * DOM, extending the base Element class to denote SMIL-specific - * elements. - *

Note that the SMILElement interface overlaps with the - * HTMLElement interface. In practice, an integrated document - * profile that include HTML and SMIL modules will effectively implement both - * interfaces (see also the DOM documentation discussion of Inheritance vs - * Flattened Views of the API ). // etc. This needs attention - */ -public interface SMILElement extends Element { - /** - * The unique id. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getId(); - public void setId(String id) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILLayoutElement.java b/src/bind/java/org/w3c/dom/smil/SMILLayoutElement.java deleted file mode 100644 index 2d6136db3..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILLayoutElement.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * Declares layout type for the document. See the LAYOUT element definition . - * - */ -public interface SMILLayoutElement extends SMILElement { - /** - * The mime type of the layout langage used in this layout element.The - * default value of the type attribute is "text/smil-basic-layout". - */ - public String getType(); - - /** - * true if the player can understand the mime type, - * false otherwise. - */ - public boolean getResolved(); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILMediaElement.java b/src/bind/java/org/w3c/dom/smil/SMILMediaElement.java deleted file mode 100644 index d6a2d2de2..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILMediaElement.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * Declares media content. - */ -public interface SMILMediaElement extends ElementTime, SMILElement { - /** - * See the abstract attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getAbstractAttr(); - public void setAbstractAttr(String abstractAttr) - throws DOMException; - - /** - * See the alt attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getAlt(); - public void setAlt(String alt) - throws DOMException; - - /** - * See the author attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getAuthor(); - public void setAuthor(String author) - throws DOMException; - - /** - * See the clipBegin attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getClipBegin(); - public void setClipBegin(String clipBegin) - throws DOMException; - - /** - * See the clipEnd attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getClipEnd(); - public void setClipEnd(String clipEnd) - throws DOMException; - - /** - * See the copyright attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getCopyright(); - public void setCopyright(String copyright) - throws DOMException; - - /** - * See the longdesc attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getLongdesc(); - public void setLongdesc(String longdesc) - throws DOMException; - - /** - * See the port attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getPort(); - public void setPort(String port) - throws DOMException; - - /** - * See the readIndex attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getReadIndex(); - public void setReadIndex(String readIndex) - throws DOMException; - - /** - * See the rtpformat attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getRtpformat(); - public void setRtpformat(String rtpformat) - throws DOMException; - - /** - * See the src attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getSrc(); - public void setSrc(String src) - throws DOMException; - - /** - * See the stripRepeat attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getStripRepeat(); - public void setStripRepeat(String stripRepeat) - throws DOMException; - - /** - * See the title attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getTitle(); - public void setTitle(String title) - throws DOMException; - - /** - * See the transport attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getTransport(); - public void setTransport(String transport) - throws DOMException; - - /** - * See the type attribute from . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getType(); - public void setType(String type) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILRefElement.java b/src/bind/java/org/w3c/dom/smil/SMILRefElement.java deleted file mode 100644 index adeb2b354..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILRefElement.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * // audio, video, ... - */ -public interface SMILRefElement extends SMILMediaElement { -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILRegionElement.java b/src/bind/java/org/w3c/dom/smil/SMILRegionElement.java deleted file mode 100644 index 927fb4007..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILRegionElement.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; - -/** - * Controls the position, size and scaling of media object elements. See the - * region element definition . - */ -public interface SMILRegionElement extends SMILElement, ElementLayout { - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getFit(); - public void setFit(String fit) - throws DOMException; - - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public String getTop(); - public void setTop(String top) - throws DOMException; - - /** - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly. - */ - public int getZIndex(); - public void setZIndex(int zIndex) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILRegionInterface.java b/src/bind/java/org/w3c/dom/smil/SMILRegionInterface.java deleted file mode 100644 index b5e43c3b2..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILRegionInterface.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * Declares rendering surface for an element. See the region attribute - * definition . - */ -public interface SMILRegionInterface { - /** - */ - public SMILRegionElement getRegion(); - public void setRegion(SMILRegionElement region); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILRootLayoutElement.java b/src/bind/java/org/w3c/dom/smil/SMILRootLayoutElement.java deleted file mode 100644 index 327ecd6b2..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILRootLayoutElement.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * Declares layout properties for the root-layout element. See the - * root-layout element definition . - */ -public interface SMILRootLayoutElement extends SMILElement, ElementLayout { -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILSetElement.java b/src/bind/java/org/w3c/dom/smil/SMILSetElement.java deleted file mode 100644 index 8e0b1b72f..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILSetElement.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * This interface represents the set element. - */ -public interface SMILSetElement extends ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement { - /** - * Specifies the value for the attribute during the duration of this - * element. - */ - public String getTo(); - public void setTo(String to); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILSwitchElement.java b/src/bind/java/org/w3c/dom/smil/SMILSwitchElement.java deleted file mode 100644 index 27abb91cf..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILSwitchElement.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.Element; - -/** - * Defines a block of content control. See the switch element definition . - */ -public interface SMILSwitchElement extends SMILElement { - /** - * Returns the slected element at runtime. null if the - * selected element is not yet available. - * @return The selected Element for thisd switch - * element. - */ - public Element getSelectedElement(); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/SMILTopLayoutElement.java b/src/bind/java/org/w3c/dom/smil/SMILTopLayoutElement.java deleted file mode 100644 index 26214191b..000000000 --- a/src/bind/java/org/w3c/dom/smil/SMILTopLayoutElement.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * Declares layout properties for the top-layout element. See the top-layout - * element definition . - */ -public interface SMILTopLayoutElement extends SMILElement, ElementLayout { -} - diff --git a/src/bind/java/org/w3c/dom/smil/Time.java b/src/bind/java/org/w3c/dom/smil/Time.java deleted file mode 100644 index 72fe08668..000000000 --- a/src/bind/java/org/w3c/dom/smil/Time.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Element; - -/** - * The Time interface is a datatype that represents times within - * the timegraph. A Time has a type, key values to describe the - * time, and a boolean to indicate whether the values are currently - * unresolved. Still need to address the wallclock values. - */ -public interface Time { - /** - * A boolean indicating whether the current Time has been - * fully resolved to the document schedule. Note that for this to be - * true, the current Time must be defined (not indefinite), - * the syncbase and all Time 's that the syncbase depends on - * must be defined (not indefinite), and the begin Time of - * all ascendent time containers of this element and all Time - * elements that this depends upon must be defined (not indefinite). - *
If this Time is based upon an event, this - * Time will only be resolved once the specified event has - * happened, subject to the constraints of the time container. - *
Note that this may change from true to false when the parent time - * container ends its simple duration (including when it repeats or - * restarts). - */ - public boolean getResolved(); - - /** - * The clock value in seconds relative to the parent time container begin. - * This indicates the resolved time relationship to the parent time - * container. This is only valid if resolved is true. - */ - public double getResolvedOffset(); - - // TimeTypes - public static final short SMIL_TIME_INDEFINITE = 0; - public static final short SMIL_TIME_OFFSET = 1; - public static final short SMIL_TIME_SYNC_BASED = 2; - public static final short SMIL_TIME_EVENT_BASED = 3; - public static final short SMIL_TIME_WALLCLOCK = 4; - public static final short SMIL_TIME_MEDIA_MARKER = 5; - - /** - * A code representing the type of the underlying object, as defined - * above. - */ - public short getTimeType(); - - /** - * The clock value in seconds relative to the syncbase or eventbase. - * Default value is 0 . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this - * readonly attribute. - */ - public double getOffset(); - public void setOffset(double offset) - throws DOMException; - - /** - * The base element for a sync-based or event-based time. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this - * readonly attribute. - */ - public Element getBaseElement(); - public void setBaseElement(Element baseElement) - throws DOMException; - - /** - * If true , indicates that a sync-based time is relative to - * the begin of the baseElement. If false , indicates that a - * sync-based time is relative to the active end of the baseElement. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this - * readonly attribute. - */ - public boolean getBaseBegin(); - public void setBaseBegin(boolean baseBegin) - throws DOMException; - - /** - * The name of the event for an event-based time. Default value is - * null . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this - * readonly attribute. - */ - public String getEvent(); - public void setEvent(String event) - throws DOMException; - - /** - * The name of the marker from the media element, for media marker times. - * Default value is null . - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised on attempts to modify this - * readonly attribute. - */ - public String getMarker(); - public void setMarker(String marker) - throws DOMException; - -} - diff --git a/src/bind/java/org/w3c/dom/smil/TimeEvent.java b/src/bind/java/org/w3c/dom/smil/TimeEvent.java deleted file mode 100644 index a79c4ca05..000000000 --- a/src/bind/java/org/w3c/dom/smil/TimeEvent.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -import org.w3c.dom.events.Event; -import org.w3c.dom.views.AbstractView; - -/** - * The TimeEvent interface provides specific contextual - * information associated with Time events. - */ -public interface TimeEvent extends Event { - /** - * The view attribute identifies the - * AbstractView from which the event was generated. - */ - public AbstractView getView(); - - /** - * Specifies some detail information about the Event , - * depending on the type of event. - */ - public int getDetail(); - - /** - * The initTimeEvent method is used to initialize the value - * of a TimeEvent created through the - * DocumentEvent interface. This method may only be called - * before the TimeEvent has been dispatched via the - * dispatchEvent method, though it may be called multiple - * times during that phase if necessary. If called multiple times, the - * final invocation takes precedence. - * @param typeArg Specifies the event type. - * @param viewArg Specifies the Event 's - * AbstractView . - * @param detailArg Specifies the Event 's detail. - */ - public void initTimeEvent(String typeArg, - AbstractView viewArg, - int detailArg); - -} - diff --git a/src/bind/java/org/w3c/dom/smil/TimeList.java b/src/bind/java/org/w3c/dom/smil/TimeList.java deleted file mode 100644 index 7cec133fa..000000000 --- a/src/bind/java/org/w3c/dom/smil/TimeList.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more - * details. - */ - -package org.w3c.dom.smil; - -/** - * The TimeList interface provides the abstraction of an ordered - * collection of times, without defining or constraining how this collection - * is implemented. - *

The items in the TimeList are accessible via an integral - * index, starting from 0. - */ -public interface TimeList { - /** - * Returns the index th item in the collection. If - * index is greater than or equal to the number of times in - * the list, this returns null . - * @param index Index into the collection. - * @return The time at the index th position in the - * TimeList , or null if that is not a valid - * index. - */ - public Time item(int index); - - /** - * The number of times in the list. The range of valid child time indices - * is 0 to length-1 inclusive. - */ - public int getLength(); - -} - diff --git a/src/bind/java/org/w3c/dom/stylesheets/DocumentStyle.java b/src/bind/java/org/w3c/dom/stylesheets/DocumentStyle.java deleted file mode 100644 index 2270505e7..000000000 --- a/src/bind/java/org/w3c/dom/stylesheets/DocumentStyle.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.stylesheets; - -/** - * The DocumentStyle interface provides a mechanism by which the - * style sheets embedded in a document can be retrieved. The expectation is - * that an instance of the DocumentStyle interface can be - * obtained by using binding-specific casting methods on an instance of the - * Document interface. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface DocumentStyle { - /** - * A list containing all the style sheets explicitly linked into or - * embedded in a document. For HTML documents, this includes external - * style sheets, included via the HTML LINK element, and inline STYLE - * elements. In XML, this includes external style sheets, included via - * style sheet processing instructions (see ). - */ - public StyleSheetList getStyleSheets(); - -} diff --git a/src/bind/java/org/w3c/dom/stylesheets/LinkStyle.java b/src/bind/java/org/w3c/dom/stylesheets/LinkStyle.java deleted file mode 100644 index 481bd19db..000000000 --- a/src/bind/java/org/w3c/dom/stylesheets/LinkStyle.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.stylesheets; - -/** - * The LinkStyle interface provides a mechanism by which a style - * sheet can be retrieved from the node responsible for linking it into a - * document. An instance of the LinkStyle interface can be - * obtained using binding-specific casting methods on an instance of a - * linking node (HTMLLinkElement, HTMLStyleElement - * or ProcessingInstruction in DOM Level 2). - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface LinkStyle { - /** - * The style sheet. - */ - public StyleSheet getSheet(); - -} diff --git a/src/bind/java/org/w3c/dom/stylesheets/MediaList.java b/src/bind/java/org/w3c/dom/stylesheets/MediaList.java deleted file mode 100644 index 92c46609f..000000000 --- a/src/bind/java/org/w3c/dom/stylesheets/MediaList.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.stylesheets; - -import org.w3c.dom.DOMException; - -/** - * The MediaList interface provides the abstraction of an - * ordered collection of media, without defining or constraining how this - * collection is implemented. An empty list is the same as a list that - * contains the medium "all". - *

The items in the MediaList are accessible via an integral - * index, starting from 0. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface MediaList { - /** - * The parsable textual representation of the media list. This is a - * comma-separated list of media. - * @exception DOMException - * SYNTAX_ERR: Raised if the specified string value has a syntax error - * and is unparsable. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is - * readonly. - */ - public String getMediaText(); - public void setMediaText(String mediaText) - throws DOMException; - - /** - * The number of media in the list. The range of valid media is - * 0 to length-1 inclusive. - */ - public int getLength(); - - /** - * Returns the indexth in the list. If index is - * greater than or equal to the number of media in the list, this - * returns null. - * @param index Index into the collection. - * @return The medium at the indexth position in the - * MediaList, or null if that is not a valid - * index. - */ - public String item(int index); - - /** - * Deletes the medium indicated by oldMedium from the list. - * @param oldMediumThe medium to delete in the media list. - * @exception DOMException - * NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly. - *
NOT_FOUND_ERR: Raised if oldMedium is not in the - * list. - */ - public void deleteMedium(String oldMedium) - throws DOMException; - - /** - * Adds the medium newMedium to the end of the list. If the - * newMedium is already used, it is first removed. - * @param newMediumThe new medium to add. - * @exception DOMException - * INVALID_CHARACTER_ERR: If the medium contains characters that are - * invalid in the underlying style language. - *
NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly. - */ - public void appendMedium(String newMedium) - throws DOMException; - -} diff --git a/src/bind/java/org/w3c/dom/stylesheets/StyleSheet.java b/src/bind/java/org/w3c/dom/stylesheets/StyleSheet.java deleted file mode 100644 index 94ccc1885..000000000 --- a/src/bind/java/org/w3c/dom/stylesheets/StyleSheet.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.stylesheets; - -import org.w3c.dom.Node; - -/** - * The StyleSheet interface is the abstract base interface for - * any type of style sheet. It represents a single style sheet associated - * with a structured document. In HTML, the StyleSheet interface represents - * either an external style sheet, included via the HTML LINK element, or - * an inline STYLE element. In XML, this interface represents an external - * style sheet, included via a style sheet processing instruction. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface StyleSheet { - /** - * This specifies the style sheet language for this style sheet. The - * style sheet language is specified as a content type (e.g. - * "text/css"). The content type is often specified in the - * ownerNode. Also see the type attribute definition for - * the LINK element in HTML 4.0, and the type - * pseudo-attribute for the XML style sheet processing instruction. - */ - public String getType(); - - /** - * false if the style sheet is applied to the document. - * true if it is not. Modifying this attribute may cause a - * new resolution of style for the document. A stylesheet only applies - * if both an appropriate medium definition is present and the disabled - * attribute is false. So, if the media doesn't apply to the current - * user agent, the disabled attribute is ignored. - */ - public boolean getDisabled(); - public void setDisabled(boolean disabled); - - /** - * The node that associates this style sheet with the document. For HTML, - * this may be the corresponding LINK or STYLE - * element. For XML, it may be the linking processing instruction. For - * style sheets that are included by other style sheets, the value of - * this attribute is null. - */ - public Node getOwnerNode(); - - /** - * For style sheet languages that support the concept of style sheet - * inclusion, this attribute represents the including style sheet, if - * one exists. If the style sheet is a top-level style sheet, or the - * style sheet language does not support inclusion, the value of this - * attribute is null. - */ - public StyleSheet getParentStyleSheet(); - - /** - * If the style sheet is a linked style sheet, the value of its attribute - * is its location. For inline style sheets, the value of this attribute - * is null. See the href attribute definition for the - * LINK element in HTML 4.0, and the href pseudo-attribute - * for the XML style sheet processing instruction. - */ - public String getHref(); - - /** - * The advisory title. The title is often specified in the - * ownerNode. See the title attribute definition for the - * LINK element in HTML 4.0, and the title pseudo-attribute - * for the XML style sheet processing instruction. - */ - public String getTitle(); - - /** - * The intended destination media for style information. The media is - * often specified in the ownerNode. If no media has been - * specified, the MediaList will be empty. See the media - * attribute definition for the LINK element in HTML 4.0, - * and the media pseudo-attribute for the XML style sheet processing - * instruction . Modifying the media list may cause a change to the - * attribute disabled. - */ - public MediaList getMedia(); - -} diff --git a/src/bind/java/org/w3c/dom/stylesheets/StyleSheetList.java b/src/bind/java/org/w3c/dom/stylesheets/StyleSheetList.java deleted file mode 100644 index 76c0c59e1..000000000 --- a/src/bind/java/org/w3c/dom/stylesheets/StyleSheetList.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.stylesheets; - -/** - * The StyleSheetList interface provides the abstraction of an - * ordered collection of style sheets. - *

The items in the StyleSheetList are accessible via an - * integral index, starting from 0. - *

See also the Document Object Model (DOM) Level 2 Style Specification. - * @since DOM Level 2 - */ -public interface StyleSheetList { - /** - * The number of StyleSheets in the list. The range of valid - * child stylesheet indices is 0 to length-1 - * inclusive. - */ - public int getLength(); - - /** - * Used to retrieve a style sheet by ordinal index. If index is greater - * than or equal to the number of style sheets in the list, this returns - * null. - * @param indexIndex into the collection - * @return The style sheet at the index position in the - * StyleSheetList, or null if that is not a - * valid index. - */ - public StyleSheet item(int index); - -} diff --git a/src/bind/java/org/w3c/dom/svg/GetSVGDocument.java b/src/bind/java/org/w3c/dom/svg/GetSVGDocument.java deleted file mode 100644 index cc8970137..000000000 --- a/src/bind/java/org/w3c/dom/svg/GetSVGDocument.java +++ /dev/null @@ -1,9 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface GetSVGDocument { - public SVGDocument getSVGDocument ( ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAElement.java b/src/bind/java/org/w3c/dom/svg/SVGAElement.java deleted file mode 100644 index a403086cd..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAElement.java +++ /dev/null @@ -1,16 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGAElement extends - SVGElement, - SVGURIReference, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedString getTarget( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphDefElement.java b/src/bind/java/org/w3c/dom/svg/SVGAltGlyphDefElement.java deleted file mode 100644 index c8e4d2dd0..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphDefElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAltGlyphDefElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphElement.java b/src/bind/java/org/w3c/dom/svg/SVGAltGlyphElement.java deleted file mode 100644 index 4362efb35..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphElement.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGAltGlyphElement extends - SVGTextPositioningElement, - SVGURIReference { - public String getGlyphRef( ); - public void setGlyphRef( String glyphRef ) - throws DOMException; - public String getFormat( ); - public void setFormat( String format ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphItemElement.java b/src/bind/java/org/w3c/dom/svg/SVGAltGlyphItemElement.java deleted file mode 100644 index 93c01b3d5..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAltGlyphItemElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAltGlyphItemElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAngle.java b/src/bind/java/org/w3c/dom/svg/SVGAngle.java deleted file mode 100644 index 8f212b7c5..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAngle.java +++ /dev/null @@ -1,26 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAngle { - // Angle Unit Types - public static final short SVG_ANGLETYPE_UNKNOWN = 0; - public static final short SVG_ANGLETYPE_UNSPECIFIED = 1; - public static final short SVG_ANGLETYPE_DEG = 2; - public static final short SVG_ANGLETYPE_RAD = 3; - public static final short SVG_ANGLETYPE_GRAD = 4; - - public short getUnitType( ); - public float getValue( ); - public void setValue( float value ) - throws DOMException; - public float getValueInSpecifiedUnits( ); - public void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) - throws DOMException; - public String getValueAsString( ); - public void setValueAsString( String valueAsString ) - throws DOMException; - - public void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); - public void convertToSpecifiedUnits ( short unitType ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimateColorElement.java b/src/bind/java/org/w3c/dom/svg/SVGAnimateColorElement.java deleted file mode 100644 index 9efb69aab..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimateColorElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimateColorElement extends - SVGAnimationElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimateElement.java b/src/bind/java/org/w3c/dom/svg/SVGAnimateElement.java deleted file mode 100644 index 4d365b257..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimateElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimateElement extends - SVGAnimationElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimateMotionElement.java b/src/bind/java/org/w3c/dom/svg/SVGAnimateMotionElement.java deleted file mode 100644 index a06728dde..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimateMotionElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimateMotionElement extends - SVGAnimationElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimateTransformElement.java b/src/bind/java/org/w3c/dom/svg/SVGAnimateTransformElement.java deleted file mode 100644 index 1f4ac36cd..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimateTransformElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimateTransformElement extends - SVGAnimationElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedAngle.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedAngle.java deleted file mode 100644 index ae5d8a08a..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedAngle.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedAngle { - public SVGAngle getBaseVal( ); - public SVGAngle getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedBoolean.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedBoolean.java deleted file mode 100644 index 1a5e39259..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedBoolean.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAnimatedBoolean { - public boolean getBaseVal( ); - public void setBaseVal( boolean baseVal ) - throws DOMException; - public boolean getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedEnumeration.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedEnumeration.java deleted file mode 100644 index 71122ffe4..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedEnumeration.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAnimatedEnumeration { - public short getBaseVal( ); - public void setBaseVal( short baseVal ) - throws DOMException; - public short getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedInteger.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedInteger.java deleted file mode 100644 index dbc20bc35..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedInteger.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAnimatedInteger { - public int getBaseVal( ); - public void setBaseVal( int baseVal ) - throws DOMException; - public int getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedLength.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedLength.java deleted file mode 100644 index 75da0ceb7..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedLength.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedLength { - public SVGLength getBaseVal( ); - public SVGLength getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedLengthList.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedLengthList.java deleted file mode 100644 index 4294f55ed..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedLengthList.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedLengthList { - public SVGLengthList getBaseVal( ); - public SVGLengthList getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumber.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumber.java deleted file mode 100644 index 39bb6a14d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumber.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAnimatedNumber { - public float getBaseVal( ); - public void setBaseVal( float baseVal ) - throws DOMException; - public float getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumberList.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumberList.java deleted file mode 100644 index 29ea31ad0..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedNumberList.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedNumberList { - public SVGNumberList getBaseVal( ); - public SVGNumberList getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPathData.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedPathData.java deleted file mode 100644 index 3154b9ba0..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPathData.java +++ /dev/null @@ -1,9 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedPathData { - public SVGPathSegList getPathSegList( ); - public SVGPathSegList getNormalizedPathSegList( ); - public SVGPathSegList getAnimatedPathSegList( ); - public SVGPathSegList getAnimatedNormalizedPathSegList( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPoints.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedPoints.java deleted file mode 100644 index 1f7f7280c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPoints.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedPoints { - public SVGPointList getPoints( ); - public SVGPointList getAnimatedPoints( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPreserveAspectRatio.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedPreserveAspectRatio.java deleted file mode 100644 index a3cddac37..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedPreserveAspectRatio.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedPreserveAspectRatio { - public SVGPreserveAspectRatio getBaseVal( ); - public SVGPreserveAspectRatio getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedRect.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedRect.java deleted file mode 100644 index 405d45c04..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedRect.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedRect { - public SVGRect getBaseVal( ); - public SVGRect getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedString.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedString.java deleted file mode 100644 index 78cf12e0c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedString.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGAnimatedString { - public String getBaseVal( ); - public void setBaseVal( String baseVal ) - throws DOMException; - public String getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimatedTransformList.java b/src/bind/java/org/w3c/dom/svg/SVGAnimatedTransformList.java deleted file mode 100644 index 793df4316..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimatedTransformList.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGAnimatedTransformList { - public SVGTransformList getBaseVal( ); - public SVGTransformList getAnimVal( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGAnimationElement.java b/src/bind/java/org/w3c/dom/svg/SVGAnimationElement.java deleted file mode 100644 index f299c2b94..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGAnimationElement.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.smil.ElementTimeControl; - -public interface SVGAnimationElement extends - SVGElement, - SVGTests, - SVGExternalResourcesRequired, - ElementTimeControl, - EventTarget { - public SVGElement getTargetElement( ); - - public float getStartTime ( ); - public float getCurrentTime ( ); - public float getSimpleDuration ( ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGCSSRule.java b/src/bind/java/org/w3c/dom/svg/SVGCSSRule.java deleted file mode 100644 index 5365e5dfd..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGCSSRule.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.css.CSSRule; - -public interface SVGCSSRule extends - CSSRule { - // Additional CSS RuleType to support ICC color specifications - public static final short COLOR_PROFILE_RULE = 7; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGCircleElement.java b/src/bind/java/org/w3c/dom/svg/SVGCircleElement.java deleted file mode 100644 index 6c9aa02ec..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGCircleElement.java +++ /dev/null @@ -1,17 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGCircleElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getCx( ); - public SVGAnimatedLength getCy( ); - public SVGAnimatedLength getR( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGClipPathElement.java b/src/bind/java/org/w3c/dom/svg/SVGClipPathElement.java deleted file mode 100644 index ebe018c2c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGClipPathElement.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGClipPathElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - SVGUnitTypes { - public SVGAnimatedEnumeration getClipPathUnits( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGColor.java b/src/bind/java/org/w3c/dom/svg/SVGColor.java deleted file mode 100644 index 27e942ac8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGColor.java +++ /dev/null @@ -1,25 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.css.RGBColor; -import org.w3c.dom.css.CSSValue; - -public interface SVGColor extends - CSSValue { - // Color Types - public static final short SVG_COLORTYPE_UNKNOWN = 0; - public static final short SVG_COLORTYPE_RGBCOLOR = 1; - public static final short SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; - public static final short SVG_COLORTYPE_CURRENTCOLOR = 3; - - public short getColorType( ); - public RGBColor getRGBColor( ); - public SVGICCColor getICCColor( ); - - public void setRGBColor ( String rgbColor ) - throws SVGException; - public void setRGBColorICCColor ( String rgbColor, String iccColor ) - throws SVGException; - public void setColor ( short colorType, String rgbColor, String iccColor ) - throws SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGColorProfileElement.java b/src/bind/java/org/w3c/dom/svg/SVGColorProfileElement.java deleted file mode 100644 index ce6d33598..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGColorProfileElement.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGColorProfileElement extends - SVGElement, - SVGURIReference, - SVGRenderingIntent { - public String getLocal( ); - public void setLocal( String local ) - throws DOMException; - public String getName( ); - public void setName( String name ) - throws DOMException; - public short getRenderingIntent( ); - public void setRenderingIntent( short renderingIntent ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGColorProfileRule.java b/src/bind/java/org/w3c/dom/svg/SVGColorProfileRule.java deleted file mode 100644 index 97faa309b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGColorProfileRule.java +++ /dev/null @@ -1,18 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGColorProfileRule extends - SVGCSSRule, - SVGRenderingIntent { - public String getSrc( ); - public void setSrc( String src ) - throws DOMException; - public String getName( ); - public void setName( String name ) - throws DOMException; - public short getRenderingIntent( ); - public void setRenderingIntent( short renderingIntent ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGComponentTransferFunctionElement.java b/src/bind/java/org/w3c/dom/svg/SVGComponentTransferFunctionElement.java deleted file mode 100644 index 82e061141..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGComponentTransferFunctionElement.java +++ /dev/null @@ -1,21 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGComponentTransferFunctionElement extends - SVGElement { - // Component Transfer Types - public static final short SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; - public static final short SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; - public static final short SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; - public static final short SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; - public static final short SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; - public static final short SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; - - public SVGAnimatedEnumeration getType( ); - public SVGAnimatedNumberList getTableValues( ); - public SVGAnimatedNumber getSlope( ); - public SVGAnimatedNumber getIntercept( ); - public SVGAnimatedNumber getAmplitude( ); - public SVGAnimatedNumber getExponent( ); - public SVGAnimatedNumber getOffset( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGCursorElement.java b/src/bind/java/org/w3c/dom/svg/SVGCursorElement.java deleted file mode 100644 index cc8cdf298..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGCursorElement.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGCursorElement extends - SVGElement, - SVGURIReference, - SVGTests, - SVGExternalResourcesRequired { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGDefinitionSrcElement.java b/src/bind/java/org/w3c/dom/svg/SVGDefinitionSrcElement.java deleted file mode 100644 index 4123b5a97..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGDefinitionSrcElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGDefinitionSrcElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGDefsElement.java b/src/bind/java/org/w3c/dom/svg/SVGDefsElement.java deleted file mode 100644 index 6b83bedc3..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGDefsElement.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGDefsElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGDescElement.java b/src/bind/java/org/w3c/dom/svg/SVGDescElement.java deleted file mode 100644 index d3eaf7384..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGDescElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGDescElement extends - SVGElement, - SVGLangSpace, - SVGStylable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGDocument.java b/src/bind/java/org/w3c/dom/svg/SVGDocument.java deleted file mode 100644 index b6d9064b8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGDocument.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.Document; -import org.w3c.dom.events.DocumentEvent; - -public interface SVGDocument extends - Document, - DocumentEvent { - public String getTitle( ); - public String getReferrer( ); - public String getDomain( ); - public String getURL( ); - public SVGSVGElement getRootElement( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGElement.java b/src/bind/java/org/w3c/dom/svg/SVGElement.java deleted file mode 100644 index d6a0299ca..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGElement.java +++ /dev/null @@ -1,17 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Element; - -public interface SVGElement extends - Element { - public String getId( ); - public void setId( String id ) - throws DOMException; - public String getXMLbase( ); - public void setXMLbase( String xmlbase ) - throws DOMException; - public SVGSVGElement getOwnerSVGElement( ); - public SVGElement getViewportElement( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGElementInstance.java b/src/bind/java/org/w3c/dom/svg/SVGElementInstance.java deleted file mode 100644 index 2509ec9c6..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGElementInstance.java +++ /dev/null @@ -1,16 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGElementInstance extends - EventTarget { - public SVGElement getCorrespondingElement( ); - public SVGUseElement getCorrespondingUseElement( ); - public SVGElementInstance getParentNode( ); - public SVGElementInstanceList getChildNodes( ); - public SVGElementInstance getFirstChild( ); - public SVGElementInstance getLastChild( ); - public SVGElementInstance getPreviousSibling( ); - public SVGElementInstance getNextSibling( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGElementInstanceList.java b/src/bind/java/org/w3c/dom/svg/SVGElementInstanceList.java deleted file mode 100644 index 010ddfb4f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGElementInstanceList.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGElementInstanceList { - public int getLength( ); - - public SVGElementInstance item ( int index ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGEllipseElement.java b/src/bind/java/org/w3c/dom/svg/SVGEllipseElement.java deleted file mode 100644 index 2f7f7dbaa..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGEllipseElement.java +++ /dev/null @@ -1,18 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGEllipseElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getCx( ); - public SVGAnimatedLength getCy( ); - public SVGAnimatedLength getRx( ); - public SVGAnimatedLength getRy( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGEvent.java b/src/bind/java/org/w3c/dom/svg/SVGEvent.java deleted file mode 100644 index 252825ba7..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGEvent.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.Event; - -public interface SVGEvent extends - Event { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGException.java b/src/bind/java/org/w3c/dom/svg/SVGException.java deleted file mode 100644 index 64f3743e1..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGException.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.w3c.dom.svg; - -public class SVGException extends RuntimeException { - public SVGException(short code, String message) { - super(message); - this.code = code; - } - public short code; - // ExceptionCode - public static final short SVG_WRONG_TYPE_ERR = 0; - public static final short SVG_INVALID_VALUE_ERR = 1; - public static final short SVG_MATRIX_NOT_INVERTABLE = 2; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGExternalResourcesRequired.java b/src/bind/java/org/w3c/dom/svg/SVGExternalResourcesRequired.java deleted file mode 100644 index aa362066f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGExternalResourcesRequired.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGExternalResourcesRequired { - public SVGAnimatedBoolean getExternalResourcesRequired( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEBlendElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEBlendElement.java deleted file mode 100644 index 3d8a11ade..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEBlendElement.java +++ /dev/null @@ -1,18 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEBlendElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Blend Mode Types - public static final short SVG_FEBLEND_MODE_UNKNOWN = 0; - public static final short SVG_FEBLEND_MODE_NORMAL = 1; - public static final short SVG_FEBLEND_MODE_MULTIPLY = 2; - public static final short SVG_FEBLEND_MODE_SCREEN = 3; - public static final short SVG_FEBLEND_MODE_DARKEN = 4; - public static final short SVG_FEBLEND_MODE_LIGHTEN = 5; - - public SVGAnimatedString getIn1( ); - public SVGAnimatedString getIn2( ); - public SVGAnimatedEnumeration getMode( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEColorMatrixElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEColorMatrixElement.java deleted file mode 100644 index 6aac0e35c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEColorMatrixElement.java +++ /dev/null @@ -1,17 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEColorMatrixElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Color Matrix Types - public static final short SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; - public static final short SVG_FECOLORMATRIX_TYPE_MATRIX = 1; - public static final short SVG_FECOLORMATRIX_TYPE_SATURATE = 2; - public static final short SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; - public static final short SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; - - public SVGAnimatedString getIn1( ); - public SVGAnimatedEnumeration getType( ); - public SVGAnimatedNumberList getValues( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEComponentTransferElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEComponentTransferElement.java deleted file mode 100644 index 38d3fba34..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEComponentTransferElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEComponentTransferElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFECompositeElement.java b/src/bind/java/org/w3c/dom/svg/SVGFECompositeElement.java deleted file mode 100644 index 244888d01..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFECompositeElement.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFECompositeElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Composite Operators - public static final short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; - public static final short SVG_FECOMPOSITE_OPERATOR_OVER = 1; - public static final short SVG_FECOMPOSITE_OPERATOR_IN = 2; - public static final short SVG_FECOMPOSITE_OPERATOR_OUT = 3; - public static final short SVG_FECOMPOSITE_OPERATOR_ATOP = 4; - public static final short SVG_FECOMPOSITE_OPERATOR_XOR = 5; - public static final short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; - - public SVGAnimatedString getIn1( ); - public SVGAnimatedString getIn2( ); - public SVGAnimatedEnumeration getOperator( ); - public SVGAnimatedNumber getK1( ); - public SVGAnimatedNumber getK2( ); - public SVGAnimatedNumber getK3( ); - public SVGAnimatedNumber getK4( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEConvolveMatrixElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEConvolveMatrixElement.java deleted file mode 100644 index 391a0d858..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEConvolveMatrixElement.java +++ /dev/null @@ -1,24 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEConvolveMatrixElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Edge Mode Values - public static final short SVG_EDGEMODE_UNKNOWN = 0; - public static final short SVG_EDGEMODE_DUPLICATE = 1; - public static final short SVG_EDGEMODE_WRAP = 2; - public static final short SVG_EDGEMODE_NONE = 3; - - public SVGAnimatedInteger getOrderX( ); - public SVGAnimatedInteger getOrderY( ); - public SVGAnimatedNumberList getKernelMatrix( ); - public SVGAnimatedNumber getDivisor( ); - public SVGAnimatedNumber getBias( ); - public SVGAnimatedInteger getTargetX( ); - public SVGAnimatedInteger getTargetY( ); - public SVGAnimatedEnumeration getEdgeMode( ); - public SVGAnimatedNumber getKernelUnitLengthX( ); - public SVGAnimatedNumber getKernelUnitLengthY( ); - public SVGAnimatedBoolean getPreserveAlpha( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEDiffuseLightingElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEDiffuseLightingElement.java deleted file mode 100644 index e5c01e87c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEDiffuseLightingElement.java +++ /dev/null @@ -1,12 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEDiffuseLightingElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); - public SVGAnimatedNumber getSurfaceScale( ); - public SVGAnimatedNumber getDiffuseConstant( ); - public SVGAnimatedNumber getKernelUnitLengthX( ); - public SVGAnimatedNumber getKernelUnitLengthY( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEDisplacementMapElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEDisplacementMapElement.java deleted file mode 100644 index 4c82fd85a..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEDisplacementMapElement.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEDisplacementMapElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Channel Selectors - public static final short SVG_CHANNEL_UNKNOWN = 0; - public static final short SVG_CHANNEL_R = 1; - public static final short SVG_CHANNEL_G = 2; - public static final short SVG_CHANNEL_B = 3; - public static final short SVG_CHANNEL_A = 4; - - public SVGAnimatedString getIn1( ); - public SVGAnimatedString getIn2( ); - public SVGAnimatedNumber getScale( ); - public SVGAnimatedEnumeration getXChannelSelector( ); - public SVGAnimatedEnumeration getYChannelSelector( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEDistantLightElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEDistantLightElement.java deleted file mode 100644 index a96a1e15d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEDistantLightElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEDistantLightElement extends - SVGElement { - public SVGAnimatedNumber getAzimuth( ); - public SVGAnimatedNumber getElevation( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEFloodElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEFloodElement.java deleted file mode 100644 index 313097a2f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEFloodElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEFloodElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEFuncAElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEFuncAElement.java deleted file mode 100644 index fa9773524..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEFuncAElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEFuncAElement extends - SVGComponentTransferFunctionElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEFuncBElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEFuncBElement.java deleted file mode 100644 index 17733d62b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEFuncBElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEFuncBElement extends - SVGComponentTransferFunctionElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEFuncGElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEFuncGElement.java deleted file mode 100644 index 5078436f1..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEFuncGElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEFuncGElement extends - SVGComponentTransferFunctionElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEFuncRElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEFuncRElement.java deleted file mode 100644 index 72efaac9d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEFuncRElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEFuncRElement extends - SVGComponentTransferFunctionElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEGaussianBlurElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEGaussianBlurElement.java deleted file mode 100644 index b3385fa4b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEGaussianBlurElement.java +++ /dev/null @@ -1,12 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEGaussianBlurElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); - public SVGAnimatedNumber getStdDeviationX( ); - public SVGAnimatedNumber getStdDeviationY( ); - - public void setStdDeviation ( float stdDeviationX, float stdDeviationY ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEImageElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEImageElement.java deleted file mode 100644 index b74daa7d2..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEImageElement.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEImageElement extends - SVGElement, - SVGURIReference, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGFilterPrimitiveStandardAttributes { - - public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); - -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEMergeElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEMergeElement.java deleted file mode 100644 index cea3d6fa9..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEMergeElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEMergeElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEMergeNodeElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEMergeNodeElement.java deleted file mode 100644 index e0ae4c402..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEMergeNodeElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEMergeNodeElement extends - SVGElement { - public SVGAnimatedString getIn1( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEMorphologyElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEMorphologyElement.java deleted file mode 100644 index b04c80c84..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEMorphologyElement.java +++ /dev/null @@ -1,16 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEMorphologyElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Morphology Operators - public static final short SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; - public static final short SVG_MORPHOLOGY_OPERATOR_ERODE = 1; - public static final short SVG_MORPHOLOGY_OPERATOR_DILATE = 2; - - public SVGAnimatedString getIn1( ); - public SVGAnimatedEnumeration getOperator( ); - public SVGAnimatedNumber getRadiusX( ); - public SVGAnimatedNumber getRadiusY( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEOffsetElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEOffsetElement.java deleted file mode 100644 index 6a76b8d42..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEOffsetElement.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEOffsetElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); - public SVGAnimatedNumber getDx( ); - public SVGAnimatedNumber getDy( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFEPointLightElement.java b/src/bind/java/org/w3c/dom/svg/SVGFEPointLightElement.java deleted file mode 100644 index cec24b204..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFEPointLightElement.java +++ /dev/null @@ -1,9 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFEPointLightElement extends - SVGElement { - public SVGAnimatedNumber getX( ); - public SVGAnimatedNumber getY( ); - public SVGAnimatedNumber getZ( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFESpecularLightingElement.java b/src/bind/java/org/w3c/dom/svg/SVGFESpecularLightingElement.java deleted file mode 100644 index 2070f72dc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFESpecularLightingElement.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFESpecularLightingElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); - public SVGAnimatedNumber getSurfaceScale( ); - public SVGAnimatedNumber getSpecularConstant( ); - public SVGAnimatedNumber getSpecularExponent( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFESpotLightElement.java b/src/bind/java/org/w3c/dom/svg/SVGFESpotLightElement.java deleted file mode 100644 index 2beaaf55d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFESpotLightElement.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFESpotLightElement extends - SVGElement { - public SVGAnimatedNumber getX( ); - public SVGAnimatedNumber getY( ); - public SVGAnimatedNumber getZ( ); - public SVGAnimatedNumber getPointsAtX( ); - public SVGAnimatedNumber getPointsAtY( ); - public SVGAnimatedNumber getPointsAtZ( ); - public SVGAnimatedNumber getSpecularExponent( ); - public SVGAnimatedNumber getLimitingConeAngle( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFETileElement.java b/src/bind/java/org/w3c/dom/svg/SVGFETileElement.java deleted file mode 100644 index 4c281292b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFETileElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFETileElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - public SVGAnimatedString getIn1( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFETurbulenceElement.java b/src/bind/java/org/w3c/dom/svg/SVGFETurbulenceElement.java deleted file mode 100644 index f8badaafc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFETurbulenceElement.java +++ /dev/null @@ -1,22 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFETurbulenceElement extends - SVGElement, - SVGFilterPrimitiveStandardAttributes { - // Turbulence Types - public static final short SVG_TURBULENCE_TYPE_UNKNOWN = 0; - public static final short SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; - public static final short SVG_TURBULENCE_TYPE_TURBULENCE = 2; - // Stitch Options - public static final short SVG_STITCHTYPE_UNKNOWN = 0; - public static final short SVG_STITCHTYPE_STITCH = 1; - public static final short SVG_STITCHTYPE_NOSTITCH = 2; - - public SVGAnimatedNumber getBaseFrequencyX( ); - public SVGAnimatedNumber getBaseFrequencyY( ); - public SVGAnimatedInteger getNumOctaves( ); - public SVGAnimatedNumber getSeed( ); - public SVGAnimatedEnumeration getStitchTiles( ); - public SVGAnimatedEnumeration getType( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFilterElement.java b/src/bind/java/org/w3c/dom/svg/SVGFilterElement.java deleted file mode 100644 index 01e57fdf2..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFilterElement.java +++ /dev/null @@ -1,21 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFilterElement extends - SVGElement, - SVGURIReference, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGUnitTypes { - public SVGAnimatedEnumeration getFilterUnits( ); - public SVGAnimatedEnumeration getPrimitiveUnits( ); - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public SVGAnimatedInteger getFilterResX( ); - public SVGAnimatedInteger getFilterResY( ); - - public void setFilterRes ( int filterResX, int filterResY ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFilterPrimitiveStandardAttributes.java b/src/bind/java/org/w3c/dom/svg/SVGFilterPrimitiveStandardAttributes.java deleted file mode 100644 index cd7ed6276..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFilterPrimitiveStandardAttributes.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFilterPrimitiveStandardAttributes extends - SVGStylable { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public SVGAnimatedString getResult( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFitToViewBox.java b/src/bind/java/org/w3c/dom/svg/SVGFitToViewBox.java deleted file mode 100644 index d40c6a1a4..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFitToViewBox.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFitToViewBox { - public SVGAnimatedRect getViewBox( ); - public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontElement.java deleted file mode 100644 index e11dc355e..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontElement extends - SVGElement, - SVGExternalResourcesRequired, - SVGStylable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontFaceElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontFaceElement.java deleted file mode 100644 index b201c9456..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontFaceElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontFaceElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontFaceFormatElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontFaceFormatElement.java deleted file mode 100644 index 895cd6c77..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontFaceFormatElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontFaceFormatElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontFaceNameElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontFaceNameElement.java deleted file mode 100644 index 723370a07..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontFaceNameElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontFaceNameElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontFaceSrcElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontFaceSrcElement.java deleted file mode 100644 index dcc898b6f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontFaceSrcElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontFaceSrcElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGFontFaceUriElement.java b/src/bind/java/org/w3c/dom/svg/SVGFontFaceUriElement.java deleted file mode 100644 index 39dd039e9..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGFontFaceUriElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGFontFaceUriElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGForeignObjectElement.java b/src/bind/java/org/w3c/dom/svg/SVGForeignObjectElement.java deleted file mode 100644 index 49e37af09..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGForeignObjectElement.java +++ /dev/null @@ -1,18 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGForeignObjectElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGGElement.java b/src/bind/java/org/w3c/dom/svg/SVGGElement.java deleted file mode 100644 index e9a78190e..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGGElement.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGGElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGGlyphElement.java b/src/bind/java/org/w3c/dom/svg/SVGGlyphElement.java deleted file mode 100644 index 9354bb74d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGGlyphElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGGlyphElement extends - SVGElement, - SVGStylable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGGlyphRefElement.java b/src/bind/java/org/w3c/dom/svg/SVGGlyphRefElement.java deleted file mode 100644 index c16aaa1cb..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGGlyphRefElement.java +++ /dev/null @@ -1,28 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGGlyphRefElement extends - SVGElement, - SVGURIReference, - SVGStylable { - public String getGlyphRef( ); - public void setGlyphRef( String glyphRef ) - throws DOMException; - public String getFormat( ); - public void setFormat( String format ) - throws DOMException; - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getDx( ); - public void setDx( float dx ) - throws DOMException; - public float getDy( ); - public void setDy( float dy ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGGradientElement.java b/src/bind/java/org/w3c/dom/svg/SVGGradientElement.java deleted file mode 100644 index 8cbc03f1c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGGradientElement.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGGradientElement extends - SVGElement, - SVGURIReference, - SVGExternalResourcesRequired, - SVGStylable, - SVGUnitTypes { - // Spread Method Types - public static final short SVG_SPREADMETHOD_UNKNOWN = 0; - public static final short SVG_SPREADMETHOD_PAD = 1; - public static final short SVG_SPREADMETHOD_REFLECT = 2; - public static final short SVG_SPREADMETHOD_REPEAT = 3; - - public SVGAnimatedEnumeration getGradientUnits( ); - public SVGAnimatedTransformList getGradientTransform( ); - public SVGAnimatedEnumeration getSpreadMethod( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGHKernElement.java b/src/bind/java/org/w3c/dom/svg/SVGHKernElement.java deleted file mode 100644 index ca527b67c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGHKernElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGHKernElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGICCColor.java b/src/bind/java/org/w3c/dom/svg/SVGICCColor.java deleted file mode 100644 index e04962838..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGICCColor.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGICCColor { - public String getColorProfile( ); - public void setColorProfile( String colorProfile ) - throws DOMException; - public SVGNumberList getColors( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGImageElement.java b/src/bind/java/org/w3c/dom/svg/SVGImageElement.java deleted file mode 100644 index f77101f91..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGImageElement.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGImageElement extends - SVGElement, - SVGURIReference, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLangSpace.java b/src/bind/java/org/w3c/dom/svg/SVGLangSpace.java deleted file mode 100644 index 300d52725..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLangSpace.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGLangSpace { - public String getXMLlang( ); - public void setXMLlang( String xmllang ) - throws DOMException; - public String getXMLspace( ); - public void setXMLspace( String xmlspace ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLength.java b/src/bind/java/org/w3c/dom/svg/SVGLength.java deleted file mode 100644 index 88b7bdd38..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLength.java +++ /dev/null @@ -1,32 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; -public interface SVGLength { - // Length Unit Types - public static final short SVG_LENGTHTYPE_UNKNOWN = 0; - public static final short SVG_LENGTHTYPE_NUMBER = 1; - public static final short SVG_LENGTHTYPE_PERCENTAGE = 2; - public static final short SVG_LENGTHTYPE_EMS = 3; - public static final short SVG_LENGTHTYPE_EXS = 4; - public static final short SVG_LENGTHTYPE_PX = 5; - public static final short SVG_LENGTHTYPE_CM = 6; - public static final short SVG_LENGTHTYPE_MM = 7; - public static final short SVG_LENGTHTYPE_IN = 8; - public static final short SVG_LENGTHTYPE_PT = 9; - public static final short SVG_LENGTHTYPE_PC = 10; - - public short getUnitType( ); - public float getValue( ); - public void setValue( float value ) - throws DOMException; - public float getValueInSpecifiedUnits( ); - public void setValueInSpecifiedUnits( float valueInSpecifiedUnits ) - throws DOMException; - public String getValueAsString( ); - public void setValueAsString( String valueAsString ) - throws DOMException; - - public void newValueSpecifiedUnits ( short unitType, float valueInSpecifiedUnits ); - public void convertToSpecifiedUnits ( short unitType ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLengthList.java b/src/bind/java/org/w3c/dom/svg/SVGLengthList.java deleted file mode 100644 index ba4c259e8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLengthList.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGLengthList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public SVGLength initialize ( SVGLength newItem ) - throws DOMException, SVGException; - public SVGLength getItem ( int index ) - throws DOMException; - public SVGLength insertItemBefore ( SVGLength newItem, int index ) - throws DOMException, SVGException; - public SVGLength replaceItem ( SVGLength newItem, int index ) - throws DOMException, SVGException; - public SVGLength removeItem ( int index ) - throws DOMException; - public SVGLength appendItem ( SVGLength newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLineElement.java b/src/bind/java/org/w3c/dom/svg/SVGLineElement.java deleted file mode 100644 index 45b947cbc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLineElement.java +++ /dev/null @@ -1,18 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGLineElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getX1( ); - public SVGAnimatedLength getY1( ); - public SVGAnimatedLength getX2( ); - public SVGAnimatedLength getY2( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLinearGradientElement.java b/src/bind/java/org/w3c/dom/svg/SVGLinearGradientElement.java deleted file mode 100644 index 189eda2cb..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLinearGradientElement.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGLinearGradientElement extends - SVGGradientElement { - public SVGAnimatedLength getX1( ); - public SVGAnimatedLength getY1( ); - public SVGAnimatedLength getX2( ); - public SVGAnimatedLength getY2( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGLocatable.java b/src/bind/java/org/w3c/dom/svg/SVGLocatable.java deleted file mode 100644 index 618b955eb..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGLocatable.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGLocatable { - public SVGElement getNearestViewportElement( ); - public SVGElement getFarthestViewportElement( ); - - public SVGRect getBBox ( ); - public SVGMatrix getCTM ( ); - public SVGMatrix getScreenCTM ( ); - public SVGMatrix getTransformToElement ( SVGElement element ) - throws SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMPathElement.java b/src/bind/java/org/w3c/dom/svg/SVGMPathElement.java deleted file mode 100644 index 36032385b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMPathElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGMPathElement extends - SVGElement, - SVGURIReference, - SVGExternalResourcesRequired { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMarkerElement.java b/src/bind/java/org/w3c/dom/svg/SVGMarkerElement.java deleted file mode 100644 index 810ce56f4..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMarkerElement.java +++ /dev/null @@ -1,29 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGMarkerElement extends - SVGElement, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGFitToViewBox { - // Marker Unit Types - public static final short SVG_MARKERUNITS_UNKNOWN = 0; - public static final short SVG_MARKERUNITS_USERSPACEONUSE = 1; - public static final short SVG_MARKERUNITS_STROKEWIDTH = 2; - // Marker Orientation Types - public static final short SVG_MARKER_ORIENT_UNKNOWN = 0; - public static final short SVG_MARKER_ORIENT_AUTO = 1; - public static final short SVG_MARKER_ORIENT_ANGLE = 2; - - public SVGAnimatedLength getRefX( ); - public SVGAnimatedLength getRefY( ); - public SVGAnimatedEnumeration getMarkerUnits( ); - public SVGAnimatedLength getMarkerWidth( ); - public SVGAnimatedLength getMarkerHeight( ); - public SVGAnimatedEnumeration getOrientType( ); - public SVGAnimatedAngle getOrientAngle( ); - - public void setOrientToAuto ( ); - public void setOrientToAngle ( SVGAngle angle ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMaskElement.java b/src/bind/java/org/w3c/dom/svg/SVGMaskElement.java deleted file mode 100644 index bb3a8651f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMaskElement.java +++ /dev/null @@ -1,17 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGMaskElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGUnitTypes { - public SVGAnimatedEnumeration getMaskUnits( ); - public SVGAnimatedEnumeration getMaskContentUnits( ); - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMatrix.java b/src/bind/java/org/w3c/dom/svg/SVGMatrix.java deleted file mode 100644 index 652b4e1b0..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMatrix.java +++ /dev/null @@ -1,39 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGMatrix { - public float getA( ); - public void setA( float a ) - throws DOMException; - public float getB( ); - public void setB( float b ) - throws DOMException; - public float getC( ); - public void setC( float c ) - throws DOMException; - public float getD( ); - public void setD( float d ) - throws DOMException; - public float getE( ); - public void setE( float e ) - throws DOMException; - public float getF( ); - public void setF( float f ) - throws DOMException; - - public SVGMatrix multiply ( SVGMatrix secondMatrix ); - public SVGMatrix inverse ( ) - throws SVGException; - public SVGMatrix translate ( float x, float y ); - public SVGMatrix scale ( float scaleFactor ); - public SVGMatrix scaleNonUniform ( float scaleFactorX, float scaleFactorY ); - public SVGMatrix rotate ( float angle ); - public SVGMatrix rotateFromVector ( float x, float y ) - throws SVGException; - public SVGMatrix flipX ( ); - public SVGMatrix flipY ( ); - public SVGMatrix skewX ( float angle ); - public SVGMatrix skewY ( float angle ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMetadataElement.java b/src/bind/java/org/w3c/dom/svg/SVGMetadataElement.java deleted file mode 100644 index d8485d124..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMetadataElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGMetadataElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGMissingGlyphElement.java b/src/bind/java/org/w3c/dom/svg/SVGMissingGlyphElement.java deleted file mode 100644 index 8c777fb2a..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGMissingGlyphElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGMissingGlyphElement extends - SVGElement, - SVGStylable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGNumber.java b/src/bind/java/org/w3c/dom/svg/SVGNumber.java deleted file mode 100644 index 1dcdc8a23..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGNumber.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGNumber { - public float getValue( ); - public void setValue( float value ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGNumberList.java b/src/bind/java/org/w3c/dom/svg/SVGNumberList.java deleted file mode 100644 index a2db146fc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGNumberList.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGNumberList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public SVGNumber initialize ( SVGNumber newItem ) - throws DOMException, SVGException; - public SVGNumber getItem ( int index ) - throws DOMException; - public SVGNumber insertItemBefore ( SVGNumber newItem, int index ) - throws DOMException, SVGException; - public SVGNumber replaceItem ( SVGNumber newItem, int index ) - throws DOMException, SVGException; - public SVGNumber removeItem ( int index ) - throws DOMException; - public SVGNumber appendItem ( SVGNumber newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPaint.java b/src/bind/java/org/w3c/dom/svg/SVGPaint.java deleted file mode 100644 index 66d54c668..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPaint.java +++ /dev/null @@ -1,26 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.css.RGBColor; - -public interface SVGPaint extends - SVGColor { - // Paint Types - public static final short SVG_PAINTTYPE_UNKNOWN = 0; - public static final short SVG_PAINTTYPE_RGBCOLOR = 1; - public static final short SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; - public static final short SVG_PAINTTYPE_NONE = 101; - public static final short SVG_PAINTTYPE_CURRENTCOLOR = 102; - public static final short SVG_PAINTTYPE_URI_NONE = 103; - public static final short SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; - public static final short SVG_PAINTTYPE_URI_RGBCOLOR = 105; - public static final short SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; - public static final short SVG_PAINTTYPE_URI = 107; - - public short getPaintType( ); - public String getUri( ); - - public void setUri ( String uri ); - public void setPaint ( short paintType, String uri, String rgbColor, String iccColor ) - throws SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathElement.java b/src/bind/java/org/w3c/dom/svg/SVGPathElement.java deleted file mode 100644 index 71efe6d69..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathElement.java +++ /dev/null @@ -1,39 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGPathElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget, - SVGAnimatedPathData { - public SVGAnimatedNumber getPathLength( ); - - public float getTotalLength ( ); - public SVGPoint getPointAtLength ( float distance ); - public int getPathSegAtLength ( float distance ); - public SVGPathSegClosePath createSVGPathSegClosePath ( ); - public SVGPathSegMovetoAbs createSVGPathSegMovetoAbs ( float x, float y ); - public SVGPathSegMovetoRel createSVGPathSegMovetoRel ( float x, float y ); - public SVGPathSegLinetoAbs createSVGPathSegLinetoAbs ( float x, float y ); - public SVGPathSegLinetoRel createSVGPathSegLinetoRel ( float x, float y ); - public SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs ( float x, float y, float x1, float y1, float x2, float y2 ); - public SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel ( float x, float y, float x1, float y1, float x2, float y2 ); - public SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs ( float x, float y, float x1, float y1 ); - public SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel ( float x, float y, float x1, float y1 ); - public SVGPathSegArcAbs createSVGPathSegArcAbs ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); - public SVGPathSegArcRel createSVGPathSegArcRel ( float x, float y, float r1, float r2, float angle, boolean largeArcFlag, boolean sweepFlag ); - public SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs ( float x ); - public SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel ( float x ); - public SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs ( float y ); - public SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel ( float y ); - public SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs ( float x, float y, float x2, float y2 ); - public SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel ( float x, float y, float x2, float y2 ); - public SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs ( float x, float y ); - public SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel ( float x, float y ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSeg.java b/src/bind/java/org/w3c/dom/svg/SVGPathSeg.java deleted file mode 100644 index dea607e41..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSeg.java +++ /dev/null @@ -1,29 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGPathSeg { - // Path Segment Types - public static final short PATHSEG_UNKNOWN = 0; - public static final short PATHSEG_CLOSEPATH = 1; - public static final short PATHSEG_MOVETO_ABS = 2; - public static final short PATHSEG_MOVETO_REL = 3; - public static final short PATHSEG_LINETO_ABS = 4; - public static final short PATHSEG_LINETO_REL = 5; - public static final short PATHSEG_CURVETO_CUBIC_ABS = 6; - public static final short PATHSEG_CURVETO_CUBIC_REL = 7; - public static final short PATHSEG_CURVETO_QUADRATIC_ABS = 8; - public static final short PATHSEG_CURVETO_QUADRATIC_REL = 9; - public static final short PATHSEG_ARC_ABS = 10; - public static final short PATHSEG_ARC_REL = 11; - public static final short PATHSEG_LINETO_HORIZONTAL_ABS = 12; - public static final short PATHSEG_LINETO_HORIZONTAL_REL = 13; - public static final short PATHSEG_LINETO_VERTICAL_ABS = 14; - public static final short PATHSEG_LINETO_VERTICAL_REL = 15; - public static final short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; - public static final short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; - public static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; - public static final short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; - - public short getPathSegType( ); - public String getPathSegTypeAsLetter( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegArcAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegArcAbs.java deleted file mode 100644 index 84c2e7e2b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegArcAbs.java +++ /dev/null @@ -1,29 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegArcAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getR1( ); - public void setR1( float r1 ) - throws DOMException; - public float getR2( ); - public void setR2( float r2 ) - throws DOMException; - public float getAngle( ); - public void setAngle( float angle ) - throws DOMException; - public boolean getLargeArcFlag( ); - public void setLargeArcFlag( boolean largeArcFlag ) - throws DOMException; - public boolean getSweepFlag( ); - public void setSweepFlag( boolean sweepFlag ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegArcRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegArcRel.java deleted file mode 100644 index 074bb799c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegArcRel.java +++ /dev/null @@ -1,29 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegArcRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getR1( ); - public void setR1( float r1 ) - throws DOMException; - public float getR2( ); - public void setR2( float r2 ) - throws DOMException; - public float getAngle( ); - public void setAngle( float angle ) - throws DOMException; - public boolean getLargeArcFlag( ); - public void setLargeArcFlag( boolean largeArcFlag ) - throws DOMException; - public boolean getSweepFlag( ); - public void setSweepFlag( boolean sweepFlag ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegClosePath.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegClosePath.java deleted file mode 100644 index 9beb4667d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegClosePath.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGPathSegClosePath extends - SVGPathSeg { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicAbs.java deleted file mode 100644 index 9aeec16d6..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicAbs.java +++ /dev/null @@ -1,26 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoCubicAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX1( ); - public void setX1( float x1 ) - throws DOMException; - public float getY1( ); - public void setY1( float y1 ) - throws DOMException; - public float getX2( ); - public void setX2( float x2 ) - throws DOMException; - public float getY2( ); - public void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicRel.java deleted file mode 100644 index 890d98ef7..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicRel.java +++ /dev/null @@ -1,26 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoCubicRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX1( ); - public void setX1( float x1 ) - throws DOMException; - public float getY1( ); - public void setY1( float y1 ) - throws DOMException; - public float getX2( ); - public void setX2( float x2 ) - throws DOMException; - public float getY2( ); - public void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothAbs.java deleted file mode 100644 index ede2644d8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothAbs.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoCubicSmoothAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX2( ); - public void setX2( float x2 ) - throws DOMException; - public float getY2( ); - public void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothRel.java deleted file mode 100644 index 2336ad699..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoCubicSmoothRel.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoCubicSmoothRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX2( ); - public void setX2( float x2 ) - throws DOMException; - public float getY2( ); - public void setY2( float y2 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticAbs.java deleted file mode 100644 index 9e3d742da..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticAbs.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoQuadraticAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX1( ); - public void setX1( float x1 ) - throws DOMException; - public float getY1( ); - public void setY1( float y1 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticRel.java deleted file mode 100644 index bf2add7f4..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticRel.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoQuadraticRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getX1( ); - public void setX1( float x1 ) - throws DOMException; - public float getY1( ); - public void setY1( float y1 ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbs.java deleted file mode 100644 index de08156cc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothAbs.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoQuadraticSmoothAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothRel.java deleted file mode 100644 index 2e434493e..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegCurvetoQuadraticSmoothRel.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegCurvetoQuadraticSmoothRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoAbs.java deleted file mode 100644 index e9d666f6c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoAbs.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalAbs.java deleted file mode 100644 index 6a30564d8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalAbs.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoHorizontalAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalRel.java deleted file mode 100644 index 353dd607e..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoHorizontalRel.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoHorizontalRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoRel.java deleted file mode 100644 index f41da3905..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoRel.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalAbs.java deleted file mode 100644 index 77d4e70fe..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalAbs.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoVerticalAbs extends - SVGPathSeg { - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalRel.java deleted file mode 100644 index fc46adcfe..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegLinetoVerticalRel.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegLinetoVerticalRel extends - SVGPathSeg { - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegList.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegList.java deleted file mode 100644 index f5005e7c3..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegList.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public SVGPathSeg initialize ( SVGPathSeg newItem ) - throws DOMException, SVGException; - public SVGPathSeg getItem ( int index ) - throws DOMException; - public SVGPathSeg insertItemBefore ( SVGPathSeg newItem, int index ) - throws DOMException, SVGException; - public SVGPathSeg replaceItem ( SVGPathSeg newItem, int index ) - throws DOMException, SVGException; - public SVGPathSeg removeItem ( int index ) - throws DOMException; - public SVGPathSeg appendItem ( SVGPathSeg newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoAbs.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoAbs.java deleted file mode 100644 index 80642f5b3..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoAbs.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegMovetoAbs extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoRel.java b/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoRel.java deleted file mode 100644 index 405c56fbc..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPathSegMovetoRel.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPathSegMovetoRel extends - SVGPathSeg { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPatternElement.java b/src/bind/java/org/w3c/dom/svg/SVGPatternElement.java deleted file mode 100644 index cfa147173..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPatternElement.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGPatternElement extends - SVGElement, - SVGURIReference, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGFitToViewBox, - SVGUnitTypes { - public SVGAnimatedEnumeration getPatternUnits( ); - public SVGAnimatedEnumeration getPatternContentUnits( ); - public SVGAnimatedTransformList getPatternTransform( ); - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPoint.java b/src/bind/java/org/w3c/dom/svg/SVGPoint.java deleted file mode 100644 index 982576cd2..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPoint.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPoint { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - - public SVGPoint matrixTransform ( SVGMatrix matrix ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPointList.java b/src/bind/java/org/w3c/dom/svg/SVGPointList.java deleted file mode 100644 index 8fe262a9e..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPointList.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPointList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public SVGPoint initialize ( SVGPoint newItem ) - throws DOMException, SVGException; - public SVGPoint getItem ( int index ) - throws DOMException; - public SVGPoint insertItemBefore ( SVGPoint newItem, int index ) - throws DOMException, SVGException; - public SVGPoint replaceItem ( SVGPoint newItem, int index ) - throws DOMException, SVGException; - public SVGPoint removeItem ( int index ) - throws DOMException; - public SVGPoint appendItem ( SVGPoint newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPolygonElement.java b/src/bind/java/org/w3c/dom/svg/SVGPolygonElement.java deleted file mode 100644 index 6171fb69c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPolygonElement.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGPolygonElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget, - SVGAnimatedPoints { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPolylineElement.java b/src/bind/java/org/w3c/dom/svg/SVGPolylineElement.java deleted file mode 100644 index 9fad2ab31..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPolylineElement.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGPolylineElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget, - SVGAnimatedPoints { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGPreserveAspectRatio.java b/src/bind/java/org/w3c/dom/svg/SVGPreserveAspectRatio.java deleted file mode 100644 index 919569dac..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGPreserveAspectRatio.java +++ /dev/null @@ -1,30 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGPreserveAspectRatio { - // Alignment Types - public static final short SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; - public static final short SVG_PRESERVEASPECTRATIO_NONE = 1; - public static final short SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; - public static final short SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; - public static final short SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; - public static final short SVG_PRESERVEASPECTRATIO_XMINYMID = 5; - public static final short SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; - public static final short SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; - public static final short SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; - public static final short SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; - public static final short SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; - // Meet-or-slice Types - public static final short SVG_MEETORSLICE_UNKNOWN = 0; - public static final short SVG_MEETORSLICE_MEET = 1; - public static final short SVG_MEETORSLICE_SLICE = 2; - - public short getAlign( ); - public void setAlign( short align ) - throws DOMException; - public short getMeetOrSlice( ); - public void setMeetOrSlice( short meetOrSlice ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGRadialGradientElement.java b/src/bind/java/org/w3c/dom/svg/SVGRadialGradientElement.java deleted file mode 100644 index 6c8af9294..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGRadialGradientElement.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGRadialGradientElement extends - SVGGradientElement { - public SVGAnimatedLength getCx( ); - public SVGAnimatedLength getCy( ); - public SVGAnimatedLength getR( ); - public SVGAnimatedLength getFx( ); - public SVGAnimatedLength getFy( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGRect.java b/src/bind/java/org/w3c/dom/svg/SVGRect.java deleted file mode 100644 index fd6de0603..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGRect.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGRect { - public float getX( ); - public void setX( float x ) - throws DOMException; - public float getY( ); - public void setY( float y ) - throws DOMException; - public float getWidth( ); - public void setWidth( float width ) - throws DOMException; - public float getHeight( ); - public void setHeight( float height ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGRectElement.java b/src/bind/java/org/w3c/dom/svg/SVGRectElement.java deleted file mode 100644 index 4c79150f3..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGRectElement.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGRectElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public SVGAnimatedLength getRx( ); - public SVGAnimatedLength getRy( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGRenderingIntent.java b/src/bind/java/org/w3c/dom/svg/SVGRenderingIntent.java deleted file mode 100644 index fc46f9f79..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGRenderingIntent.java +++ /dev/null @@ -1,12 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGRenderingIntent { - // Rendering Intent Types - public static final short RENDERING_INTENT_UNKNOWN = 0; - public static final short RENDERING_INTENT_AUTO = 1; - public static final short RENDERING_INTENT_PERCEPTUAL = 2; - public static final short RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; - public static final short RENDERING_INTENT_SATURATION = 4; - public static final short RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGSVGElement.java b/src/bind/java/org/w3c/dom/svg/SVGSVGElement.java deleted file mode 100644 index 6507a1304..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGSVGElement.java +++ /dev/null @@ -1,74 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.DocumentEvent; -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.DOMException; -import org.w3c.dom.NodeList; -import org.w3c.dom.Element; -import org.w3c.dom.css.ViewCSS; -import org.w3c.dom.css.DocumentCSS; -import org.w3c.dom.css.RGBColor; - -public interface SVGSVGElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGLocatable, - SVGFitToViewBox, - SVGZoomAndPan, - EventTarget, - DocumentEvent, - ViewCSS, - DocumentCSS { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public String getContentScriptType( ); - public void setContentScriptType( String contentScriptType ) - throws DOMException; - public String getContentStyleType( ); - public void setContentStyleType( String contentStyleType ) - throws DOMException; - public SVGRect getViewport( ); - public float getPixelUnitToMillimeterX( ); - public float getPixelUnitToMillimeterY( ); - public float getScreenPixelToMillimeterX( ); - public float getScreenPixelToMillimeterY( ); - public boolean getUseCurrentView( ); - public void setUseCurrentView( boolean useCurrentView ) - throws DOMException; - public SVGViewSpec getCurrentView( ); - public float getCurrentScale( ); - public void setCurrentScale( float currentScale ) - throws DOMException; - public SVGPoint getCurrentTranslate( ); - - public int suspendRedraw ( int max_wait_milliseconds ); - public void unsuspendRedraw ( int suspend_handle_id ) - throws DOMException; - public void unsuspendRedrawAll ( ); - public void forceRedraw ( ); - public void pauseAnimations ( ); - public void unpauseAnimations ( ); - public boolean animationsPaused ( ); - public float getCurrentTime ( ); - public void setCurrentTime ( float seconds ); - public NodeList getIntersectionList ( SVGRect rect, SVGElement referenceElement ); - public NodeList getEnclosureList ( SVGRect rect, SVGElement referenceElement ); - public boolean checkIntersection ( SVGElement element, SVGRect rect ); - public boolean checkEnclosure ( SVGElement element, SVGRect rect ); - public void deselectAll ( ); - public SVGNumber createSVGNumber ( ); - public SVGLength createSVGLength ( ); - public SVGAngle createSVGAngle ( ); - public SVGPoint createSVGPoint ( ); - public SVGMatrix createSVGMatrix ( ); - public SVGRect createSVGRect ( ); - public SVGTransform createSVGTransform ( ); - public SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); - public Element getElementById ( String elementId ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGScriptElement.java b/src/bind/java/org/w3c/dom/svg/SVGScriptElement.java deleted file mode 100644 index 14863e6eb..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGScriptElement.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGScriptElement extends - SVGElement, - SVGURIReference, - SVGExternalResourcesRequired { - public String getType( ); - public void setType( String type ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGSetElement.java b/src/bind/java/org/w3c/dom/svg/SVGSetElement.java deleted file mode 100644 index 0ca9c09ef..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGSetElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGSetElement extends - SVGAnimationElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGStopElement.java b/src/bind/java/org/w3c/dom/svg/SVGStopElement.java deleted file mode 100644 index 5865e6e60..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGStopElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGStopElement extends - SVGElement, - SVGStylable { - public SVGAnimatedNumber getOffset( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGStringList.java b/src/bind/java/org/w3c/dom/svg/SVGStringList.java deleted file mode 100644 index d0fa0df9c..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGStringList.java +++ /dev/null @@ -1,23 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGStringList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public String initialize ( String newItem ) - throws DOMException, SVGException; - public String getItem ( int index ) - throws DOMException; - public String insertItemBefore ( String newItem, int index ) - throws DOMException, SVGException; - public String replaceItem ( String newItem, int index ) - throws DOMException, SVGException; - public String removeItem ( int index ) - throws DOMException; - public String appendItem ( String newItem ) - throws DOMException, SVGException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGStylable.java b/src/bind/java/org/w3c/dom/svg/SVGStylable.java deleted file mode 100644 index 82c4913f8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGStylable.java +++ /dev/null @@ -1,12 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.css.CSSStyleDeclaration; -import org.w3c.dom.css.CSSValue; - -public interface SVGStylable { - public SVGAnimatedString getClassName( ); - public CSSStyleDeclaration getStyle( ); - - public CSSValue getPresentationAttribute ( String name ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGStyleElement.java b/src/bind/java/org/w3c/dom/svg/SVGStyleElement.java deleted file mode 100644 index 1051ef67f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGStyleElement.java +++ /dev/null @@ -1,20 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGStyleElement extends - SVGElement { - public String getXMLspace( ); - public void setXMLspace( String xmlspace ) - throws DOMException; - public String getType( ); - public void setType( String type ) - throws DOMException; - public String getMedia( ); - public void setMedia( String media ) - throws DOMException; - public String getTitle( ); - public void setTitle( String title ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGSwitchElement.java b/src/bind/java/org/w3c/dom/svg/SVGSwitchElement.java deleted file mode 100644 index c5187563b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGSwitchElement.java +++ /dev/null @@ -1,14 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGSwitchElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGSymbolElement.java b/src/bind/java/org/w3c/dom/svg/SVGSymbolElement.java deleted file mode 100644 index ee288bc92..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGSymbolElement.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGSymbolElement extends - SVGElement, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGFitToViewBox, - EventTarget { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTRefElement.java b/src/bind/java/org/w3c/dom/svg/SVGTRefElement.java deleted file mode 100644 index 2d8202ede..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTRefElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTRefElement extends - SVGTextPositioningElement, - SVGURIReference { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTSpanElement.java b/src/bind/java/org/w3c/dom/svg/SVGTSpanElement.java deleted file mode 100644 index 729b857db..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTSpanElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTSpanElement extends - SVGTextPositioningElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTests.java b/src/bind/java/org/w3c/dom/svg/SVGTests.java deleted file mode 100644 index a7026a5b0..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTests.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTests { - public SVGStringList getRequiredFeatures( ); - public SVGStringList getRequiredExtensions( ); - public SVGStringList getSystemLanguage( ); - - public boolean hasExtension ( String extension ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTextContentElement.java b/src/bind/java/org/w3c/dom/svg/SVGTextContentElement.java deleted file mode 100644 index c7c212961..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTextContentElement.java +++ /dev/null @@ -1,37 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.DOMException; - -public interface SVGTextContentElement extends - SVGElement, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - EventTarget { - // lengthAdjust Types - public static final short LENGTHADJUST_UNKNOWN = 0; - public static final short LENGTHADJUST_SPACING = 1; - public static final short LENGTHADJUST_SPACINGANDGLYPHS = 2; - - public SVGAnimatedLength getTextLength( ); - public SVGAnimatedEnumeration getLengthAdjust( ); - - public int getNumberOfChars ( ); - public float getComputedTextLength ( ); - public float getSubStringLength ( int charnum, int nchars ) - throws DOMException; - public SVGPoint getStartPositionOfChar ( int charnum ) - throws DOMException; - public SVGPoint getEndPositionOfChar ( int charnum ) - throws DOMException; - public SVGRect getExtentOfChar ( int charnum ) - throws DOMException; - public float getRotationOfChar ( int charnum ) - throws DOMException; - public int getCharNumAtPosition ( SVGPoint point ); - public void selectSubString ( int charnum, int nchars ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTextElement.java b/src/bind/java/org/w3c/dom/svg/SVGTextElement.java deleted file mode 100644 index f25cc3c20..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTextElement.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTextElement extends - SVGTextPositioningElement, - SVGTransformable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTextPathElement.java b/src/bind/java/org/w3c/dom/svg/SVGTextPathElement.java deleted file mode 100644 index 0a8a256ad..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTextPathElement.java +++ /dev/null @@ -1,19 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTextPathElement extends - SVGTextContentElement, - SVGURIReference { - // textPath Method Types - public static final short TEXTPATH_METHODTYPE_UNKNOWN = 0; - public static final short TEXTPATH_METHODTYPE_ALIGN = 1; - public static final short TEXTPATH_METHODTYPE_STRETCH = 2; - // textPath Spacing Types - public static final short TEXTPATH_SPACINGTYPE_UNKNOWN = 0; - public static final short TEXTPATH_SPACINGTYPE_AUTO = 1; - public static final short TEXTPATH_SPACINGTYPE_EXACT = 2; - - public SVGAnimatedLength getStartOffset( ); - public SVGAnimatedEnumeration getMethod( ); - public SVGAnimatedEnumeration getSpacing( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTextPositioningElement.java b/src/bind/java/org/w3c/dom/svg/SVGTextPositioningElement.java deleted file mode 100644 index d47887b8d..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTextPositioningElement.java +++ /dev/null @@ -1,11 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTextPositioningElement extends - SVGTextContentElement { - public SVGAnimatedLengthList getX( ); - public SVGAnimatedLengthList getY( ); - public SVGAnimatedLengthList getDx( ); - public SVGAnimatedLengthList getDy( ); - public SVGAnimatedNumberList getRotate( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTitleElement.java b/src/bind/java/org/w3c/dom/svg/SVGTitleElement.java deleted file mode 100644 index cbf45fe2a..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTitleElement.java +++ /dev/null @@ -1,8 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTitleElement extends - SVGElement, - SVGLangSpace, - SVGStylable { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTransform.java b/src/bind/java/org/w3c/dom/svg/SVGTransform.java deleted file mode 100644 index 16df6080f..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTransform.java +++ /dev/null @@ -1,24 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTransform { - // Transform Types - public static final short SVG_TRANSFORM_UNKNOWN = 0; - public static final short SVG_TRANSFORM_MATRIX = 1; - public static final short SVG_TRANSFORM_TRANSLATE = 2; - public static final short SVG_TRANSFORM_SCALE = 3; - public static final short SVG_TRANSFORM_ROTATE = 4; - public static final short SVG_TRANSFORM_SKEWX = 5; - public static final short SVG_TRANSFORM_SKEWY = 6; - - public short getType( ); - public SVGMatrix getMatrix( ); - public float getAngle( ); - - public void setMatrix ( SVGMatrix matrix ); - public void setTranslate ( float tx, float ty ); - public void setScale ( float sx, float sy ); - public void setRotate ( float angle, float cx, float cy ); - public void setSkewX ( float angle ); - public void setSkewY ( float angle ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTransformList.java b/src/bind/java/org/w3c/dom/svg/SVGTransformList.java deleted file mode 100644 index 3e3a4c217..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTransformList.java +++ /dev/null @@ -1,25 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGTransformList { - public int getNumberOfItems( ); - - public void clear ( ) - throws DOMException; - public SVGTransform initialize ( SVGTransform newItem ) - throws DOMException, SVGException; - public SVGTransform getItem ( int index ) - throws DOMException; - public SVGTransform insertItemBefore ( SVGTransform newItem, int index ) - throws DOMException, SVGException; - public SVGTransform replaceItem ( SVGTransform newItem, int index ) - throws DOMException, SVGException; - public SVGTransform removeItem ( int index ) - throws DOMException; - public SVGTransform appendItem ( SVGTransform newItem ) - throws DOMException, SVGException; - public SVGTransform createSVGTransformFromMatrix ( SVGMatrix matrix ); - public SVGTransform consolidate ( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGTransformable.java b/src/bind/java/org/w3c/dom/svg/SVGTransformable.java deleted file mode 100644 index 9abaaf0b1..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGTransformable.java +++ /dev/null @@ -1,7 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGTransformable extends - SVGLocatable { - public SVGAnimatedTransformList getTransform( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGURIReference.java b/src/bind/java/org/w3c/dom/svg/SVGURIReference.java deleted file mode 100644 index 3f2f784df..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGURIReference.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGURIReference { - public SVGAnimatedString getHref( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGUnitTypes.java b/src/bind/java/org/w3c/dom/svg/SVGUnitTypes.java deleted file mode 100644 index 9fc7685e9..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGUnitTypes.java +++ /dev/null @@ -1,9 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGUnitTypes { - // Unit Types - public static final short SVG_UNIT_TYPE_UNKNOWN = 0; - public static final short SVG_UNIT_TYPE_USERSPACEONUSE = 1; - public static final short SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGUseElement.java b/src/bind/java/org/w3c/dom/svg/SVGUseElement.java deleted file mode 100644 index 3ce448141..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGUseElement.java +++ /dev/null @@ -1,21 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.EventTarget; - -public interface SVGUseElement extends - SVGElement, - SVGURIReference, - SVGTests, - SVGLangSpace, - SVGExternalResourcesRequired, - SVGStylable, - SVGTransformable, - EventTarget { - public SVGAnimatedLength getX( ); - public SVGAnimatedLength getY( ); - public SVGAnimatedLength getWidth( ); - public SVGAnimatedLength getHeight( ); - public SVGElementInstance getInstanceRoot( ); - public SVGElementInstance getAnimatedInstanceRoot( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGVKernElement.java b/src/bind/java/org/w3c/dom/svg/SVGVKernElement.java deleted file mode 100644 index cc2e4f4f1..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGVKernElement.java +++ /dev/null @@ -1,6 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGVKernElement extends - SVGElement { -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGViewElement.java b/src/bind/java/org/w3c/dom/svg/SVGViewElement.java deleted file mode 100644 index 08adbecd8..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGViewElement.java +++ /dev/null @@ -1,10 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGViewElement extends - SVGElement, - SVGExternalResourcesRequired, - SVGFitToViewBox, - SVGZoomAndPan { - public SVGStringList getViewTarget( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGViewSpec.java b/src/bind/java/org/w3c/dom/svg/SVGViewSpec.java deleted file mode 100644 index 97ef6bad9..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGViewSpec.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -public interface SVGViewSpec extends - SVGZoomAndPan, - SVGFitToViewBox { - public SVGTransformList getTransform( ); - public SVGElement getViewTarget( ); - public String getViewBoxString( ); - public String getPreserveAspectRatioString( ); - public String getTransformString( ); - public String getViewTargetString( ); -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGZoomAndPan.java b/src/bind/java/org/w3c/dom/svg/SVGZoomAndPan.java deleted file mode 100644 index f8f910eb4..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGZoomAndPan.java +++ /dev/null @@ -1,15 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.DOMException; - -public interface SVGZoomAndPan { - // Zoom and Pan Types - public static final short SVG_ZOOMANDPAN_UNKNOWN = 0; - public static final short SVG_ZOOMANDPAN_DISABLE = 1; - public static final short SVG_ZOOMANDPAN_MAGNIFY = 2; - - public short getZoomAndPan( ); - public void setZoomAndPan( short zoomAndPan ) - throws DOMException; -} diff --git a/src/bind/java/org/w3c/dom/svg/SVGZoomEvent.java b/src/bind/java/org/w3c/dom/svg/SVGZoomEvent.java deleted file mode 100644 index 7ab430d2b..000000000 --- a/src/bind/java/org/w3c/dom/svg/SVGZoomEvent.java +++ /dev/null @@ -1,13 +0,0 @@ - -package org.w3c.dom.svg; - -import org.w3c.dom.events.UIEvent; - -public interface SVGZoomEvent extends - UIEvent { - public SVGRect getZoomRectScreen( ); - public float getPreviousScale( ); - public SVGPoint getPreviousTranslate( ); - public float getNewScale( ); - public SVGPoint getNewTranslate( ); -} diff --git a/src/bind/java/org/w3c/dom/views/AbstractView.java b/src/bind/java/org/w3c/dom/views/AbstractView.java deleted file mode 100644 index 97e8f0e2b..000000000 --- a/src/bind/java/org/w3c/dom/views/AbstractView.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.views; - -/** - * A base interface that all views shall derive from. - *

See also the Document Object Model (DOM) Level 2 Views Specification. - * @since DOM Level 2 - */ -public interface AbstractView { - /** - * The source DocumentView of which this is an - * AbstractView. - */ - public DocumentView getDocument(); - -} diff --git a/src/bind/java/org/w3c/dom/views/DocumentView.java b/src/bind/java/org/w3c/dom/views/DocumentView.java deleted file mode 100644 index 2cb9eebb8..000000000 --- a/src/bind/java/org/w3c/dom/views/DocumentView.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2000 World Wide Web Consortium, - * (Massachusetts Institute of Technology, Institut National de - * Recherche en Informatique et en Automatique, Keio University). All - * Rights Reserved. This program is distributed under the W3C's Software - * Intellectual Property License. This program is distributed in the - * hope that it will be useful, but WITHOUT ANY WARRANTY; without even - * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - * PURPOSE. - * See W3C License http://www.w3.org/Consortium/Legal/ for more details. - */ - -package org.w3c.dom.views; - -/** - * The DocumentView interface is implemented by - * Document objects in DOM implementations supporting DOM - * Views. It provides an attribute to retrieve the default view of a - * document. - *

See also the Document Object Model (DOM) Level 2 Views Specification. - * @since DOM Level 2 - */ -public interface DocumentView { - /** - * The default AbstractView for this Document, - * or null if none available. - */ - public AbstractView getDefaultView(); - -} diff --git a/src/bind/javabind-private.h b/src/bind/javabind-private.h deleted file mode 100644 index 56ff2e2ff..000000000 --- a/src/bind/javabind-private.h +++ /dev/null @@ -1,147 +0,0 @@ -/** - * @file - * @brief This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - */ -/* - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef SEEN_JAVABIND_PRIVATE_H -#define SEEN_JAVABIND_PRIVATE_H - -#include -#include "javabind.h" - -namespace Inkscape -{ - -namespace Bind -{ - - -class JavaBinderyImpl : public JavaBindery -{ -public: - - JavaBinderyImpl(); - - virtual ~JavaBinderyImpl(); - - virtual bool loadJVM(); - - virtual bool callStatic(int type, - const String &className, - const String &methodName, - const String &signature, - const std::vector ¶ms, - Value &retval); - - virtual bool callInstance( - int type, - const jobject obj, - const String &methodName, - const String &signature, - const std::vector ¶ms, - Value &retval); - - virtual bool callMain(const String &className, - const std::vector &args); - - virtual bool isLoaded(); - - /** - * - */ - virtual bool scriptRun(const String &lang, const String &script); - - /** - * - */ - virtual bool scriptRunFile(const String &lang, const String &fileName); - - virtual bool showConsole(); - - virtual bool registerNatives(const String &className, - const JNINativeMethod *methods); - - virtual bool doBinding(); - - virtual String getException(); - - virtual bool setupGateway(); - - static JavaBinderyImpl *getInstance(); - - -private: - - JavaVM *jvm; - JNIEnv *env; - jobject gatewayObj; -}; - - -//######################################################################## -//# MESSAGES -//######################################################################## - -void err(const char *fmt, ...); - -void msg(const char *fmt, ...); - -//######################################################################## -//# UTILITY -//######################################################################## - -String normalizePath(const String &str); - -String getExceptionString(JNIEnv *env); - -jint getInt(JNIEnv *env, jobject obj, const char *name); - -void setInt(JNIEnv *env, jobject obj, const char *name, jint val); - -jlong getLong(JNIEnv *env, jobject obj, const char *name); - -void setLong(JNIEnv *env, jobject obj, const char *name, jlong val); - -jfloat getFloat(JNIEnv *env, jobject obj, const char *name); - -void setFloat(JNIEnv *env, jobject obj, const char *name, jfloat val); - -jdouble getDouble(JNIEnv *env, jobject obj, const char *name); - -void setDouble(JNIEnv *env, jobject obj, const char *name, jdouble val); - -String getString(JNIEnv *env, jobject obj, const char *name); - -void setString(JNIEnv *env, jobject obj, const char *name, const String &val); - - - -} // namespace Bind -} // namespace Inkscape - -#endif // SEEN_JAVABIND_PRIVATE_H -//######################################################################## -//# E N D O F F I L E -//######################################################################## - diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp deleted file mode 100644 index 8a66bac59..000000000 --- a/src/bind/javabind.cpp +++ /dev/null @@ -1,1209 +0,0 @@ -/** - * @file - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Note: We must limit Java or JVM-specific code to this file - * and to dobinding.cpp. It should be hidden from javabind.h - * - * This file is mostly about getting things up and running, and - * providing the basic C-to-Java hooks. - * - * dobinding.cpp will have the rote and repetitious - * class-by-class binding - */ -/* - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include -#include - -#include -#include - - -#ifdef __WIN32__ -#include -#else -#include -#include -#endif - -#if HAVE_SYS_STAT_H -#include -#endif - -#include "javabind.h" -#include "javabind-private.h" -#include -#include -#include - -//For repr and document -#include -#include -#include - - - -namespace Inkscape -{ - -namespace Bind -{ - - -//######################################################################## -//# DEFINITIONS -//######################################################################## - -typedef jint (*CreateVMFunc)(JavaVM **, JNIEnv **, void *); - - - -//######################################################################## -//# UTILITY -//######################################################################## - -/** - * Normalize path. Java wants '/', even on Windows - */ -String normalizePath(const String &str) -{ - String buf; - for (unsigned int i=0 ; iGetStringUTFChars(jstr, JNI_FALSE); - String str = chars; - env->ReleaseStringUTFChars(jstr, chars); - return str; -} - - -/** - * Check if the VM has encountered an Exception. If so, get the String for it - * and clear the exception - */ -String getExceptionString(JNIEnv *env) -{ - String buf; - jthrowable exc = env->ExceptionOccurred(); - if (!exc) - return buf; - jclass cls = env->GetObjectClass(exc); - jmethodID mid = env->GetMethodID(cls, "toString", "()Ljava/lang/String;"); - jstring jstr = (jstring) env->CallObjectMethod(exc, mid); - buf.append(getString(env, jstr)); - env->ExceptionClear(); - return buf; -} - -//######################################################################## -//# CONSTRUCTOR/DESTRUCTOR -//######################################################################## - -static JavaBinderyImpl *_instance = NULL; - -JavaBindery *JavaBindery::getInstance() -{ - return JavaBinderyImpl::getInstance(); -} - -JavaBinderyImpl *JavaBinderyImpl::getInstance() -{ - if (!_instance) - { - _instance = new JavaBinderyImpl(); - } - return _instance; -} - -JavaBinderyImpl::JavaBinderyImpl() -{ - jvm = NULL; - env = NULL; - gatewayObj = NULL; -} - -JavaBinderyImpl::~JavaBinderyImpl() -{ -} - - -//######################################################################## -//# MESSAGES -//######################################################################## - -void err(const char *fmt, ...) -{ - va_list args; - g_warning("JavaBinderyImpl err:"); - va_start(args, fmt); - g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, fmt, args); - va_end(args); - g_warning("\n"); -} - -void msg(const char *fmt, ...) -{ - va_list args; - g_message("JavaBinderyImpl:"); - va_start(args, fmt); - g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, fmt, args); - va_end(args); - g_message("\n"); -} - - - -//######################################################################## -//# W I N 3 2 S T Y L E -//######################################################################## -#ifdef __WIN32__ - - -#define DIR_SEPARATOR "\\" -#define PATH_SEPARATOR ";" - - - -static bool getRegistryString(HKEY /*root*/, const char *keyName, - const char *valName, char *buf, int buflen) -{ - HKEY key; - DWORD bufsiz = buflen; - RegOpenKeyEx(HKEY_LOCAL_MACHINE, keyName, 0, KEY_READ, &key); - int ret = RegQueryValueEx(key, TEXT(valName), - NULL, NULL, (BYTE *)buf, &bufsiz); - if (ret != ERROR_SUCCESS) - { - err("Key '%s\\%s not found\n", keyName, valName); - return false; - } - RegCloseKey(key); - return true; -} - - -static String cleanPath(const String &s) -{ - String buf; - for (unsigned int i=0 ; i=0) - { - //msg("found"); - return jpath; - } - } - return ""; -} - - - -/** - * Attempt to find and load a jvm.dll file. Find the createVM() - * function's address and return it - */ -static CreateVMFunc getCreateVMFunc() -{ - bool found = false; - String libname; - - /** - * First, look for an embedded jre in the .exe's dir. - * This allows us to package our own JRE if we want to. - */ - String inkscapeHome = getExePath(); - inkscapeHome.append("\\jre"); - msg("INKSCAPE_HOME='%s'", inkscapeHome.c_str()); - String path = checkPathUnderRoot(inkscapeHome); - if (path.size() > 0) - { - libname = path; - found = true; - } - - /** - * Next, look for JAVA_HOME. This will allow the user - * to override what's in the registry - */ - if (!found) - { - const char *envStr = getenv("JAVA_HOME"); - if (envStr) - { - String javaHome = cleanPath(envStr); - msg("JAVA_HOME='%s'", javaHome.c_str()); - path = checkPathUnderRoot(javaHome); - if (path.size() > 0) - { - libname = path; - found = true; - } - } - } - - //not at JAVA_HOME. check the registry - if (!found) - { - char verbuf[16]; - char regpath[80]; - strcpy(regpath, "SOFTWARE\\JavaSoft\\Java Runtime Environment"); - bool ret = getRegistryString(HKEY_LOCAL_MACHINE, - regpath, "CurrentVersion", verbuf, 15); - if (!ret) - { - msg("JVM CurrentVersion not found in registry at '%s'", regpath); - } - else - { - strcat(regpath, "\\"); - strcat(regpath, verbuf); - //msg("reg path: %s\n", regpath); - char valbuf[80]; - ret = getRegistryString(HKEY_LOCAL_MACHINE, - regpath, "RuntimeLib", valbuf, 79); - if (ret) - { - found = true; - libname = valbuf; - } - else - { - msg("JVM RuntimeLib not found in registry at '%s'", - regpath); - } - } - } - - if (!found) - { - err("JVM not found at JAVA_HOME or in registry"); - return NULL; - } - - /** - * If we are here, then we seem to have a valid path for jvm.dll - * Give it a try - */ - msg("getCreateVMFunc: Loading JVM: %s", libname.c_str()); - HMODULE lib = LoadLibrary(libname.c_str()); - if (!lib) - { - err("Java VM not found at '%s'", libname.c_str()); - return NULL; - } - CreateVMFunc createVM = (CreateVMFunc)GetProcAddress(lib, "JNI_CreateJavaVM"); - if (!createVM) - { - err("Could not find 'JNI_CreateJavaVM' in shared library '%s'", - libname.c_str()); - return NULL; - } - return createVM; -} - -/** - * Return the directory where the Java classes/libs/resources are - * located - */ -static void getJavaRoot(String &javaroot) -{ - /* - javaroot = getExePath(); - javaroot.append("\\"); - javaroot.append(INKSCAPE_BINDDIR); - javaroot.append("\\java"); - */ - javaroot = INKSCAPE_BINDDIR; - javaroot.append("\\java"); -} - - - - -//######################################################################## -//# U N I X S T Y L E -//######################################################################## -#else /* !__WIN32__ */ - - -#define DIR_SEPARATOR "/" -#define PATH_SEPARATOR ":" - - -/** - * Recursively descend into a directory looking for libjvm.so - */ -static bool findJVMRecursive(const String &dirpath, - std::vector &results) -{ - DIR *dir = opendir(dirpath.c_str()); - if (!dir) - return false; - bool ret = false; - while (true) - { - struct dirent *de = readdir(dir); - if (!de) - break; - String fname = de->d_name; - if (fname == "." || fname == "..") - continue; - String path = dirpath; - path.push_back('/'); - path.append(fname); - if (fname == "libjvm.so") - { - ret = true; - results.push_back(path); - continue; - } - struct stat finfo; - if (lstat(path.c_str(), &finfo)<0) - { - break; - } - if (finfo.st_mode & S_IFDIR) - { - ret |= findJVMRecursive(path, results); - } - } - closedir(dir); - return ret; -} - - -/** - * Some common places on a Unix filesystem where JVMs are - * often found. - */ -static const char *commonJavaPaths[] = -{ - "/usr/lib/jvm/jre", - "/usr/lib/jvm", - "/usr/local/lib/jvm/jre", - "/usr/local/lib/jvm", - "/usr/java", - "/usr/local/java", - NULL -}; - - - -/** - * Look for a Java VM (libjvm.so) in several Unix places - */ -static bool findJVM(String &result) -{ - std::vector results; - bool found = false; - - /* Is there one specified by the user? */ - const char *javaHome = getenv("JAVA_HOME"); - if (javaHome && findJVMRecursive(javaHome, results)) - found = true; - else for (const char **path = commonJavaPaths ; *path ; path++) - { - if (findJVMRecursive(*path, results)) - { - found = true; - break; - } - } - if (!found) - { - return false; - } - if (results.empty()) - return false; - //Look first for a Client VM - for (unsigned int i=0 ; id_name; - if (fname == "." || fname == "..") - continue; - if (fname.size()<5) //x.jar - continue; - if (fname.compare(fname.size()-4, 4, ".jar") != 0) - continue; - - String path = libdir; - path.append(DIR_SEPARATOR); - path.append(fname); - - cp.append(PATH_SEPARATOR); - cp.append(path); - } - closedir(dir); - - result = cp; -} - - - -//======================================================================== -// Gateway -//======================================================================== -/** - * This is provided to scripts can grab the current copy or the - * repr tree. If anyone has a smarter way of doing this, please implement. - */ -static jstring JNICALL documentGet(JNIEnv *env, jobject /*obj*/, jlong /*ptr*/) -{ - //JavaBinderyImpl *bind = (JavaBinderyImpl *)ptr; - String buf = sp_repr_save_buf((SP_ACTIVE_DOCUMENT)->rdoc); - jstring jstr = env->NewStringUTF(buf.c_str()); - return jstr; -} - -/** - * This is provided to scripts can load an XML tree into Inkscape. - * If anyone has a smarter way of doing this, please implement. - */ -static jboolean JNICALL documentSet(JNIEnv */*env*/, jobject /*obj*/, jlong /*ptr*/, jstring /*jstr*/) -{ - /* - JavaBinderyImpl *bind = (JavaBinderyImpl *)ptr; - String s = getString(env, jstr); - SPDocument *doc = sp_document_new_from_mem(s.c_str(), s.size(), true); - */ - return JNI_TRUE; -} - -/** - * This method is used to allow the gateway class to - * redirect its logging stream here. - * For the main C++/Java bindings, see dobinding.cpp - */ -static void JNICALL logWrite(JNIEnv */*env*/, jobject /*obj*/, jlong ptr, jint ch) -{ - JavaBinderyImpl *bind = reinterpret_cast(ptr); - bind->log(ch); -} - - -static JNINativeMethod gatewayMethods[] = -{ -{ (char *)"documentGet", (char *)"(J)Ljava/lang/String;", (void *)documentGet }, -{ (char *)"documentSet", (char *)"(JLjava/lang/String;)Z", (void *)documentSet }, -{ (char *)"logWrite", (char *)"(JI)V", (void *)logWrite }, -{ NULL, NULL, NULL } -}; - - -/** - * This sets up the 'Gateway' java class for execution of - * scripts. The class's constructor takes a jlong. This java long - * is used to store the pointer to 'this'. When ScriptRunner makes - * native calls, it passes that jlong back, so that it can call the - * methods of this C++ class. - */ -bool JavaBinderyImpl::setupGateway() -{ - String className = "org/inkscape/cmn/Gateway"; - if (!registerNatives(className, gatewayMethods)) - { - return false; - } - jclass cls = env->FindClass(className.c_str()); - if (!cls) - { - err("setupGateway: cannot find class '%s' : %s", - className.c_str(), getException().c_str()); - return false; - } - jmethodID mid = env->GetMethodID(cls, "", "(J)V"); - if (!mid) - { - err("setupGateway: cannot find constructor for '%s' : %s", - className.c_str(), getException().c_str()); - return false; - } - gatewayObj = env->NewObject(cls, mid, ((jlong)this)); - if (!gatewayObj) - { - err("setupGateway: cannot construct '%s' : %s", - className.c_str(), getException().c_str()); - return false; - } - - msg("Gateway ready"); - return true; -} - -bool JavaBinderyImpl::scriptRun(const String &lang, const String &script) -{ - if (!loadJVM()) - return false; - - std::vector params; - Value langParm(lang); - params.push_back(langParm); - Value scriptParm(script); - params.push_back(scriptParm); - Value retval; - callInstance(Value::BIND_VOID, gatewayObj, "scriptRun", - "(Ljava/lang/String;Ljava/lang/String;)Z", params, retval); - return retval.getBoolean(); -} - -bool JavaBinderyImpl::scriptRunFile(const String &lang, const String &fname) -{ - if (!loadJVM()) - return false; - - std::vector params; - Value langParm(lang); - params.push_back(langParm); - Value fnameParm(fname); - params.push_back(fnameParm); - Value retval; - callInstance(Value::BIND_VOID, gatewayObj, "scriptRunFile", - "(Ljava/lang/String;Ljava/lang/String;)Z", params, retval); - return retval.getBoolean(); -} - -bool JavaBinderyImpl::showConsole() -{ - if (!loadJVM()) - return false; - - std::vector params; - Value retval; - callInstance(Value::BIND_VOID, gatewayObj, "showConsole", - "()Z", params, retval); - return retval.getBoolean(); -} - - -//======================================================================== -// End Gateway -//======================================================================== - - -/** - * This is used to grab output from the VM itself. See 'options' below. - */ -static int JNICALL vfprintfHook(FILE* /*f*/, const char *fmt, va_list args) -{ - g_logv(G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, fmt, args); - return JNI_TRUE; -} - - -/** - * This is the most important part of this class. Here we - * attempt to find, load, and initialize a java (or mlvm?) virtual - * machine. - * - * @return true if successful, else false - */ -bool JavaBinderyImpl::loadJVM() -{ - if (jvm) - return true; - - CreateVMFunc createVM = getCreateVMFunc(); - if (!createVM) - { - err("Could not find 'JNI_CreateJavaVM' in shared library"); - return false; - } - - String javaroot; - getJavaRoot(javaroot); - String cp; - populateClassPath(javaroot, cp); - String classpath = "-Djava.class.path="; - classpath.append(normalizePath(cp)); - msg("Class path is: '%s'", classpath.c_str()); - - String libpath = "-Djava.library.path="; - libpath.append(javaroot); - libpath.append(DIR_SEPARATOR); - libpath.append("libm"); - libpath = normalizePath(libpath); - msg("Lib path is: '%s'", libpath.c_str()); - - JavaVMInitArgs vm_args; - JavaVMOption options[10];//should be enough - int nOptions = 0; - options[nOptions++].optionString = (char *)classpath.c_str(); - options[nOptions++].optionString = (char *)libpath.c_str(); - //options[nOptions++].optionString = (char *)"-verbose:jni"; - options[nOptions ].optionString = (char *)"vfprintf"; - options[nOptions++].extraInfo = (void *)vfprintfHook; - vm_args.version = JNI_VERSION_1_4; - vm_args.options = options; - vm_args.nOptions = nOptions; - vm_args.ignoreUnrecognized = true; - - if (createVM(&jvm, &env, &vm_args) < 0) - { - err("JNI_CreateJavaVM() failed"); - return false; - } - - //get jvm version - jint vers = env->GetVersion(); - int versionMajor = (vers>>16) & 0xffff; - int versionMinor = (vers ) & 0xffff; - msg("Loaded JVM version %d.%d", versionMajor, versionMinor); - - if (!setupGateway()) { - // set jvm = NULL, otherwise, this method will return true when called for the second time while the gateway might not have been created! - jvm->DestroyJavaVM(); - jvm = NULL; - env = NULL; - err("Java bindings: setupGateway() failed"); - return false; - } - - return true; -} - - -/** - * This is a difficult method. What we are doing is trying to - * call a static method with a list of arguments. Similar to - * a varargs call, we need to marshal the Values into their - * Java equivalents and make the proper call. - * - * @param type the return type of the method - * @param className the full (package / name) name of the java class - * @param methodName the name of the method being invoked - * @param signature the method signature (ex: "(Ljava/lang/String;I)V" ) - * that describes the param and return types of the method. - * @param retval the return value of the java method - * @return true if the call was successful, else false. This is not - * the return value of the method. - */ -bool JavaBinderyImpl::callStatic(int type, - const String &className, - const String &methodName, - const String &signature, - const std::vector ¶ms, - Value &retval) -{ - jclass cls = env->FindClass(className.c_str()); - if (!cls) - { - err("Could not find class '%s' : %s", - className.c_str(), getException().c_str()); - return false; - } - jmethodID mid = env->GetStaticMethodID(cls, - methodName.c_str(), signature.c_str()); - if (!mid) - { - err("Could not find method '%s:%s/%s' : %s", - className.c_str(), methodName.c_str(), - signature.c_str(), getException().c_str()); - return false; - } - /** - * Assemble your parameters into a form usable by JNI - */ - jvalue *jvals = new jvalue[params.size()]; - for (unsigned int i=0 ; iNewStringUTF(v.getString().c_str()); - break; - } - default: - { - err("Unknown value type: %d", v.getType()); - delete [] jvals; - return false; - } - } - } - switch (type) - { - case Value::BIND_VOID: - { - env->CallStaticVoidMethodA(cls, mid, jvals); - break; - } - case Value::BIND_BOOLEAN: - { - jboolean ret = env->CallStaticBooleanMethodA(cls, mid, jvals); - if (ret == JNI_TRUE) //remember, don't truncate - retval.setBoolean(true); - else - retval.setBoolean(false); - break; - } - case Value::BIND_INT: - { - jint ret = env->CallStaticIntMethodA(cls, mid, jvals); - retval.setInt(ret); - break; - } - case Value::BIND_DOUBLE: - { - jdouble ret = env->CallStaticDoubleMethodA(cls, mid, jvals); - retval.setDouble(ret); - break; - } - case Value::BIND_STRING: - { - jobject ret = env->CallStaticObjectMethodA(cls, mid, jvals); - jstring jstr = (jstring) ret; - const char *str = env->GetStringUTFChars(jstr, JNI_FALSE); - retval.setString(str); - env->ReleaseStringUTFChars(jstr, str); - break; - } - default: - { - err("Unknown return type: %d", type); - return false; - } - } - delete [] jvals; - String errStr = getException(); - if (errStr.size()>0) - { - err("callStatic: %s", errStr.c_str()); - return false; - } - return true; -} - - - -/** - * Another difficult method. However, this time we are operating - * on an existing instance jobject. - * - * @param type the return type of the method - * @param obj the instance upon which to make the call - * @param methodName the name of the method being invoked - * @param signature the method signature (ex: "(Ljava/lang/String;I)V" ) - * that describes the param and return types of the method. - * @param retval the return value of the java method - * @return true if the call was successful, else false. This is not - * the return value of the method. - */ -bool JavaBinderyImpl::callInstance( - int type, - const jobject obj, - const String &methodName, - const String &signature, - const std::vector ¶ms, - Value &retval) -{ - jmethodID mid = env->GetMethodID(env->GetObjectClass(obj), - methodName.c_str(), signature.c_str()); - if (!mid) - { - err("Could not find method '%s/%s' : %s", - methodName.c_str(), - signature.c_str(), getException().c_str()); - return false; - } - /** - * Assemble your parameters into a form usable by JNI - */ - jvalue *jvals = new jvalue[params.size()]; - for (unsigned int i=0 ; iNewStringUTF(v.getString().c_str()); - break; - } - default: - { - err("Unknown value type: %d", v.getType()); - delete [] jvals; - return false; - } - } - } - switch (type) - { - case Value::BIND_VOID: - { - env->CallVoidMethodA(obj, mid, jvals); - break; - } - case Value::BIND_BOOLEAN: - { - jboolean ret = env->CallBooleanMethodA(obj, mid, jvals); - if (ret == JNI_TRUE) //remember, don't truncate - retval.setBoolean(true); - else - retval.setBoolean(false); - break; - } - case Value::BIND_INT: - { - jint ret = env->CallIntMethodA(obj, mid, jvals); - retval.setInt(ret); - break; - } - case Value::BIND_DOUBLE: - { - jdouble ret = env->CallDoubleMethodA(obj, mid, jvals); - retval.setDouble(ret); - break; - } - case Value::BIND_STRING: - { - jobject ret = env->CallObjectMethodA(obj, mid, jvals); - jstring jstr = (jstring) ret; - const char *str = env->GetStringUTFChars(jstr, JNI_FALSE); - retval.setString(str); - env->ReleaseStringUTFChars(jstr, str); - break; - } - default: - { - err("Unknown return type: %d", type); - return false; - } - } - delete [] jvals; - String errStr = getException(); - if (errStr.size()>0) - { - err("callStatic: %s", errStr.c_str()); - return false; - } - return true; -} - - - - -/** - * Fetch the last exception from the JVM, if any. Clear it to - * continue processing - * - * @return the exception's descriptio,if any. Else "" - */ -String JavaBinderyImpl::getException() -{ - return getExceptionString(env); -} - - - -/** - * Convenience method to call the static void main(String argv[]) - * method of a given class - * - * @param className full name of the java class - * @args the argument strings to the method - * @return true if successful, else false - */ -bool JavaBinderyImpl::callMain(const String &className, - const std::vector &args) -{ - std::vector parms; - for (unsigned int i=0 ; iFindClass(className.c_str()); - if (!cls) - { - err("Could not find class '%s'", className.c_str()); - return false; - } - //msg("registerNatives: class '%s' found", className.c_str()); - - /** - * hack for JDK bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6493522 - */ - jmethodID mid = env->GetMethodID(env->GetObjectClass(cls), "getConstructors", - "()[Ljava/lang/reflect/Constructor;"); - if (!mid) - { - err("Could not get reflect mid for 'getConstructors' : %s", - getException().c_str()); - return false; - } - jobject res = env->CallObjectMethod(cls, mid); - if (!res) - { - err("Could not get constructors : %s", getException().c_str()); - return false; - } - /** - * end hack - */ - jint nrMethods = 0; - for (const JNINativeMethod *m = methods ; m->name ; m++) - nrMethods++; - jint ret = env->RegisterNatives(cls, methods, nrMethods); - if (ret < 0) - { - err("Could not register %d native methods for '%s' : %s", - nrMethods, className.c_str(), getException().c_str()); - return false; - } - return true; -} - - - - -} // namespace Bind -} // namespace Inkscape - -//######################################################################## -//# E N D O F F I L E -//######################################################################## diff --git a/src/bind/javabind.h b/src/bind/javabind.h deleted file mode 100644 index c11656a66..000000000 --- a/src/bind/javabind.h +++ /dev/null @@ -1,405 +0,0 @@ -/** - * @file - * @brief This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - */ -/* - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef SEEN_JAVABIND_H -#define SEEN_JAVABIND_H - -#include -#include - - -namespace Inkscape -{ - -namespace Bind -{ - - -/** - * Select which String implementation we want to use - */ -typedef Glib::ustring String; - - -/** - * This is the base class of all things which will be C++ object - * instances - */ -class BaseObject -{ -public: - - /** - * Simple constructor - */ - BaseObject() - {} - - /** - * Destructor - */ - virtual ~BaseObject() - {} - -}; - - -/** - * - */ -class Value -{ -public: - - /** - * Types for this value - */ - typedef enum - { - BIND_VOID, - BIND_INT, - BIND_BOOLEAN, - BIND_DOUBLE, - BIND_STRING, - BIND_OBJECT - } ValueType; - - /** - * - */ - Value() - { - init(); - } - - /** - * - */ - Value(int ival) - { - init(); - setInt(ival); - } - - /** - * - */ - Value(bool bval) - { - init(); - setBoolean(bval); - } - - /** - * - */ - Value(double dval) - { - init(); - setDouble(dval); - } - - /** - * - */ - Value(const String &sval) - { - init(); - setString(sval); - } - - /** - * - */ - Value(const Value &other) - { - assign(other); - } - - /** - * - */ - Value &operator=(const Value &other) - { - assign(other); - return *this; - } - - /** - * - */ - virtual ~Value() - { - } - - /** - * - */ - int getType() - { return type; } - - /** - * - */ - void setBoolean(bool val) - { type = BIND_BOOLEAN; ival = (int)val; } - - /** - * - */ - bool getBoolean() - { - if (type == BIND_BOOLEAN) - return (bool)ival; - else - return false; - } - - /** - * - */ - void setInt(int val) - { type = BIND_INT; ival = val; } - - /** - * - */ - bool getInt() - { - if (type == BIND_INT) - return ival; - else - return 0; - } - - /** - * - */ - void setDouble(double val) - { type = BIND_DOUBLE; dval = val; } - - /** - * - */ - double getDouble() - { - if (type == BIND_DOUBLE) - return dval; - else - return 0.0; - } - - /** - * - */ - void setString(const String &val) - { type = BIND_STRING; sval = val; } - - /** - * - */ - String getString() - { - if (type == BIND_STRING) - return sval; - else - return ""; - } - - -private: - - void init() - { - type = BIND_INT; - ival = 0; - dval = 0.0; - sval = ""; - } - - void assign(const Value &other) - { - type = other.type; - ival = other.ival; - dval = other.dval; - sval = other.sval; - } - - int type; - long ival; - double dval; - String sval; - -}; - - - - - -/** - * - */ -class JavaBindery -{ -public: - - /** - * - */ - JavaBindery() - {} - - /** - * - */ - virtual ~JavaBindery() - {} - - /** - * - */ - virtual bool loadJVM() - { - return false; - } - - /** - * - */ - virtual bool callStatic(int /*type*/, - const String &/*className*/, - const String &/*methodName*/, - const String &/*signature*/, - const std::vector &/*params*/, - Value &/*retval*/) - { - return false; - } - - /** - * - */ - virtual bool callMain(const String &/*className*/, - const std::vector &/*args*/) - { - return false; - } - - /** - * - */ - virtual bool isLoaded() - { - return false; - } - - /** - * - */ - virtual bool scriptRun(const String &/*lang*/, const String &/*script*/) - { - return false; - } - - /** - * - */ - virtual bool scriptRunFile(const String &/*lang*/, const String &/*fileName*/) - { - return false; - } - - /** - * - */ - virtual bool showConsole() - { - return false; - } - - /** - * - */ - virtual bool doBinding() - { - return false; - } - - /** - * - */ - virtual String getException() - { - return ""; - } - - virtual String logGet() - { - return logBuf; - } - - virtual void logClear() - { - logBuf.clear(); - } - - virtual void log(int ch) - { - logBuf.push_back((char)ch); - if (ch == '\n' || ch == '\r') - { - g_message("%s", logBuf.c_str()); - logBuf.clear(); - } - } - - - /** - * Return a singleton instance of this bindery - */ - static JavaBindery *getInstance(); - -protected: - - - String stdOutBuf; - String stdErrBuf; - String logBuf; - -}; - - - - - -} // namespace Bind -} // namespace Inkscape - -#endif // SEEN_JAVABIND_H -//######################################################################## -//# E N D O F F I L E -//######################################################################## - diff --git a/src/bind/javainc/jni.h b/src/bind/javainc/jni.h deleted file mode 100644 index 5989c043f..000000000 --- a/src/bind/javainc/jni.h +++ /dev/null @@ -1,1959 +0,0 @@ -/* - * Copyright 1996-2006 Sun Microsystems, Inc. All Rights Reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -/* - * We used part of Netscape's Java Runtime Interface (JRI) as the starting - * point of our design and implementation. - */ - -/* *************************************************************************** - * Java Runtime Interface - * Copyright (c) 1996 Netscape Communications Corporation. All rights reserved. - *****************************************************************************/ - -#ifndef _JAVASOFT_JNI_H_ -#define _JAVASOFT_JNI_H_ - -#include -#include - -/* jni_md.h contains the machine-dependent typedefs for jbyte, jint - and jlong */ - -#include "jni_md.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * JNI Types - */ - -#ifndef JNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H - -typedef unsigned char jboolean; -typedef unsigned short jchar; -typedef short jshort; -typedef float jfloat; -typedef double jdouble; - -typedef jint jsize; - -#ifdef __cplusplus - -class _jobject {}; -class _jclass : public _jobject {}; -class _jthrowable : public _jobject {}; -class _jstring : public _jobject {}; -class _jarray : public _jobject {}; -class _jbooleanArray : public _jarray {}; -class _jbyteArray : public _jarray {}; -class _jcharArray : public _jarray {}; -class _jshortArray : public _jarray {}; -class _jintArray : public _jarray {}; -class _jlongArray : public _jarray {}; -class _jfloatArray : public _jarray {}; -class _jdoubleArray : public _jarray {}; -class _jobjectArray : public _jarray {}; - -typedef _jobject *jobject; -typedef _jclass *jclass; -typedef _jthrowable *jthrowable; -typedef _jstring *jstring; -typedef _jarray *jarray; -typedef _jbooleanArray *jbooleanArray; -typedef _jbyteArray *jbyteArray; -typedef _jcharArray *jcharArray; -typedef _jshortArray *jshortArray; -typedef _jintArray *jintArray; -typedef _jlongArray *jlongArray; -typedef _jfloatArray *jfloatArray; -typedef _jdoubleArray *jdoubleArray; -typedef _jobjectArray *jobjectArray; - -#else - -struct _jobject; - -typedef struct _jobject *jobject; -typedef jobject jclass; -typedef jobject jthrowable; -typedef jobject jstring; -typedef jobject jarray; -typedef jarray jbooleanArray; -typedef jarray jbyteArray; -typedef jarray jcharArray; -typedef jarray jshortArray; -typedef jarray jintArray; -typedef jarray jlongArray; -typedef jarray jfloatArray; -typedef jarray jdoubleArray; -typedef jarray jobjectArray; - -#endif - -typedef jobject jweak; - -typedef union jvalue { - jboolean z; - jbyte b; - jchar c; - jshort s; - jint i; - jlong j; - jfloat f; - jdouble d; - jobject l; -} jvalue; - -struct _jfieldID; -typedef struct _jfieldID *jfieldID; - -struct _jmethodID; -typedef struct _jmethodID *jmethodID; - -/* Return values from jobjectRefType */ -typedef enum _jobjectType { - JNIInvalidRefType = 0, - JNILocalRefType = 1, - JNIGlobalRefType = 2, - JNIWeakGlobalRefType = 3 -} jobjectRefType; - - -#endif /* JNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H */ - -/* - * jboolean constants - */ - -#define JNI_FALSE 0 -#define JNI_TRUE 1 - -/* - * possible return values for JNI functions. - */ - -#define JNI_OK 0 /* success */ -#define JNI_ERR (-1) /* unknown error */ -#define JNI_EDETACHED (-2) /* thread detached from the VM */ -#define JNI_EVERSION (-3) /* JNI version error */ -#define JNI_ENOMEM (-4) /* not enough memory */ -#define JNI_EEXIST (-5) /* VM already created */ -#define JNI_EINVAL (-6) /* invalid arguments */ - -/* - * used in ReleaseScalarArrayElements - */ - -#define JNI_COMMIT 1 -#define JNI_ABORT 2 - -/* - * used in RegisterNatives to describe native method name, signature, - * and function pointer. - */ - -typedef struct { - char *name; - char *signature; - void *fnPtr; -} JNINativeMethod; - -/* - * JNI Native Method Interface. - */ - -struct JNINativeInterface_; - -struct JNIEnv_; - -#ifdef __cplusplus -typedef JNIEnv_ JNIEnv; -#else -typedef const struct JNINativeInterface_ *JNIEnv; -#endif - -/* - * JNI Invocation Interface. - */ - -struct JNIInvokeInterface_; - -struct JavaVM_; - -#ifdef __cplusplus -typedef JavaVM_ JavaVM; -#else -typedef const struct JNIInvokeInterface_ *JavaVM; -#endif - -struct JNINativeInterface_ { - void *reserved0; - void *reserved1; - void *reserved2; - - void *reserved3; - jint (JNICALL *GetVersion)(JNIEnv *env); - - jclass (JNICALL *DefineClass) - (JNIEnv *env, const char *name, jobject loader, const jbyte *buf, - jsize len); - jclass (JNICALL *FindClass) - (JNIEnv *env, const char *name); - - jmethodID (JNICALL *FromReflectedMethod) - (JNIEnv *env, jobject method); - jfieldID (JNICALL *FromReflectedField) - (JNIEnv *env, jobject field); - - jobject (JNICALL *ToReflectedMethod) - (JNIEnv *env, jclass cls, jmethodID methodID, jboolean isStatic); - - jclass (JNICALL *GetSuperclass) - (JNIEnv *env, jclass sub); - jboolean (JNICALL *IsAssignableFrom) - (JNIEnv *env, jclass sub, jclass sup); - - jobject (JNICALL *ToReflectedField) - (JNIEnv *env, jclass cls, jfieldID fieldID, jboolean isStatic); - - jint (JNICALL *Throw) - (JNIEnv *env, jthrowable obj); - jint (JNICALL *ThrowNew) - (JNIEnv *env, jclass clazz, const char *msg); - jthrowable (JNICALL *ExceptionOccurred) - (JNIEnv *env); - void (JNICALL *ExceptionDescribe) - (JNIEnv *env); - void (JNICALL *ExceptionClear) - (JNIEnv *env); - void (JNICALL *FatalError) - (JNIEnv *env, const char *msg); - - jint (JNICALL *PushLocalFrame) - (JNIEnv *env, jint capacity); - jobject (JNICALL *PopLocalFrame) - (JNIEnv *env, jobject result); - - jobject (JNICALL *NewGlobalRef) - (JNIEnv *env, jobject lobj); - void (JNICALL *DeleteGlobalRef) - (JNIEnv *env, jobject gref); - void (JNICALL *DeleteLocalRef) - (JNIEnv *env, jobject obj); - jboolean (JNICALL *IsSameObject) - (JNIEnv *env, jobject obj1, jobject obj2); - jobject (JNICALL *NewLocalRef) - (JNIEnv *env, jobject ref); - jint (JNICALL *EnsureLocalCapacity) - (JNIEnv *env, jint capacity); - - jobject (JNICALL *AllocObject) - (JNIEnv *env, jclass clazz); - jobject (JNICALL *NewObject) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jobject (JNICALL *NewObjectV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jobject (JNICALL *NewObjectA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jclass (JNICALL *GetObjectClass) - (JNIEnv *env, jobject obj); - jboolean (JNICALL *IsInstanceOf) - (JNIEnv *env, jobject obj, jclass clazz); - - jmethodID (JNICALL *GetMethodID) - (JNIEnv *env, jclass clazz, const char *name, const char *sig); - - jobject (JNICALL *CallObjectMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jobject (JNICALL *CallObjectMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jobject (JNICALL *CallObjectMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args); - - jboolean (JNICALL *CallBooleanMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jboolean (JNICALL *CallBooleanMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jboolean (JNICALL *CallBooleanMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args); - - jbyte (JNICALL *CallByteMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jbyte (JNICALL *CallByteMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jbyte (JNICALL *CallByteMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jchar (JNICALL *CallCharMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jchar (JNICALL *CallCharMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jchar (JNICALL *CallCharMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jshort (JNICALL *CallShortMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jshort (JNICALL *CallShortMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jshort (JNICALL *CallShortMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jint (JNICALL *CallIntMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jint (JNICALL *CallIntMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jint (JNICALL *CallIntMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jlong (JNICALL *CallLongMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jlong (JNICALL *CallLongMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jlong (JNICALL *CallLongMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jfloat (JNICALL *CallFloatMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jfloat (JNICALL *CallFloatMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jfloat (JNICALL *CallFloatMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - jdouble (JNICALL *CallDoubleMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - jdouble (JNICALL *CallDoubleMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - jdouble (JNICALL *CallDoubleMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args); - - void (JNICALL *CallVoidMethod) - (JNIEnv *env, jobject obj, jmethodID methodID, ...); - void (JNICALL *CallVoidMethodV) - (JNIEnv *env, jobject obj, jmethodID methodID, va_list args); - void (JNICALL *CallVoidMethodA) - (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args); - - jobject (JNICALL *CallNonvirtualObjectMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jobject (JNICALL *CallNonvirtualObjectMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jobject (JNICALL *CallNonvirtualObjectMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue * args); - - jboolean (JNICALL *CallNonvirtualBooleanMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jboolean (JNICALL *CallNonvirtualBooleanMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jboolean (JNICALL *CallNonvirtualBooleanMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue * args); - - jbyte (JNICALL *CallNonvirtualByteMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jbyte (JNICALL *CallNonvirtualByteMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jbyte (JNICALL *CallNonvirtualByteMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jchar (JNICALL *CallNonvirtualCharMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jchar (JNICALL *CallNonvirtualCharMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jchar (JNICALL *CallNonvirtualCharMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jshort (JNICALL *CallNonvirtualShortMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jshort (JNICALL *CallNonvirtualShortMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jshort (JNICALL *CallNonvirtualShortMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jint (JNICALL *CallNonvirtualIntMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jint (JNICALL *CallNonvirtualIntMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jint (JNICALL *CallNonvirtualIntMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jlong (JNICALL *CallNonvirtualLongMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jlong (JNICALL *CallNonvirtualLongMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jlong (JNICALL *CallNonvirtualLongMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jfloat (JNICALL *CallNonvirtualFloatMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jfloat (JNICALL *CallNonvirtualFloatMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jfloat (JNICALL *CallNonvirtualFloatMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - jdouble (JNICALL *CallNonvirtualDoubleMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - jdouble (JNICALL *CallNonvirtualDoubleMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - jdouble (JNICALL *CallNonvirtualDoubleMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue *args); - - void (JNICALL *CallNonvirtualVoidMethod) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...); - void (JNICALL *CallNonvirtualVoidMethodV) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - va_list args); - void (JNICALL *CallNonvirtualVoidMethodA) - (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, - const jvalue * args); - - jfieldID (JNICALL *GetFieldID) - (JNIEnv *env, jclass clazz, const char *name, const char *sig); - - jobject (JNICALL *GetObjectField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jboolean (JNICALL *GetBooleanField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jbyte (JNICALL *GetByteField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jchar (JNICALL *GetCharField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jshort (JNICALL *GetShortField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jint (JNICALL *GetIntField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jlong (JNICALL *GetLongField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jfloat (JNICALL *GetFloatField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - jdouble (JNICALL *GetDoubleField) - (JNIEnv *env, jobject obj, jfieldID fieldID); - - void (JNICALL *SetObjectField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jobject val); - void (JNICALL *SetBooleanField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jboolean val); - void (JNICALL *SetByteField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jbyte val); - void (JNICALL *SetCharField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jchar val); - void (JNICALL *SetShortField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jshort val); - void (JNICALL *SetIntField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jint val); - void (JNICALL *SetLongField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jlong val); - void (JNICALL *SetFloatField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jfloat val); - void (JNICALL *SetDoubleField) - (JNIEnv *env, jobject obj, jfieldID fieldID, jdouble val); - - jmethodID (JNICALL *GetStaticMethodID) - (JNIEnv *env, jclass clazz, const char *name, const char *sig); - - jobject (JNICALL *CallStaticObjectMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jobject (JNICALL *CallStaticObjectMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jobject (JNICALL *CallStaticObjectMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jboolean (JNICALL *CallStaticBooleanMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jboolean (JNICALL *CallStaticBooleanMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jboolean (JNICALL *CallStaticBooleanMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jbyte (JNICALL *CallStaticByteMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jbyte (JNICALL *CallStaticByteMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jbyte (JNICALL *CallStaticByteMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jchar (JNICALL *CallStaticCharMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jchar (JNICALL *CallStaticCharMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jchar (JNICALL *CallStaticCharMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jshort (JNICALL *CallStaticShortMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jshort (JNICALL *CallStaticShortMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jshort (JNICALL *CallStaticShortMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jint (JNICALL *CallStaticIntMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jint (JNICALL *CallStaticIntMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jint (JNICALL *CallStaticIntMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jlong (JNICALL *CallStaticLongMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jlong (JNICALL *CallStaticLongMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jlong (JNICALL *CallStaticLongMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jfloat (JNICALL *CallStaticFloatMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jfloat (JNICALL *CallStaticFloatMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jfloat (JNICALL *CallStaticFloatMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - jdouble (JNICALL *CallStaticDoubleMethod) - (JNIEnv *env, jclass clazz, jmethodID methodID, ...); - jdouble (JNICALL *CallStaticDoubleMethodV) - (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args); - jdouble (JNICALL *CallStaticDoubleMethodA) - (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args); - - void (JNICALL *CallStaticVoidMethod) - (JNIEnv *env, jclass cls, jmethodID methodID, ...); - void (JNICALL *CallStaticVoidMethodV) - (JNIEnv *env, jclass cls, jmethodID methodID, va_list args); - void (JNICALL *CallStaticVoidMethodA) - (JNIEnv *env, jclass cls, jmethodID methodID, const jvalue * args); - - jfieldID (JNICALL *GetStaticFieldID) - (JNIEnv *env, jclass clazz, const char *name, const char *sig); - jobject (JNICALL *GetStaticObjectField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jboolean (JNICALL *GetStaticBooleanField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jbyte (JNICALL *GetStaticByteField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jchar (JNICALL *GetStaticCharField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jshort (JNICALL *GetStaticShortField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jint (JNICALL *GetStaticIntField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jlong (JNICALL *GetStaticLongField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jfloat (JNICALL *GetStaticFloatField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - jdouble (JNICALL *GetStaticDoubleField) - (JNIEnv *env, jclass clazz, jfieldID fieldID); - - void (JNICALL *SetStaticObjectField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jobject value); - void (JNICALL *SetStaticBooleanField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jboolean value); - void (JNICALL *SetStaticByteField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jbyte value); - void (JNICALL *SetStaticCharField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jchar value); - void (JNICALL *SetStaticShortField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jshort value); - void (JNICALL *SetStaticIntField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jint value); - void (JNICALL *SetStaticLongField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jlong value); - void (JNICALL *SetStaticFloatField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jfloat value); - void (JNICALL *SetStaticDoubleField) - (JNIEnv *env, jclass clazz, jfieldID fieldID, jdouble value); - - jstring (JNICALL *NewString) - (JNIEnv *env, const jchar *unicode, jsize len); - jsize (JNICALL *GetStringLength) - (JNIEnv *env, jstring str); - const jchar *(JNICALL *GetStringChars) - (JNIEnv *env, jstring str, jboolean *isCopy); - void (JNICALL *ReleaseStringChars) - (JNIEnv *env, jstring str, const jchar *chars); - - jstring (JNICALL *NewStringUTF) - (JNIEnv *env, const char *utf); - jsize (JNICALL *GetStringUTFLength) - (JNIEnv *env, jstring str); - const char* (JNICALL *GetStringUTFChars) - (JNIEnv *env, jstring str, jboolean *isCopy); - void (JNICALL *ReleaseStringUTFChars) - (JNIEnv *env, jstring str, const char* chars); - - - jsize (JNICALL *GetArrayLength) - (JNIEnv *env, jarray array); - - jobjectArray (JNICALL *NewObjectArray) - (JNIEnv *env, jsize len, jclass clazz, jobject init); - jobject (JNICALL *GetObjectArrayElement) - (JNIEnv *env, jobjectArray array, jsize index); - void (JNICALL *SetObjectArrayElement) - (JNIEnv *env, jobjectArray array, jsize index, jobject val); - - jbooleanArray (JNICALL *NewBooleanArray) - (JNIEnv *env, jsize len); - jbyteArray (JNICALL *NewByteArray) - (JNIEnv *env, jsize len); - jcharArray (JNICALL *NewCharArray) - (JNIEnv *env, jsize len); - jshortArray (JNICALL *NewShortArray) - (JNIEnv *env, jsize len); - jintArray (JNICALL *NewIntArray) - (JNIEnv *env, jsize len); - jlongArray (JNICALL *NewLongArray) - (JNIEnv *env, jsize len); - jfloatArray (JNICALL *NewFloatArray) - (JNIEnv *env, jsize len); - jdoubleArray (JNICALL *NewDoubleArray) - (JNIEnv *env, jsize len); - - jboolean * (JNICALL *GetBooleanArrayElements) - (JNIEnv *env, jbooleanArray array, jboolean *isCopy); - jbyte * (JNICALL *GetByteArrayElements) - (JNIEnv *env, jbyteArray array, jboolean *isCopy); - jchar * (JNICALL *GetCharArrayElements) - (JNIEnv *env, jcharArray array, jboolean *isCopy); - jshort * (JNICALL *GetShortArrayElements) - (JNIEnv *env, jshortArray array, jboolean *isCopy); - jint * (JNICALL *GetIntArrayElements) - (JNIEnv *env, jintArray array, jboolean *isCopy); - jlong * (JNICALL *GetLongArrayElements) - (JNIEnv *env, jlongArray array, jboolean *isCopy); - jfloat * (JNICALL *GetFloatArrayElements) - (JNIEnv *env, jfloatArray array, jboolean *isCopy); - jdouble * (JNICALL *GetDoubleArrayElements) - (JNIEnv *env, jdoubleArray array, jboolean *isCopy); - - void (JNICALL *ReleaseBooleanArrayElements) - (JNIEnv *env, jbooleanArray array, jboolean *elems, jint mode); - void (JNICALL *ReleaseByteArrayElements) - (JNIEnv *env, jbyteArray array, jbyte *elems, jint mode); - void (JNICALL *ReleaseCharArrayElements) - (JNIEnv *env, jcharArray array, jchar *elems, jint mode); - void (JNICALL *ReleaseShortArrayElements) - (JNIEnv *env, jshortArray array, jshort *elems, jint mode); - void (JNICALL *ReleaseIntArrayElements) - (JNIEnv *env, jintArray array, jint *elems, jint mode); - void (JNICALL *ReleaseLongArrayElements) - (JNIEnv *env, jlongArray array, jlong *elems, jint mode); - void (JNICALL *ReleaseFloatArrayElements) - (JNIEnv *env, jfloatArray array, jfloat *elems, jint mode); - void (JNICALL *ReleaseDoubleArrayElements) - (JNIEnv *env, jdoubleArray array, jdouble *elems, jint mode); - - void (JNICALL *GetBooleanArrayRegion) - (JNIEnv *env, jbooleanArray array, jsize start, jsize l, jboolean *buf); - void (JNICALL *GetByteArrayRegion) - (JNIEnv *env, jbyteArray array, jsize start, jsize len, jbyte *buf); - void (JNICALL *GetCharArrayRegion) - (JNIEnv *env, jcharArray array, jsize start, jsize len, jchar *buf); - void (JNICALL *GetShortArrayRegion) - (JNIEnv *env, jshortArray array, jsize start, jsize len, jshort *buf); - void (JNICALL *GetIntArrayRegion) - (JNIEnv *env, jintArray array, jsize start, jsize len, jint *buf); - void (JNICALL *GetLongArrayRegion) - (JNIEnv *env, jlongArray array, jsize start, jsize len, jlong *buf); - void (JNICALL *GetFloatArrayRegion) - (JNIEnv *env, jfloatArray array, jsize start, jsize len, jfloat *buf); - void (JNICALL *GetDoubleArrayRegion) - (JNIEnv *env, jdoubleArray array, jsize start, jsize len, jdouble *buf); - - void (JNICALL *SetBooleanArrayRegion) - (JNIEnv *env, jbooleanArray array, jsize start, jsize l, const jboolean *buf); - void (JNICALL *SetByteArrayRegion) - (JNIEnv *env, jbyteArray array, jsize start, jsize len, const jbyte *buf); - void (JNICALL *SetCharArrayRegion) - (JNIEnv *env, jcharArray array, jsize start, jsize len, const jchar *buf); - void (JNICALL *SetShortArrayRegion) - (JNIEnv *env, jshortArray array, jsize start, jsize len, const jshort *buf); - void (JNICALL *SetIntArrayRegion) - (JNIEnv *env, jintArray array, jsize start, jsize len, const jint *buf); - void (JNICALL *SetLongArrayRegion) - (JNIEnv *env, jlongArray array, jsize start, jsize len, const jlong *buf); - void (JNICALL *SetFloatArrayRegion) - (JNIEnv *env, jfloatArray array, jsize start, jsize len, const jfloat *buf); - void (JNICALL *SetDoubleArrayRegion) - (JNIEnv *env, jdoubleArray array, jsize start, jsize len, const jdouble *buf); - - jint (JNICALL *RegisterNatives) - (JNIEnv *env, jclass clazz, const JNINativeMethod *methods, - jint nMethods); - jint (JNICALL *UnregisterNatives) - (JNIEnv *env, jclass clazz); - - jint (JNICALL *MonitorEnter) - (JNIEnv *env, jobject obj); - jint (JNICALL *MonitorExit) - (JNIEnv *env, jobject obj); - - jint (JNICALL *GetJavaVM) - (JNIEnv *env, JavaVM **vm); - - void (JNICALL *GetStringRegion) - (JNIEnv *env, jstring str, jsize start, jsize len, jchar *buf); - void (JNICALL *GetStringUTFRegion) - (JNIEnv *env, jstring str, jsize start, jsize len, char *buf); - - void * (JNICALL *GetPrimitiveArrayCritical) - (JNIEnv *env, jarray array, jboolean *isCopy); - void (JNICALL *ReleasePrimitiveArrayCritical) - (JNIEnv *env, jarray array, void *carray, jint mode); - - const jchar * (JNICALL *GetStringCritical) - (JNIEnv *env, jstring string, jboolean *isCopy); - void (JNICALL *ReleaseStringCritical) - (JNIEnv *env, jstring string, const jchar *cstring); - - jweak (JNICALL *NewWeakGlobalRef) - (JNIEnv *env, jobject obj); - void (JNICALL *DeleteWeakGlobalRef) - (JNIEnv *env, jweak ref); - - jboolean (JNICALL *ExceptionCheck) - (JNIEnv *env); - - jobject (JNICALL *NewDirectByteBuffer) - (JNIEnv* env, void* address, jlong capacity); - void* (JNICALL *GetDirectBufferAddress) - (JNIEnv* env, jobject buf); - jlong (JNICALL *GetDirectBufferCapacity) - (JNIEnv* env, jobject buf); - - /* New JNI 1.6 Features */ - - jobjectRefType (JNICALL *GetObjectRefType) - (JNIEnv* env, jobject obj); -}; - -/* - * We use inlined functions for C++ so that programmers can write: - * - * env->FindClass("java/lang/String") - * - * in C++ rather than: - * - * (*env)->FindClass(env, "java/lang/String") - * - * in C. - */ - -struct JNIEnv_ { - const struct JNINativeInterface_ *functions; -#ifdef __cplusplus - - jint GetVersion() { - return functions->GetVersion(this); - } - jclass DefineClass(const char *name, jobject loader, const jbyte *buf, - jsize len) { - return functions->DefineClass(this, name, loader, buf, len); - } - jclass FindClass(const char *name) { - return functions->FindClass(this, name); - } - jmethodID FromReflectedMethod(jobject method) { - return functions->FromReflectedMethod(this,method); - } - jfieldID FromReflectedField(jobject field) { - return functions->FromReflectedField(this,field); - } - - jobject ToReflectedMethod(jclass cls, jmethodID methodID, jboolean isStatic) { - return functions->ToReflectedMethod(this, cls, methodID, isStatic); - } - - jclass GetSuperclass(jclass sub) { - return functions->GetSuperclass(this, sub); - } - jboolean IsAssignableFrom(jclass sub, jclass sup) { - return functions->IsAssignableFrom(this, sub, sup); - } - - jobject ToReflectedField(jclass cls, jfieldID fieldID, jboolean isStatic) { - return functions->ToReflectedField(this,cls,fieldID,isStatic); - } - - jint Throw(jthrowable obj) { - return functions->Throw(this, obj); - } - jint ThrowNew(jclass clazz, const char *msg) { - return functions->ThrowNew(this, clazz, msg); - } - jthrowable ExceptionOccurred() { - return functions->ExceptionOccurred(this); - } - void ExceptionDescribe() { - functions->ExceptionDescribe(this); - } - void ExceptionClear() { - functions->ExceptionClear(this); - } - void FatalError(const char *msg) { - functions->FatalError(this, msg); - } - - jint PushLocalFrame(jint capacity) { - return functions->PushLocalFrame(this,capacity); - } - jobject PopLocalFrame(jobject result) { - return functions->PopLocalFrame(this,result); - } - - jobject NewGlobalRef(jobject lobj) { - return functions->NewGlobalRef(this,lobj); - } - void DeleteGlobalRef(jobject gref) { - functions->DeleteGlobalRef(this,gref); - } - void DeleteLocalRef(jobject obj) { - functions->DeleteLocalRef(this, obj); - } - - jboolean IsSameObject(jobject obj1, jobject obj2) { - return functions->IsSameObject(this,obj1,obj2); - } - - jobject NewLocalRef(jobject ref) { - return functions->NewLocalRef(this,ref); - } - jint EnsureLocalCapacity(jint capacity) { - return functions->EnsureLocalCapacity(this,capacity); - } - - jobject AllocObject(jclass clazz) { - return functions->AllocObject(this,clazz); - } - jobject NewObject(jclass clazz, jmethodID methodID, ...) { - va_list args; - jobject result; - va_start(args, methodID); - result = functions->NewObjectV(this,clazz,methodID,args); - va_end(args); - return result; - } - jobject NewObjectV(jclass clazz, jmethodID methodID, - va_list args) { - return functions->NewObjectV(this,clazz,methodID,args); - } - jobject NewObjectA(jclass clazz, jmethodID methodID, - const jvalue *args) { - return functions->NewObjectA(this,clazz,methodID,args); - } - - jclass GetObjectClass(jobject obj) { - return functions->GetObjectClass(this,obj); - } - jboolean IsInstanceOf(jobject obj, jclass clazz) { - return functions->IsInstanceOf(this,obj,clazz); - } - - jmethodID GetMethodID(jclass clazz, const char *name, - const char *sig) { - return functions->GetMethodID(this,clazz,name,sig); - } - - jobject CallObjectMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jobject result; - va_start(args,methodID); - result = functions->CallObjectMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jobject CallObjectMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallObjectMethodV(this,obj,methodID,args); - } - jobject CallObjectMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallObjectMethodA(this,obj,methodID,args); - } - - jboolean CallBooleanMethod(jobject obj, - jmethodID methodID, ...) { - va_list args; - jboolean result; - va_start(args,methodID); - result = functions->CallBooleanMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jboolean CallBooleanMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallBooleanMethodV(this,obj,methodID,args); - } - jboolean CallBooleanMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallBooleanMethodA(this,obj,methodID, args); - } - - jbyte CallByteMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jbyte result; - va_start(args,methodID); - result = functions->CallByteMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jbyte CallByteMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallByteMethodV(this,obj,methodID,args); - } - jbyte CallByteMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallByteMethodA(this,obj,methodID,args); - } - - jchar CallCharMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jchar result; - va_start(args,methodID); - result = functions->CallCharMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jchar CallCharMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallCharMethodV(this,obj,methodID,args); - } - jchar CallCharMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallCharMethodA(this,obj,methodID,args); - } - - jshort CallShortMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jshort result; - va_start(args,methodID); - result = functions->CallShortMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jshort CallShortMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallShortMethodV(this,obj,methodID,args); - } - jshort CallShortMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallShortMethodA(this,obj,methodID,args); - } - - jint CallIntMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jint result; - va_start(args,methodID); - result = functions->CallIntMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jint CallIntMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallIntMethodV(this,obj,methodID,args); - } - jint CallIntMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallIntMethodA(this,obj,methodID,args); - } - - jlong CallLongMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jlong result; - va_start(args,methodID); - result = functions->CallLongMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jlong CallLongMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallLongMethodV(this,obj,methodID,args); - } - jlong CallLongMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallLongMethodA(this,obj,methodID,args); - } - - jfloat CallFloatMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jfloat result; - va_start(args,methodID); - result = functions->CallFloatMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jfloat CallFloatMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallFloatMethodV(this,obj,methodID,args); - } - jfloat CallFloatMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallFloatMethodA(this,obj,methodID,args); - } - - jdouble CallDoubleMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - jdouble result; - va_start(args,methodID); - result = functions->CallDoubleMethodV(this,obj,methodID,args); - va_end(args); - return result; - } - jdouble CallDoubleMethodV(jobject obj, jmethodID methodID, - va_list args) { - return functions->CallDoubleMethodV(this,obj,methodID,args); - } - jdouble CallDoubleMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - return functions->CallDoubleMethodA(this,obj,methodID,args); - } - - void CallVoidMethod(jobject obj, jmethodID methodID, ...) { - va_list args; - va_start(args,methodID); - functions->CallVoidMethodV(this,obj,methodID,args); - va_end(args); - } - void CallVoidMethodV(jobject obj, jmethodID methodID, - va_list args) { - functions->CallVoidMethodV(this,obj,methodID,args); - } - void CallVoidMethodA(jobject obj, jmethodID methodID, - const jvalue * args) { - functions->CallVoidMethodA(this,obj,methodID,args); - } - - jobject CallNonvirtualObjectMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jobject result; - va_start(args,methodID); - result = functions->CallNonvirtualObjectMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jobject CallNonvirtualObjectMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualObjectMethodV(this,obj,clazz, - methodID,args); - } - jobject CallNonvirtualObjectMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualObjectMethodA(this,obj,clazz, - methodID,args); - } - - jboolean CallNonvirtualBooleanMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jboolean result; - va_start(args,methodID); - result = functions->CallNonvirtualBooleanMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jboolean CallNonvirtualBooleanMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualBooleanMethodV(this,obj,clazz, - methodID,args); - } - jboolean CallNonvirtualBooleanMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualBooleanMethodA(this,obj,clazz, - methodID, args); - } - - jbyte CallNonvirtualByteMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jbyte result; - va_start(args,methodID); - result = functions->CallNonvirtualByteMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jbyte CallNonvirtualByteMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualByteMethodV(this,obj,clazz, - methodID,args); - } - jbyte CallNonvirtualByteMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualByteMethodA(this,obj,clazz, - methodID,args); - } - - jchar CallNonvirtualCharMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jchar result; - va_start(args,methodID); - result = functions->CallNonvirtualCharMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jchar CallNonvirtualCharMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualCharMethodV(this,obj,clazz, - methodID,args); - } - jchar CallNonvirtualCharMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualCharMethodA(this,obj,clazz, - methodID,args); - } - - jshort CallNonvirtualShortMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jshort result; - va_start(args,methodID); - result = functions->CallNonvirtualShortMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jshort CallNonvirtualShortMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualShortMethodV(this,obj,clazz, - methodID,args); - } - jshort CallNonvirtualShortMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualShortMethodA(this,obj,clazz, - methodID,args); - } - - jint CallNonvirtualIntMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jint result; - va_start(args,methodID); - result = functions->CallNonvirtualIntMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jint CallNonvirtualIntMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualIntMethodV(this,obj,clazz, - methodID,args); - } - jint CallNonvirtualIntMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualIntMethodA(this,obj,clazz, - methodID,args); - } - - jlong CallNonvirtualLongMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jlong result; - va_start(args,methodID); - result = functions->CallNonvirtualLongMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jlong CallNonvirtualLongMethodV(jobject obj, jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallNonvirtualLongMethodV(this,obj,clazz, - methodID,args); - } - jlong CallNonvirtualLongMethodA(jobject obj, jclass clazz, - jmethodID methodID, const jvalue * args) { - return functions->CallNonvirtualLongMethodA(this,obj,clazz, - methodID,args); - } - - jfloat CallNonvirtualFloatMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jfloat result; - va_start(args,methodID); - result = functions->CallNonvirtualFloatMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jfloat CallNonvirtualFloatMethodV(jobject obj, jclass clazz, - jmethodID methodID, - va_list args) { - return functions->CallNonvirtualFloatMethodV(this,obj,clazz, - methodID,args); - } - jfloat CallNonvirtualFloatMethodA(jobject obj, jclass clazz, - jmethodID methodID, - const jvalue * args) { - return functions->CallNonvirtualFloatMethodA(this,obj,clazz, - methodID,args); - } - - jdouble CallNonvirtualDoubleMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - jdouble result; - va_start(args,methodID); - result = functions->CallNonvirtualDoubleMethodV(this,obj,clazz, - methodID,args); - va_end(args); - return result; - } - jdouble CallNonvirtualDoubleMethodV(jobject obj, jclass clazz, - jmethodID methodID, - va_list args) { - return functions->CallNonvirtualDoubleMethodV(this,obj,clazz, - methodID,args); - } - jdouble CallNonvirtualDoubleMethodA(jobject obj, jclass clazz, - jmethodID methodID, - const jvalue * args) { - return functions->CallNonvirtualDoubleMethodA(this,obj,clazz, - methodID,args); - } - - void CallNonvirtualVoidMethod(jobject obj, jclass clazz, - jmethodID methodID, ...) { - va_list args; - va_start(args,methodID); - functions->CallNonvirtualVoidMethodV(this,obj,clazz,methodID,args); - va_end(args); - } - void CallNonvirtualVoidMethodV(jobject obj, jclass clazz, - jmethodID methodID, - va_list args) { - functions->CallNonvirtualVoidMethodV(this,obj,clazz,methodID,args); - } - void CallNonvirtualVoidMethodA(jobject obj, jclass clazz, - jmethodID methodID, - const jvalue * args) { - functions->CallNonvirtualVoidMethodA(this,obj,clazz,methodID,args); - } - - jfieldID GetFieldID(jclass clazz, const char *name, - const char *sig) { - return functions->GetFieldID(this,clazz,name,sig); - } - - jobject GetObjectField(jobject obj, jfieldID fieldID) { - return functions->GetObjectField(this,obj,fieldID); - } - jboolean GetBooleanField(jobject obj, jfieldID fieldID) { - return functions->GetBooleanField(this,obj,fieldID); - } - jbyte GetByteField(jobject obj, jfieldID fieldID) { - return functions->GetByteField(this,obj,fieldID); - } - jchar GetCharField(jobject obj, jfieldID fieldID) { - return functions->GetCharField(this,obj,fieldID); - } - jshort GetShortField(jobject obj, jfieldID fieldID) { - return functions->GetShortField(this,obj,fieldID); - } - jint GetIntField(jobject obj, jfieldID fieldID) { - return functions->GetIntField(this,obj,fieldID); - } - jlong GetLongField(jobject obj, jfieldID fieldID) { - return functions->GetLongField(this,obj,fieldID); - } - jfloat GetFloatField(jobject obj, jfieldID fieldID) { - return functions->GetFloatField(this,obj,fieldID); - } - jdouble GetDoubleField(jobject obj, jfieldID fieldID) { - return functions->GetDoubleField(this,obj,fieldID); - } - - void SetObjectField(jobject obj, jfieldID fieldID, jobject val) { - functions->SetObjectField(this,obj,fieldID,val); - } - void SetBooleanField(jobject obj, jfieldID fieldID, - jboolean val) { - functions->SetBooleanField(this,obj,fieldID,val); - } - void SetByteField(jobject obj, jfieldID fieldID, - jbyte val) { - functions->SetByteField(this,obj,fieldID,val); - } - void SetCharField(jobject obj, jfieldID fieldID, - jchar val) { - functions->SetCharField(this,obj,fieldID,val); - } - void SetShortField(jobject obj, jfieldID fieldID, - jshort val) { - functions->SetShortField(this,obj,fieldID,val); - } - void SetIntField(jobject obj, jfieldID fieldID, - jint val) { - functions->SetIntField(this,obj,fieldID,val); - } - void SetLongField(jobject obj, jfieldID fieldID, - jlong val) { - functions->SetLongField(this,obj,fieldID,val); - } - void SetFloatField(jobject obj, jfieldID fieldID, - jfloat val) { - functions->SetFloatField(this,obj,fieldID,val); - } - void SetDoubleField(jobject obj, jfieldID fieldID, - jdouble val) { - functions->SetDoubleField(this,obj,fieldID,val); - } - - jmethodID GetStaticMethodID(jclass clazz, const char *name, - const char *sig) { - return functions->GetStaticMethodID(this,clazz,name,sig); - } - - jobject CallStaticObjectMethod(jclass clazz, jmethodID methodID, - ...) { - va_list args; - jobject result; - va_start(args,methodID); - result = functions->CallStaticObjectMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jobject CallStaticObjectMethodV(jclass clazz, jmethodID methodID, - va_list args) { - return functions->CallStaticObjectMethodV(this,clazz,methodID,args); - } - jobject CallStaticObjectMethodA(jclass clazz, jmethodID methodID, - const jvalue *args) { - return functions->CallStaticObjectMethodA(this,clazz,methodID,args); - } - - jboolean CallStaticBooleanMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jboolean result; - va_start(args,methodID); - result = functions->CallStaticBooleanMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jboolean CallStaticBooleanMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticBooleanMethodV(this,clazz,methodID,args); - } - jboolean CallStaticBooleanMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticBooleanMethodA(this,clazz,methodID,args); - } - - jbyte CallStaticByteMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jbyte result; - va_start(args,methodID); - result = functions->CallStaticByteMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jbyte CallStaticByteMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticByteMethodV(this,clazz,methodID,args); - } - jbyte CallStaticByteMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticByteMethodA(this,clazz,methodID,args); - } - - jchar CallStaticCharMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jchar result; - va_start(args,methodID); - result = functions->CallStaticCharMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jchar CallStaticCharMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticCharMethodV(this,clazz,methodID,args); - } - jchar CallStaticCharMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticCharMethodA(this,clazz,methodID,args); - } - - jshort CallStaticShortMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jshort result; - va_start(args,methodID); - result = functions->CallStaticShortMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jshort CallStaticShortMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticShortMethodV(this,clazz,methodID,args); - } - jshort CallStaticShortMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticShortMethodA(this,clazz,methodID,args); - } - - jint CallStaticIntMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jint result; - va_start(args,methodID); - result = functions->CallStaticIntMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jint CallStaticIntMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticIntMethodV(this,clazz,methodID,args); - } - jint CallStaticIntMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticIntMethodA(this,clazz,methodID,args); - } - - jlong CallStaticLongMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jlong result; - va_start(args,methodID); - result = functions->CallStaticLongMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jlong CallStaticLongMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticLongMethodV(this,clazz,methodID,args); - } - jlong CallStaticLongMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticLongMethodA(this,clazz,methodID,args); - } - - jfloat CallStaticFloatMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jfloat result; - va_start(args,methodID); - result = functions->CallStaticFloatMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jfloat CallStaticFloatMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticFloatMethodV(this,clazz,methodID,args); - } - jfloat CallStaticFloatMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticFloatMethodA(this,clazz,methodID,args); - } - - jdouble CallStaticDoubleMethod(jclass clazz, - jmethodID methodID, ...) { - va_list args; - jdouble result; - va_start(args,methodID); - result = functions->CallStaticDoubleMethodV(this,clazz,methodID,args); - va_end(args); - return result; - } - jdouble CallStaticDoubleMethodV(jclass clazz, - jmethodID methodID, va_list args) { - return functions->CallStaticDoubleMethodV(this,clazz,methodID,args); - } - jdouble CallStaticDoubleMethodA(jclass clazz, - jmethodID methodID, const jvalue *args) { - return functions->CallStaticDoubleMethodA(this,clazz,methodID,args); - } - - void CallStaticVoidMethod(jclass cls, jmethodID methodID, ...) { - va_list args; - va_start(args,methodID); - functions->CallStaticVoidMethodV(this,cls,methodID,args); - va_end(args); - } - void CallStaticVoidMethodV(jclass cls, jmethodID methodID, - va_list args) { - functions->CallStaticVoidMethodV(this,cls,methodID,args); - } - void CallStaticVoidMethodA(jclass cls, jmethodID methodID, - const jvalue * args) { - functions->CallStaticVoidMethodA(this,cls,methodID,args); - } - - jfieldID GetStaticFieldID(jclass clazz, const char *name, - const char *sig) { - return functions->GetStaticFieldID(this,clazz,name,sig); - } - jobject GetStaticObjectField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticObjectField(this,clazz,fieldID); - } - jboolean GetStaticBooleanField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticBooleanField(this,clazz,fieldID); - } - jbyte GetStaticByteField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticByteField(this,clazz,fieldID); - } - jchar GetStaticCharField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticCharField(this,clazz,fieldID); - } - jshort GetStaticShortField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticShortField(this,clazz,fieldID); - } - jint GetStaticIntField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticIntField(this,clazz,fieldID); - } - jlong GetStaticLongField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticLongField(this,clazz,fieldID); - } - jfloat GetStaticFloatField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticFloatField(this,clazz,fieldID); - } - jdouble GetStaticDoubleField(jclass clazz, jfieldID fieldID) { - return functions->GetStaticDoubleField(this,clazz,fieldID); - } - - void SetStaticObjectField(jclass clazz, jfieldID fieldID, - jobject value) { - functions->SetStaticObjectField(this,clazz,fieldID,value); - } - void SetStaticBooleanField(jclass clazz, jfieldID fieldID, - jboolean value) { - functions->SetStaticBooleanField(this,clazz,fieldID,value); - } - void SetStaticByteField(jclass clazz, jfieldID fieldID, - jbyte value) { - functions->SetStaticByteField(this,clazz,fieldID,value); - } - void SetStaticCharField(jclass clazz, jfieldID fieldID, - jchar value) { - functions->SetStaticCharField(this,clazz,fieldID,value); - } - void SetStaticShortField(jclass clazz, jfieldID fieldID, - jshort value) { - functions->SetStaticShortField(this,clazz,fieldID,value); - } - void SetStaticIntField(jclass clazz, jfieldID fieldID, - jint value) { - functions->SetStaticIntField(this,clazz,fieldID,value); - } - void SetStaticLongField(jclass clazz, jfieldID fieldID, - jlong value) { - functions->SetStaticLongField(this,clazz,fieldID,value); - } - void SetStaticFloatField(jclass clazz, jfieldID fieldID, - jfloat value) { - functions->SetStaticFloatField(this,clazz,fieldID,value); - } - void SetStaticDoubleField(jclass clazz, jfieldID fieldID, - jdouble value) { - functions->SetStaticDoubleField(this,clazz,fieldID,value); - } - - jstring NewString(const jchar *unicode, jsize len) { - return functions->NewString(this,unicode,len); - } - jsize GetStringLength(jstring str) { - return functions->GetStringLength(this,str); - } - const jchar *GetStringChars(jstring str, jboolean *isCopy) { - return functions->GetStringChars(this,str,isCopy); - } - void ReleaseStringChars(jstring str, const jchar *chars) { - functions->ReleaseStringChars(this,str,chars); - } - - jstring NewStringUTF(const char *utf) { - return functions->NewStringUTF(this,utf); - } - jsize GetStringUTFLength(jstring str) { - return functions->GetStringUTFLength(this,str); - } - const char* GetStringUTFChars(jstring str, jboolean *isCopy) { - return functions->GetStringUTFChars(this,str,isCopy); - } - void ReleaseStringUTFChars(jstring str, const char* chars) { - functions->ReleaseStringUTFChars(this,str,chars); - } - - jsize GetArrayLength(jarray array) { - return functions->GetArrayLength(this,array); - } - - jobjectArray NewObjectArray(jsize len, jclass clazz, - jobject init) { - return functions->NewObjectArray(this,len,clazz,init); - } - jobject GetObjectArrayElement(jobjectArray array, jsize index) { - return functions->GetObjectArrayElement(this,array,index); - } - void SetObjectArrayElement(jobjectArray array, jsize index, - jobject val) { - functions->SetObjectArrayElement(this,array,index,val); - } - - jbooleanArray NewBooleanArray(jsize len) { - return functions->NewBooleanArray(this,len); - } - jbyteArray NewByteArray(jsize len) { - return functions->NewByteArray(this,len); - } - jcharArray NewCharArray(jsize len) { - return functions->NewCharArray(this,len); - } - jshortArray NewShortArray(jsize len) { - return functions->NewShortArray(this,len); - } - jintArray NewIntArray(jsize len) { - return functions->NewIntArray(this,len); - } - jlongArray NewLongArray(jsize len) { - return functions->NewLongArray(this,len); - } - jfloatArray NewFloatArray(jsize len) { - return functions->NewFloatArray(this,len); - } - jdoubleArray NewDoubleArray(jsize len) { - return functions->NewDoubleArray(this,len); - } - - jboolean * GetBooleanArrayElements(jbooleanArray array, jboolean *isCopy) { - return functions->GetBooleanArrayElements(this,array,isCopy); - } - jbyte * GetByteArrayElements(jbyteArray array, jboolean *isCopy) { - return functions->GetByteArrayElements(this,array,isCopy); - } - jchar * GetCharArrayElements(jcharArray array, jboolean *isCopy) { - return functions->GetCharArrayElements(this,array,isCopy); - } - jshort * GetShortArrayElements(jshortArray array, jboolean *isCopy) { - return functions->GetShortArrayElements(this,array,isCopy); - } - jint * GetIntArrayElements(jintArray array, jboolean *isCopy) { - return functions->GetIntArrayElements(this,array,isCopy); - } - jlong * GetLongArrayElements(jlongArray array, jboolean *isCopy) { - return functions->GetLongArrayElements(this,array,isCopy); - } - jfloat * GetFloatArrayElements(jfloatArray array, jboolean *isCopy) { - return functions->GetFloatArrayElements(this,array,isCopy); - } - jdouble * GetDoubleArrayElements(jdoubleArray array, jboolean *isCopy) { - return functions->GetDoubleArrayElements(this,array,isCopy); - } - - void ReleaseBooleanArrayElements(jbooleanArray array, - jboolean *elems, - jint mode) { - functions->ReleaseBooleanArrayElements(this,array,elems,mode); - } - void ReleaseByteArrayElements(jbyteArray array, - jbyte *elems, - jint mode) { - functions->ReleaseByteArrayElements(this,array,elems,mode); - } - void ReleaseCharArrayElements(jcharArray array, - jchar *elems, - jint mode) { - functions->ReleaseCharArrayElements(this,array,elems,mode); - } - void ReleaseShortArrayElements(jshortArray array, - jshort *elems, - jint mode) { - functions->ReleaseShortArrayElements(this,array,elems,mode); - } - void ReleaseIntArrayElements(jintArray array, - jint *elems, - jint mode) { - functions->ReleaseIntArrayElements(this,array,elems,mode); - } - void ReleaseLongArrayElements(jlongArray array, - jlong *elems, - jint mode) { - functions->ReleaseLongArrayElements(this,array,elems,mode); - } - void ReleaseFloatArrayElements(jfloatArray array, - jfloat *elems, - jint mode) { - functions->ReleaseFloatArrayElements(this,array,elems,mode); - } - void ReleaseDoubleArrayElements(jdoubleArray array, - jdouble *elems, - jint mode) { - functions->ReleaseDoubleArrayElements(this,array,elems,mode); - } - - void GetBooleanArrayRegion(jbooleanArray array, - jsize start, jsize len, jboolean *buf) { - functions->GetBooleanArrayRegion(this,array,start,len,buf); - } - void GetByteArrayRegion(jbyteArray array, - jsize start, jsize len, jbyte *buf) { - functions->GetByteArrayRegion(this,array,start,len,buf); - } - void GetCharArrayRegion(jcharArray array, - jsize start, jsize len, jchar *buf) { - functions->GetCharArrayRegion(this,array,start,len,buf); - } - void GetShortArrayRegion(jshortArray array, - jsize start, jsize len, jshort *buf) { - functions->GetShortArrayRegion(this,array,start,len,buf); - } - void GetIntArrayRegion(jintArray array, - jsize start, jsize len, jint *buf) { - functions->GetIntArrayRegion(this,array,start,len,buf); - } - void GetLongArrayRegion(jlongArray array, - jsize start, jsize len, jlong *buf) { - functions->GetLongArrayRegion(this,array,start,len,buf); - } - void GetFloatArrayRegion(jfloatArray array, - jsize start, jsize len, jfloat *buf) { - functions->GetFloatArrayRegion(this,array,start,len,buf); - } - void GetDoubleArrayRegion(jdoubleArray array, - jsize start, jsize len, jdouble *buf) { - functions->GetDoubleArrayRegion(this,array,start,len,buf); - } - - void SetBooleanArrayRegion(jbooleanArray array, jsize start, jsize len, - const jboolean *buf) { - functions->SetBooleanArrayRegion(this,array,start,len,buf); - } - void SetByteArrayRegion(jbyteArray array, jsize start, jsize len, - const jbyte *buf) { - functions->SetByteArrayRegion(this,array,start,len,buf); - } - void SetCharArrayRegion(jcharArray array, jsize start, jsize len, - const jchar *buf) { - functions->SetCharArrayRegion(this,array,start,len,buf); - } - void SetShortArrayRegion(jshortArray array, jsize start, jsize len, - const jshort *buf) { - functions->SetShortArrayRegion(this,array,start,len,buf); - } - void SetIntArrayRegion(jintArray array, jsize start, jsize len, - const jint *buf) { - functions->SetIntArrayRegion(this,array,start,len,buf); - } - void SetLongArrayRegion(jlongArray array, jsize start, jsize len, - const jlong *buf) { - functions->SetLongArrayRegion(this,array,start,len,buf); - } - void SetFloatArrayRegion(jfloatArray array, jsize start, jsize len, - const jfloat *buf) { - functions->SetFloatArrayRegion(this,array,start,len,buf); - } - void SetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len, - const jdouble *buf) { - functions->SetDoubleArrayRegion(this,array,start,len,buf); - } - - jint RegisterNatives(jclass clazz, const JNINativeMethod *methods, - jint nMethods) { - return functions->RegisterNatives(this,clazz,methods,nMethods); - } - jint UnregisterNatives(jclass clazz) { - return functions->UnregisterNatives(this,clazz); - } - - jint MonitorEnter(jobject obj) { - return functions->MonitorEnter(this,obj); - } - jint MonitorExit(jobject obj) { - return functions->MonitorExit(this,obj); - } - - jint GetJavaVM(JavaVM **vm) { - return functions->GetJavaVM(this,vm); - } - - void GetStringRegion(jstring str, jsize start, jsize len, jchar *buf) { - functions->GetStringRegion(this,str,start,len,buf); - } - void GetStringUTFRegion(jstring str, jsize start, jsize len, char *buf) { - functions->GetStringUTFRegion(this,str,start,len,buf); - } - - void * GetPrimitiveArrayCritical(jarray array, jboolean *isCopy) { - return functions->GetPrimitiveArrayCritical(this,array,isCopy); - } - void ReleasePrimitiveArrayCritical(jarray array, void *carray, jint mode) { - functions->ReleasePrimitiveArrayCritical(this,array,carray,mode); - } - - const jchar * GetStringCritical(jstring string, jboolean *isCopy) { - return functions->GetStringCritical(this,string,isCopy); - } - void ReleaseStringCritical(jstring string, const jchar *cstring) { - functions->ReleaseStringCritical(this,string,cstring); - } - - jweak NewWeakGlobalRef(jobject obj) { - return functions->NewWeakGlobalRef(this,obj); - } - void DeleteWeakGlobalRef(jweak ref) { - functions->DeleteWeakGlobalRef(this,ref); - } - - jboolean ExceptionCheck() { - return functions->ExceptionCheck(this); - } - - jobject NewDirectByteBuffer(void* address, jlong capacity) { - return functions->NewDirectByteBuffer(this, address, capacity); - } - void* GetDirectBufferAddress(jobject buf) { - return functions->GetDirectBufferAddress(this, buf); - } - jlong GetDirectBufferCapacity(jobject buf) { - return functions->GetDirectBufferCapacity(this, buf); - } - jobjectRefType GetObjectRefType(jobject obj) { - return functions->GetObjectRefType(this, obj); - } - -#endif /* __cplusplus */ -}; - -typedef struct JavaVMOption { - char *optionString; - void *extraInfo; -} JavaVMOption; - -typedef struct JavaVMInitArgs { - jint version; - - jint nOptions; - JavaVMOption *options; - jboolean ignoreUnrecognized; -} JavaVMInitArgs; - -typedef struct JavaVMAttachArgs { - jint version; - - char *name; - jobject group; -} JavaVMAttachArgs; - -/* These will be VM-specific. */ - -#define JDK1_2 -#define JDK1_4 - -/* End VM-specific. */ - -struct JNIInvokeInterface_ { - void *reserved0; - void *reserved1; - void *reserved2; - - jint (JNICALL *DestroyJavaVM)(JavaVM *vm); - - jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args); - - jint (JNICALL *DetachCurrentThread)(JavaVM *vm); - - jint (JNICALL *GetEnv)(JavaVM *vm, void **penv, jint version); - - jint (JNICALL *AttachCurrentThreadAsDaemon)(JavaVM *vm, void **penv, void *args); -}; - -struct JavaVM_ { - const struct JNIInvokeInterface_ *functions; -#ifdef __cplusplus - - jint DestroyJavaVM() { - return functions->DestroyJavaVM(this); - } - jint AttachCurrentThread(void **penv, void *args) { - return functions->AttachCurrentThread(this, penv, args); - } - jint DetachCurrentThread() { - return functions->DetachCurrentThread(this); - } - - jint GetEnv(void **penv, jint version) { - return functions->GetEnv(this, penv, version); - } - jint AttachCurrentThreadAsDaemon(void **penv, void *args) { - return functions->AttachCurrentThreadAsDaemon(this, penv, args); - } -#endif -}; - -#ifdef _JNI_IMPLEMENTATION_ -#define _JNI_IMPORT_OR_EXPORT_ JNIEXPORT -#else -#define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT -#endif -_JNI_IMPORT_OR_EXPORT_ jint JNICALL -JNI_GetDefaultJavaVMInitArgs(void *args); - -_JNI_IMPORT_OR_EXPORT_ jint JNICALL -JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args); - -_JNI_IMPORT_OR_EXPORT_ jint JNICALL -JNI_GetCreatedJavaVMs(JavaVM **, jsize, jsize *); - -/* Defined by native libraries. */ -JNIEXPORT jint JNICALL -JNI_OnLoad(JavaVM *vm, void *reserved); - -JNIEXPORT void JNICALL -JNI_OnUnload(JavaVM *vm, void *reserved); - -#define JNI_VERSION_1_1 0x00010001 -#define JNI_VERSION_1_2 0x00010002 -#define JNI_VERSION_1_4 0x00010004 -#define JNI_VERSION_1_6 0x00010006 - -#ifdef __cplusplus -} /* extern "C" */ -#endif /* __cplusplus */ - -#endif /* !_JAVASOFT_JNI_H_ */ diff --git a/src/bind/javainc/linux/jni_md.h b/src/bind/javainc/linux/jni_md.h deleted file mode 100644 index d8c88574a..000000000 --- a/src/bind/javainc/linux/jni_md.h +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file should be replaced by the "official" jni_md.h - * for linux - */ -#ifndef __JNI_MD_H__ -#define __JNI_MD_H__ - -/** - * Nothing special for these declspecs for Linux. Leave alone. - */ -#define JNIEXPORT -#define JNIIMPORT -#define JNICALL - -typedef signed char jbyte; -typedef int jint; - -/* 64 bit? */ -#ifdef _LP64 -typedef long jlong; -#else -typedef long long jlong; -#endif - - -#endif /* __JNI_MD_H__ */ diff --git a/src/bind/javainc/solaris/jni_md.h b/src/bind/javainc/solaris/jni_md.h deleted file mode 100644 index 688d573a7..000000000 --- a/src/bind/javainc/solaris/jni_md.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -#ifndef _JAVASOFT_JNI_MD_H_ -#define _JAVASOFT_JNI_MD_H_ - -#define JNIEXPORT -#define JNIIMPORT -#define JNICALL - -typedef int jint; -#ifdef _LP64 /* 64-bit Solaris */ -typedef long jlong; -#else -typedef long long jlong; -#endif - -typedef signed char jbyte; - -#endif /* !_JAVASOFT_JNI_MD_H_ */ diff --git a/src/bind/javainc/win32/jni_md.h b/src/bind/javainc/win32/jni_md.h deleted file mode 100644 index 4ae350658..000000000 --- a/src/bind/javainc/win32/jni_md.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 1996-1998 Sun Microsystems, Inc. All Rights Reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -#ifndef _JAVASOFT_JNI_MD_H_ -#define _JAVASOFT_JNI_MD_H_ - -#define JNIEXPORT __declspec(dllexport) -#define JNIIMPORT __declspec(dllimport) -#define JNICALL __stdcall - -typedef long jint; -typedef __int64 jlong; -typedef signed char jbyte; - -#endif /* !_JAVASOFT_JNI_MD_H_ */ diff --git a/src/bind/makefile.in b/src/bind/makefile.in deleted file mode 100644 index 90ed85bb4..000000000 --- a/src/bind/makefile.in +++ /dev/null @@ -1,17 +0,0 @@ -# Convenience stub makefile to call the real Makefile. - -@SET_MAKE@ - -OBJEXT = @OBJEXT@ - -# Explicit so that it's the default rule. -all: - cd .. && $(MAKE) bind/all - -clean %.a %.$(OBJEXT): - cd .. && $(MAKE) bind/$@ - -.PHONY: all clean - -.SUFFIXES: -.SUFFIXES: .a .$(OBJEXT) diff --git a/src/check-header-compile.in b/src/check-header-compile.in index ca9eb6a62..2295dcf91 100755 --- a/src/check-header-compile.in +++ b/src/check-header-compile.in @@ -26,7 +26,6 @@ if [ $# = 0 ]; then -o -name ecma -prune \ -o -name render -prune \ -o -name xpath -prune \ - -o -path '*/extension/script/js' -prune \ -o -name '*.h' \ \! -name gnome.h \! -name nr-type-gnome.h \! -name Livarot.h \! -name radial.h \ \! -name '*-test.h' \ diff --git a/src/extension/CMakeLists.txt b/src/extension/CMakeLists.txt index fa4fdd740..4507d9ce2 100644 --- a/src/extension/CMakeLists.txt +++ b/src/extension/CMakeLists.txt @@ -62,8 +62,6 @@ set(extension_SRC internal/pdfinput/pdf-parser.cpp internal/pdfinput/svg-builder.cpp - script/InkscapeScript.cpp - # ------ # Header db.h @@ -136,8 +134,6 @@ set(extension_SRC internal/svg.h internal/svgz.h internal/vsd-input.h - - script/InkscapeScript.h ) if(WIN32) diff --git a/src/extension/script/InkscapeScript.cpp b/src/extension/script/InkscapeScript.cpp deleted file mode 100644 index 02cd28fa5..000000000 --- a/src/extension/script/InkscapeScript.cpp +++ /dev/null @@ -1,223 +0,0 @@ -/* - * This is a simple mechanism to bind Inkscape to Java, and thence - * to all of the nice things that can be layered upon that. - * - * Authors: - * Bob Jamison - * - * Copyright (C) 2007-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - - -#include "InkscapeScript.h" - - -#include - - -namespace Inkscape -{ -namespace Extension -{ -namespace Script -{ - - -typedef Inkscape::Bind::Value Value; - - -/** - * - */ -InkscapeScript::InkscapeScript() -{ -} - - - - -/** - * - */ -InkscapeScript::~InkscapeScript() -{ -} - - - - -/** - * Interprets the script in the 'script' buffer, - * storing the stdout output in 'output', and any - * error messages in 'error.' Language is one of the - * enumerated types in ScriptLanguage above. - */ -bool InkscapeScript::interpretScript(const Glib::ustring &script, - Glib::ustring & /*output*/, - Glib::ustring & /*error*/, - ScriptLanguage language) -{ - const char *langname=NULL; - //if() instead of switch() lets us scope vars - if (language == InkscapeScript::JAVASCRIPT) - { - langname="javascript"; - } - else if (language == InkscapeScript::PYTHON) - { - langname="python"; - } - else if (language == InkscapeScript::RUBY) - { - langname="ruby"; - } - else - { - g_warning("interpretScript: Unknown Script Language type: %d\n", - language); - return false; - } - - Inkscape::Bind::JavaBindery *binder = - Inkscape::Bind::JavaBindery::getInstance(); - if (!binder->loadJVM()) //idempotent - { - g_warning("interpretScript: unable to start JVM\n"); - return false; - } - std::vector parms; - Value retval; - Value parm; - parm.setString(langname); - parms.push_back(parm); - parm.setString(script); - parms.push_back(parm); - - //binder->stdOutClear(); - //binder->stdErrClear(); - bool ret = binder->callStatic(Value::BIND_BOOLEAN, - "org/inkscape/cmn/ScriptRunner", - "run", - "(Ljava/lang/String;Ljava/lang/String;)Z", - parms, - retval); - //output = binder->stdOutGet(); - //error = binder->stdErrGet(); - - if (!ret) - { - g_warning("interpretScript: failed\n"); - return false; - } - - return true; -} - - -/** - * Interprets the script in the named file, - * storing the stdout output in 'output', and any - * error messages in 'error.' Language is one of the - * enumerated types in ScriptLanguage above. - */ -bool InkscapeScript::interpretFile(const Glib::ustring &fname, - Glib::ustring & /*output*/, - Glib::ustring & /*error*/, - ScriptLanguage language) -{ - const char *langname=NULL; - //if() instead of switch() lets us scope vars - if (language == InkscapeScript::JAVASCRIPT) - { - langname="Javascript"; - } - else if (language == InkscapeScript::PYTHON) - { - langname="Python"; - } - else if (language == InkscapeScript::RUBY) - { - langname="Ruby"; - } - else - { - g_warning("interpretFile: Unknown Script Language type: %d\n", - language); - return false; - } - - Inkscape::Bind::JavaBindery *binder = - Inkscape::Bind::JavaBindery::getInstance(); - if (!binder->loadJVM()) //idempotent - { - g_warning("interpretFile: unable to start JVM\n"); - return false; - } - std::vector parms; - Value retval; - Value parm; - parm.setString(langname); - parms.push_back(parm); - parm.setString(fname); - parms.push_back(parm); - - //binder->stdOutClear(); - //binder->stdErrClear(); - bool ret = binder->callStatic(Value::BIND_BOOLEAN, - "org/inkscape/cmn/ScriptRunner", - "runFile", - "(Ljava/lang/String;Ljava/lang/String;)Z", - parms, - retval); - //output = binder->stdOutGet(); - //error = binder->stdErrGet(); - - if (!ret) - { - g_warning("interpretFile: failed\n"); - return false; - } - - return true; -} - - - - - - - - - -} // namespace Script -} // namespace Extension -} // namespace Inkscape - -//######################################################################### -//# E N D O F F I L E -//######################################################################### - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/extension/script/InkscapeScript.h b/src/extension/script/InkscapeScript.h deleted file mode 100644 index 8d6346582..000000000 --- a/src/extension/script/InkscapeScript.h +++ /dev/null @@ -1,102 +0,0 @@ -#ifndef SEEN_INKSCAPE_SCRIPT_H -#define SEEN_INKSCAPE_SCRIPT_H - -/* - * Authors: - * Bob Jamison - * - * Copyright (C) 2004-2008 Bob Jamison - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "config.h" - -namespace Glib { -class ustring; -} - -namespace Inkscape -{ -namespace Extension -{ -namespace Script -{ - - - -/** - * Inkscape Scripting container. - * This class is used to run scripts, either from a file or buffer. - */ -class InkscapeScript -{ -public: - - /** - * Which type of language? - */ - typedef enum - { - JAVASCRIPT, - PYTHON, - RUBY - } ScriptLanguage; - - /** - * Creates a generic script interpreter. - */ - InkscapeScript(); - - /** - * Destructor - */ - virtual ~InkscapeScript(); - - /** - * Interprets the script in the 'script' buffer, - * storing the stdout output in 'output', and any - * error messages in 'error.' Language is one of the - * enumerated types in ScriptLanguage above. - */ - bool interpretScript(const Glib::ustring &script, - Glib::ustring &output, - Glib::ustring &error, - ScriptLanguage language); - - /** - * Interprets the script in the named file, - * storing the stdout output in 'output', and any - * error messages in 'error.' Language is one of the - * enumerated types in ScriptLanguage above. - */ - bool interpretFile(const Glib::ustring &fname, - Glib::ustring &output, - Glib::ustring &error, - ScriptLanguage language); - - - -}; //class InkscapeScript - - - - -} // namespace Script -} // namespace Extension -} // namespace Inkscape - - - -#endif /* __INKSCAPE_SCRIPT_H__ */ - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/extension/script/Makefile_insert b/src/extension/script/Makefile_insert deleted file mode 100644 index c0bd91e81..000000000 --- a/src/extension/script/Makefile_insert +++ /dev/null @@ -1,6 +0,0 @@ -## Makefile.am fragment sourced by src/Makefile.am. - -ink_common_sources += \ - extension/script/InkscapeScript.h \ - extension/script/InkscapeScript.cpp - diff --git a/src/extension/script/makefile.in b/src/extension/script/makefile.in deleted file mode 100644 index f4857a9e3..000000000 --- a/src/extension/script/makefile.in +++ /dev/null @@ -1,17 +0,0 @@ -# Convenience stub makefile to call the real Makefile. - -@SET_MAKE@ - -OBJEXT = @OBJEXT@ - -# Explicit so that it's the default rule. -all: - cd ../.. && $(MAKE) extension/script/all - -clean %.a %.$(OBJEXT): - cd ../.. && $(MAKE) extension/script/$@ - -.PHONY: all clean - -.SUFFIXES: -.SUFFIXES: .a .$(OBJEXT) diff --git a/src/menus-skeleton.h b/src/menus-skeleton.h index 77e781763..d01e3e38c 100644 --- a/src/menus-skeleton.h +++ b/src/menus-skeleton.h @@ -141,7 +141,6 @@ static char const menus_skeleton[] = " \n" " \n" " \n" -//" \n" " \n" " \n" " \n" diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt index f3c3b8473..e831bcf69 100644 --- a/src/ui/CMakeLists.txt +++ b/src/ui/CMakeLists.txt @@ -59,7 +59,6 @@ set(ui_SRC dialog/ocaldialogs.cpp dialog/print-colors-preview-dialog.cpp dialog/print.cpp - dialog/scriptdialog.cpp dialog/symbols.cpp dialog/xml-tree.cpp # dialog/session-player.cpp @@ -172,7 +171,6 @@ set(ui_SRC dialog/panel-dialog.h dialog/print-colors-preview-dialog.h dialog/print.h - dialog/scriptdialog.h dialog/spellcheck.h dialog/svg-fonts-dialog.h dialog/swatches.h diff --git a/src/ui/dialog/Makefile_insert b/src/ui/dialog/Makefile_insert index 580b47522..bbede9df1 100644 --- a/src/ui/dialog/Makefile_insert +++ b/src/ui/dialog/Makefile_insert @@ -81,8 +81,6 @@ ink_common_sources += \ ui/dialog/print.h \ ui/dialog/print-colors-preview-dialog.cpp \ ui/dialog/print-colors-preview-dialog.h \ - ui/dialog/scriptdialog.cpp \ - ui/dialog/scriptdialog.h \ ui/dialog/spellcheck.cpp \ ui/dialog/spellcheck.h \ ui/dialog/svg-fonts-dialog.cpp \ diff --git a/src/ui/dialog/dialog-manager.cpp b/src/ui/dialog/dialog-manager.cpp index 993f48d8f..0ce74f54e 100644 --- a/src/ui/dialog/dialog-manager.cpp +++ b/src/ui/dialog/dialog-manager.cpp @@ -32,7 +32,6 @@ #include "ui/dialog/livepatheffect-editor.h" #include "ui/dialog/memory.h" #include "ui/dialog/messages.h" -#include "ui/dialog/scriptdialog.h" #include "ui/dialog/symbols.h" #include "ui/dialog/tile.h" #include "ui/dialog/tracedialog.h" @@ -114,7 +113,6 @@ DialogManager::DialogManager() { registerFactory("ObjectAttributes", &create); registerFactory("ObjectProperties", &create); // registerFactory("PrintColorsPreviewDialog", &create); - registerFactory("Script", &create); registerFactory("SvgFontsDialog", &create); registerFactory("Swatches", &create); registerFactory("Symbols", &create); @@ -148,7 +146,6 @@ DialogManager::DialogManager() { registerFactory("ObjectAttributes", &create); registerFactory("ObjectProperties", &create); // registerFactory("PrintColorsPreviewDialog", &create); - registerFactory("Script", &create); registerFactory("SvgFontsDialog", &create); registerFactory("Swatches", &create); registerFactory("Symbols", &create); diff --git a/src/ui/dialog/scriptdialog.cpp b/src/ui/dialog/scriptdialog.cpp deleted file mode 100644 index 87794a3ce..000000000 --- a/src/ui/dialog/scriptdialog.cpp +++ /dev/null @@ -1,255 +0,0 @@ -/** - * @file - * Dialog for executing and monitoring script execution. - */ -/* Author: - * Bob Jamison - * - * Copyright (C) 2004-2008 Authors - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ -#ifdef HAVE_CONFIG_H -# include -#endif - -#include "scriptdialog.h" -#include -#include -#include -#include -#include - -#include - - - -namespace Inkscape -{ -namespace UI -{ -namespace Dialog -{ - - - -//######################################################################### -//## I M P L E M E N T A T I O N -//######################################################################### - -/** - * A script editor/executor - */ -class ScriptDialogImpl : public ScriptDialog -{ - - public: - ScriptDialogImpl(); - ~ScriptDialogImpl() - {} - - - /** - * Remove all text from the dialog. - */ - void clear(); - - /** - * Execute a script in the dialog. - * - * @param lang language in which the script is programmed - */ - void execute(Inkscape::Extension::Script::InkscapeScript::ScriptLanguage lang); - - /** - * Execute a Javascript script - */ - void executeJavascript(); - - /** - * Execute a Python script - */ - void executePython(); - - /** - * Execute a Ruby script - */ - void executeRuby(); - - - - private: - Gtk::MenuBar menuBar; - Gtk::Menu fileMenu; - - //## Script text - Gtk::Frame scriptTextFrame; - Gtk::ScrolledWindow scriptTextScroll; - Gtk::TextView scriptText; - - //## Output text - Gtk::Frame outputTextFrame; - Gtk::ScrolledWindow outputTextScroll; - Gtk::TextView outputText; - - //## Error text - Gtk::Frame errorTextFrame; - Gtk::ScrolledWindow errorTextScroll; - Gtk::TextView errorText; - - - -}; - -static const char *defaultCodeStr = - "/**\n" - " * This is some example Javascript.\n" - " * Try 'Execute Javascript'\n" - " */\n" - "importPackage(javax.swing);\n" - "function sayHello() {\n" - " JOptionPane.showMessageDialog(null, 'Hello, world!',\n" - " 'Welcome to Inkscape', JOptionPane.WARNING_MESSAGE);\n" - "}\n" - "\n" - "sayHello();\n" - "\n"; - - - - -//######################################################################### -//## E V E N T S -//######################################################################### - -static void textViewClear(Gtk::TextView &view) -{ - Glib::RefPtr buffer = view.get_buffer(); - buffer->erase(buffer->begin(), buffer->end()); -} - -void ScriptDialogImpl::clear() -{ - textViewClear(scriptText); - textViewClear(outputText); - textViewClear(errorText); -} - -void ScriptDialogImpl::execute(Inkscape::Extension::Script::InkscapeScript::ScriptLanguage lang) -{ - Glib::ustring script = scriptText.get_buffer()->get_text(true); - Glib::ustring output; - Glib::ustring error; - Inkscape::Extension::Script::InkscapeScript engine; - bool ok = engine.interpretScript(script, output, error, lang); - outputText.get_buffer()->set_text(output); - errorText.get_buffer()->set_text(error); - if (!ok) - { - //do we want something here? - } -} - -void ScriptDialogImpl::executeJavascript() -{ - execute(Inkscape::Extension::Script::InkscapeScript::JAVASCRIPT); -} - -void ScriptDialogImpl::executePython() -{ - execute(Inkscape::Extension::Script::InkscapeScript::PYTHON); -} - -void ScriptDialogImpl::executeRuby() -{ - execute(Inkscape::Extension::Script::InkscapeScript::RUBY); -} - - -//######################################################################### -//## C O N S T R U C T O R / D E S T R U C T O R -//######################################################################### -ScriptDialogImpl::ScriptDialogImpl() : - ScriptDialog() -{ - Gtk::Box *contents = _getContents(); - - //## Add a menu for clear() - Gtk::MenuItem* item = Gtk::manage(new Gtk::MenuItem(_("File"), true)); - item->set_submenu(fileMenu); - menuBar.append(*item); - - item = Gtk::manage(new Gtk::MenuItem(_("_Clear"), true)); - item->signal_activate().connect(sigc::mem_fun(*this, &ScriptDialogImpl::clear)); - fileMenu.append(*item); - - item = Gtk::manage(new Gtk::MenuItem(_("_Execute Javascript"), true)); - item->signal_activate().connect(sigc::mem_fun(*this, &ScriptDialogImpl::executeJavascript)); - fileMenu.append(*item); - - item = Gtk::manage(new Gtk::MenuItem(_("_Execute Python"), true)); - item->signal_activate().connect(sigc::mem_fun(*this, &ScriptDialogImpl::executePython)); - fileMenu.append(*item); - - item = Gtk::manage(new Gtk::MenuItem(_("_Execute Ruby"), true)); - item->signal_activate().connect(sigc::mem_fun(*this, &ScriptDialogImpl::executeRuby)); - fileMenu.append(*item); - - contents->pack_start(menuBar, Gtk::PACK_SHRINK); - - //### Set up the script field - scriptText.set_editable(true); - scriptText.get_buffer()->set_text(defaultCodeStr); - scriptTextScroll.add(scriptText); - scriptTextScroll.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS); - scriptTextFrame.set_label(_("Script")); - scriptTextFrame.set_shadow_type(Gtk::SHADOW_NONE); - scriptTextFrame.add(scriptTextScroll); - contents->pack_start(scriptTextFrame); - - //### Set up the output field - outputText.set_editable(true); - outputText.get_buffer()->set_text(""); - outputTextScroll.add(outputText); - outputTextScroll.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS); - outputTextFrame.set_label(_("Output")); - outputTextFrame.set_shadow_type(Gtk::SHADOW_NONE); - outputTextFrame.add(outputTextScroll); - contents->pack_start(outputTextFrame); - - //### Set up the error field - errorText.set_editable(true); - errorText.get_buffer()->set_text(""); - errorTextScroll.add(errorText); - errorTextScroll.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS); - errorTextFrame.set_label(_("Errors")); - errorTextFrame.set_shadow_type(Gtk::SHADOW_NONE); - errorTextFrame.add(errorTextScroll); - contents->pack_start(errorTextFrame); - - // sick of this thing shrinking too much - set_size_request(350, 400); - show_all_children(); - -} - -ScriptDialog &ScriptDialog::getInstance() -{ - ScriptDialog *dialog = new ScriptDialogImpl(); - return *dialog; -} - -} //namespace Dialogs -} //namespace UI -} //namespace Inkscape - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/ui/dialog/scriptdialog.h b/src/ui/dialog/scriptdialog.h deleted file mode 100644 index d1962bf6f..000000000 --- a/src/ui/dialog/scriptdialog.h +++ /dev/null @@ -1,64 +0,0 @@ -/** @file - * @brief Script dialog - * - * This dialog is for launching scripts whose main purpose is - * the scripting of Inkscape itself. - */ -/* Authors: - * Bob Jamison - * Other dudes from The Inkscape Organization - * - * Copyright (C) 2004, 2005 Authors - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef __SCRIPTDIALOG_H__ -#define __SCRIPTDIALOG_H__ - -#include "ui/widget/panel.h" -#include "verbs.h" - -namespace Inkscape { -namespace UI { -namespace Dialog { - - -/** - * A script editor, loader, and executor - */ -class ScriptDialog : public UI::Widget::Panel -{ - - public: - ScriptDialog() : - UI::Widget::Panel("", "/dialogs/script", SP_VERB_DIALOG_SCRIPT) - {} - - /** - * Helper function which returns a new instance of the dialog. - * getInstance is needed by the dialog manager (Inkscape::UI::Dialog::DialogManager). - */ - static ScriptDialog &getInstance(); - - virtual ~ScriptDialog() {}; - -}; // class ScriptDialog - - -} //namespace Dialog -} //namespace UI -} //namespace Inkscape - -#endif /* __DEBUGDIALOG_H__ */ - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/verbs.cpp b/src/verbs.cpp index a085e841f..06e59be38 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -40,7 +40,6 @@ #include #include -#include "bind/javabind.h" #include "desktop.h" #include "desktop-handles.h" #include "display/curve.h" @@ -1992,10 +1991,6 @@ void DialogVerb::perform(SPAction *action, void *data) case SP_VERB_DIALOG_DEBUG: dt->_dlg_mgr->showDialog("Messages"); break; - case SP_VERB_DIALOG_SCRIPT: - //dt->_dlg_mgr->showDialog("Script"); - Inkscape::Bind::JavaBindery::getInstance()->showConsole(); - break; case SP_VERB_DIALOG_UNDO_HISTORY: dt->_dlg_mgr->showDialog("UndoHistory"); break; @@ -2821,8 +2816,6 @@ Verb *Verb::_base_verbs[] = { N_("Check spelling of text in document"), GTK_STOCK_SPELL_CHECK ), new DialogVerb(SP_VERB_DIALOG_DEBUG, "DialogDebug", N_("_Messages..."), N_("View debug messages"), INKSCAPE_ICON("dialog-messages")), - new DialogVerb(SP_VERB_DIALOG_SCRIPT, "DialogScript", N_("S_cripts..."), - N_("Run scripts"), INKSCAPE_ICON("dialog-scripts")), new DialogVerb(SP_VERB_DIALOG_TOGGLE, "DialogsToggle", N_("Show/Hide D_ialogs"), N_("Show or hide all open dialogs"), INKSCAPE_ICON("show-dialogs")), new DialogVerb(SP_VERB_DIALOG_CLONETILER, "DialogClonetiler", N_("Create Tiled Clones..."), diff --git a/src/verbs.h b/src/verbs.h index 053441b89..5cc2ad12e 100644 --- a/src/verbs.h +++ b/src/verbs.h @@ -280,7 +280,6 @@ enum { SP_VERB_DIALOG_FINDREPLACE, SP_VERB_DIALOG_SPELLCHECK, SP_VERB_DIALOG_DEBUG, - SP_VERB_DIALOG_SCRIPT, SP_VERB_DIALOG_TOGGLE, SP_VERB_DIALOG_CLONETILER, SP_VERB_DIALOG_ATTR, -- cgit v1.2.3 From 5aeb42cd7f874dbd127df4ab7ccc8ffcf25f07ab Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 13:18:56 +0200 Subject: Remove the Digest class. Replace its only use with a glibmm call. (bzr r12429) --- src/color-profile.cpp | 12 +- src/dom/CMakeLists.txt | 2 - src/dom/Makefile_insert | 2 - src/dom/util/digest.cpp | 1456 ----------------------------------------------- src/dom/util/digest.h | 654 --------------------- 5 files changed, 6 insertions(+), 2120 deletions(-) delete mode 100644 src/dom/util/digest.cpp delete mode 100644 src/dom/util/digest.h (limited to 'src') diff --git a/src/color-profile.cpp b/src/color-profile.cpp index 5fb84d8ac..918fc79d4 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -4,6 +4,7 @@ #define noDEBUG_LCMS +#include #include #include #include @@ -41,7 +42,6 @@ #include "preferences.h" #include "dom/uri.h" -#include "dom/util/digest.h" #ifdef WIN32 #include @@ -1285,8 +1285,6 @@ Glib::ustring Inkscape::CMSSystem::getDisplayId( int screen, int monitor ) Glib::ustring Inkscape::CMSSystem::setDisplayPer( gpointer buf, guint bufLen, int screen, int monitor ) { - Glib::ustring id; - while ( static_cast(perMonitorProfiles.size()) <= screen ) { std::vector tmp; perMonitorProfiles.push_back(tmp); @@ -1302,11 +1300,13 @@ Glib::ustring Inkscape::CMSSystem::setDisplayPer( gpointer buf, guint bufLen, in cmsCloseProfile( item.hprof ); item.hprof = 0; } - id.clear(); + + Glib::ustring id; if ( buf && bufLen ) { - id = Digest::hashHex(Digest::HASH_MD5, - reinterpret_cast(buf), bufLen); + gsize len = bufLen; // len is an inout parameter + id = Glib::Checksum::compute_checksum(Glib::Checksum::CHECKSUM_MD5, + reinterpret_cast(buf), len); // Note: if this is not a valid profile, item.hprof will be set to null. item.hprof = cmsOpenProfileFromMem(buf, bufLen); diff --git a/src/dom/CMakeLists.txt b/src/dom/CMakeLists.txt index 74832a6f5..7c49466c2 100644 --- a/src/dom/CMakeLists.txt +++ b/src/dom/CMakeLists.txt @@ -20,7 +20,6 @@ set(dom_SRC io/domstream.cpp - util/digest.cpp util/ziptool.cpp @@ -57,7 +56,6 @@ set(dom_SRC io/domstream.h - util/digest.h util/ziptool.h ) diff --git a/src/dom/Makefile_insert b/src/dom/Makefile_insert index 4ed529a35..25629efb2 100644 --- a/src/dom/Makefile_insert +++ b/src/dom/Makefile_insert @@ -52,8 +52,6 @@ dom_libdom_a_SOURCES = \ dom/xpathtoken.cpp \ dom/io/domstream.cpp \ dom/io/domstream.h \ - dom/util/digest.h \ - dom/util/digest.cpp \ dom/util/ziptool.h \ dom/util/ziptool.cpp diff --git a/src/dom/util/digest.cpp b/src/dom/util/digest.cpp deleted file mode 100644 index 2baed4860..000000000 --- a/src/dom/util/digest.cpp +++ /dev/null @@ -1,1456 +0,0 @@ -/* - * Secure Hashing Tool - * * - * Authors: - * Bob Jamison - * - * Copyright (C) 2006-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "digest.h" - - -//######################################################################## -//## U T I L I T Y -//######################################################################## - -/** - * Use this to print out a 64-bit int when otherwise difficult - */ -/* -static void pl(uint64_t val) -{ - for (int shift=56 ; shift>=0 ; shift-=8) - { - int ch = (val >> shift) & 0xff; - printf("%02x", ch); - } -} -*/ - - - -/** - * 3These truncate their arguments to - * unsigned 32-bit or unsigned 64-bit. - */ -#define TR32(x) ((x) & 0xffffffffL) -#define TR64(x) ((x) & 0xffffffffffffffffLL) - - -static const char *hexDigits = "0123456789abcdef"; - -static std::string toHex(const std::vector &bytes) -{ - std::string str; - std::vector::const_iterator iter; - for (iter = bytes.begin() ; iter != bytes.end() ; ++iter) - { - unsigned char ch = *iter; - str.push_back(hexDigits[(ch>>4) & 0x0f]); - str.push_back(hexDigits[(ch ) & 0x0f]); - } - return str; -} - - -//######################################################################## -//## D I G E S T -//######################################################################## - - -/** - * - */ -std::string Digest::finishHex() -{ - std::vector hash = finish(); - std::string str = toHex(hash); - return str; -} - -/** - * Convenience method. This is a simple way of getting a hash - */ -std::vector Digest::hash(Digest::HashType typ, - unsigned char *buf, - int len) -{ - std::vector ret; - switch (typ) - { - case HASH_MD5: - { - Md5 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - case HASH_SHA1: - { - Sha1 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - case HASH_SHA224: - { - Sha224 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - case HASH_SHA256: - { - Sha256 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - case HASH_SHA384: - { - Sha384 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - case HASH_SHA512: - { - Sha512 digest; - digest.append(buf, len); - ret = digest.finish(); - break; - } - default: - { - break; - } - } - return ret; -} - - -/** - * Convenience method. Same as above, but for a std::string - */ -std::vector Digest::hash(Digest::HashType typ, - const std::string &str) -{ - return hash(typ, (unsigned char *)str.c_str(), str.size()); -} - -/** - * Convenience method. Return a hexidecimal string of the hash of the buffer. - */ -std::string Digest::hashHex(Digest::HashType typ, - unsigned char *buf, - int len) -{ - std::vector dig = hash(typ, buf, len); - return toHex(dig); -} - -/** - * Convenience method. Return a hexidecimal string of the hash of the - * string argument - */ -std::string Digest::hashHex(Digest::HashType typ, - const std::string &str) -{ - std::vector dig = hash(typ, str); - return toHex(dig); -} - - - -//4.1.1 and 4.1.2 -#define SHA_ROTL(X,n) ((((X) << (n)) & 0xffffffffL) | (((X) >> (32-(n))) & 0xffffffffL)) -#define SHA_Ch(x,y,z) ((z)^((x)&((y)^(z)))) -#define SHA_Maj(x,y,z) (((x)&(y))^((z)&((x)^(y)))) - - -//######################################################################## -//## S H A 1 -//######################################################################## - - -/** - * - */ -void Sha1::reset() -{ - longNr = 0; - byteNr = 0; - - // Initialize H with the magic constants (see FIPS180 for constants) - hashBuf[0] = 0x67452301L; - hashBuf[1] = 0xefcdab89L; - hashBuf[2] = 0x98badcfeL; - hashBuf[3] = 0x10325476L; - hashBuf[4] = 0xc3d2e1f0L; - - for (int i = 0; i < 4; i++) - inb[i] = 0; - - for (int i = 0; i < 80; i++) - inBuf[i] = 0; - - clearByteCount(); -} - - -/** - * - */ -void Sha1::update(unsigned char ch) -{ - incByteCount(); - - inb[byteNr++] = (uint32_t)ch; - if (byteNr >= 4) - { - inBuf[longNr++] = inb[0] << 24 | inb[1] << 16 | - inb[2] << 8 | inb[3]; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - -void Sha1::transform() -{ - uint32_t *W = inBuf; - uint32_t *H = hashBuf; - - //for (int t = 0; t < 16 ; t++) - // printf("%2d %08lx\n", t, W[t]); - - //see 6.1.2 - for (int t = 16; t < 80 ; t++) - W[t] = SHA_ROTL((W[t-3] ^ W[t-8] ^ W[t-14] ^ W[t-16]), 1); - - uint32_t a = H[0]; - uint32_t b = H[1]; - uint32_t c = H[2]; - uint32_t d = H[3]; - uint32_t e = H[4]; - - uint32_t T; - - int t = 0; - for ( ; t < 20 ; t++) - { - //see 4.1.1 for the boolops on B,C, and D - T = TR32(SHA_ROTL(a,5) + ((b&c)|((~b)&d)) + //Ch(b,c,d)) - e + 0x5a827999L + W[t]); - e = d; d = c; c = SHA_ROTL(b, 30); b = a; a = T; - //printf("%2d %08lx %08lx %08lx %08lx %08lx\n", t, a, b, c, d, e); - } - for ( ; t < 40 ; t++) - { - T = TR32(SHA_ROTL(a,5) + (b^c^d) + e + 0x6ed9eba1L + W[t]); - e = d; d = c; c = SHA_ROTL(b, 30); b = a; a = T; - //printf("%2d %08lx %08lx %08lx %08lx %08lx\n", t, a, b, c, d, e); - } - for ( ; t < 60 ; t++) - { - T = TR32(SHA_ROTL(a,5) + ((b&c)^(b&d)^(c&d)) + - e + 0x8f1bbcdcL + W[t]); - e = d; d = c; c = SHA_ROTL(b, 30); b = a; a = T; - //printf("%2d %08lx %08lx %08lx %08lx %08lx\n", t, a, b, c, d, e); - } - for ( ; t < 80 ; t++) - { - T = TR32(SHA_ROTL(a,5) + (b^c^d) + - e + 0xca62c1d6L + W[t]); - e = d; d = c; c = SHA_ROTL(b, 30); b = a; a = T; - //printf("%2d %08lx %08lx %08lx %08lx %08lx\n", t, a, b, c, d, e); - } - - H[0] = TR32(H[0] + a); - H[1] = TR32(H[1] + b); - H[2] = TR32(H[2] + c); - H[3] = TR32(H[3] + d); - H[4] = TR32(H[4] + e); -} - - - - -/** - * - */ -std::vector Sha1::finish() -{ - //snapshot the bit count now before padding - getBitCount(); - - //Append terminal char - update(0x80); - - //pad until we have a 56 of 64 bytes, allowing for 8 bytes at the end - while ((nrBytes & 63) != 56) - update(0); - - //##### Append length in bits - appendBitCount(); - - //copy out answer - std::vector res; - for (int i=0 ; i<5 ; i++) - { - res.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - } - - // Re-initialize the context (also zeroizes contents) - reset(); - - return res; -} - - - - -//######################################################################## -//## SHA224 -//######################################################################## - - -/** - * SHA-224 and SHA-512 share the same operations and constants - */ - -#define SHA_Rot32(x,s) ((((x) >> s)&0xffffffffL) | (((x) << (32 - s))&0xffffffffL)) -#define SHA_SIGMA0(x) (SHA_Rot32(x, 2) ^ SHA_Rot32(x, 13) ^ SHA_Rot32(x, 22)) -#define SHA_SIGMA1(x) (SHA_Rot32(x, 6) ^ SHA_Rot32(x, 11) ^ SHA_Rot32(x, 25)) -#define SHA_sigma0(x) (SHA_Rot32(x, 7) ^ SHA_Rot32(x, 18) ^ ((x) >> 3)) -#define SHA_sigma1(x) (SHA_Rot32(x, 17) ^ SHA_Rot32(x, 19) ^ ((x) >> 10)) - - -static uint32_t sha256table[64] = -{ - 0x428a2f98UL, 0x71374491UL, 0xb5c0fbcfUL, 0xe9b5dba5UL, - 0x3956c25bUL, 0x59f111f1UL, 0x923f82a4UL, 0xab1c5ed5UL, - 0xd807aa98UL, 0x12835b01UL, 0x243185beUL, 0x550c7dc3UL, - 0x72be5d74UL, 0x80deb1feUL, 0x9bdc06a7UL, 0xc19bf174UL, - 0xe49b69c1UL, 0xefbe4786UL, 0x0fc19dc6UL, 0x240ca1ccUL, - 0x2de92c6fUL, 0x4a7484aaUL, 0x5cb0a9dcUL, 0x76f988daUL, - 0x983e5152UL, 0xa831c66dUL, 0xb00327c8UL, 0xbf597fc7UL, - 0xc6e00bf3UL, 0xd5a79147UL, 0x06ca6351UL, 0x14292967UL, - 0x27b70a85UL, 0x2e1b2138UL, 0x4d2c6dfcUL, 0x53380d13UL, - 0x650a7354UL, 0x766a0abbUL, 0x81c2c92eUL, 0x92722c85UL, - 0xa2bfe8a1UL, 0xa81a664bUL, 0xc24b8b70UL, 0xc76c51a3UL, - 0xd192e819UL, 0xd6990624UL, 0xf40e3585UL, 0x106aa070UL, - 0x19a4c116UL, 0x1e376c08UL, 0x2748774cUL, 0x34b0bcb5UL, - 0x391c0cb3UL, 0x4ed8aa4aUL, 0x5b9cca4fUL, 0x682e6ff3UL, - 0x748f82eeUL, 0x78a5636fUL, 0x84c87814UL, 0x8cc70208UL, - 0x90befffaUL, 0xa4506cebUL, 0xbef9a3f7UL, 0xc67178f2UL -}; - - - - - -/** - * - */ -void Sha224::reset() -{ - longNr = 0; - byteNr = 0; - - // Initialize H with the magic constants (see FIPS180 for constants) - hashBuf[0] = 0xc1059ed8L; - hashBuf[1] = 0x367cd507L; - hashBuf[2] = 0x3070dd17L; - hashBuf[3] = 0xf70e5939L; - hashBuf[4] = 0xffc00b31L; - hashBuf[5] = 0x68581511L; - hashBuf[6] = 0x64f98fa7L; - hashBuf[7] = 0xbefa4fa4L; - - for (int i = 0 ; i < 64 ; i++) - inBuf[i] = 0; - - for (int i = 0 ; i < 4 ; i++) - inb[i] = 0; - - clearByteCount(); -} - - -/** - * - */ -void Sha224::update(unsigned char ch) -{ - incByteCount(); - - inb[byteNr++] = (uint32_t)ch; - if (byteNr >= 4) - { - inBuf[longNr++] = inb[0] << 24 | inb[1] << 16 | - inb[2] << 8 | inb[3]; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - -void Sha224::transform() -{ - uint32_t *W = inBuf; - uint32_t *H = hashBuf; - - //for (int t = 0; t < 16 ; t++) - // printf("%2d %08lx\n", t, W[t]); - - //see 6.2.2 - for (int t = 16; t < 64 ; t++) - W[t] = TR32(SHA_sigma1(W[t-2]) + W[t-7] + SHA_sigma0(W[t-15]) + W[t-16]); - - uint32_t a = H[0]; - uint32_t b = H[1]; - uint32_t c = H[2]; - uint32_t d = H[3]; - uint32_t e = H[4]; - uint32_t f = H[5]; - uint32_t g = H[6]; - uint32_t h = H[7]; - - for (int t = 0 ; t < 64 ; t++) - { - //see 4.1.1 for the boolops - uint32_t T1 = TR32(h + SHA_SIGMA1(e) + SHA_Ch(e,f,g) + - sha256table[t] + W[t]); - uint32_t T2 = TR32(SHA_SIGMA0(a) + SHA_Maj(a,b,c)); - h = g; g = f; f = e; e = TR32(d + T1); d = c; c = b; b = a; a = TR32(T1 + T2); - //printf("%2d %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n", - // t, a, b, c, d, e, f, g, h); - } - - H[0] = TR32(H[0] + a); - H[1] = TR32(H[1] + b); - H[2] = TR32(H[2] + c); - H[3] = TR32(H[3] + d); - H[4] = TR32(H[4] + e); - H[5] = TR32(H[5] + f); - H[6] = TR32(H[6] + g); - H[7] = TR32(H[7] + h); -} - - - -/** - * - */ -std::vector Sha224::finish() -{ - //save our size before padding - getBitCount(); - - // Pad with a binary 1 (0x80) - update(0x80); - //append 0's to make a 56-byte buf. - while ((nrBytes & 63) != 56) - update(0); - - //##### Append length in bits - appendBitCount(); - - // Output hash - std::vector ret; - for (int i = 0 ; i < 7 ; i++) - { - ret.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - } - - // Re-initialize the context (also zeroizes contents) - reset(); - - return ret; - -} - - - -//######################################################################## -//## SHA256 -//######################################################################## - - -/** - * - */ -void Sha256::reset() -{ - longNr = 0; - byteNr = 0; - - // Initialize H with the magic constants (see FIPS180 for constants) - hashBuf[0] = 0x6a09e667L; - hashBuf[1] = 0xbb67ae85L; - hashBuf[2] = 0x3c6ef372L; - hashBuf[3] = 0xa54ff53aL; - hashBuf[4] = 0x510e527fL; - hashBuf[5] = 0x9b05688cL; - hashBuf[6] = 0x1f83d9abL; - hashBuf[7] = 0x5be0cd19L; - - for (int i = 0 ; i < 64 ; i++) - inBuf[i] = 0; - for (int i = 0 ; i < 4 ; i++) - inb[i] = 0; - - clearByteCount(); -} - - -/** - * - */ -void Sha256::update(unsigned char ch) -{ - incByteCount(); - - inb[byteNr++] = (uint32_t)ch; - if (byteNr >= 4) - { - inBuf[longNr++] = inb[0] << 24 | inb[1] << 16 | - inb[2] << 8 | inb[3]; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - - - -void Sha256::transform() -{ - uint32_t *H = hashBuf; - uint32_t *W = inBuf; - - //for (int t = 0; t < 16 ; t++) - // printf("%2d %08lx\n", t, W[t]); - - //see 6.2.2 - for (int t = 16; t < 64 ; t++) - W[t] = TR32(SHA_sigma1(W[t-2]) + W[t-7] + SHA_sigma0(W[t-15]) + W[t-16]); - - uint32_t a = H[0]; - uint32_t b = H[1]; - uint32_t c = H[2]; - uint32_t d = H[3]; - uint32_t e = H[4]; - uint32_t f = H[5]; - uint32_t g = H[6]; - uint32_t h = H[7]; - - for (int t = 0 ; t < 64 ; t++) - { - //see 4.1.1 for the boolops - uint32_t T1 = TR32(h + SHA_SIGMA1(e) + SHA_Ch(e,f,g) + - sha256table[t] + W[t]); - uint32_t T2 = TR32(SHA_SIGMA0(a) + SHA_Maj(a,b,c)); - h = g; g = f; f = e; e = TR32(d + T1); d = c; c = b; b = a; a = TR32(T1 + T2); - //printf("%2d %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n", - // t, a, b, c, d, e, f, g, h); - } - - H[0] = TR32(H[0] + a); - H[1] = TR32(H[1] + b); - H[2] = TR32(H[2] + c); - H[3] = TR32(H[3] + d); - H[4] = TR32(H[4] + e); - H[5] = TR32(H[5] + f); - H[6] = TR32(H[6] + g); - H[7] = TR32(H[7] + h); -} - - - -/** - * - */ -std::vector Sha256::finish() -{ - //save our size before padding - getBitCount(); - - // Pad with a binary 1 (0x80) - update(0x80); - //append 0's to make a 56-byte buf. - while ((nrBytes & 63) != 56) - update(0); - - //##### Append length in bits - appendBitCount(); - - // Output hash - std::vector ret; - for (int i = 0 ; i < 8 ; i++) - { - ret.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - } - - // Re-initialize the context (also zeroizes contents) - reset(); - - return ret; - -} - - - -//######################################################################## -//## SHA384 -//######################################################################## - - -/** - * SHA-384 and SHA-512 share the same operations and constants - */ - -#undef SHA_SIGMA0 -#undef SHA_SIGMA1 -#undef SHA_sigma0 -#undef SHA_sigma1 - -#define SHA_Rot64(x,s) (((x) >> s) | ((x) << (64 - s))) -#define SHA_SIGMA0(x) (SHA_Rot64(x, 28) ^ SHA_Rot64(x, 34) ^ SHA_Rot64(x, 39)) -#define SHA_SIGMA1(x) (SHA_Rot64(x, 14) ^ SHA_Rot64(x, 18) ^ SHA_Rot64(x, 41)) -#define SHA_sigma0(x) (SHA_Rot64(x, 1) ^ SHA_Rot64(x, 8) ^ ((x) >> 7)) -#define SHA_sigma1(x) (SHA_Rot64(x, 19) ^ SHA_Rot64(x, 61) ^ ((x) >> 6)) - - -static uint64_t sha512table[80] = -{ - 0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL, - 0xb5c0fbcfec4d3b2fULL, 0xe9b5dba58189dbbcULL, - 0x3956c25bf348b538ULL, 0x59f111f1b605d019ULL, - 0x923f82a4af194f9bULL, 0xab1c5ed5da6d8118ULL, - 0xd807aa98a3030242ULL, 0x12835b0145706fbeULL, - 0x243185be4ee4b28cULL, 0x550c7dc3d5ffb4e2ULL, - 0x72be5d74f27b896fULL, 0x80deb1fe3b1696b1ULL, - 0x9bdc06a725c71235ULL, 0xc19bf174cf692694ULL, - 0xe49b69c19ef14ad2ULL, 0xefbe4786384f25e3ULL, - 0x0fc19dc68b8cd5b5ULL, 0x240ca1cc77ac9c65ULL, - 0x2de92c6f592b0275ULL, 0x4a7484aa6ea6e483ULL, - 0x5cb0a9dcbd41fbd4ULL, 0x76f988da831153b5ULL, - 0x983e5152ee66dfabULL, 0xa831c66d2db43210ULL, - 0xb00327c898fb213fULL, 0xbf597fc7beef0ee4ULL, - 0xc6e00bf33da88fc2ULL, 0xd5a79147930aa725ULL, - 0x06ca6351e003826fULL, 0x142929670a0e6e70ULL, - 0x27b70a8546d22ffcULL, 0x2e1b21385c26c926ULL, - 0x4d2c6dfc5ac42aedULL, 0x53380d139d95b3dfULL, - 0x650a73548baf63deULL, 0x766a0abb3c77b2a8ULL, - 0x81c2c92e47edaee6ULL, 0x92722c851482353bULL, - 0xa2bfe8a14cf10364ULL, 0xa81a664bbc423001ULL, - 0xc24b8b70d0f89791ULL, 0xc76c51a30654be30ULL, - 0xd192e819d6ef5218ULL, 0xd69906245565a910ULL, - 0xf40e35855771202aULL, 0x106aa07032bbd1b8ULL, - 0x19a4c116b8d2d0c8ULL, 0x1e376c085141ab53ULL, - 0x2748774cdf8eeb99ULL, 0x34b0bcb5e19b48a8ULL, - 0x391c0cb3c5c95a63ULL, 0x4ed8aa4ae3418acbULL, - 0x5b9cca4f7763e373ULL, 0x682e6ff3d6b2b8a3ULL, - 0x748f82ee5defb2fcULL, 0x78a5636f43172f60ULL, - 0x84c87814a1f0ab72ULL, 0x8cc702081a6439ecULL, - 0x90befffa23631e28ULL, 0xa4506cebde82bde9ULL, - 0xbef9a3f7b2c67915ULL, 0xc67178f2e372532bULL, - 0xca273eceea26619cULL, 0xd186b8c721c0c207ULL, - 0xeada7dd6cde0eb1eULL, 0xf57d4f7fee6ed178ULL, - 0x06f067aa72176fbaULL, 0x0a637dc5a2c898a6ULL, - 0x113f9804bef90daeULL, 0x1b710b35131c471bULL, - 0x28db77f523047d84ULL, 0x32caab7b40c72493ULL, - 0x3c9ebe0a15c9bebcULL, 0x431d67c49c100d4cULL, - 0x4cc5d4becb3e42b6ULL, 0x597f299cfc657e2aULL, - 0x5fcb6fab3ad6faecULL, 0x6c44198c4a475817ULL -}; - - - - -/** - * - */ -void Sha384::reset() -{ - longNr = 0; - byteNr = 0; - - // SHA-384 differs from SHA-512 by these constants - hashBuf[0] = 0xcbbb9d5dc1059ed8ULL; - hashBuf[1] = 0x629a292a367cd507ULL; - hashBuf[2] = 0x9159015a3070dd17ULL; - hashBuf[3] = 0x152fecd8f70e5939ULL; - hashBuf[4] = 0x67332667ffc00b31ULL; - hashBuf[5] = 0x8eb44a8768581511ULL; - hashBuf[6] = 0xdb0c2e0d64f98fa7ULL; - hashBuf[7] = 0x47b5481dbefa4fa4ULL; - - for (int i = 0 ; i < 80 ; i++) - inBuf[i] = 0; - for (int i = 0 ; i < 8 ; i++) - inb[i] = 0; - - clearByteCount(); -} - - -/** - * Note that this version of update() handles 64-bit inBuf - * values. - */ -void Sha384::update(unsigned char ch) -{ - incByteCount(); - - inb[byteNr++] = (uint64_t)ch; - if (byteNr >= 8) - { - inBuf[longNr++] = inb[0] << 56 | inb[1] << 48 | - inb[2] << 40 | inb[3] << 32 | - inb[4] << 24 | inb[5] << 16 | - inb[6] << 8 | inb[7]; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - - - -void Sha384::transform() -{ - uint64_t *H = hashBuf; - uint64_t *W = inBuf; - - /* - for (int t = 0; t < 16 ; t++) - { - printf("%2d ", t); - pl(W[t]); - printf("\n"); - } - */ - - //see 6.2.2 - for (int t = 16; t < 80 ; t++) - W[t] = TR64(SHA_sigma1(W[t-2]) + W[t-7] + SHA_sigma0(W[t-15]) + W[t-16]); - - uint64_t a = H[0]; - uint64_t b = H[1]; - uint64_t c = H[2]; - uint64_t d = H[3]; - uint64_t e = H[4]; - uint64_t f = H[5]; - uint64_t g = H[6]; - uint64_t h = H[7]; - - for (int t = 0 ; t < 80 ; t++) - { - //see 4.1.1 for the boolops - uint64_t T1 = TR64(h + SHA_SIGMA1(e) + SHA_Ch(e,f,g) + - sha512table[t] + W[t]); - uint64_t T2 = TR64(SHA_SIGMA0(a) + SHA_Maj(a,b,c)); - h = g; g = f; f = e; e = TR64(d + T1); d = c; c = b; b = a; a = TR64(T1 + T2); - } - - H[0] = TR64(H[0] + a); - H[1] = TR64(H[1] + b); - H[2] = TR64(H[2] + c); - H[3] = TR64(H[3] + d); - H[4] = TR64(H[4] + e); - H[5] = TR64(H[5] + f); - H[6] = TR64(H[6] + g); - H[7] = TR64(H[7] + h); -} - - - -/** - * - */ -std::vector Sha384::finish() -{ - //save our size before padding - getBitCount(); - - // Pad with a binary 1 (0x80) - update((unsigned char)0x80); - //append 0's to make a 112-byte buf. - //we will loop around once if already over 112 - while ((nrBytes & 127) != 112) - update(0); - - //append 128-bit size - //64 upper bits - for (int i = 0 ; i < 8 ; i++) - update((unsigned char)0x00); - //64 lower bits - //##### Append length in bits - appendBitCount(); - - // Output hash - //for SHA-384, we use the left-most 6 64-bit words - std::vector ret; - for (int i = 0 ; i < 6 ; i++) - { - ret.push_back((unsigned char)((hashBuf[i] >> 56) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 48) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 40) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 32) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - } - - // Re-initialize the context (also zeroizes contents) - reset(); - - return ret; - -} - - -//######################################################################## -//## SHA512 -//######################################################################## - - - - - -/** - * - */ -void Sha512::reset() -{ - longNr = 0; - byteNr = 0; - - // Initialize H with the magic constants (see FIPS180 for constants) - hashBuf[0] = 0x6a09e667f3bcc908ULL; - hashBuf[1] = 0xbb67ae8584caa73bULL; - hashBuf[2] = 0x3c6ef372fe94f82bULL; - hashBuf[3] = 0xa54ff53a5f1d36f1ULL; - hashBuf[4] = 0x510e527fade682d1ULL; - hashBuf[5] = 0x9b05688c2b3e6c1fULL; - hashBuf[6] = 0x1f83d9abfb41bd6bULL; - hashBuf[7] = 0x5be0cd19137e2179ULL; - - for (int i = 0 ; i < 80 ; i++) - inBuf[i] = 0; - for (int i = 0 ; i < 8 ; i++) - inb[i] = 0; - - clearByteCount(); -} - - -/** - * Note that this version of update() handles 64-bit inBuf - * values. - */ -void Sha512::update(unsigned char ch) -{ - incByteCount(); - - inb[byteNr++] = (uint64_t)ch; - if (byteNr >= 8) - { - inBuf[longNr++] = inb[0] << 56 | inb[1] << 48 | - inb[2] << 40 | inb[3] << 32 | - inb[4] << 24 | inb[5] << 16 | - inb[6] << 8 | inb[7]; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - - - -void Sha512::transform() -{ - uint64_t *W = inBuf; - uint64_t *H = hashBuf; - - /* - for (int t = 0; t < 16 ; t++) - { - printf("%2d ", t); - pl(W[t]); - printf("\n"); - } - */ - - //see 6.2.2 - for (int t = 16; t < 80 ; t++) - W[t] = TR64(SHA_sigma1(W[t-2]) + W[t-7] + SHA_sigma0(W[t-15]) + W[t-16]); - - uint64_t a = H[0]; - uint64_t b = H[1]; - uint64_t c = H[2]; - uint64_t d = H[3]; - uint64_t e = H[4]; - uint64_t f = H[5]; - uint64_t g = H[6]; - uint64_t h = H[7]; - - for (int t = 0 ; t < 80 ; t++) - { - //see 4.1.1 for the boolops - uint64_t T1 = TR64(h + SHA_SIGMA1(e) + SHA_Ch(e,f,g) + - sha512table[t] + W[t]); - uint64_t T2 = TR64(SHA_SIGMA0(a) + SHA_Maj(a,b,c)); - h = g; g = f; f = e; e = TR64(d + T1); d = c; c = b; b = a; a = TR64(T1 + T2); - } - - H[0] = TR64(H[0] + a); - H[1] = TR64(H[1] + b); - H[2] = TR64(H[2] + c); - H[3] = TR64(H[3] + d); - H[4] = TR64(H[4] + e); - H[5] = TR64(H[5] + f); - H[6] = TR64(H[6] + g); - H[7] = TR64(H[7] + h); -} - - - -/** - * - */ -std::vector Sha512::finish() -{ - //save our size before padding - getBitCount(); - - // Pad with a binary 1 (0x80) - update(0x80); - //append 0's to make a 112-byte buf. - //we will loop around once if already over 112 - while ((nrBytes & 127) != 112) - update(0); - - //append 128-bit size - //64 upper bits - for (int i = 0 ; i < 8 ; i++) - update((unsigned char)0x00); - //64 lower bits - //##### Append length in bits - appendBitCount(); - - // Output hash - std::vector ret; - for (int i = 0 ; i < 8 ; i++) - { - ret.push_back((unsigned char)((hashBuf[i] >> 56) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 48) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 40) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 32) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - ret.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - } - - // Re-initialize the context (also zeroizes contents) - reset(); - - return ret; - -} - - - -//######################################################################## -//## M D 5 -//######################################################################## - -/** - * - */ -void Md5::reset() -{ - hashBuf[0] = 0x67452301; - hashBuf[1] = 0xefcdab89; - hashBuf[2] = 0x98badcfe; - hashBuf[3] = 0x10325476; - - for (int i=0 ; i<16 ; i++) - inBuf[i] = 0; - for (int i=0 ; i<4 ; i++) - inb[i] = 0; - - clearByteCount(); - - byteNr = 0; - longNr = 0; -} - - -/** - * - */ -void Md5::update(unsigned char ch) -{ - incByteCount(); - - //pack 64 bytes into 16 longs - inb[byteNr++] = (uint32_t)ch; - if (byteNr >= 4) - { - //note the little-endianness - uint32_t val = - inb[3] << 24 | inb[2] << 16 | inb[1] << 8 | inb[0]; - inBuf[longNr++] = val; - byteNr = 0; - } - if (longNr >= 16) - { - transform(); - longNr = 0; - } -} - - - -//# The four core functions - F1 is optimized somewhat - -// #define F1(x, y, z) (x & y | ~x & z) -#define F1(x, y, z) (z ^ (x & (y ^ z))) -#define F2(x, y, z) F1(z, x, y) -#define F3(x, y, z) (x ^ y ^ z) -#define F4(x, y, z) (y ^ (x | ~z)) - -// ## This is the central step in the MD5 algorithm. -#define MD5STEP(f, w, x, y, z, data, s) \ - ( w = TR32(w + (f(x, y, z) + data)), w = w<>(32-s), w = TR32(w + x) ) - -/* - * The core of the MD5 algorithm, this alters an existing MD5 hash to - * reflect the addition of 16 longwords of new data. MD5Update blocks - * the data and converts bytes into longwords for this routine. - * @parm buf points to an array of 4 unsigned 32bit (at least) integers - * @parm in points to an array of 16 unsigned 32bit (at least) integers - */ -void Md5::transform() -{ - uint32_t *i = inBuf; - uint32_t a = hashBuf[0]; - uint32_t b = hashBuf[1]; - uint32_t c = hashBuf[2]; - uint32_t d = hashBuf[3]; - - MD5STEP(F1, a, b, c, d, i[ 0] + 0xd76aa478, 7); - MD5STEP(F1, d, a, b, c, i[ 1] + 0xe8c7b756, 12); - MD5STEP(F1, c, d, a, b, i[ 2] + 0x242070db, 17); - MD5STEP(F1, b, c, d, a, i[ 3] + 0xc1bdceee, 22); - MD5STEP(F1, a, b, c, d, i[ 4] + 0xf57c0faf, 7); - MD5STEP(F1, d, a, b, c, i[ 5] + 0x4787c62a, 12); - MD5STEP(F1, c, d, a, b, i[ 6] + 0xa8304613, 17); - MD5STEP(F1, b, c, d, a, i[ 7] + 0xfd469501, 22); - MD5STEP(F1, a, b, c, d, i[ 8] + 0x698098d8, 7); - MD5STEP(F1, d, a, b, c, i[ 9] + 0x8b44f7af, 12); - MD5STEP(F1, c, d, a, b, i[10] + 0xffff5bb1, 17); - MD5STEP(F1, b, c, d, a, i[11] + 0x895cd7be, 22); - MD5STEP(F1, a, b, c, d, i[12] + 0x6b901122, 7); - MD5STEP(F1, d, a, b, c, i[13] + 0xfd987193, 12); - MD5STEP(F1, c, d, a, b, i[14] + 0xa679438e, 17); - MD5STEP(F1, b, c, d, a, i[15] + 0x49b40821, 22); - - MD5STEP(F2, a, b, c, d, i[ 1] + 0xf61e2562, 5); - MD5STEP(F2, d, a, b, c, i[ 6] + 0xc040b340, 9); - MD5STEP(F2, c, d, a, b, i[11] + 0x265e5a51, 14); - MD5STEP(F2, b, c, d, a, i[ 0] + 0xe9b6c7aa, 20); - MD5STEP(F2, a, b, c, d, i[ 5] + 0xd62f105d, 5); - MD5STEP(F2, d, a, b, c, i[10] + 0x02441453, 9); - MD5STEP(F2, c, d, a, b, i[15] + 0xd8a1e681, 14); - MD5STEP(F2, b, c, d, a, i[ 4] + 0xe7d3fbc8, 20); - MD5STEP(F2, a, b, c, d, i[ 9] + 0x21e1cde6, 5); - MD5STEP(F2, d, a, b, c, i[14] + 0xc33707d6, 9); - MD5STEP(F2, c, d, a, b, i[ 3] + 0xf4d50d87, 14); - MD5STEP(F2, b, c, d, a, i[ 8] + 0x455a14ed, 20); - MD5STEP(F2, a, b, c, d, i[13] + 0xa9e3e905, 5); - MD5STEP(F2, d, a, b, c, i[ 2] + 0xfcefa3f8, 9); - MD5STEP(F2, c, d, a, b, i[ 7] + 0x676f02d9, 14); - MD5STEP(F2, b, c, d, a, i[12] + 0x8d2a4c8a, 20); - - MD5STEP(F3, a, b, c, d, i[ 5] + 0xfffa3942, 4); - MD5STEP(F3, d, a, b, c, i[ 8] + 0x8771f681, 11); - MD5STEP(F3, c, d, a, b, i[11] + 0x6d9d6122, 16); - MD5STEP(F3, b, c, d, a, i[14] + 0xfde5380c, 23); - MD5STEP(F3, a, b, c, d, i[ 1] + 0xa4beea44, 4); - MD5STEP(F3, d, a, b, c, i[ 4] + 0x4bdecfa9, 11); - MD5STEP(F3, c, d, a, b, i[ 7] + 0xf6bb4b60, 16); - MD5STEP(F3, b, c, d, a, i[10] + 0xbebfbc70, 23); - MD5STEP(F3, a, b, c, d, i[13] + 0x289b7ec6, 4); - MD5STEP(F3, d, a, b, c, i[ 0] + 0xeaa127fa, 11); - MD5STEP(F3, c, d, a, b, i[ 3] + 0xd4ef3085, 16); - MD5STEP(F3, b, c, d, a, i[ 6] + 0x04881d05, 23); - MD5STEP(F3, a, b, c, d, i[ 9] + 0xd9d4d039, 4); - MD5STEP(F3, d, a, b, c, i[12] + 0xe6db99e5, 11); - MD5STEP(F3, c, d, a, b, i[15] + 0x1fa27cf8, 16); - MD5STEP(F3, b, c, d, a, i[ 2] + 0xc4ac5665, 23); - - MD5STEP(F4, a, b, c, d, i[ 0] + 0xf4292244, 6); - MD5STEP(F4, d, a, b, c, i[ 7] + 0x432aff97, 10); - MD5STEP(F4, c, d, a, b, i[14] + 0xab9423a7, 15); - MD5STEP(F4, b, c, d, a, i[ 5] + 0xfc93a039, 21); - MD5STEP(F4, a, b, c, d, i[12] + 0x655b59c3, 6); - MD5STEP(F4, d, a, b, c, i[ 3] + 0x8f0ccc92, 10); - MD5STEP(F4, c, d, a, b, i[10] + 0xffeff47d, 15); - MD5STEP(F4, b, c, d, a, i[ 1] + 0x85845dd1, 21); - MD5STEP(F4, a, b, c, d, i[ 8] + 0x6fa87e4f, 6); - MD5STEP(F4, d, a, b, c, i[15] + 0xfe2ce6e0, 10); - MD5STEP(F4, c, d, a, b, i[ 6] + 0xa3014314, 15); - MD5STEP(F4, b, c, d, a, i[13] + 0x4e0811a1, 21); - MD5STEP(F4, a, b, c, d, i[ 4] + 0xf7537e82, 6); - MD5STEP(F4, d, a, b, c, i[11] + 0xbd3af235, 10); - MD5STEP(F4, c, d, a, b, i[ 2] + 0x2ad7d2bb, 15); - MD5STEP(F4, b, c, d, a, i[ 9] + 0xeb86d391, 21); - - hashBuf[0] = TR32(hashBuf[0] + a); - hashBuf[1] = TR32(hashBuf[1] + b); - hashBuf[2] = TR32(hashBuf[2] + c); - hashBuf[3] = TR32(hashBuf[3] + d); -} - - -/** - * - */ -std::vector Md5::finish() -{ - //snapshot the bit count now before padding - getBitCount(); - - //Append terminal char - update(0x80); - - //pad until we have a 56 of 64 bytes, allowing for 8 bytes at the end - while (longNr != 14) - update(0); - - //##### Append length in bits - // Don't use appendBitCount(), since md5 is little-endian - update((unsigned char)((nrBits ) & 0xff)); - update((unsigned char)((nrBits>> 8) & 0xff)); - update((unsigned char)((nrBits>>16) & 0xff)); - update((unsigned char)((nrBits>>24) & 0xff)); - update((unsigned char)((nrBits>>32) & 0xff)); - update((unsigned char)((nrBits>>40) & 0xff)); - update((unsigned char)((nrBits>>48) & 0xff)); - update((unsigned char)((nrBits>>56) & 0xff)); - - //copy out answer - std::vector res; - for (int i=0 ; i<4 ; i++) - { - //note the little-endianness - res.push_back((unsigned char)((hashBuf[i] ) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] >> 8) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] >> 16) & 0xff)); - res.push_back((unsigned char)((hashBuf[i] >> 24) & 0xff)); - } - - reset(); // Security! ;-) - - return res; -} - - - - - - -//######################################################################## -//## T E S T S -//######################################################################## - -/** - * Compile this file alone with -DDIGEST_TEST to run the - * tests below: - * > gcc -DDIGEST_TEST digest.cpp -o testdigest - * > testdigest - * - * If you add any new algorithms to this suite, then it is highly - * recommended that you add it to these tests and run it. - */ - -#ifdef DIGEST_TEST - - -typedef struct -{ - const char *msg; - const char *val; -} TestPair; - -static TestPair md5tests[] = -{ - { - "", - "d41d8cd98f00b204e9800998ecf8427e" - }, - { - "a", - "0cc175b9c0f1b6a831c399e269772661" - }, - { - "abc", - "900150983cd24fb0d6963f7d28e17f72" - }, - { - "message digest", - "f96b697d7cb7938d525a2f31aaf161d0" - }, - { - "abcdefghijklmnopqrstuvwxyz", - "c3fcd3d76192e4007dfb496cca67e13b" - }, - { - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", - "d174ab98d277d9f5a5611c2c9f419d9f" - }, - { - "12345678901234567890123456789012345678901234567890123456789012345678901234567890", - "57edf4a22be3c955ac49da2e2107b67a" - }, - { - NULL, - NULL - } -}; - - - -static TestPair sha1tests[] = -{ - { - "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", - "84983e441c3bd26ebaae4aa1f95129e5e54670f1" - }, - { - NULL, - NULL - } -}; - -static TestPair sha224tests[] = -{ - { - "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", - "75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525" - }, - { - NULL, - NULL - } -}; - -static TestPair sha256tests[] = -{ - { - "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", - "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1" - }, - { - NULL, - NULL - } -}; - -static TestPair sha384tests[] = -{ - { - "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" - "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", - "09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712" - "fcc7c71a557e2db966c3e9fa91746039" - }, - { - NULL, - NULL - } -}; - -static TestPair sha512tests[] = -{ - { - "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" - "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", - "8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018" - "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909" - }, - { - NULL, - NULL - } -}; - - -bool hashTests(Digest &digest, TestPair *tp) -{ - for (TestPair *pair = tp ; pair->msg ; pair++) - { - digest.reset(); - std::string msg = pair->msg; - std::string val = pair->val; - digest.append(msg); - std::string res = digest.finishHex(); - printf("### Msg '%s':\n hash '%s'\n exp '%s'\n", - msg.c_str(), res.c_str(), val.c_str()); - if (res != val) - { - printf("ERROR: Hash mismatch\n"); - return false; - } - } - return true; -} - - -bool millionATest(Digest &digest, const std::string &exp) -{ - digest.reset(); - for (int i=0 ; i<1000000 ; i++) - digest.append('a'); - std::string res = digest.finishHex(); - printf("\nHash of 1,000,000 'a'\n calc %s\n exp %s\n", - res.c_str(), exp.c_str()); - if (res != exp) - { - printf("ERROR: Mismatch.\n"); - return false; - } - return true; -} - -static bool doTests() -{ - printf("##########################################\n"); - printf("## MD5\n"); - printf("##########################################\n"); - Md5 md5; - if (!hashTests(md5, md5tests)) - return false; - if (!millionATest(md5, "7707d6ae4e027c70eea2a935c2296f21")) - return false; - printf("\n\n\n"); - printf("##########################################\n"); - printf("## SHA1\n"); - printf("##########################################\n"); - Sha1 sha1; - if (!hashTests(sha1, sha1tests)) - return false; - if (!millionATest(sha1, "34aa973cd4c4daa4f61eeb2bdbad27316534016f")) - return false; - printf("\n\n\n"); - printf("##########################################\n"); - printf("## SHA224\n"); - printf("##########################################\n"); - Sha224 sha224; - if (!hashTests(sha224, sha224tests)) - return false; - if (!millionATest(sha224, - "20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67")) - return false; - printf("\n\n\n"); - printf("##########################################\n"); - printf("## SHA256\n"); - printf("##########################################\n"); - Sha256 sha256; - if (!hashTests(sha256, sha256tests)) - return false; - if (!millionATest(sha256, - "cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0")) - return false; - printf("\n\n\n"); - printf("##########################################\n"); - printf("## SHA384\n"); - printf("##########################################\n"); - Sha384 sha384; - if (!hashTests(sha384, sha384tests)) - return false; - /**/ - if (!millionATest(sha384, - "9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b" - "07b8b3dc38ecc4ebae97ddd87f3d8985")) - return false; - /**/ - printf("\n\n\n"); - printf("##########################################\n"); - printf("## SHA512\n"); - printf("##########################################\n"); - Sha512 sha512; - if (!hashTests(sha512, sha512tests)) - return false; - if (!millionATest(sha512, - "e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973eb" - "de0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b")) - return false; - return true; -} - - -int main(int argc, char **argv) -{ - doTests(); - printf("####### done ########\n"); - return 0; -} - - -#endif /* DIGEST_TEST */ - -//######################################################################## -//## E N D O F F I L E -//######################################################################## diff --git a/src/dom/util/digest.h b/src/dom/util/digest.h deleted file mode 100644 index c161b86bb..000000000 --- a/src/dom/util/digest.h +++ /dev/null @@ -1,654 +0,0 @@ -#ifndef SEEN_DIGEST_H -#define SEEN_DIGEST_H -/* - * - * Author: - * Bob Jamison - * - * Copyright (C) 2006-2008 Bob Jamison - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/** - * @file - * This base class and its subclasses provide an easy API for providing - * several different types of secure hashing functions for whatever use - * a developer might need. This is not intended as a high-performance - * replacement for the fine implementations already available. Rather, it - * is a small and simple (and maybe a bit slow?) tool for moderate common - * hashing requirements, like for communications and authentication. - * - * These hashes are intended to be simple to use. For example: - * Sha256 digest; - * digest.append("The quick brown dog"); - * std::string result = digest.finishHex(); - * - * Or, use one of the static convenience methods: - * - * example: std::string digest = - * Digest::hashHex(Digest::HASH_XXX, str); - * - * ...where HASH_XXX represents one of the hash - * algorithms listed in HashType. - * - * There are several forms of append() for convenience. - * finish() and finishHex() call reset() for both security and - * to prepare for the next use. - * - * - * Much effort has been applied to make this code portable, and it - * has been tested on various 32- and 64-bit machines. If you - * add another algorithm, please test it likewise. - * - * - * The SHA algorithms are derived directly from FIPS-180-3. The - * SHA tests at the bottom of digest.cpp are also directly from - * that document. - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - * - * The MD5 algorithm is from RFC 1321 - * - * To run the tests, compile standalone with -DDIGEST_TEST. Example: - * - * g++ -DDIGEST_TEST digest.cpp -o testdigest - * or - * g++ -DDIGEST_TEST -m64 digest.cpp -o testdigest - * - */ - -#include -#include - -#include - - - -/** - * Base class. Do not use instantiate class directly. Rather, use of of the - * subclasses below, or call one of this class's static convenience methods. - * - * For all subclasses, overload reset(), update(unsigned char), - * transform(), and finish() - */ -class Digest -{ -public: - - /** - * Different types of hash algorithms. - */ - typedef enum - { - HASH_NONE, - HASH_SHA1, - HASH_SHA224, - HASH_SHA256, - HASH_SHA384, - HASH_SHA512, - HASH_MD5 - } HashType; - - /** - * Constructor, with no type - */ - Digest() : hashType(HASH_NONE) - { reset(); } - - /** - * Destructor - */ - virtual ~Digest() - { reset(); } - - /** - * Return one of the enumerated hash types above - */ - virtual int getType() - { return hashType; } - - /** - * Append a single byte to the hash - */ - void append(unsigned char ch) - { update(ch); } - - /** - * Append a string to the hash - */ - virtual void append(const std::string &str) - { - for (unsigned int i=0 ; i &buf) - { //NOTE: function seems to be unused - for (unsigned int i=0 ; i finish() - { - std::vector ret; - return ret; - } - - - //######################## - //# Convenience methods - //######################## - - /** - * Convenience method. This is a simple way of getting a hash. - * Returns a byte buffer with the digest output. - * call with: std::vector digest = - * Digest::hash(Digest::HASH_XXX, buf, len); - */ - static std::vector hash(HashType typ, - unsigned char *buf, - int len); - /** - * Convenience method. This is a simple way of getting a hash. - * Returns a byte buffer with the digest output. - * call with: std::vector digest = - * Digest::hash(Digest::HASH_XXX, str); - */ - static std::vector hash(HashType typ, - const std::string &str); - - /** - * Convenience method. This is a simple way of getting a hash. - * Returns a string with the hexidecimal form of the digest output. - * call with: std::string digest = - * Digest::hash(Digest::HASH_XXX, buf, len); - */ - static std::string hashHex(HashType typ, - unsigned char *buf, - int len); - /** - * Convenience method. This is a simple way of getting a hash. - * Returns a string with the hexidecimal form of the digest output. - * call with: std::string digest = - * Digest::hash(Digest::HASH_XXX, str); - */ - static std::string hashHex(HashType typ, - const std::string &str); - -protected: - - /** - * Update the hash with a given byte - * Overload this in every subclass - */ - virtual void update(unsigned char /*ch*/) - {} - - /** - * Perform the particular block hashing algorithm for a - * particular type of hash. - * Overload this in every subclass - */ - virtual void transform() - {} - - - /** - * The enumerated type of the hash - */ - int hashType; - - /** - * Increment the count of bytes processed so far. Should be called - * in update() - */ - void incByteCount() - { - nrBytes++; - } - - /** - * Clear the byte / bit count information. Both for processing - * another message, also for security. Should be called in reset() - */ - void clearByteCount() - { - nrBytes = nrBits = 0; - } - - /** - * Calculates the bit count from the current byte count. Should be called - * in finish(), before any padding is added. This basically does a - * snapshot of the bitcount value before the padding. - */ - void getBitCount() - { - nrBits = (nrBytes << 3) & 0xFFFFFFFFFFFFFFFFLL; - } - - /** - * Common code for appending the 64-bit bitcount to the end of the - * message, after the padding. Should be called after padding, just - * before outputting the result. - */ - void appendBitCount() - { - update((unsigned char)((nrBits>>56) & 0xff)); - update((unsigned char)((nrBits>>48) & 0xff)); - update((unsigned char)((nrBits>>40) & 0xff)); - update((unsigned char)((nrBits>>32) & 0xff)); - update((unsigned char)((nrBits>>24) & 0xff)); - update((unsigned char)((nrBits>>16) & 0xff)); - update((unsigned char)((nrBits>> 8) & 0xff)); - update((unsigned char)((nrBits ) & 0xff)); - } - - /** - * Bit and byte counts - */ - uint64_t nrBytes; - uint64_t nrBits; -}; - - - - - -/** - * SHA-1, - * Section 6.1, SECURE HASH STANDARD - * Federal Information Processing Standards Publication 180-2 - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - */ -class Sha1 : public Digest -{ -public: - - /** - * Constructor - */ - Sha1() - { hashType = HASH_SHA1; reset(); } - - /** - * Destructor - */ - virtual ~Sha1() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - -private: - - uint32_t hashBuf[5]; - uint32_t inBuf[80]; - - int longNr; - int byteNr; - uint32_t inb[4]; - -}; - - - - - - -/** - * SHA-224, - * Section 6.1, SECURE HASH STANDARD - * Federal Information Processing Standards Publication 180-2 - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - */ -class Sha224 : public Digest -{ -public: - - /** - * Constructor - */ - Sha224() - { hashType = HASH_SHA224; reset(); } - - /** - * Destructor - */ - virtual ~Sha224() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - -private: - - uint32_t hashBuf[8]; - uint32_t inBuf[64]; - int longNr; - int byteNr; - uint32_t inb[4]; - -}; - - - -/** - * SHA-256, - * Section 6.1, SECURE HASH STANDARD - * Federal Information Processing Standards Publication 180-2 - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - */ -class Sha256 : public Digest -{ -public: - - /** - * Constructor - */ - Sha256() - { hashType = HASH_SHA256; reset(); } - - /** - * Destructor - */ - virtual ~Sha256() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - -private: - - uint32_t hashBuf[8]; - uint32_t inBuf[64]; - int longNr; - int byteNr; - uint32_t inb[4]; - -}; - - - -/** - * SHA-384, - * Section 6.1, SECURE HASH STANDARD - * Federal Information Processing Standards Publication 180-2 - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - */ -class Sha384 : public Digest -{ -public: - - /** - * Constructor - */ - Sha384() - { hashType = HASH_SHA384; reset(); } - - /** - * Destructor - */ - virtual ~Sha384() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - - - -private: - - uint64_t hashBuf[8]; - uint64_t inBuf[80]; - int longNr; - int byteNr; - uint64_t inb[8]; - -}; - - - - -/** - * SHA-512, - * Section 6.1, SECURE HASH STANDARD - * Federal Information Processing Standards Publication 180-2 - * http://csrc.nist.gov/publications/drafts/fips_180-3/draft_fips-180-3_June-08-2007.pdf - */ -class Sha512 : public Digest -{ -public: - - /** - * Constructor - */ - Sha512() - { hashType = HASH_SHA512; reset(); } - - /** - * Destructor - */ - virtual ~Sha512() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - -private: - - uint64_t hashBuf[8]; - uint64_t inBuf[80]; - int longNr; - int byteNr; - uint64_t inb[8]; - -}; - - - - - - - - - -/** - * IETF RFC 1321, MD5 Specification - * http://www.ietf.org/rfc/rfc1321.txt - */ -class Md5 : public Digest -{ -public: - - /** - * Constructor - */ - Md5() - { hashType = HASH_MD5; reset(); } - - /** - * Destructor - */ - virtual ~Md5() - { reset(); } - - /** - * Overloaded from Digest - */ - virtual void reset(); - - /** - * Overloaded from Digest - */ - virtual std::vector finish(); - -protected: - - /** - * Overloaded from Digest - */ - virtual void update(unsigned char val); - - /** - * Overloaded from Digest - */ - virtual void transform(); - -private: - - uint32_t hashBuf[4]; - uint32_t inBuf[16]; - - uint32_t inb[4]; // Buffer for input bytes as longs - int byteNr; // which byte in long - int longNr; // which long in 16-long buffer - -}; - - - - - - - - - -#endif /* __DIGEST_H__ */ - - -- cgit v1.2.3 From faa38f1f6a18d5f44ebef82c7834d6b26aac34db Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 13:44:43 +0200 Subject: Fix spelling error in filename (bzr r12430) --- src/widgets/CMakeLists.txt | 4 +- src/widgets/Makefile_insert | 4 +- src/widgets/eraser-toolbar.cpp | 172 +++++++++++++++++++++++++++++++++++++++++ src/widgets/eraser-toolbar.h | 35 +++++++++ src/widgets/erasor-toolbar.cpp | 172 ----------------------------------------- src/widgets/erasor-toolbar.h | 35 --------- src/widgets/toolbox.cpp | 2 +- 7 files changed, 212 insertions(+), 212 deletions(-) create mode 100644 src/widgets/eraser-toolbar.cpp create mode 100644 src/widgets/eraser-toolbar.h delete mode 100644 src/widgets/erasor-toolbar.cpp delete mode 100644 src/widgets/erasor-toolbar.h (limited to 'src') diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt index 19410ee1d..fe4433153 100644 --- a/src/widgets/CMakeLists.txt +++ b/src/widgets/CMakeLists.txt @@ -6,7 +6,7 @@ set(widgets_SRC calligraphy-toolbar.cpp connector-toolbar.cpp dropper-toolbar.cpp - erasor-toolbar.cpp + eraser-toolbar.cpp lpe-toolbar.cpp measure-toolbar.cpp mesh-toolbar.cpp @@ -62,7 +62,7 @@ set(widgets_SRC calligraphy-toolbar.h connector-toolbar.h dropper-toolbar.h - erasor-toolbar.h + eraser-toolbar.h lpe-toolbar.h measure-toolbar.h mesh-toolbar.h diff --git a/src/widgets/Makefile_insert b/src/widgets/Makefile_insert index 46f0bd645..97713cbee 100644 --- a/src/widgets/Makefile_insert +++ b/src/widgets/Makefile_insert @@ -21,8 +21,8 @@ ink_common_sources += \ widgets/eek-preview.h \ widgets/ege-paint-def.cpp \ widgets/ege-paint-def.h \ - widgets/erasor-toolbar.cpp \ - widgets/erasor-toolbar.h \ + widgets/eraser-toolbar.cpp \ + widgets/eraser-toolbar.h \ widgets/fill-style.cpp \ widgets/fill-style.h \ widgets/fill-n-stroke-factory.h \ diff --git a/src/widgets/eraser-toolbar.cpp b/src/widgets/eraser-toolbar.cpp new file mode 100644 index 000000000..aca960c00 --- /dev/null +++ b/src/widgets/eraser-toolbar.cpp @@ -0,0 +1,172 @@ +/** + * @file + * Erasor aux toolbar + */ +/* Authors: + * MenTaLguY + * Lauris Kaplinski + * bulia byak + * Frank Felfe + * John Cliff + * David Turner + * Josh Andler + * Jon A. Cruz + * Maximilian Albert + * Tavmjong Bah + * Abhishek Sharma + * Kris De Gussem + * + * Copyright (C) 2004 David Turner + * Copyright (C) 2003 MenTaLguY + * Copyright (C) 1999-2011 authors + * Copyright (C) 2001-2002 Ximian, Inc. + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include "ui/widget/spinbutton.h" +#include +#include "toolbox.h" +#include "eraser-toolbar.h" +#include "calligraphy-toolbar.h" + +#include "../desktop.h" +#include "../desktop-handles.h" +#include "document-undo.h" +#include "../verbs.h" +#include "../inkscape.h" +#include "../selection-chemistry.h" +#include "../selection.h" +#include "../ege-adjustment-action.h" +#include "../ege-output-action.h" +#include "../ege-select-one-action.h" +#include "../ink-action.h" +#include "../ink-comboboxentry-action.h" + +#include "../widgets/button.h" +#include "../widgets/spinbutton-events.h" +#include "../widgets/spw-utilities.h" +#include "../widgets/widget-sizes.h" +#include "../xml/node-event-vector.h" +#include "../xml/repr.h" +#include "ui/uxmanager.h" +#include "../ui/icon-names.h" +#include "../helper/unit-menu.h" +#include "../helper/units.h" +#include "../helper/unit-tracker.h" +#include "../pen-context.h" + + +using Inkscape::UnitTracker; +using Inkscape::UI::UXManager; +using Inkscape::DocumentUndo; +using Inkscape::UI::ToolboxFactory; +using Inkscape::UI::PrefPusher; + +//######################## +//## Eraser ## +//######################## + +static void sp_erc_width_value_changed( GtkAdjustment *adj, GObject *tbl ) +{ + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setDouble( "/tools/eraser/width", gtk_adjustment_get_value(adj) ); + update_presets_list(tbl); +} + +static void sp_erasertb_mode_changed( EgeSelectOneAction *act, GObject *tbl ) +{ + SPDesktop *desktop = static_cast(g_object_get_data( tbl, "desktop" )); + bool eraserMode = ege_select_one_action_get_active( act ) != 0; + if (DocumentUndo::getUndoSensitive(sp_desktop_document(desktop))) { + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setBool( "/tools/eraser/mode", eraserMode ); + } + + // only take action if run by the attr_changed listener + if (!g_object_get_data( tbl, "freeze" )) { + // in turn, prevent listener from responding + g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE) ); + + /* + if ( eraserMode != 0 ) { + } else { + } + */ + // TODO finish implementation + + g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) ); + } +} + +void sp_eraser_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObject* holder) +{ + { + GtkListStore* model = gtk_list_store_new( 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING ); + + GtkTreeIter iter; + gtk_list_store_append( model, &iter ); + gtk_list_store_set( model, &iter, + 0, _("Delete"), + 1, _("Delete objects touched by the eraser"), + 2, INKSCAPE_ICON("draw-eraser-delete-objects"), + -1 ); + + gtk_list_store_append( model, &iter ); + gtk_list_store_set( model, &iter, + 0, _("Cut"), + 1, _("Cut out from objects"), + 2, INKSCAPE_ICON("path-difference"), + -1 ); + + EgeSelectOneAction* act = ege_select_one_action_new( "EraserModeAction", (""), (""), NULL, GTK_TREE_MODEL(model) ); + g_object_set( act, "short_label", _("Mode:"), NULL ); + gtk_action_group_add_action( mainActions, GTK_ACTION(act) ); + g_object_set_data( holder, "eraser_mode_action", act ); + + ege_select_one_action_set_appearance( act, "full" ); + ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE ); + g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL ); + ege_select_one_action_set_icon_column( act, 2 ); + ege_select_one_action_set_tooltip_column( act, 1 ); + + /// @todo Convert to boolean? + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + gint eraserMode = prefs->getBool("/tools/eraser/mode") ? 1 : 0; + ege_select_one_action_set_active( act, eraserMode ); + g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(sp_erasertb_mode_changed), holder ); + } + + { + /* Width */ + gchar const* labels[] = {_("(hairline)"), 0, 0, 0, _("(default)"), 0, 0, 0, 0, _("(broad stroke)")}; + gdouble values[] = {1, 3, 5, 10, 15, 20, 30, 50, 75, 100}; + EgeAdjustmentAction *eact = create_adjustment_action( "EraserWidthAction", + _("Pen Width"), _("Width:"), + _("The width of the eraser pen (relative to the visible canvas area)"), + "/tools/eraser/width", 15, + GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "altx-eraser", + 1, 100, 1.0, 10.0, + labels, values, G_N_ELEMENTS(labels), + sp_erc_width_value_changed, 1, 0); + ege_adjustment_action_set_appearance( eact, TOOLBAR_SLIDER_HINT ); + gtk_action_group_add_action( mainActions, GTK_ACTION(eact) ); + gtk_action_set_sensitive( GTK_ACTION(eact), TRUE ); + } + +} + +/* + 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/widgets/eraser-toolbar.h b/src/widgets/eraser-toolbar.h new file mode 100644 index 000000000..b1bb3a3fa --- /dev/null +++ b/src/widgets/eraser-toolbar.h @@ -0,0 +1,35 @@ +#ifndef SEEN_ERASOR_TOOLBAR_H +#define SEEN_ERASOR_TOOLBAR_H + +/** + * @file + * Erasor aux toolbar + */ +/* Authors: + * MenTaLguY + * Lauris Kaplinski + * bulia byak + * Frank Felfe + * John Cliff + * David Turner + * Josh Andler + * Jon A. Cruz + * Maximilian Albert + * Tavmjong Bah + * Abhishek Sharma + * Kris De Gussem + * + * Copyright (C) 2004 David Turner + * Copyright (C) 2003 MenTaLguY + * Copyright (C) 1999-2011 authors + * Copyright (C) 2001-2002 Ximian, Inc. + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include +class SPDesktop; + +void sp_eraser_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObject* holder); + +#endif /* !SEEN_ERASOR_TOOLBAR_H */ diff --git a/src/widgets/erasor-toolbar.cpp b/src/widgets/erasor-toolbar.cpp deleted file mode 100644 index 2e074490d..000000000 --- a/src/widgets/erasor-toolbar.cpp +++ /dev/null @@ -1,172 +0,0 @@ -/** - * @file - * Erasor aux toolbar - */ -/* Authors: - * MenTaLguY - * Lauris Kaplinski - * bulia byak - * Frank Felfe - * John Cliff - * David Turner - * Josh Andler - * Jon A. Cruz - * Maximilian Albert - * Tavmjong Bah - * Abhishek Sharma - * Kris De Gussem - * - * Copyright (C) 2004 David Turner - * Copyright (C) 2003 MenTaLguY - * Copyright (C) 1999-2011 authors - * Copyright (C) 2001-2002 Ximian, Inc. - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include "ui/widget/spinbutton.h" -#include -#include "toolbox.h" -#include "erasor-toolbar.h" -#include "calligraphy-toolbar.h" - -#include "../desktop.h" -#include "../desktop-handles.h" -#include "document-undo.h" -#include "../verbs.h" -#include "../inkscape.h" -#include "../selection-chemistry.h" -#include "../selection.h" -#include "../ege-adjustment-action.h" -#include "../ege-output-action.h" -#include "../ege-select-one-action.h" -#include "../ink-action.h" -#include "../ink-comboboxentry-action.h" - -#include "../widgets/button.h" -#include "../widgets/spinbutton-events.h" -#include "../widgets/spw-utilities.h" -#include "../widgets/widget-sizes.h" -#include "../xml/node-event-vector.h" -#include "../xml/repr.h" -#include "ui/uxmanager.h" -#include "../ui/icon-names.h" -#include "../helper/unit-menu.h" -#include "../helper/units.h" -#include "../helper/unit-tracker.h" -#include "../pen-context.h" - - -using Inkscape::UnitTracker; -using Inkscape::UI::UXManager; -using Inkscape::DocumentUndo; -using Inkscape::UI::ToolboxFactory; -using Inkscape::UI::PrefPusher; - -//######################## -//## Eraser ## -//######################## - -static void sp_erc_width_value_changed( GtkAdjustment *adj, GObject *tbl ) -{ - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - prefs->setDouble( "/tools/eraser/width", gtk_adjustment_get_value(adj) ); - update_presets_list(tbl); -} - -static void sp_erasertb_mode_changed( EgeSelectOneAction *act, GObject *tbl ) -{ - SPDesktop *desktop = static_cast(g_object_get_data( tbl, "desktop" )); - bool eraserMode = ege_select_one_action_get_active( act ) != 0; - if (DocumentUndo::getUndoSensitive(sp_desktop_document(desktop))) { - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - prefs->setBool( "/tools/eraser/mode", eraserMode ); - } - - // only take action if run by the attr_changed listener - if (!g_object_get_data( tbl, "freeze" )) { - // in turn, prevent listener from responding - g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE) ); - - /* - if ( eraserMode != 0 ) { - } else { - } - */ - // TODO finish implementation - - g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) ); - } -} - -void sp_eraser_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObject* holder) -{ - { - GtkListStore* model = gtk_list_store_new( 3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING ); - - GtkTreeIter iter; - gtk_list_store_append( model, &iter ); - gtk_list_store_set( model, &iter, - 0, _("Delete"), - 1, _("Delete objects touched by the eraser"), - 2, INKSCAPE_ICON("draw-eraser-delete-objects"), - -1 ); - - gtk_list_store_append( model, &iter ); - gtk_list_store_set( model, &iter, - 0, _("Cut"), - 1, _("Cut out from objects"), - 2, INKSCAPE_ICON("path-difference"), - -1 ); - - EgeSelectOneAction* act = ege_select_one_action_new( "EraserModeAction", (""), (""), NULL, GTK_TREE_MODEL(model) ); - g_object_set( act, "short_label", _("Mode:"), NULL ); - gtk_action_group_add_action( mainActions, GTK_ACTION(act) ); - g_object_set_data( holder, "eraser_mode_action", act ); - - ege_select_one_action_set_appearance( act, "full" ); - ege_select_one_action_set_radio_action_type( act, INK_RADIO_ACTION_TYPE ); - g_object_set( G_OBJECT(act), "icon-property", "iconId", NULL ); - ege_select_one_action_set_icon_column( act, 2 ); - ege_select_one_action_set_tooltip_column( act, 1 ); - - /// @todo Convert to boolean? - Inkscape::Preferences *prefs = Inkscape::Preferences::get(); - gint eraserMode = prefs->getBool("/tools/eraser/mode") ? 1 : 0; - ege_select_one_action_set_active( act, eraserMode ); - g_signal_connect_after( G_OBJECT(act), "changed", G_CALLBACK(sp_erasertb_mode_changed), holder ); - } - - { - /* Width */ - gchar const* labels[] = {_("(hairline)"), 0, 0, 0, _("(default)"), 0, 0, 0, 0, _("(broad stroke)")}; - gdouble values[] = {1, 3, 5, 10, 15, 20, 30, 50, 75, 100}; - EgeAdjustmentAction *eact = create_adjustment_action( "EraserWidthAction", - _("Pen Width"), _("Width:"), - _("The width of the eraser pen (relative to the visible canvas area)"), - "/tools/eraser/width", 15, - GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "altx-eraser", - 1, 100, 1.0, 10.0, - labels, values, G_N_ELEMENTS(labels), - sp_erc_width_value_changed, 1, 0); - ege_adjustment_action_set_appearance( eact, TOOLBAR_SLIDER_HINT ); - gtk_action_group_add_action( mainActions, GTK_ACTION(eact) ); - gtk_action_set_sensitive( GTK_ACTION(eact), TRUE ); - } - -} - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/widgets/erasor-toolbar.h b/src/widgets/erasor-toolbar.h deleted file mode 100644 index b1bb3a3fa..000000000 --- a/src/widgets/erasor-toolbar.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef SEEN_ERASOR_TOOLBAR_H -#define SEEN_ERASOR_TOOLBAR_H - -/** - * @file - * Erasor aux toolbar - */ -/* Authors: - * MenTaLguY - * Lauris Kaplinski - * bulia byak - * Frank Felfe - * John Cliff - * David Turner - * Josh Andler - * Jon A. Cruz - * Maximilian Albert - * Tavmjong Bah - * Abhishek Sharma - * Kris De Gussem - * - * Copyright (C) 2004 David Turner - * Copyright (C) 2003 MenTaLguY - * Copyright (C) 1999-2011 authors - * Copyright (C) 2001-2002 Ximian, Inc. - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include -class SPDesktop; - -void sp_eraser_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GObject* holder); - -#endif /* !SEEN_ERASOR_TOOLBAR_H */ diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index ca593976f..98a0ff51e 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -79,7 +79,7 @@ #include "calligraphy-toolbar.h" #include "connector-toolbar.h" #include "dropper-toolbar.h" -#include "erasor-toolbar.h" +#include "eraser-toolbar.h" #include "gradient-toolbar.h" #include "lpe-toolbar.h" #include "mesh-toolbar.h" -- cgit v1.2.3 From 379521136cda27b5e42c7afdd87a8ac691404f16 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 18:54:03 +0200 Subject: Remove approx-equal.h and replace with Geom::are_near (bzr r12431) --- src/CMakeLists.txt | 1 - src/Makefile_insert | 2 +- src/doxygen-main.cpp | 2 +- src/satisfied-guide-cns.cpp | 4 ++-- src/sp-item-rm-unsatisfied-cns.cpp | 5 +++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 87f223150..02a206787 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -312,7 +312,6 @@ set(inkscape_SRC MultiPrinter.h PylogFormatter.h TRPIFormatter.h - approx-equal.h arc-context.h attributes-test.h attributes.h diff --git a/src/Makefile_insert b/src/Makefile_insert index 88f809b52..3e61f625a 100644 --- a/src/Makefile_insert +++ b/src/Makefile_insert @@ -3,7 +3,7 @@ ink_common_sources += \ util/find-last-if.h \ util/longest-common-suffix.h \ - approx-equal.h remove-last.h \ + remove-last.h \ arc-context.cpp arc-context.h \ attributes.cpp attributes.h \ attribute-rel-svg.cpp attribute-rel-svg.h \ diff --git a/src/doxygen-main.cpp b/src/doxygen-main.cpp index 04e5ab33e..1c3e5dcbb 100644 --- a/src/doxygen-main.cpp +++ b/src/doxygen-main.cpp @@ -350,7 +350,7 @@ namespace XML {} * Inkscape::Whiteboard::UndoStackObserver [\ref undo-stack-observer.cpp, \ref composite-undo-stack-observer.cpp] * [\ref document-undo.cpp] * - * {\ref dialogs/} [\ref approx-equal.h] [\ref decimal-round.h] [\ref enums.h] [\ref unit-constants.h] + * {\ref dialogs/} [\ref decimal-round.h] [\ref enums.h] [\ref unit-constants.h] */ diff --git a/src/satisfied-guide-cns.cpp b/src/satisfied-guide-cns.cpp index 57d4ffce3..588c78ce0 100644 --- a/src/satisfied-guide-cns.cpp +++ b/src/satisfied-guide-cns.cpp @@ -1,8 +1,8 @@ +#include <2geom/coord.h> #include "desktop-handles.h" #include "sp-guide.h" #include "sp-guide-constraint.h" #include "sp-namedview.h" -#include "approx-equal.h" #include "satisfied-guide-cns.h" void satisfied_guide_cns(SPDesktop const &desktop, @@ -13,7 +13,7 @@ void satisfied_guide_cns(SPDesktop const &desktop, for (GSList const *l = nv.guides; l != NULL; l = l->next) { SPGuide &g = *SP_GUIDE(l->data); for (unsigned int i = 0; i < snappoints.size(); ++i) { - if (approx_equal( g.getDistanceFrom(snappoints[i].getPoint()), 0) ) { + if (Geom::are_near(g.getDistanceFrom(snappoints[i].getPoint()), 0, 1e-2)) { cns.push_back(SPGuideConstraint(&g, i)); } } diff --git a/src/sp-item-rm-unsatisfied-cns.cpp b/src/sp-item-rm-unsatisfied-cns.cpp index c35e4fa48..8fb171c08 100644 --- a/src/sp-item-rm-unsatisfied-cns.cpp +++ b/src/sp-item-rm-unsatisfied-cns.cpp @@ -1,7 +1,7 @@ #include +#include <2geom/coord.h> -#include "approx-equal.h" #include "remove-last.h" #include "sp-guide.h" #include "sp-guide-constraint.h" @@ -22,7 +22,8 @@ void sp_item_rm_unsatisfied_cns(SPItem &item) SPGuideConstraint const &cn = item.constraints[i]; int const snappoint_ix = cn.snappoint_ix; g_assert( snappoint_ix < int(snappoints.size()) ); - if (!approx_equal( cn.g->getDistanceFrom(snappoints[snappoint_ix].getPoint()), 0) ) { + + if (!Geom::are_near(cn.g->getDistanceFrom(snappoints[snappoint_ix].getPoint()), 0, 1e-2)) { remove_last(cn.g->attached_items, SPGuideAttachment(&item, cn.snappoint_ix)); g_assert( i < item.constraints.size() ); vector::iterator const ei(&item.constraints[i]); -- cgit v1.2.3 From 971dcf0f1cc99b33e09920370214f8d50324d975 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 19:01:25 +0200 Subject: Remove unused fix for an ancient problem with g_ascii_strtod (bzr r12432) --- src/CMakeLists.txt | 1 - src/Makefile_insert | 1 - 2 files changed, 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 02a206787..1d27eaef1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -216,7 +216,6 @@ set(inkscape_SRC file.cpp filter-chemistry.cpp filter-enums.cpp - fixes.cpp flood-context.cpp gc-anchored.cpp gc-finalized.cpp diff --git a/src/Makefile_insert b/src/Makefile_insert index 3e61f625a..885b89d78 100644 --- a/src/Makefile_insert +++ b/src/Makefile_insert @@ -59,7 +59,6 @@ ink_common_sources += \ fill-or-stroke.h \ filter-chemistry.cpp filter-chemistry.h \ filter-enums.cpp filter-enums.h \ - fixes.cpp \ flood-context.cpp flood-context.h \ gc-alloc.h \ gc-anchored.h gc-anchored.cpp \ -- cgit v1.2.3 From 747e668b5497b7ae74f38491446d0187ccd0bb72 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 19:02:50 +0200 Subject: Actually remove the file containing the unused fix (oops) (bzr r12433) --- src/fixes.cpp | 194 ---------------------------------------------------------- 1 file changed, 194 deletions(-) delete mode 100644 src/fixes.cpp (limited to 'src') diff --git a/src/fixes.cpp b/src/fixes.cpp deleted file mode 100644 index 4aed2c313..000000000 --- a/src/fixes.cpp +++ /dev/null @@ -1,194 +0,0 @@ -/* - * - * This is the header file to include to fix any broken definitions or funcs - * - * $Id$ - * - * 2004 Kees Cook - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -//#if defined(g_ascii_strtod) -#if 0 -/* - * until 2004-04-22, g_ascii_strtod could not handle having a locale-based - * decimal separator immediately following the number ("5,4" would - * parse to "5,4" instead of "5.0" in fr_FR) - * - * This is the corrected function, lifted from 1.107 gstrfuncs.c in glib - */ -extern "C" { -#include -#include -#include -#include -#include - -gdouble -fixed_g_ascii_strtod (const gchar *nptr, - gchar **endptr) -{ - gchar *fail_pos; - gdouble val; - struct lconv *locale_data; - const char *decimal_point; - int decimal_point_len; - const char *p, *decimal_point_pos; - const char *end = NULL; /* Silence gcc */ - - g_return_val_if_fail (nptr != NULL, 0); - - fail_pos = NULL; - - locale_data = localeconv (); - decimal_point = locale_data->decimal_point; - decimal_point_len = strlen (decimal_point); - - g_assert (decimal_point_len != 0); - - decimal_point_pos = NULL; - if (decimal_point[0] != '.' || - decimal_point[1] != 0) - { - p = nptr; - /* Skip leading space */ - while (g_ascii_isspace (*p)) - p++; - - /* Skip leading optional sign */ - if (*p == '+' || *p == '-') - p++; - - if (p[0] == '0' && - (p[1] == 'x' || p[1] == 'X')) - { - p += 2; - /* HEX - find the (optional) decimal point */ - - while (g_ascii_isxdigit (*p)) - p++; - - if (*p == '.') - { - decimal_point_pos = p++; - - while (g_ascii_isxdigit (*p)) - p++; - - if (*p == 'p' || *p == 'P') - p++; - if (*p == '+' || *p == '-') - p++; - while (g_ascii_isdigit (*p)) - p++; - } - } - else - { - while (g_ascii_isdigit (*p)) - p++; - - if (*p == '.') - { - decimal_point_pos = p++; - - while (g_ascii_isdigit (*p)) - p++; - - if (*p == 'e' || *p == 'E') - p++; - if (*p == '+' || *p == '-') - p++; - while (g_ascii_isdigit (*p)) - p++; - } - } - /* For the other cases, we need not convert the decimal point */ - end = p; - } - - /* Set errno to zero, so that we can distinguish zero results - and underflows */ - errno = 0; - - if (decimal_point_pos) - { - char *copy, *c; - - /* We need to convert the '.' to the locale specific decimal point */ - copy = (char*)g_malloc (end - nptr + 1 + decimal_point_len); - - c = copy; - memcpy (c, nptr, decimal_point_pos - nptr); - c += decimal_point_pos - nptr; - memcpy (c, decimal_point, decimal_point_len); - c += decimal_point_len; - memcpy (c, decimal_point_pos + 1, end - (decimal_point_pos + 1)); - c += end - (decimal_point_pos + 1); - *c = 0; - - val = strtod (copy, &fail_pos); - - if (fail_pos) - { - if (fail_pos - copy > decimal_point_pos - nptr) - fail_pos = (char *)nptr + (fail_pos - copy) - (decimal_point_len - 1); - else - fail_pos = (char *)nptr + (fail_pos - copy); - } - - g_free (copy); - - } - else if (decimal_point[0] != '.' || - decimal_point[1] != 0) - { - char *copy; - - copy = (char*)g_malloc (end - (char *)nptr + 1); - memcpy (copy, nptr, end - nptr); - *(copy + (end - (char *)nptr)) = 0; - - val = strtod (copy, &fail_pos); - - if (fail_pos) - { - fail_pos = (char *)nptr + (fail_pos - copy); - } - - g_free (copy); - } - else - { - val = strtod (nptr, &fail_pos); - } - - if (endptr) - *endptr = fail_pos; - - return val; -} -} - -#endif /* BROKEN_G_ASCII_STRTOD */ - - -- cgit v1.2.3 From bb4fa724bd8e1a72571da73ee683fac3788642e4 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 19:06:58 +0200 Subject: Fix stray prototype of a removed function (bzr r12434) --- src/number-opt-number.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/number-opt-number.h b/src/number-opt-number.h index b2f2f2a1e..867d0535f 100644 --- a/src/number-opt-number.h +++ b/src/number-opt-number.h @@ -23,9 +23,6 @@ #include #include "svg/stringstream.h" - -gdouble fixed_g_ascii_strtod (const gchar *nptr, gchar **endptr); - class NumberOptNumber { public: -- cgit v1.2.3 From 338a9afe505857694f1bcc2dbbc457f004545ae2 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Tue, 23 Jul 2013 19:10:46 +0200 Subject: Actually remove approx-equal.h (oops again) (bzr r12435) --- src/approx-equal.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/approx-equal.h (limited to 'src') diff --git a/src/approx-equal.h b/src/approx-equal.h deleted file mode 100644 index 92f36d7a5..000000000 --- a/src/approx-equal.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef __APROX_EQUAL_H__ -#define __APROX_EQUAL_H__ - -#include - -inline bool approx_equal(double const a, double const b) -{ - return ( (a == b) - || ( fabs( a - b ) < 1e-2 ) - || ( fabs( a / b - 1.0 ) < 1e-2 ) ); -} - - -#endif /* !__APROX_EQUAL_H__ */ - -/* - 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:fileencoding=utf-8:textwidth=99 : -- cgit v1.2.3 From a54cf666ee5f242b47305110e0eaa96bd282438b Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 25 Jul 2013 00:12:32 +0200 Subject: Remove the "simple SAX" parser. Replace its only use (loading of unit definitions in util/units.cpp) with Glib::Markup (bzr r12438) --- src/io/CMakeLists.txt | 2 - src/io/Makefile_insert | 2 - src/io/simple-sax.cpp | 1494 ------------------------------------------------ src/io/simple-sax.h | 97 ---- src/util/units.cpp | 213 ++----- src/util/units.h | 10 +- 6 files changed, 67 insertions(+), 1751 deletions(-) delete mode 100644 src/io/simple-sax.cpp delete mode 100644 src/io/simple-sax.h (limited to 'src') diff --git a/src/io/CMakeLists.txt b/src/io/CMakeLists.txt index 34502d3db..8f8355c03 100644 --- a/src/io/CMakeLists.txt +++ b/src/io/CMakeLists.txt @@ -7,7 +7,6 @@ set(io_SRC inkjar.cpp inkscapestream.cpp resource.cpp - simple-sax.cpp stringstream.cpp sys.cpp uristream.cpp @@ -22,7 +21,6 @@ set(io_SRC inkjar.h inkscapestream.h resource.h - simple-sax.h stringstream.h sys.h uristream.h diff --git a/src/io/Makefile_insert b/src/io/Makefile_insert index 935c0cc07..804c9575a 100644 --- a/src/io/Makefile_insert +++ b/src/io/Makefile_insert @@ -15,8 +15,6 @@ ink_common_sources += \ io/inkscapestream.h \ io/resource.cpp \ io/resource.h \ - io/simple-sax.cpp \ - io/simple-sax.h \ io/stringstream.cpp \ io/stringstream.h \ io/sys.h \ diff --git a/src/io/simple-sax.cpp b/src/io/simple-sax.cpp deleted file mode 100644 index 33e7b72bf..000000000 --- a/src/io/simple-sax.cpp +++ /dev/null @@ -1,1494 +0,0 @@ -/* - * SimpleSAX - * - * Authors: - * Jon A. Cruz - * - * Copyright (C) 2004 AUTHORS - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include -#include -#include "simple-sax.h" - -namespace Inkscape { -namespace IO { - -SaxHandler::SaxHandler() -{ - memset( &sax, 0, sizeof(sax) ); - sax.startDocument = startDocument; - sax.endDocument = endDocument; - sax.startElement = startElement; - sax.endElement = endElement; - sax.characters = characters; -} - -SaxHandler::~SaxHandler() -{ -} - - -static int xmlErrorVals[] = { - XML_ERR_OK, - XML_ERR_INTERNAL_ERROR, - XML_ERR_NO_MEMORY, - XML_ERR_DOCUMENT_START, - XML_ERR_DOCUMENT_EMPTY, - XML_ERR_DOCUMENT_END, - XML_ERR_INVALID_HEX_CHARREF, - XML_ERR_INVALID_DEC_CHARREF, - XML_ERR_INVALID_CHARREF, - XML_ERR_INVALID_CHAR, - XML_ERR_CHARREF_AT_EOF, - XML_ERR_CHARREF_IN_PROLOG, - XML_ERR_CHARREF_IN_EPILOG, - XML_ERR_CHARREF_IN_DTD, - XML_ERR_ENTITYREF_AT_EOF, - XML_ERR_ENTITYREF_IN_PROLOG, - XML_ERR_ENTITYREF_IN_EPILOG, - XML_ERR_ENTITYREF_IN_DTD, - XML_ERR_PEREF_AT_EOF, - XML_ERR_PEREF_IN_PROLOG, - XML_ERR_PEREF_IN_EPILOG, - XML_ERR_PEREF_IN_INT_SUBSET, - XML_ERR_ENTITYREF_NO_NAME, - XML_ERR_ENTITYREF_SEMICOL_MISSING, - XML_ERR_PEREF_NO_NAME, - XML_ERR_PEREF_SEMICOL_MISSING, - XML_ERR_UNDECLARED_ENTITY, - XML_WAR_UNDECLARED_ENTITY, - XML_ERR_UNPARSED_ENTITY, - XML_ERR_ENTITY_IS_EXTERNAL, - XML_ERR_ENTITY_IS_PARAMETER, - XML_ERR_UNKNOWN_ENCODING, - XML_ERR_UNSUPPORTED_ENCODING, - XML_ERR_STRING_NOT_STARTED, - XML_ERR_STRING_NOT_CLOSED, - XML_ERR_NS_DECL_ERROR, - XML_ERR_ENTITY_NOT_STARTED, - XML_ERR_ENTITY_NOT_FINISHED, - XML_ERR_LT_IN_ATTRIBUTE, - XML_ERR_ATTRIBUTE_NOT_STARTED, - XML_ERR_ATTRIBUTE_NOT_FINISHED, - XML_ERR_ATTRIBUTE_WITHOUT_VALUE, - XML_ERR_ATTRIBUTE_REDEFINED, - XML_ERR_LITERAL_NOT_STARTED, - XML_ERR_LITERAL_NOT_FINISHED, - XML_ERR_COMMENT_NOT_FINISHED, - XML_ERR_PI_NOT_STARTED, - XML_ERR_PI_NOT_FINISHED, - XML_ERR_NOTATION_NOT_STARTED, - XML_ERR_NOTATION_NOT_FINISHED, - XML_ERR_ATTLIST_NOT_STARTED, - XML_ERR_ATTLIST_NOT_FINISHED, - XML_ERR_MIXED_NOT_STARTED, - XML_ERR_MIXED_NOT_FINISHED, - XML_ERR_ELEMCONTENT_NOT_STARTED, - XML_ERR_ELEMCONTENT_NOT_FINISHED, - XML_ERR_XMLDECL_NOT_STARTED, - XML_ERR_XMLDECL_NOT_FINISHED, - XML_ERR_CONDSEC_NOT_STARTED, - XML_ERR_CONDSEC_NOT_FINISHED, - XML_ERR_EXT_SUBSET_NOT_FINISHED, - XML_ERR_DOCTYPE_NOT_FINISHED, - XML_ERR_MISPLACED_CDATA_END, - XML_ERR_CDATA_NOT_FINISHED, - XML_ERR_RESERVED_XML_NAME, - XML_ERR_SPACE_REQUIRED, - XML_ERR_SEPARATOR_REQUIRED, - XML_ERR_NMTOKEN_REQUIRED, - XML_ERR_NAME_REQUIRED, - XML_ERR_PCDATA_REQUIRED, - XML_ERR_URI_REQUIRED, - XML_ERR_PUBID_REQUIRED, - XML_ERR_LT_REQUIRED, - XML_ERR_GT_REQUIRED, - XML_ERR_LTSLASH_REQUIRED, - XML_ERR_EQUAL_REQUIRED, - XML_ERR_TAG_NAME_MISMATCH, - XML_ERR_TAG_NOT_FINISHED, - XML_ERR_STANDALONE_VALUE, - XML_ERR_ENCODING_NAME, - XML_ERR_HYPHEN_IN_COMMENT, - XML_ERR_INVALID_ENCODING, - XML_ERR_EXT_ENTITY_STANDALONE, - XML_ERR_CONDSEC_INVALID, - XML_ERR_VALUE_REQUIRED, - XML_ERR_NOT_WELL_BALANCED, - XML_ERR_EXTRA_CONTENT, - XML_ERR_ENTITY_CHAR_ERROR, - XML_ERR_ENTITY_PE_INTERNAL, - XML_ERR_ENTITY_LOOP, - XML_ERR_ENTITY_BOUNDARY, - XML_ERR_INVALID_URI, - XML_ERR_URI_FRAGMENT, - XML_WAR_CATALOG_PI, - XML_ERR_NO_DTD, - XML_ERR_CONDSEC_INVALID_KEYWORD, - XML_ERR_VERSION_MISSING, - XML_WAR_UNKNOWN_VERSION, - XML_WAR_LANG_VALUE, - XML_WAR_NS_URI, - XML_WAR_NS_URI_RELATIVE, - XML_ERR_MISSING_ENCODING, - XML_NS_ERR_XML_NAMESPACE, - XML_NS_ERR_UNDEFINED_NAMESPACE, - XML_NS_ERR_QNAME, - XML_NS_ERR_ATTRIBUTE_REDEFINED, - XML_DTD_ATTRIBUTE_DEFAULT, - XML_DTD_ATTRIBUTE_REDEFINED, - XML_DTD_ATTRIBUTE_VALUE, - XML_DTD_CONTENT_ERROR, - XML_DTD_CONTENT_MODEL, - XML_DTD_CONTENT_NOT_DETERMINIST, - XML_DTD_DIFFERENT_PREFIX, - XML_DTD_ELEM_DEFAULT_NAMESPACE, - XML_DTD_ELEM_NAMESPACE, - XML_DTD_ELEM_REDEFINED, - XML_DTD_EMPTY_NOTATION, - XML_DTD_ENTITY_TYPE, - XML_DTD_ID_FIXED, - XML_DTD_ID_REDEFINED, - XML_DTD_ID_SUBSET, - XML_DTD_INVALID_CHILD, - XML_DTD_INVALID_DEFAULT, - XML_DTD_LOAD_ERROR, - XML_DTD_MISSING_ATTRIBUTE, - XML_DTD_MIXED_CORRUPT, - XML_DTD_MULTIPLE_ID, - XML_DTD_NO_DOC, - XML_DTD_NO_DTD, - XML_DTD_NO_ELEM_NAME, - XML_DTD_NO_PREFIX, - XML_DTD_NO_ROOT, - XML_DTD_NOTATION_REDEFINED, - XML_DTD_NOTATION_VALUE, - XML_DTD_NOT_EMPTY, - XML_DTD_NOT_PCDATA, - XML_DTD_NOT_STANDALONE, - XML_DTD_ROOT_NAME, - XML_DTD_STANDALONE_WHITE_SPACE, - XML_DTD_UNKNOWN_ATTRIBUTE, - XML_DTD_UNKNOWN_ELEM, - XML_DTD_UNKNOWN_ENTITY, - XML_DTD_UNKNOWN_ID, - XML_DTD_UNKNOWN_NOTATION, - XML_DTD_STANDALONE_DEFAULTED, - XML_DTD_XMLID_VALUE, - XML_DTD_XMLID_TYPE, - XML_HTML_STRUCURE_ERROR, - XML_HTML_UNKNOWN_TAG, - XML_RNGP_ANYNAME_ATTR_ANCESTOR, - XML_RNGP_ATTR_CONFLICT, - XML_RNGP_ATTRIBUTE_CHILDREN, - XML_RNGP_ATTRIBUTE_CONTENT, - XML_RNGP_ATTRIBUTE_EMPTY, - XML_RNGP_ATTRIBUTE_NOOP, - XML_RNGP_CHOICE_CONTENT, - XML_RNGP_CHOICE_EMPTY, - XML_RNGP_CREATE_FAILURE, - XML_RNGP_DATA_CONTENT, - XML_RNGP_DEF_CHOICE_AND_INTERLEAVE, - XML_RNGP_DEFINE_CREATE_FAILED, - XML_RNGP_DEFINE_EMPTY, - XML_RNGP_DEFINE_MISSING, - XML_RNGP_DEFINE_NAME_MISSING, - XML_RNGP_ELEM_CONTENT_EMPTY, - XML_RNGP_ELEM_CONTENT_ERROR, - XML_RNGP_ELEMENT_EMPTY, - XML_RNGP_ELEMENT_CONTENT, - XML_RNGP_ELEMENT_NAME, - XML_RNGP_ELEMENT_NO_CONTENT, - XML_RNGP_ELEM_TEXT_CONFLICT, - XML_RNGP_EMPTY, - XML_RNGP_EMPTY_CONSTRUCT, - XML_RNGP_EMPTY_CONTENT, - XML_RNGP_EMPTY_NOT_EMPTY, - XML_RNGP_ERROR_TYPE_LIB, - XML_RNGP_EXCEPT_EMPTY, - XML_RNGP_EXCEPT_MISSING, - XML_RNGP_EXCEPT_MULTIPLE, - XML_RNGP_EXCEPT_NO_CONTENT, - XML_RNGP_EXTERNALREF_EMTPY, - XML_RNGP_EXTERNAL_REF_FAILURE, - XML_RNGP_EXTERNALREF_RECURSE, - XML_RNGP_FORBIDDEN_ATTRIBUTE, - XML_RNGP_FOREIGN_ELEMENT, - XML_RNGP_GRAMMAR_CONTENT, - XML_RNGP_GRAMMAR_EMPTY, - XML_RNGP_GRAMMAR_MISSING, - XML_RNGP_GRAMMAR_NO_START, - XML_RNGP_GROUP_ATTR_CONFLICT, - XML_RNGP_HREF_ERROR, - XML_RNGP_INCLUDE_EMPTY, - XML_RNGP_INCLUDE_FAILURE, - XML_RNGP_INCLUDE_RECURSE, - XML_RNGP_INTERLEAVE_ADD, - XML_RNGP_INTERLEAVE_CREATE_FAILED, - XML_RNGP_INTERLEAVE_EMPTY, - XML_RNGP_INTERLEAVE_NO_CONTENT, - XML_RNGP_INVALID_DEFINE_NAME, - XML_RNGP_INVALID_URI, - XML_RNGP_INVALID_VALUE, - XML_RNGP_MISSING_HREF, - XML_RNGP_NAME_MISSING, - XML_RNGP_NEED_COMBINE, - XML_RNGP_NOTALLOWED_NOT_EMPTY, - XML_RNGP_NSNAME_ATTR_ANCESTOR, - XML_RNGP_NSNAME_NO_NS, - XML_RNGP_PARAM_FORBIDDEN, - XML_RNGP_PARAM_NAME_MISSING, - XML_RNGP_PARENTREF_CREATE_FAILED, - XML_RNGP_PARENTREF_NAME_INVALID, - XML_RNGP_PARENTREF_NO_NAME, - XML_RNGP_PARENTREF_NO_PARENT, - XML_RNGP_PARENTREF_NOT_EMPTY, - XML_RNGP_PARSE_ERROR, - XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME, - XML_RNGP_PAT_ATTR_ATTR, - XML_RNGP_PAT_ATTR_ELEM, - XML_RNGP_PAT_DATA_EXCEPT_ATTR, - XML_RNGP_PAT_DATA_EXCEPT_ELEM, - XML_RNGP_PAT_DATA_EXCEPT_EMPTY, - XML_RNGP_PAT_DATA_EXCEPT_GROUP, - XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE, - XML_RNGP_PAT_DATA_EXCEPT_LIST, - XML_RNGP_PAT_DATA_EXCEPT_ONEMORE, - XML_RNGP_PAT_DATA_EXCEPT_REF, - XML_RNGP_PAT_DATA_EXCEPT_TEXT, - XML_RNGP_PAT_LIST_ATTR, - XML_RNGP_PAT_LIST_ELEM, - XML_RNGP_PAT_LIST_INTERLEAVE, - XML_RNGP_PAT_LIST_LIST, - XML_RNGP_PAT_LIST_REF, - XML_RNGP_PAT_LIST_TEXT, - XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME, - XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME, - XML_RNGP_PAT_ONEMORE_GROUP_ATTR, - XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR, - XML_RNGP_PAT_START_ATTR, - XML_RNGP_PAT_START_DATA, - XML_RNGP_PAT_START_EMPTY, - XML_RNGP_PAT_START_GROUP, - XML_RNGP_PAT_START_INTERLEAVE, - XML_RNGP_PAT_START_LIST, - XML_RNGP_PAT_START_ONEMORE, - XML_RNGP_PAT_START_TEXT, - XML_RNGP_PAT_START_VALUE, - XML_RNGP_PREFIX_UNDEFINED, - XML_RNGP_REF_CREATE_FAILED, - XML_RNGP_REF_CYCLE, - XML_RNGP_REF_NAME_INVALID, - XML_RNGP_REF_NO_DEF, - XML_RNGP_REF_NO_NAME, - XML_RNGP_REF_NOT_EMPTY, - XML_RNGP_START_CHOICE_AND_INTERLEAVE, - XML_RNGP_START_CONTENT, - XML_RNGP_START_EMPTY, - XML_RNGP_START_MISSING, - XML_RNGP_TEXT_EXPECTED, - XML_RNGP_TEXT_HAS_CHILD, - XML_RNGP_TYPE_MISSING, - XML_RNGP_TYPE_NOT_FOUND, - XML_RNGP_TYPE_VALUE, - XML_RNGP_UNKNOWN_ATTRIBUTE, - XML_RNGP_UNKNOWN_COMBINE, - XML_RNGP_UNKNOWN_CONSTRUCT, - XML_RNGP_UNKNOWN_TYPE_LIB, - XML_RNGP_URI_FRAGMENT, - XML_RNGP_URI_NOT_ABSOLUTE, - XML_RNGP_VALUE_EMPTY, - XML_RNGP_VALUE_NO_CONTENT, - XML_RNGP_XMLNS_NAME, - XML_RNGP_XML_NS, - XML_XPATH_EXPRESSION_OK, - XML_XPATH_NUMBER_ERROR, - XML_XPATH_UNFINISHED_LITERAL_ERROR, - XML_XPATH_START_LITERAL_ERROR, - XML_XPATH_VARIABLE_REF_ERROR, - XML_XPATH_UNDEF_VARIABLE_ERROR, - XML_XPATH_INVALID_PREDICATE_ERROR, - XML_XPATH_EXPR_ERROR, - XML_XPATH_UNCLOSED_ERROR, - XML_XPATH_UNKNOWN_FUNC_ERROR, - XML_XPATH_INVALID_OPERAND, - XML_XPATH_INVALID_TYPE, - XML_XPATH_INVALID_ARITY, - XML_XPATH_INVALID_CTXT_SIZE, - XML_XPATH_INVALID_CTXT_POSITION, - XML_XPATH_MEMORY_ERROR, - XML_XPTR_SYNTAX_ERROR, - XML_XPTR_RESOURCE_ERROR, - XML_XPTR_SUB_RESOURCE_ERROR, - XML_XPATH_UNDEF_PREFIX_ERROR, - XML_XPATH_ENCODING_ERROR, - XML_XPATH_INVALID_CHAR_ERROR, - XML_TREE_INVALID_HEX, - XML_TREE_INVALID_DEC, - XML_TREE_UNTERMINATED_ENTITY, - XML_SAVE_NOT_UTF8, - XML_SAVE_CHAR_INVALID, - XML_SAVE_NO_DOCTYPE, - XML_SAVE_UNKNOWN_ENCODING, - XML_REGEXP_COMPILE_ERROR, - XML_IO_UNKNOWN, - XML_IO_EACCES, - XML_IO_EAGAIN, - XML_IO_EBADF, - XML_IO_EBADMSG, - XML_IO_EBUSY, - XML_IO_ECANCELED, - XML_IO_ECHILD, - XML_IO_EDEADLK, - XML_IO_EDOM, - XML_IO_EEXIST, - XML_IO_EFAULT, - XML_IO_EFBIG, - XML_IO_EINPROGRESS, - XML_IO_EINTR, - XML_IO_EINVAL, - XML_IO_EIO, - XML_IO_EISDIR, - XML_IO_EMFILE, - XML_IO_EMLINK, - XML_IO_EMSGSIZE, - XML_IO_ENAMETOOLONG, - XML_IO_ENFILE, - XML_IO_ENODEV, - XML_IO_ENOENT, - XML_IO_ENOEXEC, - XML_IO_ENOLCK, - XML_IO_ENOMEM, - XML_IO_ENOSPC, - XML_IO_ENOSYS, - XML_IO_ENOTDIR, - XML_IO_ENOTEMPTY, - XML_IO_ENOTSUP, - XML_IO_ENOTTY, - XML_IO_ENXIO, - XML_IO_EPERM, - XML_IO_EPIPE, - XML_IO_ERANGE, - XML_IO_EROFS, - XML_IO_ESPIPE, - XML_IO_ESRCH, - XML_IO_ETIMEDOUT, - XML_IO_EXDEV, - XML_IO_NETWORK_ATTEMPT, - XML_IO_ENCODER, - XML_IO_FLUSH, - XML_IO_WRITE, - XML_IO_NO_INPUT, - XML_IO_BUFFER_FULL, - XML_IO_LOAD_ERROR, - XML_IO_ENOTSOCK, - XML_IO_EISCONN, - XML_IO_ECONNREFUSED, - XML_IO_ENETUNREACH, - XML_IO_EADDRINUSE, - XML_IO_EALREADY, - XML_IO_EAFNOSUPPORT, - XML_XINCLUDE_RECURSION, - XML_XINCLUDE_PARSE_VALUE, - XML_XINCLUDE_ENTITY_DEF_MISMATCH, - XML_XINCLUDE_NO_HREF, - XML_XINCLUDE_NO_FALLBACK, - XML_XINCLUDE_HREF_URI, - XML_XINCLUDE_TEXT_FRAGMENT, - XML_XINCLUDE_TEXT_DOCUMENT, - XML_XINCLUDE_INVALID_CHAR, - XML_XINCLUDE_BUILD_FAILED, - XML_XINCLUDE_UNKNOWN_ENCODING, - XML_XINCLUDE_MULTIPLE_ROOT, - XML_XINCLUDE_XPTR_FAILED, - XML_XINCLUDE_XPTR_RESULT, - XML_XINCLUDE_INCLUDE_IN_INCLUDE, - XML_XINCLUDE_FALLBACKS_IN_INCLUDE, - XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE, - XML_XINCLUDE_DEPRECATED_NS, - XML_XINCLUDE_FRAGMENT_ID, - XML_CATALOG_MISSING_ATTR, - XML_CATALOG_ENTRY_BROKEN, - XML_CATALOG_PREFER_VALUE, - XML_CATALOG_NOT_CATALOG, - XML_CATALOG_RECURSION, - XML_SCHEMAP_PREFIX_UNDEFINED, - XML_SCHEMAP_ATTRFORMDEFAULT_VALUE, - XML_SCHEMAP_ATTRGRP_NONAME_NOREF, - XML_SCHEMAP_ATTR_NONAME_NOREF, - XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF, - XML_SCHEMAP_ELEMFORMDEFAULT_VALUE, - XML_SCHEMAP_ELEM_NONAME_NOREF, - XML_SCHEMAP_EXTENSION_NO_BASE, - XML_SCHEMAP_FACET_NO_VALUE, - XML_SCHEMAP_FAILED_BUILD_IMPORT, - XML_SCHEMAP_GROUP_NONAME_NOREF, - XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI, - XML_SCHEMAP_IMPORT_REDEFINE_NSNAME, - XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI, - XML_SCHEMAP_INVALID_BOOLEAN, - XML_SCHEMAP_INVALID_ENUM, - XML_SCHEMAP_INVALID_FACET, - XML_SCHEMAP_INVALID_FACET_VALUE, - XML_SCHEMAP_INVALID_MAXOCCURS, - XML_SCHEMAP_INVALID_MINOCCURS, - XML_SCHEMAP_INVALID_REF_AND_SUBTYPE, - XML_SCHEMAP_INVALID_WHITE_SPACE, - XML_SCHEMAP_NOATTR_NOREF, - XML_SCHEMAP_NOTATION_NO_NAME, - XML_SCHEMAP_NOTYPE_NOREF, - XML_SCHEMAP_REF_AND_SUBTYPE, - XML_SCHEMAP_RESTRICTION_NONAME_NOREF, - XML_SCHEMAP_SIMPLETYPE_NONAME, - XML_SCHEMAP_TYPE_AND_SUBTYPE, - XML_SCHEMAP_UNKNOWN_ALL_CHILD, - XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD, - XML_SCHEMAP_UNKNOWN_ATTR_CHILD, - XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD, - XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP, - XML_SCHEMAP_UNKNOWN_BASE_TYPE, - XML_SCHEMAP_UNKNOWN_CHOICE_CHILD, - XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD, - XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD, - XML_SCHEMAP_UNKNOWN_ELEM_CHILD, - XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD, - XML_SCHEMAP_UNKNOWN_FACET_CHILD, - XML_SCHEMAP_UNKNOWN_FACET_TYPE, - XML_SCHEMAP_UNKNOWN_GROUP_CHILD, - XML_SCHEMAP_UNKNOWN_IMPORT_CHILD, - XML_SCHEMAP_UNKNOWN_LIST_CHILD, - XML_SCHEMAP_UNKNOWN_NOTATION_CHILD, - XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD, - XML_SCHEMAP_UNKNOWN_REF, - XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD, - XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD, - XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD, - XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD, - XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD, - XML_SCHEMAP_UNKNOWN_TYPE, - XML_SCHEMAP_UNKNOWN_UNION_CHILD, - XML_SCHEMAP_ELEM_DEFAULT_FIXED, - XML_SCHEMAP_REGEXP_INVALID, - XML_SCHEMAP_FAILED_LOAD, - XML_SCHEMAP_NOTHING_TO_PARSE, - XML_SCHEMAP_NOROOT, - XML_SCHEMAP_REDEFINED_GROUP, - XML_SCHEMAP_REDEFINED_TYPE, - XML_SCHEMAP_REDEFINED_ELEMENT, - XML_SCHEMAP_REDEFINED_ATTRGROUP, - XML_SCHEMAP_REDEFINED_ATTR, - XML_SCHEMAP_REDEFINED_NOTATION, - XML_SCHEMAP_FAILED_PARSE, - XML_SCHEMAP_UNKNOWN_PREFIX, - XML_SCHEMAP_DEF_AND_PREFIX, - XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD, - XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI, - XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI, - XML_SCHEMAP_NOT_SCHEMA, - XML_SCHEMAP_UNKNOWN_MEMBER_TYPE, - XML_SCHEMAP_INVALID_ATTR_USE, - XML_SCHEMAP_RECURSIVE, - XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE, - XML_SCHEMAP_INVALID_ATTR_COMBINATION, - XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION, - XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD, - XML_SCHEMAP_INVALID_ATTR_NAME, - XML_SCHEMAP_REF_AND_CONTENT, - XML_SCHEMAP_CT_PROPS_CORRECT_1, - XML_SCHEMAP_CT_PROPS_CORRECT_2, - XML_SCHEMAP_CT_PROPS_CORRECT_3, - XML_SCHEMAP_CT_PROPS_CORRECT_4, - XML_SCHEMAP_CT_PROPS_CORRECT_5, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3, - XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER, - XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE, - XML_SCHEMAP_UNION_NOT_EXPRESSIBLE, - XML_SCHEMAP_SRC_IMPORT_3_1, - XML_SCHEMAP_SRC_IMPORT_3_2, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3, - XML_SCHEMAP_COS_CT_EXTENDS_1_3, - XML_SCHEMAV_NOROOT, - XML_SCHEMAV_UNDECLAREDELEM, - XML_SCHEMAV_NOTTOPLEVEL, - XML_SCHEMAV_MISSING, - XML_SCHEMAV_WRONGELEM, - XML_SCHEMAV_NOTYPE, - XML_SCHEMAV_NOROLLBACK, - XML_SCHEMAV_ISABSTRACT, - XML_SCHEMAV_NOTEMPTY, - XML_SCHEMAV_ELEMCONT, - XML_SCHEMAV_HAVEDEFAULT, - XML_SCHEMAV_NOTNILLABLE, - XML_SCHEMAV_EXTRACONTENT, - XML_SCHEMAV_INVALIDATTR, - XML_SCHEMAV_INVALIDELEM, - XML_SCHEMAV_NOTDETERMINIST, - XML_SCHEMAV_CONSTRUCT, - XML_SCHEMAV_INTERNAL, - XML_SCHEMAV_NOTSIMPLE, - XML_SCHEMAV_ATTRUNKNOWN, - XML_SCHEMAV_ATTRINVALID, - XML_SCHEMAV_VALUE, - XML_SCHEMAV_FACET, - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1, - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2, - XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3, - XML_SCHEMAV_CVC_TYPE_3_1_1, - XML_SCHEMAV_CVC_TYPE_3_1_2, - XML_SCHEMAV_CVC_FACET_VALID, - XML_SCHEMAV_CVC_LENGTH_VALID, - XML_SCHEMAV_CVC_MINLENGTH_VALID, - XML_SCHEMAV_CVC_MAXLENGTH_VALID, - XML_SCHEMAV_CVC_MININCLUSIVE_VALID, - XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID, - XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID, - XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID, - XML_SCHEMAV_CVC_TOTALDIGITS_VALID, - XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID, - XML_SCHEMAV_CVC_PATTERN_VALID, - XML_SCHEMAV_CVC_ENUMERATION_VALID, - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1, - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2, - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3, - XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4, - -#if defined XML_SCHEMAV_CVC_ELT_1 - XML_SCHEMAV_CVC_ELT_1, - XML_SCHEMAV_CVC_ELT_2, - XML_SCHEMAV_CVC_ELT_3_1, - XML_SCHEMAV_CVC_ELT_3_2_1, - XML_SCHEMAV_CVC_ELT_3_2_2, - XML_SCHEMAV_CVC_ELT_4_1, - XML_SCHEMAV_CVC_ELT_4_2, - XML_SCHEMAV_CVC_ELT_4_3, - XML_SCHEMAV_CVC_ELT_5_1_1, - XML_SCHEMAV_CVC_ELT_5_1_2, - XML_SCHEMAV_CVC_ELT_5_2_1, - XML_SCHEMAV_CVC_ELT_5_2_2_1, - XML_SCHEMAV_CVC_ELT_5_2_2_2_1, - XML_SCHEMAV_CVC_ELT_5_2_2_2_2, - XML_SCHEMAV_CVC_ELT_6, - XML_SCHEMAV_CVC_ELT_7, - XML_SCHEMAV_CVC_ATTRIBUTE_1, - XML_SCHEMAV_CVC_ATTRIBUTE_2, - XML_SCHEMAV_CVC_ATTRIBUTE_3, - XML_SCHEMAV_CVC_ATTRIBUTE_4, - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1, - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1, - XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2, - XML_SCHEMAV_CVC_COMPLEX_TYPE_4, - XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1, - XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2, - XML_SCHEMAV_ELEMENT_CONTENT, - XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING, -#endif - -#if defined XML_SCHEMAV_CVC_COMPLEX_TYPE_1 - XML_SCHEMAV_CVC_COMPLEX_TYPE_1, - XML_SCHEMAV_CVC_AU, - XML_SCHEMAV_CVC_TYPE_1, - XML_SCHEMAV_CVC_TYPE_2, -#endif - - XML_XPTR_UNKNOWN_SCHEME, - XML_XPTR_CHILDSEQ_START, - XML_XPTR_EVAL_FAILED, - XML_XPTR_EXTRA_OBJECTS, - XML_C14N_CREATE_CTXT, - XML_C14N_REQUIRES_UTF8, - XML_C14N_CREATE_STACK, - XML_C14N_INVALID_NODE, - XML_FTP_PASV_ANSWER, - XML_FTP_EPSV_ANSWER, - XML_FTP_ACCNT, - XML_HTTP_URL_SYNTAX, - XML_HTTP_USE_IP, - XML_HTTP_UNKNOWN_HOST, - XML_SCHEMAP_SRC_SIMPLE_TYPE_1, - XML_SCHEMAP_SRC_SIMPLE_TYPE_2, - XML_SCHEMAP_SRC_SIMPLE_TYPE_3, - XML_SCHEMAP_SRC_SIMPLE_TYPE_4, - XML_SCHEMAP_SRC_RESOLVE, - XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE, - XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE, - XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES, - XML_SCHEMAP_ST_PROPS_CORRECT_1, - XML_SCHEMAP_ST_PROPS_CORRECT_2, - XML_SCHEMAP_ST_PROPS_CORRECT_3, - XML_SCHEMAP_COS_ST_RESTRICTS_1_1, - XML_SCHEMAP_COS_ST_RESTRICTS_1_2, - XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1, - XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2, - XML_SCHEMAP_COS_ST_RESTRICTS_2_1, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4, - XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5, - XML_SCHEMAP_COS_ST_RESTRICTS_3_1, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4, - XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5, - XML_SCHEMAP_COS_ST_DERIVED_OK_2_1, - XML_SCHEMAP_COS_ST_DERIVED_OK_2_2, - XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED, - XML_SCHEMAP_S4S_ELEM_MISSING, - XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, - XML_SCHEMAP_S4S_ATTR_MISSING, - -#if defined XML_SCHEMAP_S4S_ATTR_INVALID_VALUE - XML_SCHEMAP_S4S_ATTR_INVALID_VALUE, - XML_SCHEMAP_SRC_ELEMENT_1, - XML_SCHEMAP_SRC_ELEMENT_2_1, - XML_SCHEMAP_SRC_ELEMENT_2_2, - XML_SCHEMAP_SRC_ELEMENT_3, - XML_SCHEMAP_P_PROPS_CORRECT_1, - XML_SCHEMAP_P_PROPS_CORRECT_2_1, - XML_SCHEMAP_P_PROPS_CORRECT_2_2, - XML_SCHEMAP_E_PROPS_CORRECT_2, - XML_SCHEMAP_E_PROPS_CORRECT_3, - XML_SCHEMAP_E_PROPS_CORRECT_4, - XML_SCHEMAP_E_PROPS_CORRECT_5, - XML_SCHEMAP_E_PROPS_CORRECT_6, - XML_SCHEMAP_SRC_INCLUDE, - XML_SCHEMAP_SRC_ATTRIBUTE_1, - XML_SCHEMAP_SRC_ATTRIBUTE_2, - XML_SCHEMAP_SRC_ATTRIBUTE_3_1, - XML_SCHEMAP_SRC_ATTRIBUTE_3_2, - XML_SCHEMAP_SRC_ATTRIBUTE_4, - XML_SCHEMAP_NO_XMLNS, - XML_SCHEMAP_NO_XSI, - XML_SCHEMAP_COS_VALID_DEFAULT_1, - XML_SCHEMAP_COS_VALID_DEFAULT_2_1, - XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1, - XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2, - XML_SCHEMAP_CVC_SIMPLE_TYPE, - XML_SCHEMAP_COS_CT_EXTENDS_1_1, - XML_SCHEMAP_SRC_IMPORT_1_1, - XML_SCHEMAP_SRC_IMPORT_1_2, - XML_SCHEMAP_SRC_IMPORT_2, - XML_SCHEMAP_SRC_IMPORT_2_1, - XML_SCHEMAP_SRC_IMPORT_2_2, -#endif - -#if defined XML_SCHEMAP_INTERNAL - XML_SCHEMAP_INTERNAL, - XML_SCHEMAP_NOT_DETERMINISTIC, -#endif - -#if defined XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1, - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2, - XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3, - XML_SCHEMAP_MG_PROPS_CORRECT_1, - XML_SCHEMAP_MG_PROPS_CORRECT_2, - XML_SCHEMAP_SRC_CT_1, - XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3, - XML_SCHEMAP_AU_PROPS_CORRECT_2, - XML_SCHEMAP_A_PROPS_CORRECT_2, -#endif - -1 -}; - - -static const char* xmlErrorStrs[] = { - "ERR_OK", - "ERR_INTERNAL_ERROR", - "ERR_NO_MEMORY", - "ERR_DOCUMENT_START", - "ERR_DOCUMENT_EMPTY", - "ERR_DOCUMENT_END", - "ERR_INVALID_HEX_CHARREF", - "ERR_INVALID_DEC_CHARREF", - "ERR_INVALID_CHARREF", - "ERR_INVALID_CHAR", - "ERR_CHARREF_AT_EOF", - "ERR_CHARREF_IN_PROLOG", - "ERR_CHARREF_IN_EPILOG", - "ERR_CHARREF_IN_DTD", - "ERR_ENTITYREF_AT_EOF", - "ERR_ENTITYREF_IN_PROLOG", - "ERR_ENTITYREF_IN_EPILOG", - "ERR_ENTITYREF_IN_DTD", - "ERR_PEREF_AT_EOF", - "ERR_PEREF_IN_PROLOG", - "ERR_PEREF_IN_EPILOG", - "ERR_PEREF_IN_INT_SUBSET", - "ERR_ENTITYREF_NO_NAME", - "ERR_ENTITYREF_SEMICOL_MISSING", - "ERR_PEREF_NO_NAME", - "ERR_PEREF_SEMICOL_MISSING", - "ERR_UNDECLARED_ENTITY", - "WAR_UNDECLARED_ENTITY", - "ERR_UNPARSED_ENTITY", - "ERR_ENTITY_IS_EXTERNAL", - "ERR_ENTITY_IS_PARAMETER", - "ERR_UNKNOWN_ENCODING", - "ERR_UNSUPPORTED_ENCODING", - "ERR_STRING_NOT_STARTED", - "ERR_STRING_NOT_CLOSED", - "ERR_NS_DECL_ERROR", - "ERR_ENTITY_NOT_STARTED", - "ERR_ENTITY_NOT_FINISHED", - "ERR_LT_IN_ATTRIBUTE", - "ERR_ATTRIBUTE_NOT_STARTED", - "ERR_ATTRIBUTE_NOT_FINISHED", - "ERR_ATTRIBUTE_WITHOUT_VALUE", - "ERR_ATTRIBUTE_REDEFINED", - "ERR_LITERAL_NOT_STARTED", - "ERR_LITERAL_NOT_FINISHED", - "ERR_COMMENT_NOT_FINISHED", - "ERR_PI_NOT_STARTED", - "ERR_PI_NOT_FINISHED", - "ERR_NOTATION_NOT_STARTED", - "ERR_NOTATION_NOT_FINISHED", - "ERR_ATTLIST_NOT_STARTED", - "ERR_ATTLIST_NOT_FINISHED", - "ERR_MIXED_NOT_STARTED", - "ERR_MIXED_NOT_FINISHED", - "ERR_ELEMCONTENT_NOT_STARTED", - "ERR_ELEMCONTENT_NOT_FINISHED", - "ERR_XMLDECL_NOT_STARTED", - "ERR_XMLDECL_NOT_FINISHED", - "ERR_CONDSEC_NOT_STARTED", - "ERR_CONDSEC_NOT_FINISHED", - "ERR_EXT_SUBSET_NOT_FINISHED", - "ERR_DOCTYPE_NOT_FINISHED", - "ERR_MISPLACED_CDATA_END", - "ERR_CDATA_NOT_FINISHED", - "ERR_RESERVED_XML_NAME", - "ERR_SPACE_REQUIRED", - "ERR_SEPARATOR_REQUIRED", - "ERR_NMTOKEN_REQUIRED", - "ERR_NAME_REQUIRED", - "ERR_PCDATA_REQUIRED", - "ERR_URI_REQUIRED", - "ERR_PUBID_REQUIRED", - "ERR_LT_REQUIRED", - "ERR_GT_REQUIRED", - "ERR_LTSLASH_REQUIRED", - "ERR_EQUAL_REQUIRED", - "ERR_TAG_NAME_MISMATCH", - "ERR_TAG_NOT_FINISHED", - "ERR_STANDALONE_VALUE", - "ERR_ENCODING_NAME", - "ERR_HYPHEN_IN_COMMENT", - "ERR_INVALID_ENCODING", - "ERR_EXT_ENTITY_STANDALONE", - "ERR_CONDSEC_INVALID", - "ERR_VALUE_REQUIRED", - "ERR_NOT_WELL_BALANCED", - "ERR_EXTRA_CONTENT", - "ERR_ENTITY_CHAR_ERROR", - "ERR_ENTITY_PE_INTERNAL", - "ERR_ENTITY_LOOP", - "ERR_ENTITY_BOUNDARY", - "ERR_INVALID_URI", - "ERR_URI_FRAGMENT", - "WAR_CATALOG_PI", - "ERR_NO_DTD", - "ERR_CONDSEC_INVALID_KEYWORD", - "ERR_VERSION_MISSING", - "WAR_UNKNOWN_VERSION", - "WAR_LANG_VALUE", - "WAR_NS_URI", - "WAR_NS_URI_RELATIVE", - "ERR_MISSING_ENCODING", - "NS_ERR_XML_NAMESPACE", - "NS_ERR_UNDEFINED_NAMESPACE", - "NS_ERR_QNAME", - "NS_ERR_ATTRIBUTE_REDEFINED", - "DTD_ATTRIBUTE_DEFAULT", - "DTD_ATTRIBUTE_REDEFINED", - "DTD_ATTRIBUTE_VALUE", - "DTD_CONTENT_ERROR", - "DTD_CONTENT_MODEL", - "DTD_CONTENT_NOT_DETERMINIST", - "DTD_DIFFERENT_PREFIX", - "DTD_ELEM_DEFAULT_NAMESPACE", - "DTD_ELEM_NAMESPACE", - "DTD_ELEM_REDEFINED", - "DTD_EMPTY_NOTATION", - "DTD_ENTITY_TYPE", - "DTD_ID_FIXED", - "DTD_ID_REDEFINED", - "DTD_ID_SUBSET", - "DTD_INVALID_CHILD", - "DTD_INVALID_DEFAULT", - "DTD_LOAD_ERROR", - "DTD_MISSING_ATTRIBUTE", - "DTD_MIXED_CORRUPT", - "DTD_MULTIPLE_ID", - "DTD_NO_DOC", - "DTD_NO_DTD", - "DTD_NO_ELEM_NAME", - "DTD_NO_PREFIX", - "DTD_NO_ROOT", - "DTD_NOTATION_REDEFINED", - "DTD_NOTATION_VALUE", - "DTD_NOT_EMPTY", - "DTD_NOT_PCDATA", - "DTD_NOT_STANDALONE", - "DTD_ROOT_NAME", - "DTD_STANDALONE_WHITE_SPACE", - "DTD_UNKNOWN_ATTRIBUTE", - "DTD_UNKNOWN_ELEM", - "DTD_UNKNOWN_ENTITY", - "DTD_UNKNOWN_ID", - "DTD_UNKNOWN_NOTATION", - "DTD_STANDALONE_DEFAULTED", - "DTD_XMLID_VALUE", - "DTD_XMLID_TYPE", - "HTML_STRUCURE_ERROR", - "HTML_UNKNOWN_TAG", - "RNGP_ANYNAME_ATTR_ANCESTOR", - "RNGP_ATTR_CONFLICT", - "RNGP_ATTRIBUTE_CHILDREN", - "RNGP_ATTRIBUTE_CONTENT", - "RNGP_ATTRIBUTE_EMPTY", - "RNGP_ATTRIBUTE_NOOP", - "RNGP_CHOICE_CONTENT", - "RNGP_CHOICE_EMPTY", - "RNGP_CREATE_FAILURE", - "RNGP_DATA_CONTENT", - "RNGP_DEF_CHOICE_AND_INTERLEAVE", - "RNGP_DEFINE_CREATE_FAILED", - "RNGP_DEFINE_EMPTY", - "RNGP_DEFINE_MISSING", - "RNGP_DEFINE_NAME_MISSING", - "RNGP_ELEM_CONTENT_EMPTY", - "RNGP_ELEM_CONTENT_ERROR", - "RNGP_ELEMENT_EMPTY", - "RNGP_ELEMENT_CONTENT", - "RNGP_ELEMENT_NAME", - "RNGP_ELEMENT_NO_CONTENT", - "RNGP_ELEM_TEXT_CONFLICT", - "RNGP_EMPTY", - "RNGP_EMPTY_CONSTRUCT", - "RNGP_EMPTY_CONTENT", - "RNGP_EMPTY_NOT_EMPTY", - "RNGP_ERROR_TYPE_LIB", - "RNGP_EXCEPT_EMPTY", - "RNGP_EXCEPT_MISSING", - "RNGP_EXCEPT_MULTIPLE", - "RNGP_EXCEPT_NO_CONTENT", - "RNGP_EXTERNALREF_EMTPY", - "RNGP_EXTERNAL_REF_FAILURE", - "RNGP_EXTERNALREF_RECURSE", - "RNGP_FORBIDDEN_ATTRIBUTE", - "RNGP_FOREIGN_ELEMENT", - "RNGP_GRAMMAR_CONTENT", - "RNGP_GRAMMAR_EMPTY", - "RNGP_GRAMMAR_MISSING", - "RNGP_GRAMMAR_NO_START", - "RNGP_GROUP_ATTR_CONFLICT", - "RNGP_HREF_ERROR", - "RNGP_INCLUDE_EMPTY", - "RNGP_INCLUDE_FAILURE", - "RNGP_INCLUDE_RECURSE", - "RNGP_INTERLEAVE_ADD", - "RNGP_INTERLEAVE_CREATE_FAILED", - "RNGP_INTERLEAVE_EMPTY", - "RNGP_INTERLEAVE_NO_CONTENT", - "RNGP_INVALID_DEFINE_NAME", - "RNGP_INVALID_URI", - "RNGP_INVALID_VALUE", - "RNGP_MISSING_HREF", - "RNGP_NAME_MISSING", - "RNGP_NEED_COMBINE", - "RNGP_NOTALLOWED_NOT_EMPTY", - "RNGP_NSNAME_ATTR_ANCESTOR", - "RNGP_NSNAME_NO_NS", - "RNGP_PARAM_FORBIDDEN", - "RNGP_PARAM_NAME_MISSING", - "RNGP_PARENTREF_CREATE_FAILED", - "RNGP_PARENTREF_NAME_INVALID", - "RNGP_PARENTREF_NO_NAME", - "RNGP_PARENTREF_NO_PARENT", - "RNGP_PARENTREF_NOT_EMPTY", - "RNGP_PARSE_ERROR", - "RNGP_PAT_ANYNAME_EXCEPT_ANYNAME", - "RNGP_PAT_ATTR_ATTR", - "RNGP_PAT_ATTR_ELEM", - "RNGP_PAT_DATA_EXCEPT_ATTR", - "RNGP_PAT_DATA_EXCEPT_ELEM", - "RNGP_PAT_DATA_EXCEPT_EMPTY", - "RNGP_PAT_DATA_EXCEPT_GROUP", - "RNGP_PAT_DATA_EXCEPT_INTERLEAVE", - "RNGP_PAT_DATA_EXCEPT_LIST", - "RNGP_PAT_DATA_EXCEPT_ONEMORE", - "RNGP_PAT_DATA_EXCEPT_REF", - "RNGP_PAT_DATA_EXCEPT_TEXT", - "RNGP_PAT_LIST_ATTR", - "RNGP_PAT_LIST_ELEM", - "RNGP_PAT_LIST_INTERLEAVE", - "RNGP_PAT_LIST_LIST", - "RNGP_PAT_LIST_REF", - "RNGP_PAT_LIST_TEXT", - "RNGP_PAT_NSNAME_EXCEPT_ANYNAME", - "RNGP_PAT_NSNAME_EXCEPT_NSNAME", - "RNGP_PAT_ONEMORE_GROUP_ATTR", - "RNGP_PAT_ONEMORE_INTERLEAVE_ATTR", - "RNGP_PAT_START_ATTR", - "RNGP_PAT_START_DATA", - "RNGP_PAT_START_EMPTY", - "RNGP_PAT_START_GROUP", - "RNGP_PAT_START_INTERLEAVE", - "RNGP_PAT_START_LIST", - "RNGP_PAT_START_ONEMORE", - "RNGP_PAT_START_TEXT", - "RNGP_PAT_START_VALUE", - "RNGP_PREFIX_UNDEFINED", - "RNGP_REF_CREATE_FAILED", - "RNGP_REF_CYCLE", - "RNGP_REF_NAME_INVALID", - "RNGP_REF_NO_DEF", - "RNGP_REF_NO_NAME", - "RNGP_REF_NOT_EMPTY", - "RNGP_START_CHOICE_AND_INTERLEAVE", - "RNGP_START_CONTENT", - "RNGP_START_EMPTY", - "RNGP_START_MISSING", - "RNGP_TEXT_EXPECTED", - "RNGP_TEXT_HAS_CHILD", - "RNGP_TYPE_MISSING", - "RNGP_TYPE_NOT_FOUND", - "RNGP_TYPE_VALUE", - "RNGP_UNKNOWN_ATTRIBUTE", - "RNGP_UNKNOWN_COMBINE", - "RNGP_UNKNOWN_CONSTRUCT", - "RNGP_UNKNOWN_TYPE_LIB", - "RNGP_URI_FRAGMENT", - "RNGP_URI_NOT_ABSOLUTE", - "RNGP_VALUE_EMPTY", - "RNGP_VALUE_NO_CONTENT", - "RNGP_XMLNS_NAME", - "RNGP_XML_NS", - "XPATH_EXPRESSION_OK", - "XPATH_NUMBER_ERROR", - "XPATH_UNFINISHED_LITERAL_ERROR", - "XPATH_START_LITERAL_ERROR", - "XPATH_VARIABLE_REF_ERROR", - "XPATH_UNDEF_VARIABLE_ERROR", - "XPATH_INVALID_PREDICATE_ERROR", - "XPATH_EXPR_ERROR", - "XPATH_UNCLOSED_ERROR", - "XPATH_UNKNOWN_FUNC_ERROR", - "XPATH_INVALID_OPERAND", - "XPATH_INVALID_TYPE", - "XPATH_INVALID_ARITY", - "XPATH_INVALID_CTXT_SIZE", - "XPATH_INVALID_CTXT_POSITION", - "XPATH_MEMORY_ERROR", - "XPTR_SYNTAX_ERROR", - "XPTR_RESOURCE_ERROR", - "XPTR_SUB_RESOURCE_ERROR", - "XPATH_UNDEF_PREFIX_ERROR", - "XPATH_ENCODING_ERROR", - "XPATH_INVALID_CHAR_ERROR", - "TREE_INVALID_HEX", - "TREE_INVALID_DEC", - "TREE_UNTERMINATED_ENTITY", - "SAVE_NOT_UTF8", - "SAVE_CHAR_INVALID", - "SAVE_NO_DOCTYPE", - "SAVE_UNKNOWN_ENCODING", - "REGEXP_COMPILE_ERROR", - "IO_UNKNOWN", - "IO_EACCES", - "IO_EAGAIN", - "IO_EBADF", - "IO_EBADMSG", - "IO_EBUSY", - "IO_ECANCELED", - "IO_ECHILD", - "IO_EDEADLK", - "IO_EDOM", - "IO_EEXIST", - "IO_EFAULT", - "IO_EFBIG", - "IO_EINPROGRESS", - "IO_EINTR", - "IO_EINVAL", - "IO_EIO", - "IO_EISDIR", - "IO_EMFILE", - "IO_EMLINK", - "IO_EMSGSIZE", - "IO_ENAMETOOLONG", - "IO_ENFILE", - "IO_ENODEV", - "IO_ENOENT", - "IO_ENOEXEC", - "IO_ENOLCK", - "IO_ENOMEM", - "IO_ENOSPC", - "IO_ENOSYS", - "IO_ENOTDIR", - "IO_ENOTEMPTY", - "IO_ENOTSUP", - "IO_ENOTTY", - "IO_ENXIO", - "IO_EPERM", - "IO_EPIPE", - "IO_ERANGE", - "IO_EROFS", - "IO_ESPIPE", - "IO_ESRCH", - "IO_ETIMEDOUT", - "IO_EXDEV", - "IO_NETWORK_ATTEMPT", - "IO_ENCODER", - "IO_FLUSH", - "IO_WRITE", - "IO_NO_INPUT", - "IO_BUFFER_FULL", - "IO_LOAD_ERROR", - "IO_ENOTSOCK", - "IO_EISCONN", - "IO_ECONNREFUSED", - "IO_ENETUNREACH", - "IO_EADDRINUSE", - "IO_EALREADY", - "IO_EAFNOSUPPORT", - "XINCLUDE_RECURSION", - "XINCLUDE_PARSE_VALUE", - "XINCLUDE_ENTITY_DEF_MISMATCH", - "XINCLUDE_NO_HREF", - "XINCLUDE_NO_FALLBACK", - "XINCLUDE_HREF_URI", - "XINCLUDE_TEXT_FRAGMENT", - "XINCLUDE_TEXT_DOCUMENT", - "XINCLUDE_INVALID_CHAR", - "XINCLUDE_BUILD_FAILED", - "XINCLUDE_UNKNOWN_ENCODING", - "XINCLUDE_MULTIPLE_ROOT", - "XINCLUDE_XPTR_FAILED", - "XINCLUDE_XPTR_RESULT", - "XINCLUDE_INCLUDE_IN_INCLUDE", - "XINCLUDE_FALLBACKS_IN_INCLUDE", - "XINCLUDE_FALLBACK_NOT_IN_INCLUDE", - "XINCLUDE_DEPRECATED_NS", - "XINCLUDE_FRAGMENT_ID", - "CATALOG_MISSING_ATTR", - "CATALOG_ENTRY_BROKEN", - "CATALOG_PREFER_VALUE", - "CATALOG_NOT_CATALOG", - "CATALOG_RECURSION", - "SCHEMAP_PREFIX_UNDEFINED", - "SCHEMAP_ATTRFORMDEFAULT_VALUE", - "SCHEMAP_ATTRGRP_NONAME_NOREF", - "SCHEMAP_ATTR_NONAME_NOREF", - "SCHEMAP_COMPLEXTYPE_NONAME_NOREF", - "SCHEMAP_ELEMFORMDEFAULT_VALUE", - "SCHEMAP_ELEM_NONAME_NOREF", - "SCHEMAP_EXTENSION_NO_BASE", - "SCHEMAP_FACET_NO_VALUE", - "SCHEMAP_FAILED_BUILD_IMPORT", - "SCHEMAP_GROUP_NONAME_NOREF", - "SCHEMAP_IMPORT_NAMESPACE_NOT_URI", - "SCHEMAP_IMPORT_REDEFINE_NSNAME", - "SCHEMAP_IMPORT_SCHEMA_NOT_URI", - "SCHEMAP_INVALID_BOOLEAN", - "SCHEMAP_INVALID_ENUM", - "SCHEMAP_INVALID_FACET", - "SCHEMAP_INVALID_FACET_VALUE", - "SCHEMAP_INVALID_MAXOCCURS", - "SCHEMAP_INVALID_MINOCCURS", - "SCHEMAP_INVALID_REF_AND_SUBTYPE", - "SCHEMAP_INVALID_WHITE_SPACE", - "SCHEMAP_NOATTR_NOREF", - "SCHEMAP_NOTATION_NO_NAME", - "SCHEMAP_NOTYPE_NOREF", - "SCHEMAP_REF_AND_SUBTYPE", - "SCHEMAP_RESTRICTION_NONAME_NOREF", - "SCHEMAP_SIMPLETYPE_NONAME", - "SCHEMAP_TYPE_AND_SUBTYPE", - "SCHEMAP_UNKNOWN_ALL_CHILD", - "SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD", - "SCHEMAP_UNKNOWN_ATTR_CHILD", - "SCHEMAP_UNKNOWN_ATTRGRP_CHILD", - "SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP", - "SCHEMAP_UNKNOWN_BASE_TYPE", - "SCHEMAP_UNKNOWN_CHOICE_CHILD", - "SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD", - "SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD", - "SCHEMAP_UNKNOWN_ELEM_CHILD", - "SCHEMAP_UNKNOWN_EXTENSION_CHILD", - "SCHEMAP_UNKNOWN_FACET_CHILD", - "SCHEMAP_UNKNOWN_FACET_TYPE", - "SCHEMAP_UNKNOWN_GROUP_CHILD", - "SCHEMAP_UNKNOWN_IMPORT_CHILD", - "SCHEMAP_UNKNOWN_LIST_CHILD", - "SCHEMAP_UNKNOWN_NOTATION_CHILD", - "SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD", - "SCHEMAP_UNKNOWN_REF", - "SCHEMAP_UNKNOWN_RESTRICTION_CHILD", - "SCHEMAP_UNKNOWN_SCHEMAS_CHILD", - "SCHEMAP_UNKNOWN_SEQUENCE_CHILD", - "SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD", - "SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD", - "SCHEMAP_UNKNOWN_TYPE", - "SCHEMAP_UNKNOWN_UNION_CHILD", - "SCHEMAP_ELEM_DEFAULT_FIXED", - "SCHEMAP_REGEXP_INVALID", - "SCHEMAP_FAILED_LOAD", - "SCHEMAP_NOTHING_TO_PARSE", - "SCHEMAP_NOROOT", - "SCHEMAP_REDEFINED_GROUP", - "SCHEMAP_REDEFINED_TYPE", - "SCHEMAP_REDEFINED_ELEMENT", - "SCHEMAP_REDEFINED_ATTRGROUP", - "SCHEMAP_REDEFINED_ATTR", - "SCHEMAP_REDEFINED_NOTATION", - "SCHEMAP_FAILED_PARSE", - "SCHEMAP_UNKNOWN_PREFIX", - "SCHEMAP_DEF_AND_PREFIX", - "SCHEMAP_UNKNOWN_INCLUDE_CHILD", - "SCHEMAP_INCLUDE_SCHEMA_NOT_URI", - "SCHEMAP_INCLUDE_SCHEMA_NO_URI", - "SCHEMAP_NOT_SCHEMA", - "SCHEMAP_UNKNOWN_MEMBER_TYPE", - "SCHEMAP_INVALID_ATTR_USE", - "SCHEMAP_RECURSIVE", - "SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE", - "SCHEMAP_INVALID_ATTR_COMBINATION", - "SCHEMAP_INVALID_ATTR_INLINE_COMBINATION", - "SCHEMAP_MISSING_SIMPLETYPE_CHILD", - "SCHEMAP_INVALID_ATTR_NAME", - "SCHEMAP_REF_AND_CONTENT", - "SCHEMAP_CT_PROPS_CORRECT_1", - "SCHEMAP_CT_PROPS_CORRECT_2", - "SCHEMAP_CT_PROPS_CORRECT_3", - "SCHEMAP_CT_PROPS_CORRECT_4", - "SCHEMAP_CT_PROPS_CORRECT_5", - "SCHEMAP_DERIVATION_OK_RESTRICTION_1", - "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1", - "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2", - "SCHEMAP_DERIVATION_OK_RESTRICTION_2_2", - "SCHEMAP_DERIVATION_OK_RESTRICTION_3", - "SCHEMAP_WILDCARD_INVALID_NS_MEMBER", - "SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE", - "SCHEMAP_UNION_NOT_EXPRESSIBLE", - "SCHEMAP_SRC_IMPORT_3_1", - "SCHEMAP_SRC_IMPORT_3_2", - "SCHEMAP_DERIVATION_OK_RESTRICTION_4_1", - "SCHEMAP_DERIVATION_OK_RESTRICTION_4_2", - "SCHEMAP_DERIVATION_OK_RESTRICTION_4_3", - "SCHEMAP_COS_CT_EXTENDS_1_3", - "SCHEMAV_NOROOT", - "SCHEMAV_UNDECLAREDELEM", - "SCHEMAV_NOTTOPLEVEL", - "SCHEMAV_MISSING", - "SCHEMAV_WRONGELEM", - "SCHEMAV_NOTYPE", - "SCHEMAV_NOROLLBACK", - "SCHEMAV_ISABSTRACT", - "SCHEMAV_NOTEMPTY", - "SCHEMAV_ELEMCONT", - "SCHEMAV_HAVEDEFAULT", - "SCHEMAV_NOTNILLABLE", - "SCHEMAV_EXTRACONTENT", - "SCHEMAV_INVALIDATTR", - "SCHEMAV_INVALIDELEM", - "SCHEMAV_NOTDETERMINIST", - "SCHEMAV_CONSTRUCT", - "SCHEMAV_INTERNAL", - "SCHEMAV_NOTSIMPLE", - "SCHEMAV_ATTRUNKNOWN", - "SCHEMAV_ATTRINVALID", - "SCHEMAV_VALUE", - "SCHEMAV_FACET", - "SCHEMAV_CVC_DATATYPE_VALID_1_2_1", - "SCHEMAV_CVC_DATATYPE_VALID_1_2_2", - "SCHEMAV_CVC_DATATYPE_VALID_1_2_3", - "SCHEMAV_CVC_TYPE_3_1_1", - "SCHEMAV_CVC_TYPE_3_1_2", - "SCHEMAV_CVC_FACET_VALID", - "SCHEMAV_CVC_LENGTH_VALID", - "SCHEMAV_CVC_MINLENGTH_VALID", - "SCHEMAV_CVC_MAXLENGTH_VALID", - "SCHEMAV_CVC_MININCLUSIVE_VALID", - "SCHEMAV_CVC_MAXINCLUSIVE_VALID", - "SCHEMAV_CVC_MINEXCLUSIVE_VALID", - "SCHEMAV_CVC_MAXEXCLUSIVE_VALID", - "SCHEMAV_CVC_TOTALDIGITS_VALID", - "SCHEMAV_CVC_FRACTIONDIGITS_VALID", - "SCHEMAV_CVC_PATTERN_VALID", - "SCHEMAV_CVC_ENUMERATION_VALID", - "SCHEMAV_CVC_COMPLEX_TYPE_2_1", - "SCHEMAV_CVC_COMPLEX_TYPE_2_2", - "SCHEMAV_CVC_COMPLEX_TYPE_2_3", - "SCHEMAV_CVC_COMPLEX_TYPE_2_4", - -#if defined XML_SCHEMAV_CVC_ELT_1 - "SCHEMAV_CVC_ELT_1", - "SCHEMAV_CVC_ELT_2", - "SCHEMAV_CVC_ELT_3_1", - "SCHEMAV_CVC_ELT_3_2_1", - "SCHEMAV_CVC_ELT_3_2_2", - "SCHEMAV_CVC_ELT_4_1", - "SCHEMAV_CVC_ELT_4_2", - "SCHEMAV_CVC_ELT_4_3", - "SCHEMAV_CVC_ELT_5_1_1", - "SCHEMAV_CVC_ELT_5_1_2", - "SCHEMAV_CVC_ELT_5_2_1", - "SCHEMAV_CVC_ELT_5_2_2_1", - "SCHEMAV_CVC_ELT_5_2_2_2_1", - "SCHEMAV_CVC_ELT_5_2_2_2_2", - "SCHEMAV_CVC_ELT_6", - "SCHEMAV_CVC_ELT_7", - "SCHEMAV_CVC_ATTRIBUTE_1", - "SCHEMAV_CVC_ATTRIBUTE_2", - "SCHEMAV_CVC_ATTRIBUTE_3", - "SCHEMAV_CVC_ATTRIBUTE_4", - "SCHEMAV_CVC_COMPLEX_TYPE_3_1", - "SCHEMAV_CVC_COMPLEX_TYPE_3_2_1", - "SCHEMAV_CVC_COMPLEX_TYPE_3_2_2", - "SCHEMAV_CVC_COMPLEX_TYPE_4", - "SCHEMAV_CVC_COMPLEX_TYPE_5_1", - "SCHEMAV_CVC_COMPLEX_TYPE_5_2", - "SCHEMAV_ELEMENT_CONTENT", - "SCHEMAV_DOCUMENT_ELEMENT_MISSING", -#endif - -#if defined XML_SCHEMAV_CVC_COMPLEX_TYPE_1 - "SCHEMAV_CVC_COMPLEX_TYPE_1", - "SCHEMAV_CVC_AU", - "SCHEMAV_CVC_TYPE_1", - "SCHEMAV_CVC_TYPE_2", -#endif - - "XPTR_UNKNOWN_SCHEME", - "XPTR_CHILDSEQ_START", - "XPTR_EVAL_FAILED", - "XPTR_EXTRA_OBJECTS", - "C14N_CREATE_CTXT", - "C14N_REQUIRES_UTF8", - "C14N_CREATE_STACK", - "C14N_INVALID_NODE", - "FTP_PASV_ANSWER", - "FTP_EPSV_ANSWER", - "FTP_ACCNT", - "HTTP_URL_SYNTAX", - "HTTP_USE_IP", - "HTTP_UNKNOWN_HOST", - "SCHEMAP_SRC_SIMPLE_TYPE_1", - "SCHEMAP_SRC_SIMPLE_TYPE_2", - "SCHEMAP_SRC_SIMPLE_TYPE_3", - "SCHEMAP_SRC_SIMPLE_TYPE_4", - "SCHEMAP_SRC_RESOLVE", - "SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE", - "SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE", - "SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES", - "SCHEMAP_ST_PROPS_CORRECT_1", - "SCHEMAP_ST_PROPS_CORRECT_2", - "SCHEMAP_ST_PROPS_CORRECT_3", - "SCHEMAP_COS_ST_RESTRICTS_1_1", - "SCHEMAP_COS_ST_RESTRICTS_1_2", - "SCHEMAP_COS_ST_RESTRICTS_1_3_1", - "SCHEMAP_COS_ST_RESTRICTS_1_3_2", - "SCHEMAP_COS_ST_RESTRICTS_2_1", - "SCHEMAP_COS_ST_RESTRICTS_2_3_1_1", - "SCHEMAP_COS_ST_RESTRICTS_2_3_1_2", - "SCHEMAP_COS_ST_RESTRICTS_2_3_2_1", - "SCHEMAP_COS_ST_RESTRICTS_2_3_2_2", - "SCHEMAP_COS_ST_RESTRICTS_2_3_2_3", - "SCHEMAP_COS_ST_RESTRICTS_2_3_2_4", - "SCHEMAP_COS_ST_RESTRICTS_2_3_2_5", - "SCHEMAP_COS_ST_RESTRICTS_3_1", - "SCHEMAP_COS_ST_RESTRICTS_3_3_1", - "SCHEMAP_COS_ST_RESTRICTS_3_3_1_2", - "SCHEMAP_COS_ST_RESTRICTS_3_3_2_2", - "SCHEMAP_COS_ST_RESTRICTS_3_3_2_1", - "SCHEMAP_COS_ST_RESTRICTS_3_3_2_3", - "SCHEMAP_COS_ST_RESTRICTS_3_3_2_4", - "SCHEMAP_COS_ST_RESTRICTS_3_3_2_5", - "SCHEMAP_COS_ST_DERIVED_OK_2_1", - "SCHEMAP_COS_ST_DERIVED_OK_2_2", - "SCHEMAP_S4S_ELEM_NOT_ALLOWED", - "SCHEMAP_S4S_ELEM_MISSING", - "SCHEMAP_S4S_ATTR_NOT_ALLOWED", - "SCHEMAP_S4S_ATTR_MISSING", - -#if defined XML_SCHEMAP_S4S_ATTR_INVALID_VALUE - "SCHEMAP_S4S_ATTR_INVALID_VALUE", - "SCHEMAP_SRC_ELEMENT_1", - "SCHEMAP_SRC_ELEMENT_2_1", - "SCHEMAP_SRC_ELEMENT_2_2", - "SCHEMAP_SRC_ELEMENT_3", - "SCHEMAP_P_PROPS_CORRECT_1", - "SCHEMAP_P_PROPS_CORRECT_2_1", - "SCHEMAP_P_PROPS_CORRECT_2_2", - "SCHEMAP_E_PROPS_CORRECT_2", - "SCHEMAP_E_PROPS_CORRECT_3", - "SCHEMAP_E_PROPS_CORRECT_4", - "SCHEMAP_E_PROPS_CORRECT_5", - "SCHEMAP_E_PROPS_CORRECT_6", - "SCHEMAP_SRC_INCLUDE", - "SCHEMAP_SRC_ATTRIBUTE_1", - "SCHEMAP_SRC_ATTRIBUTE_2", - "SCHEMAP_SRC_ATTRIBUTE_3_1", - "SCHEMAP_SRC_ATTRIBUTE_3_2", - "SCHEMAP_SRC_ATTRIBUTE_4", - "SCHEMAP_NO_XMLNS", - "SCHEMAP_NO_XSI", - "SCHEMAP_COS_VALID_DEFAULT_1", - "SCHEMAP_COS_VALID_DEFAULT_2_1", - "SCHEMAP_COS_VALID_DEFAULT_2_2_1", - "SCHEMAP_COS_VALID_DEFAULT_2_2_2", - "SCHEMAP_CVC_SIMPLE_TYPE", - "SCHEMAP_COS_CT_EXTENDS_1_1", - "SCHEMAP_SRC_IMPORT_1_1", - "SCHEMAP_SRC_IMPORT_1_2", - "SCHEMAP_SRC_IMPORT_2", - "SCHEMAP_SRC_IMPORT_2_1", - "SCHEMAP_SRC_IMPORT_2_2", -#endif - -#if defined XML_SCHEMAP_INTERNAL - "SCHEMAP_INTERNAL", - "SCHEMAP_NOT_DETERMINISTIC", -#endif - -#if defined XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 - "SCHEMAP_SRC_ATTRIBUTE_GROUP_1", - "SCHEMAP_SRC_ATTRIBUTE_GROUP_2", - "SCHEMAP_SRC_ATTRIBUTE_GROUP_3", - "SCHEMAP_MG_PROPS_CORRECT_1", - "SCHEMAP_MG_PROPS_CORRECT_2", - "SCHEMAP_SRC_CT_1", - "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3", - "SCHEMAP_AU_PROPS_CORRECT_2", - "SCHEMAP_A_PROPS_CORRECT_2", -#endif - NULL -}; - -const char* SaxHandler::errToStr( int errVal ) -{ - const char* str = NULL; - int index = 0; - while ( errVal != xmlErrorVals[index] && xmlErrorVals[index] >= 0 ) - { - index++; - } - - if ( errVal == xmlErrorVals[index] ) - { - str = xmlErrorStrs[index]; - } - - return str; -} - - -int SaxHandler::parseMemory( const char* buffer, int size ) -{ - int result = xmlSAXUserParseMemory( &sax, - this, - buffer, - size ); - return result; -} - -int SaxHandler::parseFile( const char* filename ) -{ - int result = xmlSAXUserParseFile( &sax, - this, - filename ); - return result; -} - -void SaxHandler::startDocument(void *user_data) -{ - SaxHandler* self = reinterpret_cast(user_data); - self->_startDocument(); -} - -void SaxHandler::endDocument(void *user_data) -{ - SaxHandler* self = reinterpret_cast(user_data); - self->_endDocument(); -} -void SaxHandler::startElement(void *user_data, - const xmlChar *name, - const xmlChar **attrs) -{ - SaxHandler* self = reinterpret_cast(user_data); - self->_startElement(name, attrs); -} -void SaxHandler::endElement(void *user_data, - const xmlChar *name) -{ - SaxHandler* self = reinterpret_cast(user_data); - self->_endElement(name); -} -void SaxHandler::characters(void *user_data, - const xmlChar *ch, - int len) -{ - SaxHandler* self = reinterpret_cast(user_data); - self->_characters(ch, len); -} - - - - - - - -FlatSaxHandler::FlatSaxHandler() - : SaxHandler() -{ -} - -FlatSaxHandler::~FlatSaxHandler() -{ -} - -void FlatSaxHandler::_startElement(const xmlChar */*name*/, const xmlChar **/*attrs*/) -{ - data.clear(); -} - -void FlatSaxHandler::_endElement(const xmlChar */*name*/) -{ - //g_message("<%s>%s", name, data.c_str(), name); - data.clear(); -} - -void FlatSaxHandler::_characters(const xmlChar *ch, int len) -{ - data.append((const char*)ch, len); -} - - -} // namespace IO -} // namespace Inkscape - -/* - 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:fileencoding=utf-8:textwidth=99 : diff --git a/src/io/simple-sax.h b/src/io/simple-sax.h deleted file mode 100644 index 17c571e19..000000000 --- a/src/io/simple-sax.h +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef SEEN_SIMPLE_SAX_H -#define SEEN_SIMPLE_SAX_H - -/* - * SimpleSAX - * - * Authors: - * Jon A. Cruz - * - * Copyright (C) 2004 AUTHORS - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include -#include - -namespace Inkscape { -namespace IO -{ - -class SaxHandler -{ -public: - SaxHandler(); - virtual ~SaxHandler(); - - int parseMemory( const char* buffer, int size ); - int parseFile( const char* filename ); - - static const char* errToStr( int errVal ); - -protected: - virtual void _startDocument() {} - virtual void _endDocument() {} - virtual void _startElement(const xmlChar */*name*/, const xmlChar **/*attrs*/) {} - virtual void _endElement(const xmlChar */*name*/) {} - virtual void _characters(const xmlChar */*ch*/, int /*len*/) {} - -private: - static void startDocument(void *user_data); - static void endDocument(void *user_data); - static void startElement(void *user_data, - const xmlChar *name, - const xmlChar **attrs); - static void endElement(void *user_data, - const xmlChar *name); - static void characters(void * user_data, - const xmlChar *ch, - int len); - - // Disable: - SaxHandler(SaxHandler const &); - SaxHandler &operator=(SaxHandler const &); - - xmlSAXHandler sax; -}; - - - -class FlatSaxHandler : public SaxHandler -{ -public: - FlatSaxHandler(); - virtual ~FlatSaxHandler(); - -protected: - virtual void _startElement(const xmlChar *name, const xmlChar **attrs); - virtual void _endElement(const xmlChar *name); - virtual void _characters(const xmlChar *ch, int len); - - Glib::ustring data; - -private: - // Disable: - FlatSaxHandler(FlatSaxHandler const &); - FlatSaxHandler &operator=(FlatSaxHandler const &); -}; - - - -} // namespace IO -} // namespace Inkscape - - -/* - 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 : - -#endif // SEEN_SIMPLE_SAX_H diff --git a/src/util/units.cpp b/src/util/units.cpp index d1275b082..757d05ffe 100644 --- a/src/util/units.cpp +++ b/src/util/units.cpp @@ -5,8 +5,9 @@ #include #include #include +#include +#include -#include "io/simple-sax.h" #include "util/units.h" #include "path-prefix.h" #include "streq.h" @@ -47,27 +48,33 @@ std::map &getTypeMappings() namespace Inkscape { namespace Util { -class UnitsSAXHandler : public Inkscape::IO::FlatSaxHandler +class UnitParser : public Glib::Markup::Parser { public: - UnitsSAXHandler(UnitTable *table); - virtual ~UnitsSAXHandler() {} + typedef Glib::Markup::Parser::AttributeMap AttrMap; + typedef Glib::Markup::ParseContext Ctx; - virtual void _startElement(xmlChar const *name, xmlChar const **attrs); - virtual void _endElement(xmlChar const *name); + UnitParser(UnitTable *table); + virtual ~UnitParser() {} +protected: + virtual void on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap const &attrs); + virtual void on_end_element(Ctx &ctx, Glib::ustring const &name); + virtual void on_text(Ctx &ctx, Glib::ustring const &text); + + Glib::ustring _current_element; + +public: UnitTable *tbl; bool primary; bool skip; Unit unit; }; -UnitsSAXHandler::UnitsSAXHandler(UnitTable *table) : - FlatSaxHandler(), +UnitParser::UnitParser(UnitTable *table) : tbl(table), - primary(0), - skip(0), - unit() + primary(false), + skip(false) { } @@ -115,10 +122,8 @@ int Unit::defaultDigits() const { UnitTable::UnitTable() { - // if we swich to the xml file, don't forget to force locale to 'C' - // load("share/ui/units.xml"); // <-- Buggy - gchar *filename = g_build_filename(INKSCAPE_UIDIR, "units.txt", NULL); - loadText(filename); + gchar *filename = g_build_filename(INKSCAPE_UIDIR, "units.xml", NULL); + load(filename); g_free(filename); } @@ -183,165 +188,73 @@ Glib::ustring UnitTable::primary(UnitType type) const return _primary_unit[type]; } -bool UnitTable::loadText(Glib::ustring const &filename) -{ - char buf[BUFSIZE] = {0}; - - // Open file for reading - FILE * f = fopen(filename.c_str(), "r"); - if (f == NULL) { - g_warning("Could not open units file '%s': %s\n", - filename.c_str(), strerror(errno)); - g_warning("* INKSCAPE_DATADIR is: '%s'\n", INKSCAPE_DATADIR); - g_warning("* INKSCAPE_UIDIR is: '%s'\n", INKSCAPE_UIDIR); - return false; - } - - /** @todo fix this to use C++ means and explicit locale to avoid need to change. */ - // bypass current locale in order to make - // sscanf read floats with '.' as a separator - // set locale to 'C' and keep old locale - char *old_locale = g_strdup(setlocale(LC_NUMERIC, NULL)); - setlocale (LC_NUMERIC, "C"); - - while (fgets(buf, BUFSIZE, f) != NULL) { - char name[BUFSIZE] = {0}; - char plural[BUFSIZE] = {0}; - char abbr[BUFSIZE] = {0}; - char type[BUFSIZE] = {0}; - double factor = 0.0; - char primary[BUFSIZE] = {0}; - - int nchars = 0; - // locale is set to C, scanning %lf should work _everywhere_ - /** @todo address %15n, which causes a warning: */ - if (sscanf(buf, "%15s %15s %15s %15s %8lf %1s %15n", - name, plural, abbr, type, &factor, primary, &nchars) != 6) - { - // Skip the line - doesn't appear to be valid - continue; - } - - g_assert(nchars < BUFSIZE); - - char *desc = buf; - desc += nchars; // buf is now only the description - - // insert into _unit_map - if (getTypeMappings().find(type) == getTypeMappings().end()) - { - g_warning("Skipping unknown unit type '%s' for %s.\n", type, name); - continue; - } - UnitType utype = getTypeMappings()[type]; - - Unit u(utype, factor, name, plural, abbr, desc); - - // if primary is 'Y', list this unit as a primary - addUnit(u, (primary[0]=='Y' || primary[0]=='y')); - } - - // set back the saved locale - setlocale (LC_NUMERIC, old_locale); - g_free (old_locale); - - // close file - if (fclose(f) != 0) { - g_warning("Error closing units file '%s': %s\n", filename.c_str(), strerror(errno)); - return false; - } - - return true; -} - -bool UnitTable::load(Glib::ustring const &filename) { - UnitsSAXHandler handler(this); +bool UnitTable::load(std::string const &filename) { + UnitParser uparser(this); + Glib::Markup::ParseContext ctx(uparser); - int result = handler.parseFile( filename.c_str() ); - if ( result != 0 ) { - // perhaps - g_warning("Problem loading units file '%s': %d\n", filename.c_str(), result); + try { + Glib::ustring unitfile = Glib::file_get_contents(filename); + ctx.parse(unitfile); + ctx.end_parse(); + } catch (Glib::MarkupError const &e) { + g_warning("Problem loading units file '%s': %s\n", filename.c_str(), e.what().c_str()); return false; } - return true; } -bool UnitTable::save(Glib::ustring const &filename) { - - // open file for writing - FILE *f = fopen(filename.c_str(), "w"); - if (f == NULL) { - g_warning("Could not open units file '%s': %s\n", filename.c_str(), strerror(errno)); - return false; - } +bool UnitTable::save(std::string const &filename) { - // write out header - // foreach item in _unit_map, sorted alphabetically by type and then unit name - // sprintf a line - // name - // name_plural - // abbr - // type - // factor - // PRI - if listed in primary unit table, 'Y', else 'N' - // description - // write line to the file - - // close file - if (fclose(f) != 0) { - g_warning("Error closing units file '%s': %s\n", filename.c_str(), strerror(errno)); - return false; - } + g_warning("UnitTable::save(): not implemented"); return true; } - -void UnitsSAXHandler::_startElement(xmlChar const *name, xmlChar const **attrs) +void UnitParser::on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap const &attrs) { - if (streq("unit", (char const *)name)) { + _current_element = name; + if (name == "unit") { // reset for next use unit.clear(); primary = false; skip = false; - for ( int i = 0; attrs[i]; i += 2 ) { - char const *const key = (char const *)attrs[i]; - if (streq("type", key)) { - char const *type = (char const*)attrs[i+1]; - if (getTypeMappings().find(type) != getTypeMappings().end()) - { - unit.type = getTypeMappings()[type]; - } else { - g_warning("Skipping unknown unit type '%s' for %s.\n", type, name); - skip = true; - } - } else if (streq("pri", key)) { - primary = attrs[i+1][0] == 'y' || attrs[i+1][0] == 'Y'; + AttrMap::const_iterator f; + if ((f = attrs.find("type")) != attrs.end()) { + Glib::ustring type = f->second; + if (getTypeMappings().find(type) != getTypeMappings().end()) { + unit.type = getTypeMappings()[type]; + } else { + g_warning("Skipping unknown unit type '%s'.\n", type.c_str()); + skip = true; } } + if ((f = attrs.find("pri")) != attrs.end()) { + primary = (f->second[0] == 'y' || f->second[0] == 'Y'); + } } } -void UnitsSAXHandler::_endElement(xmlChar const *xname) +void UnitParser::on_text(Ctx &ctx, Glib::ustring const &text) { - char const *const name = (char const *) xname; - if (streq("name", name)) { - unit.name = data; - } else if (streq("plural", name)) { - unit.name_plural = data; - } else if (streq("abbr", name)) { - unit.abbr = data; - } else if (streq("factor", name)) { + if (_current_element == "name") { + unit.name = text; + } else if (_current_element == "plural") { + unit.name_plural = text; + } else if (_current_element == "abbr") { + unit.abbr = text; + } else if (_current_element == "factor") { // TODO make sure we use the right conversion - unit.factor = atol(data.c_str()); - } else if (streq("description", name)) { - unit.description = data; - } else if (streq("unit", name)) { - if (!skip) { - tbl->addUnit(unit, primary); - } + unit.factor = g_ascii_strtod(text.c_str(), NULL); + } else if (_current_element == "description") { + unit.description = text; + } +} + +void UnitParser::on_end_element(Ctx &ctx, Glib::ustring const &name) +{ + if (name == "unit" && !skip) { + tbl->addUnit(unit, primary); } } diff --git a/src/util/units.h b/src/util/units.h index 40c89a4a0..4b2d782e3 100644 --- a/src/util/units.h +++ b/src/util/units.h @@ -96,19 +96,17 @@ class UnitTable { void setScale(); - bool load(Glib::ustring const &filename); - - /** Loads units from a text file. + /** Load units from an XML file. * - * loadText loads and merges the contents of the given file into the UnitTable, + * Loads and merges the contents of the given file into the UnitTable, * possibly overwriting existing unit definitions. * * @param filename file to be loaded */ - bool loadText(Glib::ustring const &filename); + bool load(std::string const &filename); /** Saves the current UnitTable to the given file. */ - bool save(Glib::ustring const &filename); + bool save(std::string const &filename); protected: UnitTable::UnitMap _unit_map; -- cgit v1.2.3 From 13da86a85b5366284166ec5b0f1ae84de30de182 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 25 Jul 2013 00:29:24 +0200 Subject: Remove unnecessary variable from the GMarkup-based unit parser (bzr r12439) --- src/util/units.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/util/units.cpp b/src/util/units.cpp index 757d05ffe..f8ebc5c1a 100644 --- a/src/util/units.cpp +++ b/src/util/units.cpp @@ -62,8 +62,6 @@ protected: virtual void on_end_element(Ctx &ctx, Glib::ustring const &name); virtual void on_text(Ctx &ctx, Glib::ustring const &text); - Glib::ustring _current_element; - public: UnitTable *tbl; bool primary; @@ -212,7 +210,6 @@ bool UnitTable::save(std::string const &filename) { void UnitParser::on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap const &attrs) { - _current_element = name; if (name == "unit") { // reset for next use unit.clear(); @@ -237,16 +234,17 @@ void UnitParser::on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap c void UnitParser::on_text(Ctx &ctx, Glib::ustring const &text) { - if (_current_element == "name") { + Glib::ustring element = ctx.get_element(); + if (element == "name") { unit.name = text; - } else if (_current_element == "plural") { + } else if (element == "plural") { unit.name_plural = text; - } else if (_current_element == "abbr") { + } else if (element == "abbr") { unit.abbr = text; - } else if (_current_element == "factor") { + } else if (element == "factor") { // TODO make sure we use the right conversion unit.factor = g_ascii_strtod(text.c_str(), NULL); - } else if (_current_element == "description") { + } else if (element == "description") { unit.description = text; } } -- cgit v1.2.3