diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2014-08-10 13:29:46 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2014-08-10 13:29:46 +0000 |
| commit | 4436eae1a6810e3630679898f91fe1995d1fae7e (patch) | |
| tree | 9e218022e7968af9df92c6b3cbb225e3279058cf /share/extensions | |
| parent | Fix related to bug #1327267 -- don't bother to update gradient toolbar when n... (diff) | |
| download | inkscape-4436eae1a6810e3630679898f91fe1995d1fae7e.tar.gz inkscape-4436eae1a6810e3630679898f91fe1995d1fae7e.zip | |
Export. Fix for Bug #1166184 (XAML export not compatible with Silverlight).
Fixed bugs:
- https://launchpad.net/bugs/1166184
(bzr r13505)
Diffstat (limited to 'share/extensions')
| -rw-r--r-- | share/extensions/svg2xaml.inx | 1 | ||||
| -rwxr-xr-x | share/extensions/svg2xaml.xsl | 14 |
2 files changed, 11 insertions, 4 deletions
diff --git a/share/extensions/svg2xaml.inx b/share/extensions/svg2xaml.inx index da621b8f7..74b8f731a 100644 --- a/share/extensions/svg2xaml.inx +++ b/share/extensions/svg2xaml.inx @@ -2,6 +2,7 @@ <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <_name>XAML Output</_name> <id>org.inkscape.output.xaml</id> + <param name="silverlight" type="boolean" _gui-text="Silverlight compatible XAML">false</param> <output> <extension>.xaml</extension> <mimetype>text/xml+xaml</mimetype> diff --git a/share/extensions/svg2xaml.xsl b/share/extensions/svg2xaml.xsl index 40b1f400b..516f68b76 100755 --- a/share/extensions/svg2xaml.xsl +++ b/share/extensions/svg2xaml.xsl @@ -3,7 +3,7 @@ <!-- Copyright (c) 2005-2007 authors: Original version: Toine de Greef (a.degreef@chello.nl) -Modified (2010-2011) by Nicolas Dufour (nicoduf@yahoo.fr) (blur support, units +Modified (2010-2014) by Nicolas Dufour (nicoduf@yahoo.fr) (blur support, units convertion, comments, and some other fixes) Permission is hereby granted, free of charge, to any person obtaining a copy @@ -39,7 +39,7 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt"> <xsl:strip-space elements="*" /> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> -<xsl:param name="silverlight_compatible" select="2" /> +<xsl:param name="silverlight_compatible" select="$silverlight" /> <!-- // Containers // @@ -53,10 +53,16 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt"> --> <xsl:template match="/"> <xsl:choose> - <xsl:when test="$silverlight_compatible = 1"> + <xsl:when test="$silverlight_compatible = 'true'"> + <xsl:comment> + <xsl:value-of select="'This file is compatible with Silverlight'" /> + </xsl:comment> <xsl:apply-templates mode="forward" /> </xsl:when> <xsl:otherwise> + <xsl:comment> + <xsl:value-of select="'This file is NOT compatible with Silverlight'" /> + </xsl:comment> <Viewbox Stretch="Uniform"> <xsl:apply-templates mode="forward" /> </Viewbox> @@ -2650,7 +2656,7 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt"> <xsl:if test="@d"> <xsl:choose> - <xsl:when test="$silverlight_compatible = 1"> + <xsl:when test="$silverlight_compatible = 'true'"> <xsl:attribute name="Data"> <xsl:value-of select="translate(@d , ',', ' ')" /> </xsl:attribute> |
