version 1.429, 2009/05/06 16:12:38
|
version 1.430, 2009/06/30 15:59:25
|
Line 4911 static char *ParseSVGStopColor (Element
|
Line 4911 static char *ParseSVGStopColor (Element
|
The color used will be approximed from the current color |
The color used will be approximed from the current color |
table |
table |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
static char *ParseSVGMarkerValue (char *cssRule, PresentationValue *val, char *url) |
static char *ParseSVGMarkerValue (char *cssRule, PresentationValue *val, char **url) |
{ |
{ |
url = NULL; |
*url = NULL; |
val->typed_data.unit = UNIT_INVALID; |
val->typed_data.unit = UNIT_INVALID; |
val->typed_data.real = FALSE; |
val->typed_data.real = FALSE; |
if (!strncasecmp (cssRule, "none", 4)) |
if (!strncasecmp (cssRule, "none", 4)) |
Line 4930 static char *ParseSVGMarkerValue (char *
|
Line 4930 static char *ParseSVGMarkerValue (char *
|
else if (!strncasecmp (cssRule, "url", 3)) |
else if (!strncasecmp (cssRule, "url", 3)) |
{ |
{ |
cssRule += 3; |
cssRule += 3; |
cssRule = ParseCSSUrl (cssRule, &url); |
cssRule = ParseCSSUrl (cssRule, url); |
val->typed_data.unit = VALUE_URL; |
val->typed_data.unit = VALUE_URL; |
val->pointer = url; |
val->pointer = *url; |
} |
} |
return cssRule; |
return cssRule; |
} |
} |
Line 4948 static char *ParseSVGMarker (Element ele
|
Line 4948 static char *ParseSVGMarker (Element ele
|
char *url; |
char *url; |
|
|
url = NULL; |
url = NULL; |
cssRule = ParseSVGMarkerValue (cssRule, &marker, url); |
cssRule = ParseSVGMarkerValue (cssRule, &marker, &url); |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
/* install the new presentation. */ |
/* install the new presentation. */ |
TtaSetStylePresentation (PRMarker, element, tsch, context, marker); |
TtaSetStylePresentation (PRMarker, element, tsch, context, marker); |
Line 4968 static char *ParseSVGMarkerEnd (Element
|
Line 4968 static char *ParseSVGMarkerEnd (Element
|
char *url; |
char *url; |
|
|
url = NULL; |
url = NULL; |
cssRule = ParseSVGMarkerValue (cssRule, &marker, url); |
cssRule = ParseSVGMarkerValue (cssRule, &marker, &url); |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
/* install the new presentation. */ |
/* install the new presentation. */ |
TtaSetStylePresentation (PRMarkerEnd, element, tsch, context, marker); |
TtaSetStylePresentation (PRMarkerEnd, element, tsch, context, marker); |
Line 4988 static char *ParseSVGMarkerMid (Element
|
Line 4988 static char *ParseSVGMarkerMid (Element
|
char *url; |
char *url; |
|
|
url = NULL; |
url = NULL; |
cssRule = ParseSVGMarkerValue (cssRule, &marker, url); |
cssRule = ParseSVGMarkerValue (cssRule, &marker, &url); |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
/* install the new presentation. */ |
/* install the new presentation. */ |
TtaSetStylePresentation (PRMarkerMid, element, tsch, context, marker); |
TtaSetStylePresentation (PRMarkerMid, element, tsch, context, marker); |
Line 5008 static char *ParseSVGMarkerStart (Elemen
|
Line 5008 static char *ParseSVGMarkerStart (Elemen
|
char *url; |
char *url; |
|
|
url = NULL; |
url = NULL; |
cssRule = ParseSVGMarkerValue (cssRule, &marker, url); |
cssRule = ParseSVGMarkerValue (cssRule, &marker, &url); |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
if (marker.typed_data.unit != UNIT_INVALID && DoApply) |
/* install the new presentation. */ |
/* install the new presentation. */ |
TtaSetStylePresentation (PRMarkerStart, element, tsch, context, marker); |
TtaSetStylePresentation (PRMarkerStart, element, tsch, context, marker); |