Lines Matching refs:inkex
26 # We will use the inkex module with the predefined Effect base class.
27 import inkex
29 inkex.localize()
31 class JessyInk_MasterSlide(inkex.Effect):
34 inkex.Effect.__init__(self)
39 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink"
43 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
46 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"))
49 for node in self.document.xpath("//*[@jessyink:masterSlide='masterSlide']", namespaces=inkex.NSS):
50 del node.attrib["{" + inkex.NSS["jessyink"] + "}masterSlide"]
54 nodes = self.document.xpath("//*[@inkscape:groupmode='layer' and @inkscape:label='" + self.options.layerName + "']", namespaces=inkex.NSS)
56 inkex.errormsg(_("Layer not found. Removed current master slide selection.\n"))
58 inkex.errormsg(_("More than one layer with this name found. Removed current master slide selection.\n"))
60 nodes[0].set("{" + inkex.NSS["jessyink"] + "}masterSlide","masterSlide")