Commit 95c04850 authored by Hannes Hochreiner's avatar Hannes Hochreiner

Updated the JessyInk extensions to version 1.5.5.

(bzr r9877)
parent 500120c0
......@@ -1373,6 +1373,18 @@ function slideUpdateExportLayer()
{
var nd = nodesToBeRemoved[ndCounter];
// Before removing the node, check whether it contains any definitions.
var defs = nd.getElementsByTagNameNS(NSS["svg"], "defs");
for (var defsCounter = 0; defsCounter < defs.length; defsCounter++)
{
if (defs[defsCounter].id)
{
newDoc.appendChild(defs[defsCounter].cloneNode(true));
}
}
// Remove node.
nd.parentNode.removeChild(nd);
}
......@@ -1418,7 +1430,7 @@ function slideUpdateExportLayer()
var xml = serializer.serializeToStream(newDoc, strm, 'UTF-8');
window.open('data:image/svg+xml;base64;charset=utf-8,' + window.btoa(strm.content), '_blank');
window.location = 'data:application/svg+xml;base64;charset=utf-8,' + window.btoa(strm.content);
// Unsuspend redraw.
ROOT_NODE.unsuspendRedraw(suspendHandle);
......
......@@ -40,7 +40,7 @@ class JessyInk_AutoTexts(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -45,7 +45,7 @@ class JessyInk_Effects(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -60,7 +60,7 @@ class JessyInk_Install(inkex.Effect):
scriptElm = inkex.etree.Element(inkex.addNS("script", "svg"))
scriptElm.text = open(os.path.join(os.path.dirname(__file__), "jessyInk.js")).read()
scriptElm.set("id","JessyInk")
scriptElm.set("{" + inkex.NSS["jessyink"] + "}version", '1.5.4')
scriptElm.set("{" + inkex.NSS["jessyink"] + "}version", '1.5.5')
self.document.getroot().append(scriptElm)
# Remove "jessyInkInit()" in the "onload" attribute, if present.
......
......@@ -182,7 +182,7 @@ class JessyInk_CustomKeyBindings(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -40,7 +40,7 @@ class JessyInk_MasterSlide(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -42,7 +42,7 @@ class JessyInk_CustomMouseHandler(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -58,7 +58,7 @@ class JessyInk_Summary(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -44,7 +44,7 @@ class JessyInk_Transitions(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -43,7 +43,7 @@ class JessyInk_Effects(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
......@@ -61,7 +61,7 @@ class JessyInk_Effects(inkex.Effect):
def effect(self):
# Check version.
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.4']", namespaces=inkex.NSS)
scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS)
if len(scriptNodes) != 1:
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"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment