version 1.423, 2009/03/25 12:19:04
|
version 1.424, 2009/04/14 16:10:52
|
Line 43 CSSImageCallbackBlock, *CSSImageCallback
|
Line 43 CSSImageCallbackBlock, *CSSImageCallback
|
#include "html2thot_f.h" |
#include "html2thot_f.h" |
#include "init_f.h" |
#include "init_f.h" |
#include "styleparser_f.h" |
#include "styleparser_f.h" |
|
#include "SVGbuilder_f.h" |
#include "wxdialogapi_f.h" |
#include "wxdialogapi_f.h" |
|
|
#define MAX_BUFFER_LENGTH 200 |
#define MAX_BUFFER_LENGTH 200 |
Line 4820 static char *ParseSVGFill (Element eleme
|
Line 4821 static char *ParseSVGFill (Element eleme
|
{ |
{ |
cssRule += 3; |
cssRule += 3; |
cssRule = ParseCSSUrl (cssRule, &url); |
cssRule = ParseCSSUrl (cssRule, &url); |
/* **** do something with the url ***** */; |
SVGhandleFillUrl (element, context->doc, url); |
TtaFreeMemory (url); |
TtaFreeMemory (url); |
/* **** caution: another color value may follow the uri (in case |
/* **** caution: another color value may follow the uri (in case |
the uri could ne be dereferenced) *** */ |
the uri could ne be dereferenced) *** */ |
Line 4841 static char *ParseSVGFill (Element eleme
|
Line 4842 static char *ParseSVGFill (Element eleme
|
} |
} |
|
|
/*---------------------------------------------------------------------- |
/*---------------------------------------------------------------------- |
|
ParseSVGStopColor: parse a SVG stop-color property |
|
----------------------------------------------------------------------*/ |
|
static char *ParseSVGStopColor (Element element, PSchema tsch, |
|
PresentationContext context, char *cssRule, |
|
CSSInfoPtr css, ThotBool isHTML) |
|
{ |
|
cssRule = SVGhandleStopColor (element, cssRule); |
|
return (cssRule); |
|
} |
|
|
|
/*---------------------------------------------------------------------- |
ParseSVGOpacity: parse a SVG opacity property |
ParseSVGOpacity: parse a SVG opacity property |
----------------------------------------------------------------------*/ |
----------------------------------------------------------------------*/ |
static char *ParseSVGOpacity (Element element, PSchema tsch, |
static char *ParseSVGOpacity (Element element, PSchema tsch, |
Line 6153 static CSSProperty CSSProperties[] =
|
Line 6165 static CSSProperty CSSProperties[] =
|
{"fill-rule", ParseSVGFillRule}, |
{"fill-rule", ParseSVGFillRule}, |
{"fill", ParseSVGFill}, |
{"fill", ParseSVGFill}, |
{"opacity", ParseSVGOpacity}, |
{"opacity", ParseSVGOpacity}, |
|
{"stop-color", ParseSVGStopColor}, |
{"stroke-opacity", ParseSVGStrokeOpacity}, |
{"stroke-opacity", ParseSVGStrokeOpacity}, |
{"stroke-width", ParseSVGStrokeWidth}, |
{"stroke-width", ParseSVGStrokeWidth}, |
{"stroke", ParseSVGStroke} |
{"stroke", ParseSVGStroke} |