/** * * @author peter */ @Macro( name = "break", description = "Insert a break in a document", author = "Peter Mount" ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class BreakMacro extends EmptyMacro { @Override protected void visit( final XHtmlRenderer visitor, final MacroNode node ) { visitor.addElement( "br" ); visitor.moveUp(); } }
author = "Peter Mount" ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class TexMathMacro implements MacroVisitor
author = "Peter Mount", body = MacroBody.REQUIRED ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class TemplateMacro implements MacroVisitor
/** * * @author peter */ @Macro( name = "anchor", description = "Insert an anchor in a document", author = "Peter Mount", arguments = @Argument( name = "name", description = "anchor name" ) ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class AnchorMacro extends EmptyMacro { @Override protected void visit( final XHtmlRenderer visitor, final MacroNode node ) { final List<String> args = node.getArguments(); final String name = args.isEmpty() ? "anchor" + System.currentTimeMillis() : args.get( 0 ); final Element e = visitor.addElement( "a" ); e.setAttribute( "name", name ); // see http://drupal.org/node/158735#comment-580518 visitor.addComment( e, name ); visitor.moveUp(); } }
author = "Peter Mount" ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class ListMacrosMacro extends EmptyMacro
body = MacroBody.REQUIRED ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class ComponentMacro extends AbstractGraphMacro
body = MacroBody.REQUIRED ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class FootNoteMacro extends BodyMacro
optional = true ) ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class NoteMacro extends BodyMacro
} ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class FloatMacro extends BodyMacro
} ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class ReferenceMacro extends BodyMacro
} ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class TableMacro implements MacroVisitor
} ) @Copyright( author = "Peter Mount" ) @License( name = "GPL", version = "3 + Class Path Excemption" ) public class CodeMacro extends AbstractMacro