@Deprecated public class SVGMacro extends org.radeox.macro.BaseLocaleMacro
You can get the content from an attachment using Velocity, as in:
{svg} $doc.getAttachment('image.svg').getContentAsString() {svg}
The macro relies on the SVGPlugin
to actually transform the SVG content into an image.
Constructor and Description |
---|
SVGMacro()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Writer writer,
org.radeox.macro.parameter.MacroParameter params)
Deprecated.
Main macro execution method, replaces the macro instance with the generated output.
|
String |
getLocaleKey()
Deprecated.
The name of the macro.
|
public String getLocaleKey()
LocaleMacro.getLocaleKey()
public void execute(Writer writer, org.radeox.macro.parameter.MacroParameter params) throws IllegalArgumentException, IOException
execute
in interface org.radeox.macro.Macro
execute
in class org.radeox.macro.BaseMacro
writer
- the place where to write the outputparams
- the parameters this macro is called withIllegalArgumentException
- if the mandatory argument (text
) is missingIOException
- if the output cannot be writtenBaseMacro.execute(Writer, MacroParameter)
Copyright © 2004–2014 XWiki. All rights reserved.