Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
1818255b
Commit
1818255b
authored
Sep 23, 2014
by
Tebjan Halm
Browse files
Merge pull request #98 from sschurig/master
External CSS Option for SVGDocument
parents
780b5150
a9e66c2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/SvgDocument.cs
View file @
1818255b
...
@@ -76,6 +76,11 @@ namespace Svg
...
@@ -76,6 +76,11 @@ namespace Svg
/// </summary>
/// </summary>
public
int
Ppi
{
get
;
set
;
}
public
int
Ppi
{
get
;
set
;
}
/// <summary>
/// Gets or sets an external Cascading Style Sheet (CSS)
/// </summary>
public
string
ExternalCSSHref
{
get
;
set
;
}
#
region
ITypeDescriptorContext
Members
#
region
ITypeDescriptorContext
Members
IContainer
ITypeDescriptorContext
.
Container
IContainer
ITypeDescriptorContext
.
Container
...
@@ -482,6 +487,9 @@ namespace Svg
...
@@ -482,6 +487,9 @@ namespace Svg
xmlWriter
.
WriteDocType
(
"svg"
,
"-//W3C//DTD SVG 1.1//EN"
,
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"
,
null
);
xmlWriter
.
WriteDocType
(
"svg"
,
"-//W3C//DTD SVG 1.1//EN"
,
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"
,
null
);
if
(!
String
.
IsNullOrEmpty
(
this
.
ExternalCSSHref
))
xmlWriter
.
WriteProcessingInstruction
(
"xml-stylesheet"
,
String
.
Format
(
"type=\"text/css\" href=\"{0}\""
,
this
.
ExternalCSSHref
));
this
.
WriteElement
(
xmlWriter
);
this
.
WriteElement
(
xmlWriter
);
xmlWriter
.
Flush
();
xmlWriter
.
Flush
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment