Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.dombuilding

public final Class HSpaceHandler

extends Object
implements CommandHandler
Class Inheritance
All Implemented Interfaces
uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler
Imports
uk.ac.ed.ph.snuggletex.definitions.CoreErrorCode, .LaTeXMode, uk.ac.ed.ph.snuggletex.internal.DOMBuilder, .SnuggleParseException, uk.ac.ed.ph.snuggletex.tokens.CommandToken, .Token, java.util.regex.Matcher, .Pattern, org.w3c.dom.Element

Handles the \\hspace and \\hspace* commands.

Note that we are going to handle \\hspace* in exactly the same way as \\hspace since it is not easy to detect when we are at the end of a line.

Author
David McKain
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
convertLaTeXSize(final DOMBuilder builder, final Element parentElement, final Token sizeToken)

public void
handleCommand(DOMBuilder builder, Element parentElement, CommandToken token)

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HSpaceHandlerback to summary
public HSpaceHandler()

Method Detail

convertLaTeXSizeback to summary
public String convertLaTeXSize(final DOMBuilder builder, final Element parentElement, final Token sizeToken) throws SnuggleParseException
handleCommandback to summary
public void handleCommand(DOMBuilder builder, Element parentElement, CommandToken token) throws SnuggleParseException

Implements uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Doc from uk.ac.ed.ph.snuggletex.dombuilding.CommandHandler.handleCommand.

Called when a CommandToken is being handled by the DOMBuilder.

Exceptions
SnuggleParseException:
to indicate a client error