Lines Matching refs:inkex
28 # We will use the inkex module with the predefined Effect base class.
29 import inkex
31 inkex.localize()
33 class JessyInk_CustomMouseHandler(inkex.Effect):
36 inkex.Effect.__init__(self)
41 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink"
45 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
48 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n"))
51 for node in self.document.xpath("//jessyink:mousehandler", namespaces=inkex.NSS):
56 scriptElm = inkex.etree.Element(inkex.addNS("script", "svg"))
58 groupElm = inkex.etree.Element(inkex.addNS("mousehandler", "jessyink"))
59 groupElm.set("{" + inkex.NSS["jessyink"] + "}subtype", "jessyInk_core_mouseHandler_noclick")
64 scriptElm = inkex.etree.Element(inkex.addNS("script", "svg"))
66 groupElm = inkex.etree.Element(inkex.addNS("mousehandler", "jessyink"))
67 groupElm.set("{" + inkex.NSS["jessyink"] + "}subtype", "jessyInk_core_mouseHandler_zoomControl")