org.eclipse.mylyn.wikitext.core.util.anttask
Class MarkupToXslfoTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.eclipse.mylyn.wikitext.core.util.anttask.MarkupTask
              extended by org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToXslfoTask
All Implemented Interfaces:
Cloneable

public class MarkupToXslfoTask
extends MarkupTask

Since:
1.1
Author:
David Green

Field Summary
protected  File file
           
protected  boolean overwrite
           
protected  File targetdir
           
protected  String xslfoFilenameFormat
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
MarkupToXslfoTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a set of files to process.
protected  File computeXslfoFile(File source, String name)
           
 void execute()
           
 String getAuthor()
           
 String getCopyright()
           
 String getDate()
           
 File getFile()
          the file to process
 float getFontSize()
           
 float[] getFontSizeMultipliers()
           
 float getPageHeight()
           
 float getPageMargin()
           
 float getPageWidth()
           
 String getSubTitle()
           
 File getTargetdir()
           
 String getTitle()
           
 String getVersion()
           
 String getXslfoFilenameFormat()
           
 boolean isPageBreakOnHeading1()
           
 boolean isPageNumbering()
           
 boolean isPanelText()
           
 boolean isShowExternalLinks()
           
 boolean isUnderlineLinks()
           
protected  String processFile(MarkupLanguage markupLanguage, File baseDir, File source)
          process the file
 void setAuthor(String author)
           
 void setCopyright(String copyright)
           
 void setDate(String date)
           
 void setFile(File file)
          the file to process
 void setFontSize(float fontSize)
           
 void setFontSizeMultipliers(float[] fontSizeMultipliers)
           
 void setPageBreakOnHeading1(boolean pageBreakOnHeading1)
           
 void setPageHeight(float pageHeight)
           
 void setPageMargin(float pageMargin)
           
 void setPageNumbering(boolean pageNumbering)
           
 void setPageWidth(float pageWidth)
           
 void setPanelText(boolean panelText)
           
 void setShowExternalLinks(boolean showExternalLinks)
           
 void setSubTitle(String subTitle)
           
 void setTargetdir(File targetdir)
           
 void setTitle(String title)
           
 void setUnderlineLinks(boolean underlineLinks)
           
 void setVersion(String version)
           
 void setXslfoFilenameFormat(String filenameFormat)
          The format of the XSL-FO output file.
 
Methods inherited from class org.eclipse.mylyn.wikitext.core.util.anttask.MarkupTask
addConfiguredMarkupLanguageConfiguration, createMarkupLanguage, getInternalLinkPattern, getMarkupLanguage, getMarkupLanguageConfiguration, getSourceEncoding, isFailOnValidationError, isFailOnValidationWarning, isValidate, performValidation, readFully, setFailOnValidationError, setFailOnValidationWarning, setInternalLinkPattern, setMarkupLanguage, setMarkupLanguageConfiguration, setSourceEncoding, setValidate
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xslfoFilenameFormat

protected String xslfoFilenameFormat

overwrite

protected boolean overwrite

file

protected File file

targetdir

protected File targetdir
Constructor Detail

MarkupToXslfoTask

public MarkupToXslfoTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

processFile

protected String processFile(MarkupLanguage markupLanguage,
                             File baseDir,
                             File source)
                      throws org.apache.tools.ant.BuildException
process the file

Parameters:
baseDir -
source -
Returns:
Throws:
org.apache.tools.ant.BuildException

computeXslfoFile

protected File computeXslfoFile(File source,
                                String name)

getXslfoFilenameFormat

public String getXslfoFilenameFormat()
See Also:
setXslfoFilenameFormat(String)

setXslfoFilenameFormat

public void setXslfoFilenameFormat(String filenameFormat)
The format of the XSL-FO output file. Consists of a pattern where the '$1' is replaced with the filename of the input file. Default value is $1.fo


getFile

public File getFile()
the file to process


setFile

public void setFile(File file)
the file to process


addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files to process.


getTargetdir

public File getTargetdir()

setTargetdir

public void setTargetdir(File targetdir)

getAuthor

public String getAuthor()

getCopyright

public String getCopyright()

getDate

public String getDate()

getFontSize

public float getFontSize()

getFontSizeMultipliers

public float[] getFontSizeMultipliers()

getPageHeight

public float getPageHeight()

getPageMargin

public float getPageMargin()

getPageWidth

public float getPageWidth()

getSubTitle

public String getSubTitle()

getTitle

public String getTitle()

getVersion

public String getVersion()

isPageBreakOnHeading1

public boolean isPageBreakOnHeading1()

isPageNumbering

public boolean isPageNumbering()

isPanelText

public boolean isPanelText()

isShowExternalLinks

public boolean isShowExternalLinks()

isUnderlineLinks

public boolean isUnderlineLinks()

setAuthor

public void setAuthor(String author)

setCopyright

public void setCopyright(String copyright)

setDate

public void setDate(String date)

setFontSize

public void setFontSize(float fontSize)

setFontSizeMultipliers

public void setFontSizeMultipliers(float[] fontSizeMultipliers)

setPageBreakOnHeading1

public void setPageBreakOnHeading1(boolean pageBreakOnHeading1)

setPageHeight

public void setPageHeight(float pageHeight)

setPageMargin

public void setPageMargin(float pageMargin)

setPageNumbering

public void setPageNumbering(boolean pageNumbering)

setPageWidth

public void setPageWidth(float pageWidth)

setPanelText

public void setPanelText(boolean panelText)

setShowExternalLinks

public void setShowExternalLinks(boolean showExternalLinks)

setSubTitle

public void setSubTitle(String subTitle)

setTitle

public void setTitle(String title)

setUnderlineLinks

public void setUnderlineLinks(boolean underlineLinks)

setVersion

public void setVersion(String version)


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.