diff options
-rw-r--r-- | filter/source/svg/svgreader.cxx | 31 | ||||
-rw-r--r-- | include/xmloff/xmltoken.hxx | 6 | ||||
-rw-r--r-- | xmloff/source/core/xmltoken.cxx | 6 |
3 files changed, 21 insertions, 22 deletions
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index b4d84e639dd1..ce94e0fdff66 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -816,6 +816,21 @@ struct AnnotatingVisitor case XML_ID: maStopIdMap.insert(std::make_pair(sValue,nStopNumber)); break; + case XML_STOP_COLOR: + if( maGradientVector.empty() || + maGradientVector.back().maStops.empty() ) + break; + parseColor( sValue.toUtf8().getStr(), maGradientStopVector[ + maGradientVector.back().maStops.back()].maStopColor ); + break; + case XML_STOP_OPACITY: + if( maGradientVector.empty() || + maGradientVector.back().maStops.empty() ) + break; + parseOpacity( sValue.toUtf8().getStr(), + maGradientStopVector[ + maGradientVector.back().maStops.back()].maStopColor ); + break; case XML_OFFSET: io_rGradientStop.mnStopPosition = sValue.toDouble(); break; @@ -1022,22 +1037,6 @@ struct AnnotatingVisitor case XML_TEXT_ANCHOR: parseTextAlign(maCurrState,aValueUtf8.getStr()); break; - case XML_STOP_COLOR: - if( maGradientVector.empty() || - maGradientVector.back().maStops.empty() ) - break; - parseColor( aValueUtf8.getStr(), - maGradientStopVector[ - maGradientVector.back().maStops.back()].maStopColor ); - break; - case XML_STOP_OPACITY: - if( maGradientVector.empty() || - maGradientVector.back().maStops.empty() ) - break; - parseOpacity( aValueUtf8.getStr(), - maGradientStopVector[ - maGradientVector.back().maStops.back()].maStopColor ); - break; case XML_TOKEN_INVALID: SAL_INFO("svg", "unhandled token"); break; diff --git a/include/xmloff/xmltoken.hxx b/include/xmloff/xmltoken.hxx index 29af403b6d3e..89596b07995d 100644 --- a/include/xmloff/xmltoken.hxx +++ b/include/xmloff/xmltoken.hxx @@ -1117,6 +1117,7 @@ namespace xmloff { namespace token { XML_LINE_SPACING, XML_LINE_STYLE, XML_LINEAR, + XML_LINEARGRADIENT, XML_LINENUMBERING_CONFIGURATION, XML_LINENUMBERING_SEPARATOR, XML_LINES, @@ -1740,8 +1741,8 @@ namespace xmloff { namespace token { XML_STOCK_UPDOWN_BARS, XML_STOCK_WITH_VOLUME, XML_STOP, - XML_STOPCOLOR, - XML_STOPOPACITY, + XML_STOP_COLOR, + XML_STOP_OPACITY, XML_STRETCH, XML_STRETCH_FROM_BOTTOM, XML_STRETCH_FROM_LEFT, @@ -1776,7 +1777,6 @@ namespace xmloff { namespace token { XML_SUB_VIEW_SIZE, XML_SUFFIX, XML_SUM, - XML_SVGLINEARGRADIENT, XML_SWISS, XML_SYMBOL, XML_SYMBOL_HEIGHT, diff --git a/xmloff/source/core/xmltoken.cxx b/xmloff/source/core/xmltoken.cxx index 0d4ed2dd5577..97809c6887f3 100644 --- a/xmloff/source/core/xmltoken.cxx +++ b/xmloff/source/core/xmltoken.cxx @@ -1122,6 +1122,7 @@ namespace xmloff { namespace token { TOKEN( "line-spacing", XML_LINE_SPACING ), TOKEN( "line-style", XML_LINE_STYLE ), TOKEN( "linear", XML_LINEAR ), + TOKEN( "linearGradient", XML_LINEARGRADIENT ), TOKEN( "linenumbering-configuration", XML_LINENUMBERING_CONFIGURATION ), TOKEN( "linenumbering-separator", XML_LINENUMBERING_SEPARATOR ), TOKEN( "lines", XML_LINES ), @@ -1745,8 +1746,8 @@ namespace xmloff { namespace token { TOKEN( "stock-updown-bars", XML_STOCK_UPDOWN_BARS ), TOKEN( "stock-with-volume", XML_STOCK_WITH_VOLUME ), TOKEN( "stop", XML_STOP ), - TOKEN( "stop-color", XML_STOPCOLOR ), - TOKEN( "stop-opacity", XML_STOPOPACITY ), + TOKEN( "stop-color", XML_STOP_COLOR ), + TOKEN( "stop-opacity", XML_STOP_OPACITY ), TOKEN( "stretch", XML_STRETCH ), TOKEN( "stretch-from-bottom", XML_STRETCH_FROM_BOTTOM ), TOKEN( "stretch-from-left", XML_STRETCH_FROM_LEFT ), @@ -1781,7 +1782,6 @@ namespace xmloff { namespace token { TOKEN( "sub-view-size", XML_SUB_VIEW_SIZE ), TOKEN( "suffix", XML_SUFFIX ), TOKEN( "sum", XML_SUM ), - TOKEN( "linearGradient", XML_SVGLINEARGRADIENT ), TOKEN( "swiss", XML_SWISS ), TOKEN( "symbol", XML_SYMBOL ), TOKEN( "symbol-height", XML_SYMBOL_HEIGHT ), |